/*
 * SCC Luxury Shop — scc-shop.css  v6.0
 * Changes: full-width, compact collection, hover fix, typography up, pending filter state
 */

/* ═══════════════════════════════════════════════════════
   1. GLOBAL SHOP WRAPPER
═══════════════════════════════════════════════════════ */
body.woocommerce.archive .woodmart-content-layout-wrap,
body.woocommerce.archive .container,
body.woocommerce.archive .row,
body.woocommerce.archive #content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.scc-shop-wrap {
    width: 100%;
    background: #f4f1ec;
}

/* ═══════════════════════════════════════════════════════
   2. HERO
═══════════════════════════════════════════════════════ */
.scc-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    max-height: 620px;
    overflow: hidden;
    background: #2a2520;
}
.scc-hero__bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.03);
    transition: transform 0.8s ease;
    will-change: transform;
}
.scc-hero__bg.parallax { transform-origin: center top; }
.scc-hero.loaded .scc-hero__bg { transform: scale(1.0); }
.scc-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,8,5,0.12) 0%, rgba(10,8,5,0.58) 100%);
}
.scc-hero__content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; text-align: center;
    padding: 0 24px;
}
.scc-hero__eyebrow {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.55); margin-bottom: 14px;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.7s 0.2s, transform 0.7s 0.2s;
}
.scc-hero.loaded .scc-hero__eyebrow { opacity: 1; transform: translateY(0); }
.scc-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(38px, 5vw, 68px); font-weight: 300;
    color: #fff;
    line-height: 1.05;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.7s 0.35s, transform 0.7s 0.35s;
}
.scc-hero.loaded .scc-hero__title { opacity: 1; transform: translateY(0); }
.scc-hero__line {
    width: 0; height: 1px; background: #c9a96e;
    margin: 18px auto;
    transition: width 0.6s 0.6s ease;
}
.scc-hero.loaded .scc-hero__line { width: 80px; }
.scc-hero__sub {
    font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.6s 0.75s, transform 0.6s 0.75s;
}
.scc-hero.loaded .scc-hero__sub { opacity: 1; transform: translateY(0); }
.scc-hero__scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.45); font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0; transition: opacity 0.6s 1s;
}
.scc-hero.loaded .scc-hero__scroll { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   3. COLLECTION SECTION (v6: site bg, compact, no grey box)
═══════════════════════════════════════════════════════ */
.scc-coll-section {
    background: #f4f1ec;      /* ← site background, no grey box */
    padding: 28px 40px 24px;  /* ← tight, compact */
    max-width: 1520px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.scc-coll-section__header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 16px;
}
.scc-coll-section__eyebrow {
    font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
    color: #8a8070; margin-bottom: 3px;
}
.scc-coll-section__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px; font-weight: 400;
    color: #1c1c1c;   /* ← black type */
    letter-spacing: 0.3px;
    margin: 0;
}

/* 5-column compact grid */
.scc-coll-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.scc-coll-card {
    position: relative; overflow: hidden;
    height: 180px;       /* ← was 340–520px */
    border-radius: 2px;
    display: block; text-decoration: none;
    cursor: pointer;
}
.scc-coll-card__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
    display: block;
}
.scc-coll-card:hover .scc-coll-card__img { transform: scale(1.04); }
.scc-coll-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,8,5,0.72) 0%, rgba(10,8,5,0) 55%);
    transition: opacity 0.3s;
}
.scc-coll-card:hover .scc-coll-card__overlay { opacity: 0.85; }
.scc-coll-card__body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 12px 14px;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}
.scc-coll-card:hover .scc-coll-card__body { transform: translateY(0); }
.scc-coll-card__sub {
    font-size: 8px; letter-spacing: 1.8px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); display: block; margin-bottom: 2px;
}
.scc-coll-card__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 15px; font-weight: 400;
    color: #fff; line-height: 1.2; margin: 0;
}
.scc-coll-card__arrow {
    display: block; width: 20px; height: 1px;
    background: #c9a96e; margin-top: 7px;
    transition: width 0.3s;
}
.scc-coll-card:hover .scc-coll-card__arrow { width: 42px; }

/* ═══════════════════════════════════════════════════════
   4. PRODUCTS SECTION — full-width
═══════════════════════════════════════════════════════ */
.scc-products-section {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 40px 80px;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════
   5. FILTER TOPBAR
═══════════════════════════════════════════════════════ */
.scc-filter-topbar {
    display: flex; align-items: center; gap: 10px;
    height: 64px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 32px;
    position: sticky; top: 0; z-index: 100;
    background: #f4f1ec;
}

/* Filter trigger — HOVER FIXED (v6) */
.scc-filter-trigger {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 0 18px; height: 40px;
    border: 1.5px solid #1c1c1c; border-radius: 2px;
    background: transparent; color: #1c1c1c;
    font-family: inherit; font-size: 12px;
    font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
    cursor: pointer; white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
/* ← FIXED: gold bg + dark readable text */
.scc-filter-trigger:hover {
    background: #c9a96e;
    border-color: #c9a96e;
    color: #1c1c1c;
}
.scc-filter-trigger.is-open {
    background: #1c1c1c;
    border-color: #1c1c1c;
    color: #fff;
}
.scc-filter-trigger.is-open:hover {
    background: #2e2e2e;
    border-color: #2e2e2e;
    color: #fff;
}
/* Active count badge on trigger */
.scc-filter-trigger__count {
    display: inline-flex; align-items: center; justify-content: center;
    background: #c9a96e; color: #1c1c1c;
    font-size: 8px; font-weight: 700;
    width: 17px; height: 17px; border-radius: 50%;
    flex-shrink: 0;
}
.scc-filter-trigger.is-open .scc-filter-trigger__count {
    background: rgba(201,169,110,0.3); color: #fff;
}

/* Active chips (applied filters shown in topbar) */
.scc-active-chips {
    display: flex; gap: 6px; flex-wrap: wrap; flex: 1;
}
.scc-active-chip {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid rgba(0,0,0,0.2); border-radius: 2px;
    padding: 5px 10px;
    font-size: 12px; color: #1c1c1c; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.scc-active-chip:hover { border-color: #1c1c1c; background: rgba(0,0,0,0.03); }
.scc-active-chip__x { color: #8a8070; font-size: 10px; }
.scc-clear-all-chip {
    font-size: 11px; color: #8a8070; text-decoration: none;
    padding: 5px 6px; align-self: center;
    border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.scc-clear-all-chip:hover { border-color: #8a8070; }

.scc-topbar-count {
    margin-left: auto; font-size: 12px; color: #8a8070;
    white-space: nowrap; letter-spacing: 0.3px; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   6. PRODUCT GRID — 5 cols, full-width, bigger cards
═══════════════════════════════════════════════════════ */
.scc-products-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 0; margin: 0;
}

.scc-product-card {
    display: block; text-decoration: none; color: #1c1c1c;
}
.scc-product-card__img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden; background: #e8e4de;
    border-radius: 2px; margin-bottom: 14px;
}
.scc-product-card__img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.scc-product-card:hover .scc-product-card__img { transform: scale(1.04); }

/* Brand — small gold uppercase */
.scc-product-card__brand {
    display: block; font-size: 10px; letter-spacing: 2px;
    text-transform: uppercase; color: #a8844f; margin-bottom: 5px;
}
/* Name — bigger serif (v6: 18px) */
.scc-product-card__name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px; font-weight: 400; line-height: 1.2;
    color: #1c1c1c; margin: 0 0 5px;
}
/* Meta — size · finish (v6: 12px) */
.scc-product-card__meta { font-size: 12px; color: #6a6055; margin: 0; }

/* CTA arrow */
.scc-product-card__cta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
    color: #4a4a4a; margin-top: 10px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.scc-product-card:hover .scc-product-card__cta {
    color: #1c1c1c; border-color: #c9a96e;
}

/* ═══════════════════════════════════════════════════════
   7. PAGINATION
═══════════════════════════════════════════════════════ */
.scc-pagination {
    margin-top: 52px; display: flex; justify-content: center;
    gap: 6px; flex-wrap: wrap;
}
.scc-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px; font-size: 13px; color: #1c1c1c; text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.scc-pagination .page-numbers.current,
.scc-pagination .page-numbers:hover {
    background: #1c1c1c; border-color: #1c1c1c; color: #fff;
}
.scc-pagination .page-numbers.dots {
    border: none; background: none; color: #8a8070; cursor: default;
}

/* ═══════════════════════════════════════════════════════
   8. NO PRODUCTS
═══════════════════════════════════════════════════════ */
.scc-no-products {
    text-align: center; padding: 80px 24px; color: #4a4a4a;
}
.scc-no-products p { font-size: 16px; margin-bottom: 16px; }
.scc-no-products a {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: #1c1c1c; text-decoration: none;
    border-bottom: 1px solid #c9a96e; padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════
   9. DRAWER OVERLAY
═══════════════════════════════════════════════════════ */
.scc-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.38);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9000;
}
.scc-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════
   10. DRAWER
═══════════════════════════════════════════════════════ */
.scc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 400px;
    background: #f4f1ec;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0, 0, 1);
    z-index: 9001;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 48px rgba(0,0,0,0.12);
}
.scc-drawer.is-open { transform: translateX(0); }

/* Header */
.scc-drawer__header {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.scc-drawer__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; font-weight: 400; color: #1c1c1c;
    letter-spacing: 0.3px; margin: 0;
}
.scc-drawer__reset {
    font-family: inherit;
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    color: #8a8070; background: none; border: none; cursor: pointer;
    margin-right: auto; padding: 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.scc-drawer__reset:hover { border-color: #8a8070; }
.scc-drawer__close {
    width: 34px; height: 34px; background: none; border: none;
    cursor: pointer; font-size: 17px; color: #8a8070;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.2s;
    flex-shrink: 0;
}
.scc-drawer__close:hover { background: rgba(0,0,0,0.06); }

/* Pending notice */
.scc-pending-notice {
    display: flex; align-items: center; gap: 9px;
    background: rgba(201,169,110,0.1);
    border-left: 2px solid #c9a96e;
    padding: 10px 20px;
    font-size: 12px; color: #4a4a4a;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Body */
.scc-drawer__body {
    flex: 1; overflow-y: auto; padding: 0 0 16px;
}
.scc-drawer__body::-webkit-scrollbar { width: 3px; }
.scc-drawer__body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* Section */
.scc-drawer-section {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.scc-drawer-section__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
/* Label (v6: 11px) */
.scc-drawer-section__label {
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: #1c1c1c;
}
.scc-drawer-section__clear {
    font-size: 10px; color: #8a8070; text-decoration: none;
    border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.scc-drawer-section__clear:hover { border-color: #8a8070; }

/* Search */
.scc-drawer-search {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(0,0,0,0.15); border-radius: 2px;
    padding: 8px 12px; margin-bottom: 10px;
    background: #fff;
}
.scc-drawer-search input {
    border: none; background: none; outline: none;
    font-size: 12px; color: #1c1c1c; width: 100%;
    font-family: inherit;
}

/* Tag grid */
.scc-tag-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* Tags — (v6: 12px, bigger padding) */
.scc-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 13px;
    border: 1px solid rgba(0,0,0,0.16); border-radius: 2px;
    font-size: 12px; color: #1c1c1c;
    cursor: pointer; user-select: none;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    line-height: 1;
}
.scc-tag:hover { border-color: #1c1c1c; background: rgba(0,0,0,0.03); }

/* Pending = selected but not yet applied */
.scc-tag.is-pending {
    background: rgba(201,169,110,0.15);
    border-color: #c9a96e;
    color: #1c1c1c;
}

/* Applied (server-confirmed, already in URL) */
.scc-tag.is-selected {
    background: #1c1c1c;
    border-color: #1c1c1c;
    color: #fff;
}
.scc-tag.is-selected .scc-tag__count { opacity: 0.45; }

.scc-tag__count { font-size: 9px; opacity: 0.4; letter-spacing: 0; }

/* Drawer footer + apply button */
.scc-drawer__footer {
    flex-shrink: 0;
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: #f4f1ec;
}
.scc-drawer__apply {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 50px;
    background: #1c1c1c; color: #fff;
    font-family: inherit;
    font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    border: none; cursor: pointer; border-radius: 2px;
    transition: background 0.2s;
}
.scc-drawer__apply:hover { background: #2e2e2e; }
/* Pending = gold button */
.scc-drawer__apply.has-pending {
    background: #c9a96e; color: #1c1c1c;
}
.scc-drawer__apply.has-pending:hover { background: #a8844f; }

/* ═══════════════════════════════════════════════════════
   11. HIDE WOODMART / WOOCOMMERCE DEFAULT ELEMENTS
═══════════════════════════════════════════════════════ */
body.woocommerce.archive .woodmart-sidebar-container,
body.woocommerce.archive .woocommerce-ordering,
body.woocommerce.archive .woodmart-products-header,
body.woocommerce.archive .woodmart-row-count,
body.woocommerce.archive .woodmart-filters-area,
body.woocommerce.archive .woocommerce-result-count,
body.woocommerce.archive .price,
body.woocommerce.archive .add_to_cart_button,
body.woocommerce.archive .onsale,
body.woocommerce.archive .woodmart-woo-list-btn,
body.woocommerce.archive .shop-header-area,
body.woocommerce.archive .wpc-filters-area,
body.woocommerce.archive .wpc-widget-filter,
body.woocommerce.archive ul.products { display: none !important; }

/* Suppress WPClever filter widget from re-rendering our grid */
body.woocommerce.archive .woodmart-shop-page .woodmart-sidebar { display: none !important; }

/* ═══════════════════════════════════════════════════════
   12. RESPONSIVE
═══════════════════════════════════════════════════════ */

/* Large desktop: 5 cols already set */

@media (max-width: 1280px) {
    .scc-products-section { padding: 0 28px 60px; }
    .scc-coll-section     { padding: 24px 28px 20px; }
    .scc-products-grid    { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .scc-coll-card        { height: 160px; }
}

@media (max-width: 1024px) {
    .scc-products-section { padding: 0 20px 48px; }
    .scc-coll-section     { padding: 20px 20px 16px; }
    .scc-products-grid    { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .scc-coll-card        { height: 140px; }
    .scc-hero             { height: 50vh; min-height: 300px; }
}

@media (max-width: 768px) {
    :root { --side-pad: 16px; }
    .scc-products-section { padding: 0 16px 40px; }
    .scc-coll-section     { padding: 16px 16px 14px; }
    .scc-coll-grid        { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .scc-coll-card        { height: 110px; }
    .scc-coll-card__name  { font-size: 12px; }
    .scc-products-grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .scc-product-card__name { font-size: 15px; }
    .scc-filter-topbar    { padding: 0; margin: 0; height: 54px; }
    .scc-hero             { height: 50vh; min-height: 280px; }
    .scc-drawer           { width: 100%; }
}

@media (max-width: 480px) {
    .scc-coll-grid { grid-template-columns: repeat(2, 1fr); }
    .scc-coll-card { height: 120px; }
    .scc-coll-card:last-child { grid-column: 1 / -1; height: 100px; }
    .scc-products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
