/* =========================================================
   SHOP PAGE � shop.css
========================================================= */

/* =========================================================
   HERO
========================================================= */

.wc-shop-hero {
    position: relative;
    height: 300px;
    background: var(--wc-primary, #493628);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wc-shop-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.wc-shop-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(10,8,5,.75) 0%, rgba(10,8,5,.88) 100% );
}

.wc-shop-hero__eyebrow {
    font-size: .72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--wc-gold);
    margin-bottom: .6rem;
}

.wc-shop-hero__title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
}

/* =========================================================
   GRID
========================================================= */

.wc-shop-grid {
    background: var(--wc-cream, #FAF6F0);
    padding: 3rem 0 5rem;
}

/* Subcategories tiles (Shop by Category) */
.wc-shop-subcats__inner { text-align: center; padding: 3rem 0; background: var(--wc-dark, #1C1008); color: #fff; }
.wc-shop-subcats__title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; color: #fff; }
.wc-shop-subcats__list { display:flex; justify-content:center; gap:3.5rem; flex-wrap:wrap; align-items:center; }
.wc-shop-subcat { display:flex; flex-direction:column; align-items:center; text-decoration:none; color:var(--wc-light, #ddd); width:160px; }

/* Circular category icon */
.wc-shop-subcat__icon-wrap {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: border-color 0.25s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
    background: transparent; /* remove dark square behind image */
    box-shadow: none;
    border: 3px solid transparent; /* default border, will use primary color on active */
}

.wc-shop-subcat__icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}

.wc-shop-subcat__label { font-size:1rem; font-weight:700; letter-spacing:1px; color:var(--wc-light, #fff); margin-top:0.4rem; transition: color 0.25s ease; }

/* Hover: gently scale the image without affecting layout (transform only) */
.wc-shop-subcat:hover .wc-shop-subcat__icon {
    transform: translateY(-4px) scale(1.03);
}

.wc-shop-subcat:hover .wc-shop-subcat__label { color:var(--wc-gold, #c8a96e); }

.wc-shop-subcat i { font-size:2rem; color: var(--wc-light, #ddd); }

/* Active state: show light primary border around the circular image */
.wc-shop-subcat.active .wc-shop-subcat__icon-wrap { border-color: var(--wc-primary-color, var(--wc-gold, #c8a96e)); }
.wc-shop-subcat.active .wc-shop-subcat__label { color: var(--wc-primary-color, var(--wc-gold, #c8a96e)); font-weight: 800; }

/* =========================================================
   SUBCATEGORY PILLS (for Category page)
========================================================= */

.wc-subcat-pills-bar {
    background: var(--wc-cream, #FAF6F0);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--wc-border, #E2D0BA);
}

.wc-subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.wc-subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    border: 2px solid #E2D0BA;
    border-radius: 50px;
    text-decoration: none;
    color: var(--wc-dark, #1C1008);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.wc-subcat-pill i {
    font-size: 1.1rem;
    color: var(--wc-muted, #7A6652);
    transition: color 0.25s ease;
}

.wc-subcat-pill__icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.wc-subcat-pill:hover {
    background: var(--wc-light, #F5EFE6);
    border-color: var(--wc-gold, #C8A96E);
    color: var(--wc-gold, #C8A96E);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wc-subcat-pill:hover i {
    color: var(--wc-gold, #C8A96E);
}

.wc-subcat-pill.active {
    background: var(--wc-gold, #C8A96E);
    border-color: var(--wc-gold, #C8A96E);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(200,169,110,0.3);
}

.wc-subcat-pill.active i {
    color: #fff;
}

.wc-subcat-pill.active .wc-subcat-pill__icon {
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.wc-shop-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: .25s ease;
}

    .wc-shop-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.12);
    }

.wc-shop-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f6f6f6;
}

.wc-shop-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.wc-shop-card:hover .wc-shop-card__img {
    transform: scale(1.05);
}

/* =========================================================
   BADGE
========================================================= */

.wc-shop-card__badge {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 20;
    background: #c8a96e;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: .3rem .7rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.wc-shop-card__badge--featured {
    background: #1a1510;
}

.wc-shop-card__badge--out-of-stock {
    background: #dc3545;
    top: 3rem;
    left: .4rem;
    right: auto;
}

.wc-shop-card__discount-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    z-index: 20;
    background: #dc3545;
    color: #fff;
    font-size: .75rem;
    font-weight: 800;
    padding: .35rem .8rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.wc-shop-card__countdown {
    position: absolute;
    bottom: 3.2rem; /* moved down to avoid overlapping mini add-to-cart button */
    left: .7rem;
    right: .7rem;
    z-index: 20;
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .4rem .7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.wc-shop-card__countdown i {
    color: var(--wc-gold, #c8a96e);
    font-size: .85rem;
}

.wc-discount-timer {
    display: inline-block;
    direction: ltr;
}

/* =========================================================
   OVERLAY
========================================================= */

.wc-shop-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: .8rem;
    opacity: 0;
    transition: .25s ease;
}

.wc-shop-card:hover .wc-shop-card__overlay {
    opacity: 1;
}

/* RIGHT SIDE ACTION BAR */
.wc-shop-card__actions-wrap {
    position: absolute;
    right: .6rem;
    top: .6rem;
    z-index: 40;
    transform: translateX(6px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    pointer-events: none;
}
.wc-shop-card:hover .wc-shop-card__actions-wrap {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.wc-shop-card__actions { display:flex; flex-direction:column; gap:.5rem; align-items:flex-end; }
.wc-shop-card__action-btn { width:40px; height:40px; border-radius:50%; border:none; background:rgba(26,21,16,.85); color:#fff; display:flex; align-items:center; justify-content:center; }
.wc-shop-card__action-btn i { font-size:1rem; }
.wc-shop-card__action-btn.active { box-shadow:0 0 0 4px rgba(0,0,0,.12); }
.wc-shop-card__action-btn.wishlist-active { color: #e25555; background: rgba(255,230,230,.95); }
.wc-shop-card__action-btn.compare-active { color: #26a65b; background: rgba(230,255,240,.95); }

/* SELECT OPTIONS overlay button at bottom */
.wc-select-overlay { position:absolute; left:50%; transform:translateX(-50%); bottom:.7rem;  background:rgba(0,0,0,.7); color:#fff; padding:.6rem .9rem; border-radius:6px; font-weight:700; }
.wc-shop-card:hover .wc-select-overlay { display:block; opacity:0; transform:translateX(-50%) translateY(8px); transition:opacity .25s ease, transform .25s ease; }
.wc-shop-card:hover .wc-select-overlay { opacity:1; transform:translateX(-50%) translateY(0); }

/* IMAGE FILTER BAR */
.wc-image-filter-bar { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem; }
.wc-image-filter-pill { display:inline-flex; gap:.5rem; align-items:center; padding:.45rem .75rem; border-radius:999px; background:#fff; border:1px solid #eee; cursor:pointer; font-weight:700; }
.wc-image-filter-pill.active { background:var(--wc-gold); color:#fff; }

/* =========================================================
   ACTION BUTTONS
========================================================= */

.wc-shop-card__actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-end;
}

.wc-shop-card__action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #1a1510;
    color: #fff;
    cursor: pointer;
    transition: .2s ease;
}

    .wc-shop-card__action-btn:hover {
        background: #c8a96e;
        transform: scale(1.08);
    }

/* =========================================================
   SELECT BUTTON
========================================================= */

.wc-shop-card__select-btn {
    width: 100%;
    border: none;
    background: #fff;
    color: #1a1510;
    padding: .7rem;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
    text-decoration: none;
    text-align: center;
}

    .wc-shop-card__select-btn:hover {
        background: #c8a96e;
        color: #fff;
    }
 
/* =========================================================
   CARD BODY
========================================================= */

.wc-shop-card__body {
    padding: 1rem;
}

.wc-shop-card__cat {
    font-size: .72rem;
    color: #c8a96e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .4rem;
}

.wc-shop-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1510;
    margin-bottom: .4rem;
    line-height: 1.4;
}

.wc-shop-card__material {
    font-size: .78rem;
    color: #777;
    margin-bottom: .4rem;
}

/* =========================================================
   PRICE
========================================================= */

.wc-shop-card__price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .5rem;
}

.wc-shop-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: #c8a96e;
}

.wc-shop-card__old-price {
    font-size: .82rem;
    color: #888;
    text-decoration: line-through;
}

/* =========================================================
   COLORS
========================================================= */

.wc-shop-card__colors,
.wc-mini-colors,
.wc-qv-colors {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    margin-top: .5rem;
}

.wc-color-dot,
.wc-mini-color-btn,
.wc-qv-color-btn,
.wc-color-swatch {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    object-fit: cover;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .wc-mini-color-btn img,
    .wc-qv-color-btn img,
    .wc-color-swatch img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    .wc-color-dot:hover,
    .wc-mini-color-btn:hover,
    .wc-qv-color-btn:hover,
    .wc-color-swatch:hover {
        transform: scale(1.15);
        border-color: #c8a96e;
        box-shadow: 0 3px 10px rgba(200,169,110,.3);
    }

    .wc-color-dot.selected,
    .wc-mini-color-btn.selected,
    .wc-qv-color-btn.selected,
    .wc-color-swatch.selected {
        transform: scale(1.2);
        border-color: #c8a96e;
        border-width: 3px;
        box-shadow: 0 0 0 4px rgba(200,169,110,.35), 0 4px 12px rgba(200,169,110,.4);
        z-index: 10;
    }

    /* Selected color pseudo-element (empty by default) */
    .wc-mini-color-btn.selected::after,
    .wc-qv-color-btn.selected::after,
    .wc-color-swatch.selected::after {
        /* intentionally empty: visual checkmark removed to match design */
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .wc-color-dot[src=""],
    .wc-color-dot:not([src]) {
        display: none !important;
    }

/* =========================================================
   MINI OPTIONS
========================================================= */

.wc-mini-options {
    position: absolute;
    inset: 0;
    z-index: 50;
    background: rgba(18,14,8,.97);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: .85rem;
    color: #fff;
    overflow-y: auto;
}

    .wc-mini-options.active {
        display: flex;
    }

.wc-mini-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: .85rem;
    cursor: pointer;
    align-self: flex-start;
}

/* =========================================================
   LABELS
========================================================= */

.wc-mini-options__label,
.wc-qv-field-label {
    font-size: .78rem;
    font-weight: 700;
    color: #f2f2f2;
}

/* =========================================================
   SELECTS
========================================================= */

.wc-mini-size-select,
.wc-inline-size-select,
.wc-qv-select {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid #c8a96e;
    padding: .55rem .85rem;
    font-size: .88rem;
    font-weight: 600;
    transition: .2s ease;
}

.wc-mini-size-select,
.wc-qv-select {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.wc-inline-size-select {
    background: #fff;
    color: #1a1510;
}

.wc-mini-size-select option,
.wc-qv-select option {
    background: #1a1510 !important;
    color: #fff !important;
}

.wc-inline-size-select option {
    background: #fff !important;
    color: #1a1510 !important;
}

.wc-mini-size-select:focus,
.wc-inline-size-select:focus,
.wc-qv-select:focus {
    outline: none;
    border-color: #c8a96e;
    box-shadow: 0 0 0 3px rgba(200,169,110,.25);
}

/* =========================================================
   INLINE BUTTON
========================================================= */

.wc-inline-add-cart-btn,
.wc-mini-add-cart-btn,
.wc-qv-btn-cart {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: #1a1510;
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

    .wc-inline-add-cart-btn:hover,
    .wc-mini-add-cart-btn:hover,
    .wc-qv-btn-cart:hover {
        background: #c8a96e;
    }

    .wc-inline-add-cart-btn:disabled {
        background: #ddd;
        color: #888;
        cursor: not-allowed;
    }

/* =========================================================
   QUICK VIEW
========================================================= */

.wc-qv-modal {
    background: #14100a;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.wc-qv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-qv-body {
    padding: 1.5rem;
}

.wc-qv-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

.wc-qv-price-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
}

.wc-qv-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #c8a96e;
}

.wc-qv-old-price {
    font-size: .85rem;
    text-decoration: line-through;
    color: #aaa;
}

/* =========================================================
   QUICK VIEW MODAL - ENHANCED STYLES
========================================================= */

.wc-product-modal .modal-content {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.wc-product-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

.wc-product-modal .modal-body {
    padding: 1rem 2rem 2.5rem;
}

.wc-product-modal h3 {
    color: #1C1008;
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.wc-product-modal .text-muted {
    color: #6c757d !important;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Price styling in Quick View */
.wc-product-modal .h4 {
    color: #C8A96E !important;
    font-weight: 700;
    font-size: 1.85rem;
}

.wc-product-modal .text-decoration-line-through {
    color: #999 !important;
    font-size: 1.25rem;
}

/* Image container in Quick View */
.wc-product-modal img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Modal backdrop */
.wc-modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
}

/* Close button styling */
.wc-product-modal .btn-close {
    padding: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.wc-product-modal .btn-close:hover {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .wc-shop-hero {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block;
        background: none;
    }

    .wc-shop-hero__photo {
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center top;
    }

    .wc-shop-hero__content {
        position: absolute !important;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        padding: 1rem;
    }
}

@media(max-width:767px) {

    .wc-shop-grid {
        padding: 2rem 0 3rem;
    }
    
    .wc-shop-subcats__inner { padding: 2rem 0; }
    .wc-shop-subcats__title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .wc-shop-subcats__list { gap: 2rem; }
    .wc-shop-subcat { width: 120px; }
    .wc-shop-subcat__icon-wrap { width: 90px; height: 90px; }
    .wc-shop-subcat__label { font-size: 0.9rem; }
    
    .wc-subcat-pills-bar { padding: 1rem 0; }
    .wc-subcat-pills { gap: 0.5rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0.25rem 0; }
    .wc-subcat-pill { padding: 0.5rem 1rem; font-size: 0.85rem; flex-shrink: 0; }
    .wc-subcat-pill i { font-size: 1rem; }
    .wc-subcat-pill__icon { width: 18px; height: 18px; }

    .wc-color-dot,
    .wc-mini-color-btn,
    .wc-qv-color-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .wc-mini-size-select,
    .wc-inline-size-select,
    .wc-qv-select {
        font-size: .82rem;
    }

    .wc-shop-card__title {
        font-size: .88rem;
    }
}

/* =========================================================
   PAGINATION
========================================================= */

.wc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.wc-page-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #E2D0BA;
    color: var(--wc-dark, #1C1008);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.wc-page-btn:hover {
    background: var(--wc-light, #F5EFE6);
    border-color: var(--wc-gold, #C8A96E);
    color: var(--wc-gold, #C8A96E);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wc-page-btn.active {
    background: var(--wc-gold, #C8A96E);
    border-color: var(--wc-gold, #C8A96E);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(200,169,110,0.3);
    pointer-events: none;
}

.wc-page-prev,
.wc-page-next {
    font-size: 1.2rem;
}

.wc-page-dots {
    color: var(--wc-muted, #7A6652);
    padding: 0 0.25rem;
    user-select: none;
}

@media(max-width:767px) {
    .wc-pagination {
        gap: 0.35rem;
    }

    .wc-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}
