/*
Theme Name: Wawa
Theme URI: https://example.com/wawa
Author: Wawa Studio
Author URI: https://example.com
Description: Avant-garde fashion theme with a static curated homepage. No backend data binding required.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wawa
Tags: fashion, ecommerce, minimal, dark, custom-colors
*/

:root {
    --primary: #1a1a1a;
    --bg: #fdfbf7;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--primary);
    overflow-x: hidden;
}

.font-serif { font-family: 'Playfair Display', serif; }

/* Force lining (uniform-height) figures on all Playfair Display usages.
   Playfair defaults to old-style figures which makes numbers like 0/5/8
   sit at different baselines and look visually jumbled. */
.font-serif,
.site-logo,
.footer-tagline,
.footer-tagline a,
.slide-title,
.search-panel input,
.cart-head h3,
.cart-line .name,
.drawer-nav a,
.product-meta h3,
.product-detail .info h1,
.recs-head h2,
.rec-card h3,
.quick-bar .qb-title,
.wawa-mini-item__title,
.page-wrap > h1.page-title,
.woocommerce-cart-form .product-name a,
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading,
.shop-hero__title,
.shop-card__title,
.search-hero__title,
.search-block__head h2,
.search-post__title,
.error-hero__code,
.error-hero__title,
.error-suggest__title {
    font-variant-numeric: lining-nums proportional-nums;
    font-feature-settings: "lnum" 1, "pnum" 1;
}

/* Custom Cursor (kept hidden) */
.cursor { display: none; }
.cursor.hovered { display: none; }

/* Top Announcement Bar */
.top-bar {
    background: #0a0a0a;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 60;
}
.top-bar .marquee-mini {
    flex: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

/* Header */
.site-header {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 50;
    color: #fff;
    transition: color 0.4s ease, background 0.4s ease;
    padding: 18px 32px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.header-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 45;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.header-gradient.hidden-grad { opacity: 0; }
.site-header .nav-left,
.site-header .nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}
.site-header .nav-right { justify-content: flex-end; }
.site-header a {
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
    position: relative;
}
.site-header a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.site-header a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.site-logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 0.3em;
    font-weight: 500;
    text-align: center;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.icon-btn[title="Cart"] { position: relative; }
.cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 10px;
    padding: 0 4px;
    border: 1px solid currentColor;
}
.site-header.scrolled .cart-count {
    background: #111;
    color: #fff;
    border-color: #fff;
}

/* Currency dropdown */
.currency-wrap { position: relative; }
.currency-switch {
    font-size: 12px;
    letter-spacing: 0.15em;
    border: 1px solid currentColor;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.currency-wrap.open .currency-switch { background: currentColor; }
.currency-wrap.open .currency-switch * { color: var(--bg); }
.currency-switch svg { transition: transform 0.3s ease; }
.currency-wrap.open .currency-switch svg { transform: rotate(180deg); }
.currency-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 60;
    padding: 6px 0;
}
.currency-wrap.open .currency-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.currency-menu li {
    list-style: none;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.12em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.2s ease;
}
.currency-menu li:hover { background: #f5f3ee; }
.currency-menu li.active { font-weight: 500; }
.currency-menu li.active::after { content: '✓'; }

/* Search Panel */
.search-panel {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    background: #fff;
    color: #111;
    z-index: 49;
    transform: translateY(-110%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 90px 6vw 40px;
}
.search-panel.open { transform: translateY(0); }
.search-panel form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #111;
    padding-bottom: 12px;
}
.search-panel input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    color: #111;
}
.search-panel input::placeholder { color: #999; }
.search-panel .search-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.search-suggest {
    max-width: 900px;
    margin: 18px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #777;
}
.search-suggest a {
    color: #111;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}
.search-suggest a:hover { border-color: #111; }
body.search-open .site-header {
    background: #fff !important;
    color: #111 !important;
}
body.search-open .header-gradient { opacity: 0; }

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    max-width: 420px;
    height: 100vh;
    background: #fff;
    z-index: 80;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.cart-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    letter-spacing: 0.05em;
}
.cart-close { background: transparent; border: none; font-size: 22px; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 28px; }
.cart-line {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: flex-start;
}
.cart-line img { width: 80px; height: 100px; object-fit: cover; }
.cart-line .name { font-family: 'Playfair Display', serif; font-size: 15px; margin-bottom: 4px; }
.cart-line .meta { font-size: 12px; color: #777; margin-bottom: 8px; letter-spacing: 0.05em; }
.qty { display: inline-flex; align-items: center; border: 1px solid #ddd; font-size: 13px; }
.qty button { background: transparent; border: none; width: 26px; height: 26px; cursor: pointer; }
.qty span { width: 24px; text-align: center; }
.cart-line .price { font-size: 13px; }
.cart-foot { border-top: 1px solid rgba(0,0,0,0.08); padding: 20px 28px 28px; }
.cart-total { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.05em; }
.cart-checkout {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
}
.cart-checkout:hover { background: #333; }

/* Sticky Header White */
.site-header.scrolled {
    top: 0;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Hamburger */
.hamburger {
    display: none;
    width: 28px;
    height: 18px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}
.hamburger span:nth-child(1) { top: 2px; }
.hamburger span:nth-child(2) { top: 50%; }
.hamburger span:nth-child(3) { top: calc(100% - 2px); }

/* Mobile Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 82vw;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 80;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 28px;
}
.drawer.open { transform: translateX(0); }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.drawer-close { font-size: 24px; background: transparent; border: none; cursor: pointer; line-height: 1; }
.drawer-nav a {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    color: #111;
}
.drawer-foot {
    margin-top: auto;
    font-size: 12px;
    color: #777;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .top-bar { font-size: 10px; padding: 8px 12px; letter-spacing: 0.15em; }
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 14px 18px;
    }
    .site-header .nav-left { display: none; }
    .site-logo { font-size: 22px; text-align: left; grid-column: 1; }
    .site-header .nav-right { gap: 14px; grid-column: 3; }
    .currency-switch { display: none !important; }
    .hamburger { display: inline-block; }
    .header-gradient { height: 130px; }
}

/* Hero Swiper */
.hero-section { height: 72vh; min-height: 520px; width: 100vw; position: relative; }
.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; overflow: hidden; }
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}
.swiper-slide-active .slide-bg { transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.slide-content { position: absolute; bottom: 12%; left: 6%; color: #fff; z-index: 10; }
.slide-title {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 12px;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.slide-title-inner {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: 0.5s;
}
.swiper-slide-active .slide-title-inner { transform: translateY(0); }

.swiper-pagination.bar-pagination {
    position: absolute;
    bottom: 32px;
    right: 32px;
    left: auto;
    width: auto;
    display: flex;
    gap: 8px;
    z-index: 20;
}
.swiper-pagination.bar-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 2px;
    border-radius: 0;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    transition: background 0.4s ease, width 0.4s ease;
}
.swiper-pagination.bar-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 60px;
}

/* Asymmetric Product Grid */
.collections-wrap { padding: 8rem 4vw; }
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2vw;
    row-gap: 4vw;
    max-width: 1800px;
    margin: 0 auto;
    align-items: start;
}
.product-item { position: relative; cursor: pointer; display: flex; flex-direction: column; }
.product-media {
    position: relative;
    overflow: hidden;
    flex: 1;
    background: #ececea;
}
.product-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.7s ease, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-media .img-hover { opacity: 0; }
.product-item:hover .img-primary { opacity: 0; }
.product-item:hover .img-hover { opacity: 1; transform: scale(1.04); }
.product-meta {
    padding: 14px 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.product-meta h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 400; }
.product-meta h3 a { color: inherit; text-decoration: none; }
.product-meta h3 a:hover { text-decoration: underline; }
.product-meta .price { font-size: 13px; color: #555; letter-spacing: 0.05em; }

/* Full-area click target inside the media; sits below the floating cta */
.product-card-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 4;
    text-indent: -9999px;
}

.add-to-cart {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, calc(100% + 24px));
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.6,0.2,0.2,1), opacity 0.4s ease, background 0.3s ease;
    z-index: 6;
}
.product-item:hover .add-to-cart { transform: translate(-50%, 0); opacity: 1; }
.add-to-cart:hover { background: #fff; color: #111; outline: 1px solid #111; }

.item-1 { grid-column: 1 / 7;  height: 70vh; }
.item-2 { grid-column: 8 / 12; height: 50vh; margin-top: 10vh; }
.item-3 { grid-column: 2 / 6;  height: 60vh; }
.item-4 { grid-column: 7 / 13; height: 72vh; }
.item-5 { grid-column: 1 / 5;  height: 56vh; margin-top: 6vh; }
.item-6 { grid-column: 5 / 9;  height: 64vh; }
.item-7 { grid-column: 9 / 13; height: 58vh; margin-top: 8vh; }
.item-8 { grid-column: 3 / 8;  height: 60vh; }
.item-9 { grid-column: 9 / 12; height: 48vh; margin-top: 6vh; }

.product-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    color: #111;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 5;
}
.product-tag.dark { background: #111; color: #fff; }

@media (max-width: 768px) {
    .collections-wrap { padding: 5rem 4vw; }
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
        gap: 3vw;
        row-gap: 3vw;
    }
    .item-1 { grid-column: 1 / 7; height: 60vh; margin-top: 0; }
    .item-2 { grid-column: 1 / 4; height: 36vh; margin-top: 0; }
    .item-3 { grid-column: 4 / 7; height: 36vh; margin-top: 4vh; }
    .item-4 { grid-column: 2 / 7; height: 50vh; margin-top: 0; }
    .item-5 { grid-column: 1 / 4; height: 32vh; margin-top: 0; }
    .item-6 { grid-column: 4 / 7; height: 32vh; margin-top: 3vh; }
    .item-7 { grid-column: 1 / 5; height: 44vh; margin-top: 0; }
    .item-8 { grid-column: 1 / 7; height: 50vh; margin-top: 0; }
    .item-9 { grid-column: 2 / 6; height: 36vh; margin-top: 0; }
    .product-meta h3 { font-size: 14px; }
    .product-meta .price { font-size: 12px; }
    .add-to-cart { padding: 10px 18px; font-size: 10px; }
}

/* FAQ */
.faq-section { padding: 8rem 4vw; max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) {
    .faq-section { padding: 4rem 6vw; }
    .faq-section > h2 { font-size: 1.75rem !important; margin-bottom: 2rem !important; }
    .faq-question { font-size: 1rem !important; padding: 1.25rem 0; gap: 16px; line-height: 1.4; }
    .faq-icon { flex-shrink: 0; transform: scale(0.8); }
    .faq-answer { font-size: 13px; }
    .faq-item.active .faq-answer { padding-bottom: 1.25rem; }
}
.faq-item { border-bottom: 1px solid rgba(26,26,26,0.2); overflow: hidden; }
.faq-question {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
}
.faq-icon { position: relative; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    transition: transform 0.4s ease;
}
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after  { top: 0;  left: 9px; width: 2px; height: 20px; }
.faq-item.active .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer {
    max-height: 0;
    padding: 0;
    color: #666;
    line-height: 1.6;
    transition: max-height 0.5s cubic-bezier(0,1,0,1), padding 0.5s ease;
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 2rem;
    transition: max-height 1s ease-in-out, padding 0.5s ease;
}

/* Footer */
.minimal-footer {
    background: #0a0a0a;
    color: #f1f1f1;
    padding: 4rem 4vw 2rem;
    text-align: center;
}
.minimal-footer .footer-inner { max-width: 800px; margin: 0 auto; }
.footer-tagline { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 8px; }
.footer-tagline a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 2px; }
.footer-tagline a:hover { border-color: #fff; }
.footer-sub { font-size: 13px; color: #999; letter-spacing: 0.05em; margin-bottom: 2rem; }
.payment-icons__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.payment-icons__item svg { display: block; }
.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 12px;
    color: #777;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}
.footer-bottom a { color: #aaa; }
.footer-bottom a:hover { color: #fff; }

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

/* ==========================================================================
   Single Product Detail Page
   ========================================================================== */
body.single-product .site-header { color: #111; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
body.single-product .header-gradient { display: none; }

.product-page { padding-top: 110px; }
.product-page .breadcrumb {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 4vw 8px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #777;
}
.product-page .breadcrumb a:hover { color: #111; }

.product-detail {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 4vw 80px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4vw;
    align-items: start;
}
.product-detail .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-detail .gallery img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.4s ease;
}
.product-detail .gallery img:hover { opacity: 0.92; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(10,10,10,0.92);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 86vw;
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
    position: absolute;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    padding: 12px 16px;
}
.lb-close { top: 20px; right: 20px; font-size: 32px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
    position: absolute;
    bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 12px; letter-spacing: 0.2em;
}

.product-detail .info {
    position: sticky;
    top: 130px;
    padding-left: 8px;
}
.product-detail .info .tag {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}
.product-detail .info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 12px;
}
.product-detail .info .price-line {
    font-size: 18px;
    margin-bottom: 4px;
}
.product-detail .info .price-line del { color: #999; margin-right: 10px; }
.product-detail .info .price-line ins { text-decoration: none; font-weight: 600; }
.product-detail .info .reviews {
    font-size: 12px;
    color: #777;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}
.product-detail .info .desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 28px;
}

.opt-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.opt-label a { font-size: 11px; letter-spacing: 0.15em; }

.colors { display: flex; gap: 10px; margin-bottom: 24px; }
.color {
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #ddd;
    position: relative;
}
.color.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #111;
    border-radius: 50%;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.size {
    min-width: 48px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: transparent;
    font-size: 12px;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.size:hover { border-color: #111; }
.size.active { background: #111; color: #fff; border-color: #111; }

.actions { display: flex; gap: 10px; margin-bottom: 24px; }
.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid #111;
}
.qty-input button { width: 44px; height: 50px; background: transparent; border: none; cursor: pointer; font-size: 16px; }
.qty-input span { width: 32px; text-align: center; font-size: 14px; }
.qty-input input.qty { width: 40px; height: 50px; text-align: center; border: none; background: transparent; font-size: 14px; -moz-appearance: textfield; appearance: textfield; }
.qty-input input.qty::-webkit-outer-spin-button,
.qty-input input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-primary {
    flex: 1;
    background: #111;
    color: #fff;
    border: none;
    padding: 0 28px;
    height: 50px;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-primary:hover { background: #333; }
.btn-secondary {
    display: block;
    width: 100%;
    background: #fff;
    color: #111;
    border: 1px solid #111;
    padding: 14px;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 30px;
    text-align: center;
}
.btn-secondary:hover { background: #111; color: #fff; }

.meta-list { border-top: 1px solid rgba(0,0,0,0.1); padding-top: 12px; }
.meta-list details { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 16px 0; }
.meta-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.meta-list summary::-webkit-details-marker { display: none; }
.meta-list summary::after { content: '+'; transition: transform 0.3s ease; }
.meta-list details[open] summary::after { content: '−'; }
.meta-list p, .meta-list .desc-content { font-size: 13px; color: #666; line-height: 1.7; margin: 14px 0 0; }

/* Recommendations */
.recs {
    background: #fff;
    padding: 80px 4vw 120px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.recs-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    max-width: 1700px;
    margin: 0 auto 36px;
    gap: 20px;
}
.recs-head h2 { font-family: 'Playfair Display', serif; font-size: 36px; margin: 0; }
.recs-head a {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.recs-grid {
    max-width: 1700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.rec-card { cursor: pointer; }
.rec-card .media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ececea;
}
.rec-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 1s ease;
}
.rec-card .img-hover { opacity: 0; }
.rec-card:hover .img-primary { opacity: 0; }
.rec-card:hover .img-hover { opacity: 1; transform: scale(1.04); }
.rec-card .add-to-cart {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translate(-50%, calc(100% + 24px));
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.6,0.2,0.2,1), opacity 0.4s ease, background 0.3s ease;
    z-index: 6;
}
.rec-card:hover .add-to-cart { transform: translate(-50%, 0); opacity: 1; }
.rec-card .add-to-cart:hover { background: #fff; color: #111; outline: 1px solid #111; }
.rec-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 400;
    margin: 14px 0 4px;
}
.rec-card .p { font-size: 13px; color: #555; }

/* Sticky Quick-Buy Bar */
.quick-bar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 140%);
    background: #fff;
    color: #111;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.16);
    z-index: 70;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77,0,0.175,1), opacity 0.4s ease;
    min-width: 540px;
    max-width: calc(100vw - 32px);
}
.quick-bar.show { transform: translate(-50%, 0); opacity: 1; }
.quick-bar .qb-img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.quick-bar .qb-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.quick-bar .qb-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quick-bar .qb-price { font-size: 12px; color: #666; margin-top: 2px; }
.quick-bar .qb-btn {
    background: #111;
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}
.quick-bar .qb-btn:hover { background: #333; }

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 16px 4vw 60px; }
    .product-detail .info { position: static; padding-left: 0; }
    .product-detail .info h1 { font-size: 28px; }
    .recs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .recs { padding: 60px 4vw 90px; }
    .recs-head h2 { font-size: 24px; }
    .quick-bar { padding: 10px; gap: 12px; bottom: 14px; min-width: 0; width: calc(100vw - 24px); border-radius: 6px; }
    .quick-bar .qb-img { width: 44px; height: 44px; }
    .quick-bar .qb-title { font-size: 13px; }
    .quick-bar .qb-btn { padding: 12px 16px; font-size: 10px; letter-spacing: 0.16em; }
}

/* ==========================================================================
   WordPress Admin Bar Offsets
   ========================================================================== */
.admin-bar .site-header      { top: 70px; }      /* 32 admin + 38 top-bar */
.admin-bar .site-header.scrolled { top: 32px; }
.admin-bar .header-gradient  { top: 32px; }
.admin-bar .search-panel     { top: 70px; }
.admin-bar .cart-drawer,
.admin-bar .drawer           { top: 32px; height: calc(100vh - 32px); }
.admin-bar .product-page     { padding-top: 142px; }
.admin-bar .lightbox         { top: 32px; height: calc(100vh - 32px); }

@media screen and (max-width: 782px) {
    .admin-bar .site-header      { top: 84px; }   /* 46 admin + 38 top-bar */
    .admin-bar .site-header.scrolled { top: 46px; }
    .admin-bar .header-gradient  { top: 46px; }
    .admin-bar .search-panel     { top: 84px; }
    .admin-bar .cart-drawer,
    .admin-bar .drawer           { top: 46px; height: calc(100vh - 46px); }
    .admin-bar .product-page     { padding-top: 156px; }
}

/* ==========================================================================
   Skeleton Loading (gallery images)
   ========================================================================== */
@keyframes wawa-skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.gallery-item {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #ececea;
    overflow: hidden;
}
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ececea 0%, #f7f5f2 50%, #ececea 100%);
    background-size: 800px 100%;
    animation: wawa-skeleton-shimmer 1.4s linear infinite;
    z-index: 1;
}
.gallery-item img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: zoom-in;
}
.gallery-item.loaded img { opacity: 1; }
.gallery-item.loaded::before { display: none; }
/* Override grid img rule when wrapped */
.product-detail .gallery .gallery-item { aspect-ratio: 3 / 4; }
.product-detail .gallery .gallery-item img { aspect-ratio: auto; }

/* Recommendation card skeleton */
.rec-card .media.skeleton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ececea 0%, #f7f5f2 50%, #ececea 100%);
    background-size: 800px 100%;
    animation: wawa-skeleton-shimmer 1.4s linear infinite;
    z-index: 1;
}
.rec-card .media img { opacity: 0; transition: opacity 0.6s ease, transform 1s ease; }
.rec-card .media.loaded img.img-primary { opacity: 1; }
.rec-card .media.loaded::before { display: none; }

/* ==========================================================================
   Mini-cart (custom template, no WooCommerce class dependencies)
   Structure (from woocommerce/cart/mini-cart.php override):
     .wawa-mini-list
       └ .wawa-mini-item            (grid: thumb | body | remove)
           ├ .wawa-mini-item__thumb (img)
           ├ .wawa-mini-item__body
           │   ├ .wawa-mini-item__title
           │   ├ .wawa-mini-item__meta
           │   └ .wawa-mini-item__qty
           └ .wawa-mini-item__remove
     .wawa-mini-total
     .wawa-mini-actions
     .wawa-mini-empty
   ========================================================================== */
.cart-drawer .widget_shopping_cart_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.wawa-mini-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 8px 28px;
}
.wawa-mini-empty {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 60px 28px;
    margin: 0;
}
.wawa-mini-item {
    display: grid;
    grid-template-columns: 70px 1fr 24px;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: flex-start;
    list-style: none;
}
.wawa-mini-item:last-child { border-bottom: none; }
.wawa-mini-item__thumb {
    display: block;
    width: 70px;
    height: 90px;
    overflow: hidden;
    background: #ececea;
}
.wawa-mini-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    float: none;
}
.wawa-mini-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wawa-mini-item__title {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    color: #111;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.wawa-mini-item__title:hover { text-decoration: underline; }
.wawa-mini-item__meta {
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #888;
}
.wawa-mini-item__qty {
    font-size: 12px;
    color: #777;
    letter-spacing: 0.05em;
}
.wawa-mini-item__qty .wawa-mini-item__price { color: #111; font-weight: 500; }
.wawa-mini-item__remove {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    color: #999 !important;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    align-self: start;
    justify-self: end;
}
.wawa-mini-item__remove:hover {
    color: #111 !important;
    background: rgba(0,0,0,0.06);
}
.wawa-mini-total {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 18px 28px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.05em;
    margin: 0;
}
.wawa-mini-total span { color: #777; text-transform: uppercase; font-size: 11px; letter-spacing: 0.22em; }
.wawa-mini-total strong { font-weight: 500; }
.wawa-mini-actions {
    padding: 6px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wawa-mini-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    transition: background 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}
.wawa-mini-btn:hover { background: #333; color: #fff; border-color: #333; }
.wawa-mini-btn--primary { background: #111; color: #fff; }
.wawa-mini-btn--primary:hover { background: #fff; color: #111; border-color: #111; }

/* Loading spinner for "Add to Cart" button */
@keyframes wawa-spin { to { transform: rotate(360deg); } }
.btn-primary.is-loading,
.btn-primary.loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}
.btn-primary.is-loading::after,
.btn-primary.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wawa-spin 0.7s linear infinite;
}
.btn-primary.is-added::after,
.btn-primary.added::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
    animation: none;
}
.btn-primary.is-added,
.btn-primary.added {
    color: transparent !important;
    pointer-events: none;
}

/* ==========================================================================
   Generic Page (cart, checkout, etc.)
   ========================================================================== */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 4vw 100px;
}
.admin-bar .page-wrap { padding-top: 172px; }
.page-wrap > h1.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin: 0 0 36px;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Cart & Checkout shared styling */
.woocommerce-cart .page-wrap,
.woocommerce-checkout .page-wrap {
    max-width: 1280px;
}
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    font-size: 13px;
}
.woocommerce-cart-form .shop_table thead th,
.woocommerce-checkout .shop_table thead th {
    text-align: left;
    padding: 14px 12px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #777;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    font-weight: 400;
}
.woocommerce-cart-form .shop_table tbody td,
.woocommerce-checkout .shop_table tbody td {
    padding: 18px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: middle;
}
.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}
.woocommerce-cart-form .product-name a {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    color: #111;
    text-decoration: none;
}
.woocommerce-cart-form .product-name a:hover { text-decoration: underline; }
.woocommerce-cart-form td.product-remove a.remove,
.woocommerce-cart-form .product-remove a {
    width: 24px; height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    color: #999 !important;
    font-size: 14px;
    text-decoration: none;
    background: transparent;
    transition: color 0.2s, background 0.2s;
    display: inline-block;
}
.woocommerce-cart-form td.product-remove a.remove:hover {
    background: rgba(0,0,0,0.06); color: #111 !important;
}
.woocommerce-cart-form .quantity input[type="number"] {
    width: 64px; height: 40px; padding: 0 8px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.woocommerce-cart-form .quantity input::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.woocommerce-cart-form .actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.woocommerce-cart-form .coupon {
    display: flex;
    gap: 8px;
    align-items: center;
}
.woocommerce-cart-form .coupon input[type="text"] {
    height: 44px;
    border: 1px solid #ddd;
    padding: 0 14px;
    font-size: 13px;
    background: #fff;
    min-width: 200px;
}
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
    background: #fafaf6;
    padding: 28px;
    margin-top: 24px;
}
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin: 0 0 18px;
    letter-spacing: 0.02em;
}
.woocommerce-cart .cart_totals .shop_table {
    border: none;
    margin: 0;
}
.woocommerce-cart .cart_totals .shop_table th {
    width: 40%;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
    padding: 10px 0;
    font-weight: 400;
    border: none;
}
.woocommerce-cart .cart_totals .shop_table td {
    padding: 10px 0;
    border: none;
    font-size: 14px;
}
.woocommerce-cart .cart_totals .order-total td { font-weight: 600; font-size: 16px; }
.woocommerce-cart .wc-proceed-to-checkout { margin-top: 18px; padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order,
.woocommerce-cart-form button[name="apply_coupon"],
.woocommerce-cart-form button[name="update_cart"] {
    display: inline-block;
    width: 100%;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    padding: 16px 28px;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}
.woocommerce-cart-form button[name="apply_coupon"],
.woocommerce-cart-form button[name="update_cart"] {
    width: auto;
    height: 44px;
    padding: 0 22px;
    background: #fff;
    color: #111;
    font-size: 11px;
    letter-spacing: 0.2em;
}
.woocommerce-cart-form button[name="apply_coupon"]:hover,
.woocommerce-cart-form button[name="update_cart"]:hover {
    background: #111; color: #fff;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover { background: #fff; color: #111; }

/* Cart layout — table + totals side-by-side on desktop */
@media (min-width: 901px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 48px;
        align-items: start;
    }
    .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
    .woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
    .woocommerce-cart .cart-collaterals { grid-column: 2; margin-top: 0; }
    .woocommerce-cart .cart-collaterals .cart_totals { width: 100%; float: none; margin-top: 0; }
}

/* Checkout layout */
.woocommerce-checkout .woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}
.woocommerce-checkout #customer_details { grid-column: 1; }
.woocommerce-checkout .woocommerce-checkout-review-order { grid-column: 2; position: sticky; top: 130px; }
.admin-bar .woocommerce-checkout .woocommerce-checkout-review-order { top: 162px; }

.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row .select2-selection--single,
.woocommerce-checkout .form-row select {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    border-radius: 0;
    box-sizing: border-box;
}
.woocommerce-checkout .form-row textarea { height: 100px; padding: 12px 14px; }
.woocommerce-checkout .form-row .select2-selection__rendered { line-height: 42px !important; padding-left: 0 !important; }
.woocommerce-checkout .form-row .select2-selection__arrow { height: 42px !important; }

.woocommerce-checkout #payment {
    background: transparent;
    margin-top: 20px;
}
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
}
.woocommerce-checkout #payment ul.payment_methods li {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.woocommerce-checkout #payment ul.payment_methods li:last-child { border-bottom: none; }
.woocommerce-checkout #payment .payment_box {
    background: #fafaf6;
    padding: 14px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

@media (max-width: 900px) {
    .woocommerce-checkout .woocommerce-checkout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .woocommerce-checkout .woocommerce-checkout-review-order { position: static; }
    .woocommerce-cart-form .shop_table thead { display: none; }
    .woocommerce-cart-form .shop_table tbody td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
    }
    .woocommerce-cart-form .shop_table tbody td.product-thumbnail { text-align: left; }
    .woocommerce-cart-form .shop_table tbody tr {
        display: block;
        padding: 18px 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .woocommerce-cart-form .shop_table tbody td::before {
        content: attr(data-title) ': ';
        font-size: 11px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #777;
        margin-right: 10px;
    }
    .woocommerce-cart-form .shop_table tbody td.product-thumbnail::before { display: none; }
}

/* WooCommerce notice messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper > * {
    list-style: none;
    background: #fafaf6;
    border-left: 3px solid #111;
    padding: 14px 20px;
    margin: 0 0 24px;
    font-size: 13px;
    color: #444;
}
.woocommerce-error { border-left-color: #a23b3b; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 1px;
    text-decoration: none;
}

/* ==========================================================================
   Shop / Category / Tag Archive   (woocommerce.php)
   ========================================================================== */
.shop-page,
.search-page,
.error-page {
    max-width: 1700px;
    margin: 0 auto;
    padding: 140px 4vw 100px;
}
.admin-bar .shop-page,
.admin-bar .search-page,
.admin-bar .error-page { padding-top: 172px; }

.shop-hero,
.search-hero {
    text-align: center;
    margin-bottom: 48px;
    padding: 20px 0 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.shop-hero__crumbs {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.shop-hero__crumbs a:hover { color: #111; }
.shop-hero__crumbs span { color: #ccc; }
.shop-hero__crumbs span:last-child { color: #111; }

.shop-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
}
.shop-hero__desc {
    max-width: 620px;
    margin: 0 auto 18px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}
.shop-hero__count {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #999;
    margin: 0;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 28px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: #777;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-toolbar form.woocommerce-ordering select {
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 32px 0 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='black' stroke-width='1.3'><polyline points='1 2 6 7 11 2'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
    border-radius: 0;
}
.shop-toolbar .woocommerce-result-count { margin: 0; color: #888; }

.shop-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 24px;
}
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } }

.shop-card {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
}
.shop-card__link { display: block; }
.shop-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ececea;
}
.shop-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease, transform 1s ease;
}
.shop-card__img--hover { opacity: 0; }
.shop-card:hover .shop-card__img--primary { opacity: 0; }
.shop-card:hover .shop-card__img--hover   { opacity: 1; transform: scale(1.04); }
.shop-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #fff;
    color: #111;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 10px;
    z-index: 5;
}
.shop-card__tag--dark { background: #111; color: #fff; }

.shop-card__body {
    padding: 14px 2px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.shop-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
}
.shop-card__title a { color: inherit; text-decoration: none; }
.shop-card__title a:hover { text-decoration: underline; }
.shop-card__price {
    font-size: 13px;
    color: #555;
    letter-spacing: 0.05em;
    margin: 0;
}

.shop-card__cta {
    position: absolute;
    left: 50%;
    bottom: 96px;
    transform: translate(-50%, calc(100% + 24px));
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.6,0.2,0.2,1), opacity 0.4s ease, background 0.3s ease;
    z-index: 6;
}
.shop-card:hover .shop-card__cta { transform: translate(-50%, 0); opacity: 1; }
.shop-card__cta:hover { background: #fff; color: #111; outline: 1px solid #111; }
.shop-card__cta.added::after { content: ' \2713'; }

/* Pagination */
.shop-pagination {
    margin: 60px 0 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.shop-pagination .page-numbers:hover { border-color: #111; color: #111; }
.shop-pagination .page-numbers.current {
    background: #111; color: #fff; border-color: #111;
}
.shop-pagination .page-numbers.dots { border-color: transparent; }

.shop-empty {
    text-align: center;
    padding: 80px 20px 40px;
}
.shop-empty p { color: #777; margin: 0 0 24px; font-size: 14px; }
.shop-empty__btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #111;
    transition: background 0.3s ease, color 0.3s ease;
}
.shop-empty__btn:hover { background: #fff; color: #111; }

/* ==========================================================================
   Search Page
   ========================================================================== */
.search-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin: 0 0 18px;
    line-height: 1.2;
}
.search-hero__title em { font-style: italic; color: #555; }
.search-hero__form,
.error-hero__form {
    max-width: 540px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #111;
    padding: 4px 4px 4px 16px;
    background: #fff;
}
.search-hero__form svg,
.error-hero__form svg { color: #111; flex-shrink: 0; }
.search-hero__form input,
.error-hero__form input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    height: 44px;
    font-size: 14px;
    color: #111;
}
.search-hero__form button,
.error-hero__form button {
    background: #111;
    color: #fff;
    border: none;
    padding: 0 22px;
    height: 44px;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
}
.search-hero__form button:hover,
.error-hero__form button:hover { background: #333; }

.search-block { margin-top: 64px; }
.search-block:first-child { margin-top: 0; }
.search-block__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 12px;
}
.search-block__head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin: 0;
}
.search-block__count {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
}

.search-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}
@media (max-width: 760px) { .search-posts { grid-template-columns: 1fr; } }

.search-post {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    align-items: start;
}
.search-post__thumb {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ececea;
}
.search-post__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-post__type {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 6px;
}
.search-post__title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 6px;
    line-height: 1.3;
}
.search-post__title a { color: #111; text-decoration: none; }
.search-post__title a:hover { text-decoration: underline; }
.search-post__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
}
.search-empty p { color: #777; margin: 0 0 24px; font-size: 14px; }

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page { text-align: center; }
.error-hero {
    padding: 60px 20px 80px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 64px;
}
.error-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 18px;
}
.error-hero__code {
    font-family: 'Playfair Display', serif;
    font-size: 180px;
    line-height: 1;
    margin: 0 0 18px;
    color: #111;
    letter-spacing: -0.04em;
    font-style: italic;
}
.error-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 0 0 14px;
}
.error-hero__sub {
    max-width: 520px;
    margin: 0 auto 28px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}
.error-hero__actions {
    display: inline-flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.error-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    transition: background 0.3s ease, color 0.3s ease;
}
.error-btn:hover { background: #111; color: #fff; }
.error-btn--primary { background: #111; color: #fff; }
.error-btn--primary:hover { background: #fff; color: #111; }

.error-suggest__title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin: 0 0 28px;
    text-align: center;
}

@media (max-width: 760px) {
    .shop-hero__title, .search-hero__title { font-size: 30px; }
    .error-hero__code { font-size: 120px; }
    .error-hero__title { font-size: 22px; }
}
