/* ============================================================
   Shop Filter Shortcode — shop-filter.css v1.2.0
   ============================================================ */

#sfs-wrapper { font-family: inherit; }

/* ----- Filter bar ----- */
#sfs-filter-bar {
    border-radius: 12px;
    border: 1px solid #e8e8e8 !important;
}

/* ----- Colour Swatches ----- */
.sfs-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    cursor: pointer;
    font-size: 10px; font-weight: 600;
    padding: 0;
    transition: border-color .15s, transform .15s;
    background: #fff; color: #333; line-height: 1;
}
.sfs-swatch-all { width: auto; border-radius: 20px; padding: 0 10px; font-size: 11px; }
.sfs-swatch:hover { border-color: #333; transform: scale(1.1); }
.sfs-swatch.active { border-color: #111; box-shadow: 0 0 0 2px #111; }

/* ----- Product card ----- */
.sfs-product-card {
    border-radius: 12px !important;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.sfs-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
    transform: translateY(-2px);
}

.sfs-img-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8f8f8;
    position: relative;
}

.sfs-product-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.sfs-product-card:hover .sfs-product-img { transform: scale(1.05); }

/* Quick View button on card */
.sfs-quickview-btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,.95);
    color: #111;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    transition: bottom .25s ease, opacity .25s ease;
    opacity: 0;
    z-index: 2;
}
.sfs-img-wrap:hover .sfs-quickview-btn,
.sfs-product-card:hover .sfs-quickview-btn {
    bottom: 12px;
    opacity: 1;
}

.sfs-product-title {
    font-size: .875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.sfs-rating svg { vertical-align: -1px; }
.sfs-price { font-size: .875rem; color: #111; }
.sfs-price ins { text-decoration: none; }
.sfs-price del { font-size: .75rem; font-weight: 400; color: #999; margin-right: 4px; }
.sfs-add-to-cart { border-radius: 8px !important; padding: 6px 10px !important; line-height: 1; }

/* ----- Pagination ----- */
#sfs-pagination .btn {
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 8px !important;
    font-size: .875rem;
    display: flex; align-items: center; justify-content: center;
}
#sfs-pagination .btn.active { background: #111; border-color: #111; color: #fff; }

/* ----- Loading ----- */
#sfs-product-grid.sfs-loading { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
#sfs-quickview-modal .modal-dialog { max-width: 900px; }

.sfs-qv-modal-content {
    border: none;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

/* Close button */
.sfs-qv-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 10;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: #333;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: background .15s, transform .15s;
}
.sfs-qv-close:hover { background: #fff; transform: scale(1.1); }

/* ----- Gallery (left panel) ----- */
.sfs-qv-gallery {
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.sfs-qv-main-img-wrap {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 1 / 1;
}

.sfs-qv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.sfs-qv-slide.active { opacity: 1; pointer-events: auto; }

.sfs-qv-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Prev/Next arrows */
.sfs-qv-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    color: #111;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: background .15s;
}
.sfs-qv-arrow:hover { background: #fff; }
.sfs-qv-prev { left: 12px; }
.sfs-qv-next { right: 12px; }

/* Dot indicators */
.sfs-qv-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}
.sfs-qv-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    padding: 0; cursor: pointer;
    transition: background .2s, transform .2s;
}
.sfs-qv-dot.active { background: #111; transform: scale(1.25); }

/* Thumbnail strip */
.sfs-qv-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 12px 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.sfs-qv-thumb {
    flex: 0 0 56px;
    width: 56px; height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0; cursor: pointer;
    transition: border-color .15s;
    background: #eee;
}
.sfs-qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sfs-qv-thumb.active { border-color: #111; }
.sfs-qv-thumb:hover { border-color: #555; }

/* ----- Info panel (right panel) ----- */
.sfs-qv-info {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

.sfs-qv-cat {
    letter-spacing: .08em;
    font-size: 11px !important;
}

.sfs-qv-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #111;
}

.sfs-qv-divider {
    width: 36px; height: 2px;
    background: #c8a96e; /* gold accent — change to your brand color */
    margin-bottom: 14px;
    border-radius: 2px;
}

.sfs-qv-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}
.sfs-qv-price ins { text-decoration: none; color: #c8a96e; }
.sfs-qv-price del { font-size: 1rem; font-weight: 400; color: #999; margin-right: 6px; }

.sfs-qv-desc {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
}

/* Attr select */
.sfs-qv-attr-row label { color: #333; font-size: 12px; }
.sfs-qv-attr-row .form-select { border-radius: 8px; font-size: .9rem; }

/* Qty + cart row */
.sfs-qv-cart-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.sfs-qv-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 auto;
}
.sfs-qty-btn {
    width: 36px; height: 44px;
    border: none;
    background: #f5f5f5;
    font-size: 18px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.sfs-qty-btn:hover { background: #e8e8e8; }
.sfs-qty-input {
    width: 46px;
    border: none;
    text-align: center;
    font-size: .95rem; font-weight: 600;
    height: 44px;
    -moz-appearance: textfield;
}
.sfs-qty-input::-webkit-inner-spin-button,
.sfs-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.sfs-qv-add-to-cart {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 8px !important;
    height: 44px;
    transition: background .2s, transform .1s;
}
.sfs-qv-add-to-cart:active { transform: scale(.98); }
.sfs-qv-add-to-cart.loading { opacity: .7; pointer-events: none; }
.sfs-qv-add-to-cart.added { background: #2d7a45 !important; border-color: #2d7a45 !important; }

/* Meta rows */
.sfs-qv-meta { border-top: 1px solid #eee; padding-top: 14px; }
.sfs-qv-meta-row { display: flex; gap: 8px; font-size: .85rem; color: #555; margin-bottom: 4px; }
.sfs-qv-meta-label { font-weight: 600; color: #333; min-width: 72px; }
.sfs-qv-meta-link { color: #c8a96e; text-decoration: none; }
.sfs-qv-meta-link:hover { text-decoration: underline; }

/* View full link */
.sfs-qv-view-full {
    font-size: .85rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color .15s;
}
.sfs-qv-view-full:hover { color: #111; }

/* ----- Mobile tweaks ----- */
@media (max-width: 767px) {
    .sfs-qv-info { padding: 24px 20px 24px; max-height: none; }
    .sfs-qv-title { font-size: 1.2rem; }
    .sfs-qv-main-img-wrap { aspect-ratio: 4/3; }
    #sfs-quickview-modal .modal-dialog { margin: 0; max-width: 100%; }
    .sfs-qv-modal-content { border-radius: 16px 16px 0 0 !important; }
    #sfs-quickview-modal .modal-dialog { align-items: flex-end; min-height: 100%; }
}

@media (max-width: 575px) {
    .sfs-product-title { font-size: .8rem; }
    .sfs-price { font-size: .8rem; }
    .card-body.p-3 { padding: .625rem !important; }
}