/* ============================================================================
   Veras Shop — 2026 refresh
   Enqueued after style.css + veras-cards.css on the product archive only.
   Every rule is scoped to .veras-shop-2026 (body class added in functions.php)
   so the account page and other templates that reuse .veras-shop-title /
   .veras-shop-hero are untouched.

   Hero mirrors the front page: dark band, champagne headline, white diagonal
   wedge transitioning into the white product grid.
   ========================================================================== */

/* ─── Hero: dark band + diagonal white wedge ────────────────────────────── */
.veras-shop-2026 .veras-shop-hero {
    position: relative;
    overflow: hidden;
    background: #0A0A0A;
    border-bottom: none;
    /* Bottom padding carries the wedge; the diagonal needs some run-out below
       the copy, so it stays taller than the top. */
    padding: clamp(36px, 3.4vw, 62px) 0 clamp(72px, 7vw, 124px);
}
.veras-shop-2026 .veras-shop-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 72% center;
    background-repeat: no-repeat;
}
.veras-shop-2026 .veras-shop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(9, 10, 12, 0.96) 40%, rgba(9, 10, 12, 0.72) 62%, rgba(9, 10, 12, 0.42) 82%, rgba(9, 10, 12, 0.28) 100%);
}
/* The wedge that hands off to the white catalog below. Same direction and
   feel as .home .hero-wedge, tuned for a hero with no vial art. */
.veras-shop-2026 .veras-shop-hero-wedge {
    position: absolute;
    inset: 0 0 -1px;   /* -1px bleed so no hairline shows at the handoff */
    z-index: 1;
    background: #FFFFFF;
    clip-path: polygon(0 100%, 100% 56%, 100% 100%);
    pointer-events: none;
}
.veras-shop-2026 .veras-shop-hero-inner {
    position: relative;
    z-index: 2;
    max-width: none;
    padding-inline: clamp(32px, 6.7vw, 86px);
}

.veras-shop-2026 .veras-shop-eyebrow {
    display: block;
    font-family: var(--font-ui);
    font-size: clamp(9px, .72vw, 12px);
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--v-teal-light);
    margin-bottom: 12px;
}
.veras-shop-2026 .veras-shop-title {
    max-width: 900px;
    margin-bottom: 14px;
    color: var(--v-champagne);
    font-family: var(--font-ui);
    font-size: clamp(34px, 3.8vw, 68px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}
.veras-shop-2026 .veras-shop-desc {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--v-text);
    font-family: var(--font-body);
    font-size: clamp(14px, 1.05vw, 19px);
    line-height: 1.65;
}

@media (max-width: 900px) {
    .veras-shop-2026 .veras-shop-hero {
        padding: 32px 0 40px;
    }
    /* The diagonal reads as a stray triangle once the hero is short and the
       copy stacks, so drop it on small screens (as the homepage does). */
    .veras-shop-2026 .veras-shop-hero-wedge { display: none; }
}

/* ─── Filters bar: count · search · sort ────────────────────────────────── */
/* Search and sort live down here with the result count rather than up in the
   hero, and share one rounded pill treatment. Both sit on white. */
.veras-shop-2026 .veras-shop-filters {
    align-items: center;
    gap: 20px 24px;
}
.veras-shop-2026 .veras-shop-filters-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 420px;
    justify-content: flex-end;
    min-width: 0;
}

/* NOTE ON !important BELOW
   style.css carries a global WooCommerce form reset (`.woocommerce-page select`
   / `input[type="text"]`) where every declaration is !important — including
   `width: 100%`, `background: var(--v-bg-deep)` and `border-radius: 0`. The shop
   archive body carries .woocommerce-page, so that reset hits the sort select and
   the search input. Without matching !important here the select renders as a
   full-width black bar and its 100% width starves the search field to zero.
   These overrides are scoped to .veras-shop-2026 so the checkout forms the
   reset was written for are unaffected. */

/* Search pill */
.veras-shop-2026 .veras-shop-search {
    display: flex;
    align-items: center;
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 420px;
    margin-bottom: 0;
    background: #FFFFFF;
    border: 1px solid rgba(26, 27, 30, 0.22);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.veras-shop-2026 .veras-shop-search:focus-within {
    border-color: var(--v-champagne);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.18);
}
.veras-shop-2026 .veras-shop-search-icon {
    margin-left: 18px;
    color: rgba(26, 27, 30, 0.45);
}
.veras-shop-2026 .veras-shop-search-input,
.veras-shop-2026.woocommerce-page .veras-shop-search .veras-shop-search-input,
.veras-shop-2026.woocommerce .veras-shop-search .veras-shop-search-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 11px 20px 11px 12px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    color: #1A1B1E !important;
    outline: none !important;
}
.veras-shop-2026 .veras-shop-search-input::placeholder {
    color: rgba(26, 27, 30, 0.45);
}

/* Sort pill — matches the search field's radius, height and border.
   appearance is forced to none by the global reset, so the caret is drawn
   as a background image (same approach as the checkout selects). */
.veras-shop-2026 .home-catalog-sort {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    background: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A1B1E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    border: 1px solid rgba(26, 27, 30, 0.22) !important;
    border-radius: 30px !important;
    color: #1A1B1E !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    padding: 11px 44px 11px 20px !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.veras-shop-2026 .home-catalog-sort:focus {
    outline: none !important;
    border-color: var(--v-champagne) !important;
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.18) !important;
}
.veras-shop-2026 .home-catalog-count {
    flex: 0 0 auto;
    font-size: clamp(13px, 1vw, 17px);
}

@media (max-width: 760px) {
    .veras-shop-2026 .veras-shop-filters-controls {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .veras-shop-2026 .veras-shop-search {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }
    .veras-shop-2026 .home-catalog-sort {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* ─── Product section: white canvas ─────────────────────────────────────── */
.veras-shop-2026 .veras-shop-products {
    background: #FFFFFF;
    padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 7vw, 120px);
}
.veras-shop-2026 .veras-shop-products .veras-container {
    max-width: none;
    padding-left: clamp(32px, 6vw, 118px);
    padding-right: clamp(32px, 6vw, 118px);
}

/* ─── Grid ──────────────────────────────────────────────────────────────── */
.veras-shop-2026 .veras-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(48px, 4.5vw, 88px) clamp(32px, 4vw, 72px);
    align-items: start;
    justify-items: center;
    margin-bottom: clamp(48px, 5vw, 80px);
}
.veras-shop-2026 .veras-shop-grid .home-product-img {
    width: min(320px, 22vw);
}
.veras-shop-2026 .veras-shop-grid .home-product-name {
    font-size: clamp(16px, 1.15vw, 22px);
    min-height: 60px;
    margin-top: 16px;
}
.veras-shop-2026 .veras-shop-grid .home-product-price {
    font-size: clamp(18px, 1.35vw, 26px);
}

@media (max-width: 1100px) {
    .veras-shop-2026 .veras-shop-grid .home-product-img { width: min(300px, 30vw); }
}
@media (max-width: 900px) {
    .veras-shop-2026 .veras-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .veras-shop-2026 .veras-shop-grid .home-product-img { width: min(280px, 40vw); }
}
@media (max-width: 560px) {
    .veras-shop-2026 .veras-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 12px;
    }
    .veras-shop-2026 .veras-shop-grid .home-product-card { padding: 18px 8px 16px; }
    .veras-shop-2026 .veras-shop-grid .home-product-img { width: min(180px, 38vw); }
    .veras-shop-2026 .veras-shop-grid .home-product-name {
        font-size: 14px;
        min-height: 52px;
        margin-top: 12px;
    }
    .veras-shop-2026 .veras-shop-grid .home-product-price { font-size: 16px; }
}

/* ─── Empty state, pagination + disclaimer on white ─────────────────────── */
.veras-shop-2026 .veras-no-products {
    color: rgba(26, 27, 30, 0.6);
}
.veras-shop-2026 .woocommerce-pagination {
    margin-bottom: clamp(40px, 4vw, 64px);
    text-align: center;
}
.veras-shop-2026 .woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.veras-shop-2026 .woocommerce-pagination a,
.veras-shop-2026 .woocommerce-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(26, 27, 30, 0.18);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(26, 27, 30, 0.75);
    text-decoration: none;
}
.veras-shop-2026 .woocommerce-pagination span.current {
    background: var(--v-champagne);
    border-color: var(--v-champagne);
    color: #1A1B1E;
}
.veras-shop-2026 .products-disclaimer {
    background: rgba(42, 92, 99, 0.06);
    border-color: rgba(42, 92, 99, 0.2);
}
.veras-shop-2026 .products-disclaimer p {
    color: rgba(26, 27, 30, 0.62);
}
.veras-shop-2026 .products-disclaimer strong {
    color: var(--v-teal);
}
