/* ============================================================
   Adaa Heritage — Jewelry storefront theme
   Loads AFTER store.css. All rules scoped to .jewelry-template
   so the modern/classic templates are unaffected.
   ============================================================ */

.jewelry-template {
    /* Palette */
    --j-gold: #C8A24B;
    --j-gold-dark: #A8842F;
    --j-ink: #1d1a17;
    --j-charcoal: #2b2620;
    --j-cream: #faf7f2;
    --j-cream-2: #f1eadf;
    --j-text: #34302a;
    --j-muted: #8a8178;
    --j-line: #e8e0d2;

    /* Remap shared store.css tokens so reused components inherit the theme */
    --s-primary: #2b2620;
    --s-primary-dark: #1d1a17;
    --s-accent: #C8A24B;
    --s-bg: #faf7f2;
    --s-text: #34302a;
    --s-muted: #8a8178;
    --s-border: #e8e0d2;
    --s-danger: #b3261e;

    background: var(--j-cream);
    color: var(--j-text);
    font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    letter-spacing: .01em;
}

.jewelry-template .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.jewelry-template h1, .jewelry-template h2, .jewelry-template h3, .jewelry-template h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--j-ink);
}

/* Hide elements the jewelry layout doesn't use */
.jewelry-template .store-top-banner { display: none; }

/* ---------- Announcement bar ---------- */
.jewelry-template .jewel-announce {
    background: var(--j-ink);
    color: var(--j-cream);
    text-align: center;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 9px 16px;
}

/* ---------- Top bar ---------- */
.jewelry-template .jewel-topbar {
    background: var(--j-charcoal);
    border: none;
    padding: 7px 0;
    font-size: 12px;
}
.jewelry-template .jewel-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.jewelry-template .jewel-topbar-left span { color: #cfc6b6; margin-right: 18px; letter-spacing: .04em; }
.jewelry-template .jewel-topbar-left i { color: var(--j-gold); margin-right: 5px; }
.jewelry-template .jewel-topbar-right { display: flex; align-items: center; gap: 16px; }
.jewelry-template .jewel-topbar-right a { color: #cfc6b6; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.jewelry-template .jewel-topbar-right a:hover { color: var(--j-gold); }
.jewelry-template .store-topbar-social { display: flex; gap: 12px; }
.jewelry-template .store-topbar-social a { color: #cfc6b6; font-size: 14px; }
.jewelry-template .store-topbar-social a:hover { color: var(--j-gold); }

/* ---------- Header ---------- */
.jewelry-template .jewel-header {
    background: var(--j-cream);
    border-bottom: 1px solid var(--j-line);
    padding: 22px 0;
    position: relative;
    z-index: 60; /* above the nav so the search autocomplete overlays it */
}
.jewelry-template .jewel-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.jewelry-template .jewel-logo { justify-self: center; grid-column: 2; text-align: center; display: inline-flex; align-items: center; }
.jewelry-template .jewel-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--j-ink);
    text-transform: uppercase;
}
.jewelry-template .jewel-search { grid-column: 1; grid-row: 1; max-width: 320px; position: relative; }
.jewelry-template .jewel-search form { display: flex; align-items: center; border: 1px solid var(--j-line); border-radius: 999px; background: #fff; padding: 0 6px 0 16px; }
.jewelry-template .jewel-search input { border: none; outline: none; background: transparent; flex: 1; padding: 10px 0; font-size: 13px; font-family: inherit; color: var(--j-text); }
.jewelry-template .jewel-search button { background: none; border: none; color: var(--j-muted); padding: 8px; cursor: pointer; }
.jewelry-template .jewel-search button:hover { color: var(--j-gold); }
.jewelry-template .store-search-results { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border: 1px solid var(--j-line); border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.12); z-index: 200; overflow: hidden; }

.jewelry-template .jewel-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; }
.jewelry-template .jewel-action { position: relative; color: var(--j-ink); font-size: 19px; text-decoration: none; }
.jewelry-template .jewel-action:hover { color: var(--j-gold); }
.jewelry-template .jewel-cart-icon .cart-badge {
    position: absolute; top: -8px; right: -10px;
    background: var(--j-gold); color: #fff;
    font-size: 10px; font-weight: 600; font-family: 'Jost', sans-serif;
    min-width: 17px; height: 17px; line-height: 17px; text-align: center;
    border-radius: 999px; padding: 0 4px;
}
.jewelry-template .jewel-nav-toggle { display: none; background: none; border: none; cursor: pointer; grid-column: 1; flex-direction: column; gap: 4px; padding: 6px; }
.jewelry-template .jewel-nav-toggle span { width: 22px; height: 2px; background: var(--j-ink); display: block; }

/* ---------- Navigation ---------- */
.jewelry-template .jewel-nav {
    background: var(--j-cream);
    border-bottom: 1px solid var(--j-line);
    box-shadow: none;
    position: relative;
    z-index: 50; /* below the header/search dropdown, above page content */
}
.jewelry-template .jewel-nav .container { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 4px; background: transparent; }
/* Normalize every nav item (both <a> links and category <div> wrappers) so their
   text sits on one line. The base store.css gives .store-nav-item padding:12px 10px
   + align-items:center, which dropped the category link below the plain <a> items. */
.jewelry-template .jewel-nav .store-nav-item { position: relative; display: flex; align-items: stretch; padding: 0; }
.jewelry-template .jewel-nav .store-nav-item > a { flex: 1; }
.jewelry-template .jewel-nav .store-nav-item > a,
.jewelry-template .jewel-nav a.store-nav-item {
    display: block; padding: 15px 20px;
    color: var(--j-charcoal); text-decoration: none;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
}
.jewelry-template .jewel-nav .store-nav-item > a:hover,
.jewelry-template .jewel-nav a.store-nav-item:hover { color: var(--j-gold); }
.jewelry-template .jewel-nav .store-nav-item > a::after {
    content: ''; display: block; height: 1px; background: var(--j-gold);
    width: 0; margin: 4px auto 0; transition: width .25s ease;
}
.jewelry-template .jewel-nav .store-nav-item:hover > a::after { width: 18px; }

.jewelry-template .jewel-nav .store-dropdown-menu,
.jewelry-template .jewel-nav .store-mega-menu {
    position: absolute; top: 100%; left: 0; background: #fff;
    border: 1px solid var(--j-line); box-shadow: 0 16px 40px rgba(0,0,0,.10);
    min-width: 220px; padding: 14px 0; display: none; z-index: 70;
}
.jewelry-template .jewel-nav .store-mega-menu { left: 50%; transform: translateX(-50%); padding: 22px 28px; }
.jewelry-template .jewel-nav .store-nav-item:hover .store-dropdown-menu,
.jewelry-template .jewel-nav .store-nav-item:hover .store-mega-menu { display: block; }
.jewelry-template .jewel-nav .store-dropdown-menu a { display: block; padding: 8px 22px; color: var(--j-text); text-decoration: none; font-size: 13px; }
.jewelry-template .jewel-nav .store-dropdown-menu a:hover { color: var(--j-gold); background: var(--j-cream); }
.jewelry-template .jewel-nav .mega-menu-row { display: flex; gap: 36px; }
.jewelry-template .jewel-nav .mega-menu-group h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.jewelry-template .jewel-nav .mega-menu-group h4 a { color: var(--j-ink); text-decoration: none; }
.jewelry-template .jewel-nav .mega-menu-group a { display: block; color: var(--j-muted); text-decoration: none; font-size: 13px; padding: 4px 0; }
.jewelry-template .jewel-nav .mega-menu-group a:hover { color: var(--j-gold); }

/* ---------- Marquee ---------- */
.jewelry-template .jewel-marquee { background: var(--j-cream-2); color: var(--j-charcoal); letter-spacing: .12em; font-size: 12px; text-transform: uppercase; padding: 8px 0; }

/* ---------- Hero ---------- */
.jewelry-template .jewel-hero-slider { margin: 0; }
.jewelry-template .jewel-hero-slide img,
.jewelry-template .jewel-hero-slide video { width: 100%; height: 560px; object-fit: cover; display: block; }

.jewelry-template .jewel-hero-default {
    background:
        linear-gradient(120deg, rgba(20,17,14,.62), rgba(20,17,14,.25)),
        radial-gradient(circle at 70% 30%, #4a3f33, #221d18 70%);
    color: var(--j-cream);
    text-align: center;
    padding: 120px 24px;
}
.jewelry-template .jewel-hero-inner { max-width: 720px; margin: 0 auto; }
.jewelry-template .jewel-hero-eyebrow { display: inline-block; color: var(--j-gold); letter-spacing: .28em; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; }
.jewelry-template .jewel-hero-title { font-size: 56px; line-height: 1.05; color: #fff; margin: 0 0 18px; font-weight: 500; }
.jewelry-template .jewel-hero-sub { font-size: 17px; color: #e7ded0; max-width: 560px; margin: 0 auto 30px; line-height: 1.7; font-weight: 300; }

/* ---------- Buttons ---------- */
.jewelry-template .jewel-btn {
    display: inline-block; cursor: pointer;
    font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
    padding: 14px 34px; border: 1px solid transparent; transition: all .2s ease;
}
.jewelry-template .jewel-btn-light { background: var(--j-gold); color: #fff; border-color: var(--j-gold); }
.jewelry-template .jewel-btn-light:hover { background: #fff; color: var(--j-ink); }
.jewelry-template .jewel-btn-dark { background: var(--j-ink); color: var(--j-cream); border-color: var(--j-ink); }
.jewelry-template .jewel-btn-dark:hover { background: var(--j-gold); border-color: var(--j-gold); color: #fff; }
.jewelry-template .jewel-btn-outline { background: transparent; color: var(--j-ink); border-color: var(--j-ink); }
.jewelry-template .jewel-btn-outline:hover { background: var(--j-ink); color: var(--j-cream); }

/* ---------- Value strip ---------- */
.jewelry-template .jewel-values { border-bottom: 1px solid var(--j-line); background: #fff; }
.jewelry-template .jewel-values .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 28px; }
.jewelry-template .jewel-value { display: flex; align-items: center; gap: 14px; }
.jewelry-template .jewel-value i { font-size: 22px; color: var(--j-gold); }
.jewelry-template .jewel-value strong { display: block; font-size: 13px; letter-spacing: .04em; color: var(--j-ink); font-weight: 600; }
.jewelry-template .jewel-value span { font-size: 12px; color: var(--j-muted); }

/* ---------- Sections ---------- */
.jewelry-template .jewel-section { padding: 56px 0; }
.jewelry-template .jewel-section-head { text-align: center; margin-bottom: 34px; }
.jewelry-template .jewel-section-head h2 { font-size: 36px; font-weight: 500; margin: 0; }
.jewelry-template .jewel-rule { display: inline-block; width: 64px; height: 1px; background: var(--j-gold); margin-top: 14px; position: relative; }
.jewelry-template .jewel-rule::before, .jewelry-template .jewel-rule::after { content: ''; position: absolute; top: -2px; width: 5px; height: 5px; background: var(--j-gold); border-radius: 50%; }
.jewelry-template .jewel-rule::before { left: -9px; } .jewelry-template .jewel-rule::after { right: -9px; }
.jewelry-template .jewel-rule-center { display: block; margin: 12px auto 26px; }

/* ---------- Category grid ---------- */
.jewelry-template .jewel-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.jewelry-template .jewel-cat-card { text-decoration: none; display: block; background: #fff; border: 1px solid var(--j-line); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.jewelry-template .jewel-cat-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.10); transform: translateY(-3px); }
.jewelry-template .jewel-cat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.jewelry-template .jewel-cat-ph { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #efe7d8, #e3d8c4); }
.jewelry-template .jewel-cat-ph span { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--j-charcoal); }
.jewelry-template .jewel-cat-name { text-align: center; padding: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--j-ink); }

/* ---------- Promo / banner rows ---------- */
.jewelry-template .jewel-promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 0; }
.jewelry-template .jewel-promo-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jewelry-template .jewel-banner-grid { display: grid; gap: 18px; margin: 40px 0; }
.jewelry-template .jewel-banner-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.jewelry-template .jewel-banner-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.jewelry-template .jewel-banner-grid img { width: 100%; display: block; }
.jewelry-template .jewel-banner-full { margin: 40px 0; }
.jewelry-template .jewel-banner-full img { width: 100%; display: block; }

/* ---------- Product grid + cards (covers JS-rendered .product-card too) ---------- */
.jewelry-template .product-grid,
.jewelry-template .jewel-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.jewelry-template .product-card,
.jewelry-template .jewel-card {
    background: #fff; border: 1px solid var(--j-line); border-radius: 0;
    overflow: hidden; cursor: pointer; transition: box-shadow .25s ease, transform .25s ease;
    display: flex; flex-direction: column; box-shadow: none; padding: 0;
}
.jewelry-template .product-card:hover,
.jewelry-template .jewel-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10); transform: translateY(-4px); }
.jewelry-template .product-card-image,
.jewelry-template .jewel-card-img { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--j-cream); }
.jewelry-template .product-card-image img,
.jewelry-template .jewel-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.jewelry-template .product-card:hover .product-card-image img,
.jewelry-template .jewel-card:hover .jewel-card-img img { transform: scale(1.06); }

.jewelry-template .jewel-card-hover { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; transform: translateY(100%); transition: transform .28s ease; }
.jewelry-template .jewel-card:hover .jewel-card-hover { transform: translateY(0); }
.jewelry-template .jewel-card-hover button { width: 100%; background: var(--j-ink); color: var(--j-cream); border: none; padding: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; font-family: 'Jost', sans-serif; }
.jewelry-template .jewel-card-hover button:hover { background: var(--j-gold); }
.jewelry-template .jewel-card-hover button:disabled { background: #bdb6ab; cursor: not-allowed; }

/* JS-rendered card actions (catalog / related) */
.jewelry-template .product-card-actions { padding: 0 14px; margin-top: -1px; }
.jewelry-template .btn-add-cart { width: 100%; background: var(--j-ink); color: var(--j-cream); border: none; padding: 11px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; font-family: 'Jost', sans-serif; margin: 10px 0 0; }
.jewelry-template .btn-add-cart:hover { background: var(--j-gold); }
.jewelry-template .btn-add-cart:disabled { background: #bdb6ab; }

.jewelry-template .product-card-body,
.jewelry-template .jewel-card-body { padding: 16px 16px 20px; text-align: center; }
.jewelry-template .product-card-name,
.jewelry-template .jewel-card-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--j-ink); margin-bottom: 6px; line-height: 1.25; }
.jewelry-template .product-card-meta { font-size: 11px; color: var(--j-muted); }
.jewelry-template .product-card-price,
.jewelry-template .jewel-card-price { font-size: 15px; color: var(--j-gold-dark); font-weight: 500; letter-spacing: .03em; }
.jewelry-template .product-card-price.login-to-view,
.jewelry-template .jewel-card-price.login-to-view { color: var(--j-muted); font-size: 12px; font-style: italic; }
.jewelry-template .price-old { color: var(--j-muted); text-decoration: line-through; margin-right: 6px; font-size: 13px; }
.jewelry-template .price-sale { color: #b3261e; }

.jewelry-template .jewel-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; z-index: 3; }
.jewelry-template .jewel-badge-sale, .jewelry-template .product-badge.badge-discount { background: var(--j-gold); color: #fff; }
.jewelry-template .jewel-badge-out, .jewelry-template .product-badge.badge-outofstock { background: rgba(29,26,23,.82); color: #fff; }
.jewelry-template .product-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; }

/* ---------- Story strip ---------- */
.jewelry-template .jewel-story { background: var(--j-charcoal); color: var(--j-cream); text-align: center; padding: 90px 24px; margin-top: 20px; }
.jewelry-template .jewel-story h2 { color: #fff; font-size: 40px; margin: 8px 0 18px; }
.jewelry-template .jewel-story p { max-width: 640px; margin: 0 auto 28px; color: #ddd3c4; line-height: 1.8; font-weight: 300; }
.jewelry-template .jewel-story .jewel-btn-outline { color: var(--j-cream); border-color: var(--j-gold); }
.jewelry-template .jewel-story .jewel-btn-outline:hover { background: var(--j-gold); border-color: var(--j-gold); color: #fff; }

/* ---------- Empty welcome ---------- */
.jewelry-template .jewel-empty-welcome { text-align: center; padding: 80px 24px; color: var(--j-muted); }
.jewelry-template .jewel-empty-welcome i { font-size: 42px; color: var(--j-gold); margin-bottom: 16px; }
.jewelry-template .jewel-empty-welcome h2 { font-size: 30px; margin-bottom: 10px; }
.jewelry-template .jewel-empty-welcome p { max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ---------- Breadcrumb ---------- */
.jewelry-template .jewel-breadcrumb { padding: 22px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--j-muted); }
.jewelry-template .jewel-breadcrumb a { color: var(--j-muted); text-decoration: none; }
.jewelry-template .jewel-breadcrumb a:hover { color: var(--j-gold); }

/* ---------- Catalog ---------- */
.jewelry-template .jewel-catalog-head { text-align: left; margin: 18px 0 26px; }
.jewelry-template .jewel-catalog-head .jewel-rule { margin-top: 10px; }
.jewelry-template .catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding-bottom: 60px; }
.jewelry-template .catalog-sidebar .sidebar-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; color: var(--j-ink); border-bottom: 1px solid var(--j-line); padding: 0 18px 10px; margin-bottom: 12px; }
.jewelry-template .sidebar-links a { display: block; padding: 7px 18px; color: var(--j-text); text-decoration: none; font-size: 13px; }
.jewelry-template .catalog-sidebar .jewel-select { margin-left: 18px; }
.jewelry-template .sidebar-links a:hover, .jewelry-template .sidebar-links a.active { color: var(--j-gold); }
.jewelry-template .jewel-select { padding: 9px 12px; border: 1px solid var(--j-line); background: #fff; font-family: 'Jost', sans-serif; font-size: 12px; color: var(--j-text); }
.jewelry-template .jewel-toolbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--j-line); padding-bottom: 14px; margin-bottom: 22px; }
.jewelry-template .jewel-toolbar label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--j-muted); }
.jewelry-template .catalog-results-info { font-size: 13px; color: var(--j-muted); }
.jewelry-template .jewel-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.jewelry-template .jewel-pagination a, .jewelry-template .jewel-pagination span { border: 1px solid var(--j-line); padding: 8px 13px; color: var(--j-text); text-decoration: none; font-size: 13px; }
.jewelry-template .jewel-pagination a:hover, .jewelry-template .jewel-pagination .active { background: var(--j-ink); color: var(--j-cream); border-color: var(--j-ink); }

/* ---------- Product detail ---------- */
.jewelry-template .jewel-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 30px 0 50px; }
.jewelry-template .product-detail-image { border: 1px solid var(--j-line); background: #fff; aspect-ratio: 1/1; overflow: hidden; }
.jewelry-template .product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.jewelry-template .product-thumbnails { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.jewelry-template .product-thumbnails img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--j-line); cursor: pointer; }
.jewelry-template .product-detail-name { font-size: 38px; line-height: 1.15; margin: 6px 0 12px; }
.jewelry-template .pd-meta-table { margin: 18px 0; border-top: 1px solid var(--j-line); }
.jewelry-template .pd-meta-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--j-line); font-size: 13px; }
.jewelry-template .pd-meta-label { color: var(--j-muted); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.jewelry-template .pd-meta-value { color: var(--j-text); }
.jewelry-template .product-detail-price { font-size: 28px; color: var(--j-gold-dark); font-weight: 500; margin: 16px 0; }
.jewelry-template .qty-selector { display: inline-flex; border: 1px solid var(--j-line); }
.jewelry-template .qty-selector button { width: 38px; height: 44px; background: #fff; border: none; cursor: pointer; font-size: 18px; color: var(--j-ink); }
.jewelry-template .qty-selector input { width: 52px; text-align: center; border: none; border-left: 1px solid var(--j-line); border-right: 1px solid var(--j-line); font-family: 'Jost', sans-serif; }
.jewelry-template .btn-add-cart-lg { background: var(--j-ink); color: var(--j-cream); border: none; padding: 14px 32px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; font-family: 'Jost', sans-serif; }
.jewelry-template .btn-add-cart-lg:hover { background: var(--j-gold); }
.jewelry-template .product-tabs { margin-top: 24px; }
.jewelry-template .product-tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--j-line); }
.jewelry-template .product-tab-btn { background: none; border: none; padding: 12px 22px; font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--j-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.jewelry-template .product-tab-btn.active { color: var(--j-ink); border-bottom-color: var(--j-gold); }
.jewelry-template .product-tab-content { padding: 22px 0; color: var(--j-text); line-height: 1.8; }

/* Section tabs (home) */
.jewelry-template .jewel-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.jewelry-template .section-tab-btn { background: none; border: 1px solid var(--j-line); padding: 9px 20px; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--j-muted); cursor: pointer; }
.jewelry-template .section-tab-btn.active { background: var(--j-ink); color: var(--j-cream); border-color: var(--j-ink); }
.jewelry-template .section-tab-content { display: none; } .jewelry-template .section-tab-content.active { display: block; }

/* ---------- Cart ---------- */
.jewelry-template .jewel-cart { padding-bottom: 60px; }
.jewelry-template .jewel-cart-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.jewelry-template .jewel-cart-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--j-muted); padding: 12px; border-bottom: 1px solid var(--j-line); font-weight: 500; }
.jewelry-template .jewel-cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--j-line); vertical-align: middle; }
.jewelry-template .cart-item-info { display: flex; gap: 14px; align-items: center; }
.jewelry-template .cart-item-img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--j-line); }
.jewelry-template .cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; color: var(--j-ink); }
.jewelry-template .cart-item-brand { font-size: 12px; color: var(--j-muted); }
.jewelry-template .cart-item-remove { background: none; border: none; color: var(--j-muted); font-size: 20px; cursor: pointer; }
.jewelry-template .cart-item-remove:hover { color: #b3261e; }
.jewelry-template .jewel-cart-summary { max-width: 380px; margin-left: auto; margin-top: 22px; border: 1px solid var(--j-line); padding: 24px; background: #fff; }
.jewelry-template .cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--j-text); }
.jewelry-template .cart-summary-row.total { border-top: 1px solid var(--j-line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 600; color: var(--j-ink); }

/* ---------- Checkout ---------- */
.jewelry-template .jewel-checkout { padding-bottom: 60px; }
.jewelry-template .jewel-checkout-signin { text-align: center; color: var(--j-muted); font-size: 13px; margin-bottom: 22px; }
.jewelry-template .jewel-checkout-signin a { color: var(--j-gold-dark); }
.jewelry-template .checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
.jewelry-template .checkout-section { background: #fff; border: 1px solid var(--j-line); padding: 24px; margin-bottom: 22px; }
.jewelry-template .checkout-section h3 { font-size: 20px; margin-bottom: 16px; }
.jewelry-template .form-group { margin-bottom: 14px; }
.jewelry-template .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jewelry-template .form-group label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--j-muted); margin-bottom: 6px; }
.jewelry-template .form-group input, .jewelry-template .form-group textarea, .jewelry-template .form-group select {
    width: 100%; padding: 11px 13px; border: 1px solid var(--j-line); background: #fff;
    font-family: 'Jost', sans-serif; font-size: 14px; color: var(--j-text); outline: none;
}
.jewelry-template .form-group input:focus, .jewelry-template .form-group textarea:focus { border-color: var(--j-gold); }
.jewelry-template .jewel-order-summary { background: var(--j-cream-2); }

/* ---------- Account ---------- */
.jewelry-template .account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 34px; padding: 24px 0 60px; }
.jewelry-template .account-sidebar { border: 1px solid var(--j-line); background: #fff; padding: 12px 0; height: fit-content; }
.jewelry-template .account-sidebar-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; padding: 8px 20px 12px; border-bottom: 1px solid var(--j-line); }
.jewelry-template .account-nav-item { display: block; padding: 11px 20px; color: var(--j-text); text-decoration: none; font-size: 13px; cursor: pointer; }
.jewelry-template .account-nav-item:hover, .jewelry-template .account-nav-item.active { background: var(--j-cream); color: var(--j-gold-dark); }
.jewelry-template .account-panel { display: none; } .jewelry-template .account-panel.active { display: block; }
.jewelry-template .order-list-item { display: flex; justify-content: space-between; border: 1px solid var(--j-line); padding: 16px; margin-bottom: 12px; cursor: pointer; background: #fff; }
.jewelry-template .order-list-item:hover { box-shadow: 0 10px 24px rgba(0,0,0,.07); }

/* ---------- Auth ---------- */
.jewelry-template .jewel-auth { padding-bottom: 60px; }
.jewelry-template .jewel-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 880px; margin: 0 auto; }
.jewelry-template .jewel-card-panel { border: 1px solid var(--j-line); background: #fff; padding: 36px; }
.jewelry-template .jewel-card-panel h2 { font-size: 28px; margin-bottom: 6px; }
.jewelry-template .jewel-auth-sub { color: var(--j-muted); font-size: 13px; margin-bottom: 20px; }

/* ---------- Content page ---------- */
.jewelry-template .jewel-page-title { text-align: center; font-size: 40px; margin-bottom: 6px; }
.jewelry-template .content-page-body { max-width: 760px; margin: 0 auto; line-height: 1.9; color: var(--j-text); }
.jewelry-template .jewel-contact { max-width: 760px; margin: 36px auto 0; }
.jewelry-template .contact-input { width: 100%; padding: 11px 13px; border: 1px solid var(--j-line); font-family: 'Jost', sans-serif; margin-top: 6px; }
.jewelry-template .contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.jewelry-template .jewel-footer { background: var(--j-ink); color: #cfc6b6; padding: 60px 0 0; margin-top: 0; }
.jewelry-template .jewel-footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.jewelry-template .jewel-footer h4 { color: #fff; font-size: 16px; letter-spacing: .06em; margin-bottom: 16px; }
.jewelry-template .jewel-footer-name { font-size: 26px !important; letter-spacing: .12em; text-transform: uppercase; }
.jewelry-template .jewel-footer a { display: block; color: #b8af9f; text-decoration: none; font-size: 13px; padding: 5px 0; }
.jewelry-template .jewel-footer a:hover { color: var(--j-gold); }
.jewelry-template .jewel-footer p { font-size: 13px; line-height: 1.7; color: #b8af9f; }
.jewelry-template .jewel-footer .footer-social { display: flex; gap: 14px; margin-top: 14px; }
.jewelry-template .jewel-footer .footer-social a { font-size: 17px; color: #b8af9f; }
.jewelry-template .jewel-footer .footer-social a:hover { color: var(--j-gold); }
.jewelry-template .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 22px; font-size: 12px; letter-spacing: .06em; color: #8c8475; }

/* ---------- WhatsApp ---------- */
.jewelry-template .jewel-whatsapp { background: var(--j-gold); }

/* Mobile "Filters & Categories" toggle for the catalog (shown only on small screens) */
.jewelry-template .jewel-filter-toggle { display: none; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px; margin-bottom: 14px; background: var(--j-ink); color: var(--j-cream);
    border: none; font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; cursor: pointer; }
.jewelry-template .jewel-filter-toggle:hover { background: var(--j-gold); }

/* ---------- Responsive ---------- */

/* Tablets landscape / small laptops */
@media (max-width: 1100px) {
    .jewelry-template .product-grid,
    .jewelry-template .jewel-product-grid { grid-template-columns: repeat(3, 1fr); }
    .jewelry-template .catalog-layout { grid-template-columns: 200px 1fr; gap: 24px; }
}

/* Tablets portrait / large phones */
@media (max-width: 980px) {
    /* Header: hamburger + centered logo + actions, with search on its own full-width row */
    .jewelry-template .jewel-header { padding: 14px 0; }
    .jewelry-template .jewel-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
    .jewelry-template .jewel-nav-toggle { display: flex; order: 1; }
    .jewelry-template .jewel-logo { order: 2; flex: 1; justify-content: center; }
    .jewelry-template .jewel-logo-text { font-size: 26px; }
    .jewelry-template .jewel-actions { order: 3; }
    .jewelry-template .jewel-search { order: 4; display: block; flex-basis: 100%; max-width: none; }

    /* Navigation collapses into a vertical stack */
    .jewelry-template .jewel-nav { height: auto; }
    .jewelry-template .jewel-nav .container { display: none; flex-direction: column; }
    .jewelry-template .jewel-nav.mobile-open .container { display: flex; background: var(--j-cream); }
    .jewelry-template .jewel-nav .store-nav-item { justify-content: flex-start; border-bottom: 1px solid var(--j-line); }
    .jewelry-template .jewel-nav .store-dropdown-menu,
    .jewelry-template .jewel-nav .store-mega-menu { position: static; transform: none; box-shadow: none; border: none; display: none; padding: 0 0 10px 18px; }
    .jewelry-template .jewel-nav .store-nav-item.mobile-expanded .store-dropdown-menu,
    .jewelry-template .jewel-nav .store-nav-item.mobile-expanded .store-mega-menu { display: block; }
    .jewelry-template .jewel-nav .mega-menu-row { flex-direction: column; gap: 0; }

    /* Catalog: sidebar becomes a collapsible panel behind a Filters button */
    .jewelry-template .catalog-layout { grid-template-columns: 1fr; gap: 0; }
    .jewelry-template .jewel-filter-toggle { display: flex; }
    .jewelry-template .catalog-sidebar { display: none; }
    .jewelry-template .catalog-sidebar.mobile-open { display: block; margin-bottom: 18px; border: 1px solid var(--j-line); padding-bottom: 10px; }
    .jewelry-template .jewel-toolbar { flex-wrap: wrap; gap: 10px; }

    /* Stack the two-column layouts */
    .jewelry-template .jewel-detail { grid-template-columns: 1fr; gap: 28px; }
    .jewelry-template .checkout-layout { grid-template-columns: 1fr; }
    .jewelry-template .jewel-auth-grid { grid-template-columns: 1fr; }
    .jewelry-template .account-layout { grid-template-columns: 1fr; }

    /* Grids */
    .jewelry-template .product-grid,
    .jewelry-template .jewel-product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .jewelry-template .jewel-cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
    .jewelry-template .jewel-values .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .jewelry-template .jewel-promo-row { grid-template-columns: repeat(2, 1fr); }
    .jewelry-template .jewel-banner-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

    /* Hero + sections */
    .jewelry-template .jewel-hero-slide img,
    .jewelry-template .jewel-hero-slide video { height: 420px; }
    .jewelry-template .jewel-hero-title { font-size: 40px; }
    .jewelry-template .jewel-hero-default { padding: 80px 20px; }
    .jewelry-template .jewel-section { padding: 44px 0; }
    .jewelry-template .jewel-section-head h2 { font-size: 30px; }

    /* Footer */
    .jewelry-template .jewel-footer .container { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* Phones */
@media (max-width: 640px) {
    .jewelry-template .container { padding: 0 16px; }
    .jewelry-template .jewel-topbar-left { display: none; }

    .jewelry-template .product-grid,
    .jewelry-template .jewel-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jewelry-template .jewel-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jewelry-template .jewel-promo-row,
    .jewelry-template .jewel-banner-grid.cols-2,
    .jewelry-template .jewel-banner-grid.cols-3 { grid-template-columns: 1fr; }

    /* Forms stack to a single column */
    .jewelry-template .form-row { grid-template-columns: 1fr; }
    .jewelry-template .contact-form-row { grid-template-columns: 1fr; }

    /* Cart table becomes stacked cards (no horizontal overflow) */
    .jewelry-template .jewel-cart-table thead { display: none; }
    .jewelry-template .jewel-cart-table tr { display: block; border: 1px solid var(--j-line); margin-bottom: 12px; padding: 12px; }
    .jewelry-template .jewel-cart-table td { display: block; border: none; padding: 5px 0; text-align: left; }
    .jewelry-template .jewel-cart-summary { max-width: none; }

    /* Typography + spacing */
    .jewelry-template .jewel-hero-slide img,
    .jewelry-template .jewel-hero-slide video { height: 340px; }
    .jewelry-template .jewel-hero-title { font-size: 30px; }
    .jewelry-template .jewel-hero-sub { font-size: 15px; }
    .jewelry-template .jewel-hero-default { padding: 60px 18px; }
    .jewelry-template .jewel-section { padding: 36px 0; }
    .jewelry-template .jewel-section-head h2 { font-size: 26px; }
    .jewelry-template .product-detail-name { font-size: 28px; }
    .jewelry-template .jewel-story { padding: 56px 18px; }
    .jewelry-template .jewel-story h2 { font-size: 30px; }
    .jewelry-template .jewel-values .container { grid-template-columns: 1fr; }
    .jewelry-template .jewel-footer .container { grid-template-columns: 1fr; gap: 22px; }
}

/* Small phones */
@media (max-width: 400px) {
    .jewelry-template .jewel-logo-text { font-size: 22px; }
    .jewelry-template .jewel-hero-title { font-size: 26px; }
    .jewelry-template .jewel-section-head h2 { font-size: 23px; }
}
