/* =========================================================
   Zeegold Jewelry - Stylesheet
   Palette: champagne gold + emerald on warm ivory
   ========================================================= */
:root {
  --gold: #b8893b;
  --gold-dark: #94691f;
  --gold-light: #ecd08a;
  --emerald: #0f8f6f;
  --emerald-dark: #0a6b53;
  --emerald-deep: #0a2a23;
  --emerald-tint: #e1f3ec;
  --ink: #1a1712;
  --text: #4a463b;
  --muted: #7d776a;
  --ivory: #fcfaf5;
  --card: #f1ecdf;
  --line: #e7e0cf;
  --white: #fff;
  --radius: 6px;
  --header-h: 80px;
  --font-body: 'Lora', Georgia, 'Times New Roman', serif;
  --font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--ivory); overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 28px; }
svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 26px rgba(10, 42, 35, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand img { height: 54px; width: auto; }

.main-nav ul { display: flex; gap: 42px; }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  -webkit-text-stroke: .7px currentColor;
  transition: color .25s;
}
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--emerald); transition: width .3s; }
.main-nav a:hover { color: var(--emerald-dark); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 40px;
  background: var(--emerald); color: var(--white); font-family: var(--font-head); font-size: 17px; font-weight: 700; letter-spacing: .05em;
  transition: background .25s, transform .25s;
}
.header-cta svg { width: 19px; height: 19px; }
.header-cta:hover { background: var(--emerald-dark); transform: translateY(-1px); }
.header-ig {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--gold); color: var(--gold-dark); transition: all .25s;
}
.header-ig svg { width: 20px; height: 20px; }
.header-ig:hover { background: var(--gold); color: var(--white); transform: translateY(-1px); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1.5px solid var(--line); border-radius: 50%;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (Pexels photo: "Golden handmade rings" by Deepesh Raj) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  padding: 96px 0 100px; background-color: var(--emerald-deep);
  background-image:
    radial-gradient(700px 300px at 50% 0%, rgba(236, 208, 138, .18), transparent 70%),
    linear-gradient(180deg, rgba(6, 30, 25, .82) 0%, rgba(10, 62, 50, .66) 55%, rgba(6, 30, 25, .86) 100%),
    url("https://images.pexels.com/photos/20429577/pexels-photo-20429577.jpeg?auto=compress&cs=tinysrgb&w=1920");
  background-size: cover; background-position: center;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-light); }
.hero h1 { font-size: clamp(46px, 7vw, 84px); font-weight: 700; letter-spacing: .01em; color: var(--white); text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hero-text { max-width: 640px; margin: 22px auto 0; font-size: 17px; color: rgba(255, 255, 255, .86); }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 38px; font-family: var(--font-head); font-size: 17px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points .dot { width: 7px; height: 7px; background: var(--gold-light); transform: rotate(45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px; border-radius: 40px;
  font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .05em; border: 1.5px solid transparent;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.btn-wa { background: var(--emerald); color: var(--white); }
.btn-wa:hover { background: #12a37f; }
.btn-ig { background: transparent; color: var(--white); border-color: var(--gold-light); }
.btn-ig:hover { background: var(--gold-light); color: var(--ink); }
.btn-dark { background: var(--emerald-deep); color: var(--white); }
.btn-dark:hover { background: var(--emerald-dark); }
.btn-outline-dark { background: transparent; color: var(--emerald-deep); border-color: var(--emerald-deep); }
.btn-outline-dark:hover { background: var(--emerald-deep); color: var(--white); }

/* ---------- Shop layout ---------- */
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 52px; padding-top: 72px; padding-bottom: 110px; align-items: start; }

/* Sidebar */
.sidebar-head, .drawer-overlay { display: none; }
.widget { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 24px); }
.widget-title { position: relative; margin-bottom: 26px; padding-bottom: 14px; font-size: 28px; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--emerald), var(--gold)); }

.search { position: relative; }
.search input {
  width: 100%; padding: 15px 52px 15px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-size: 15px; -webkit-appearance: none; appearance: none; transition: border-color .25s, box-shadow .25s;
}
.search input::placeholder { color: #a39c8b; }
.search input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-tint); }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; background: none; border: 0; color: var(--emerald-dark); display: grid; place-items: center; }
.search button svg { width: 20px; height: 20px; }

.filter-list li + li { margin-top: 4px; }
.filter-list label { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-size: 15px; color: var(--text); transition: color .2s; }
.filter-list label:hover { color: var(--emerald-dark); }
.filter-list input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox { width: 18px; height: 18px; flex: none; border: 1.5px solid #cdc4ae; border-radius: 4px; background: var(--white); position: relative; transition: all .2s; }
.checkbox::after { content: ''; position: absolute; left: 5.5px; top: 1.5px; width: 4px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s; }
.filter-list input:checked + .checkbox { background: var(--emerald); border-color: var(--emerald); }
.filter-list input:checked + .checkbox::after { transform: rotate(45deg) scale(1); }
.filter-list input:focus-visible + .checkbox { outline: 2px solid var(--emerald); outline-offset: 2px; }
.swatch { width: 15px; height: 15px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.filter-list .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.filter-list input:checked ~ .label-text { color: var(--emerald-dark); font-weight: 600; }

.latest-list li + li { margin-top: 20px; }
.latest-item { display: flex; align-items: center; gap: 16px; }
.latest-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--card); flex: none; }
.latest-item h4 { font-size: 20px; line-height: 1.2; transition: color .2s; }
.latest-item .price { display: block; margin-top: 2px; font-size: 15px; color: var(--emerald-dark); font-weight: 600; }
.latest-item:hover h4 { color: var(--emerald-dark); }

/* Toolbar */
.shop-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 32px; min-height: 44px; }
.result-count { margin: 0; font-size: 14px; color: var(--muted); }
.clear-btn { background: none; border: 0; padding: 0; font-size: 14px; color: var(--emerald-dark); text-decoration: underline; text-underline-offset: 3px; }
.filter-btn {
  display: none; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  background: var(--emerald); color: var(--white); border: 0; border-radius: 40px; font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .04em;
}
.filter-btn svg { width: 18px; height: 18px; }

/* Product grid: 4 per row on desktop */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.product-card { position: relative; display: flex; flex-direction: column; }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); border-radius: var(--radius); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.product-card:hover .product-media img { transform: scale(1.06); }

.gram-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(145deg, #f6dc92, #c9953a); color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28), inset 0 0 0 2px rgba(255, 255, 255, .5);
  font-family: var(--font-body);
}
.gram-badge b { font-size: 13.5px; font-weight: 600; }
.gram-badge small { margin-top: 2px; font-size: 10.5px; font-weight: 500; }
.carat-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 11px; border-radius: 30px;
  background: rgba(10, 42, 35, .88); color: var(--gold-light); font-family: var(--font-head); font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1.5;
}

.product-info { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.product-info .cat { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald-dark); }
.product-info h3 { margin: 4px 0 4px; font-size: 22px; line-height: 1.2; transition: color .2s; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card:hover h3 { color: var(--emerald-dark); }
.product-info .price { font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--gold-dark); }

.order-row { position: relative; z-index: 3; display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.order-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 30px;
  font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: .02em; border: 1.5px solid transparent; transition: all .25s;
}
.order-btn svg { width: 16px; height: 16px; }
.order-btn.wa { background: var(--emerald); color: var(--white); }
.order-btn.wa:hover { background: var(--emerald-dark); }

.no-results { grid-column: 1 / -1; padding: 80px 24px; text-align: center; background: var(--card); border-radius: var(--radius); }
.no-results h3 { font-size: 32px; margin-bottom: 8px; }
.no-results p { margin: 0 0 22px; color: var(--muted); }
.no-results button { padding: 12px 28px; border: 0; border-radius: 40px; background: var(--emerald); color: var(--white); font-family: var(--font-head); font-size: 18px; font-weight: 700; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 64px; }
.pagination button {
  min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  font-family: var(--font-head); font-size: 18px; font-weight: 700; transition: all .2s;
}
.pagination button:hover:not(:disabled) { background: var(--emerald-tint); border-color: var(--emerald); }
.pagination button.active { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-deep); color: rgba(255, 255, 255, .74); }
.footer-cta { background: linear-gradient(120deg, #c9953a, #ecd08a 55%, #c9953a); color: var(--ink); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
.footer-cta h2 { font-size: clamp(30px, 4vw, 42px); }
.footer-cta p { margin: 8px 0 0; font-size: 16px; color: rgba(26, 23, 18, .8); }
.footer-cta-buttons { display: flex; gap: 14px; flex: none; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 56px; padding-top: 84px; padding-bottom: 70px; }
.footer-logo { height: 66px; width: auto; margin-bottom: 24px; }
.footer-about p { margin: 0 0 28px; max-width: 340px; font-size: 15px; }
.footer-col h4 { position: relative; margin-bottom: 28px; padding-bottom: 14px; font-size: 26px; color: var(--white); }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--emerald), var(--gold-light)); }
.footer-col li + li { margin-top: 12px; }
.footer-col li a { font-size: 15px; transition: color .2s, padding-left .25s; }
.footer-col li a:hover { color: var(--gold-light); padding-left: 5px; }

.socials { display: flex; gap: 14px; }
.socials a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(236, 208, 138, .55); color: var(--gold-light); transition: all .3s; }
.socials svg { width: 22px; height: 22px; }
.socials a:hover { background: var(--gold-light); color: var(--emerald-deep); border-color: var(--gold-light); transform: translateY(-3px); }

.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact-list li + li { margin-top: 16px; }
.contact-list .ci { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(236, 208, 138, .13); color: var(--gold-light); }
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list a { padding-left: 0 !important; overflow-wrap: anywhere; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { padding-top: 28px; padding-bottom: 28px; text-align: center; }
.copyright { margin: 0; font-size: 14px; letter-spacing: .03em; }
.copyright a { color: var(--gold-light); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .2s; }
.copyright a:hover { border-bottom-color: var(--gold-light); }

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--emerald); color: var(--white); box-shadow: 0 8px 22px rgba(10, 42, 35, .35), 0 0 0 4px rgba(255, 255, 255, .85);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .3s, visibility .3s, background .25s;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--gold); }

/* ---------- Medium desktop: 3 per row ---------- */
@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .shop { gap: 40px; }
  .main-nav ul { gap: 30px; }
  .footer-grid { gap: 40px; }
}

/* ---------- Tablet & below: sidebar becomes a drawer, nav collapses ---------- */
@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .container { padding: 0 24px; }
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 42, 35, .12); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s, visibility .35s;
  }
  .main-nav.open { max-height: 380px; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 18px; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { padding: 16px 0; font-size: 21px; }
  .main-nav a::after { display: none; }

  .hero { padding: 76px 0 80px; }
  .shop { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 90px; }
  .shop-toolbar { justify-content: space-between; }
  .filter-btn { display: inline-flex; }
  .pagination { justify-content: center; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 210; width: min(88vw, 350px); padding: 0 26px 48px; overflow-y: auto; background: var(--ivory);
    transform: translateX(-102%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: 10px 0 40px rgba(0, 0, 0, .25); visibility: hidden;
  }
  .sidebar.open { transform: none; visibility: visible; }
  .sidebar-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    margin: 0 -26px 30px; padding: 16px 26px; background: var(--emerald-deep); color: var(--gold-light);
    font-family: var(--font-head); font-size: 26px; font-weight: 700;
  }
  .drawer-close { width: 38px; height: 38px; background: none; border: 1.5px solid rgba(236, 208, 138, .55); border-radius: 50%; color: var(--gold-light); font-size: 26px; line-height: 1; }
  .drawer-overlay { display: block; position: fixed; inset: 0; z-index: 200; background: rgba(6, 24, 20, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .drawer-overlay.show { opacity: 1; visibility: visible; }
  .widget { scroll-margin-top: 84px; }

  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 52px 36px; padding-top: 64px; padding-bottom: 56px; }
  .footer-about { grid-column: 1 / -1; }
}

/* ---------- Phones: 2 per row, generous spacing ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-inner { gap: 12px; }
  .brand img { height: 42px; }
  .header-actions { gap: 8px; }
  .header-cta { width: 44px; padding: 0; justify-content: center; }
  .header-cta span { display: none; }
  .header-cta svg { width: 22px; height: 22px; }
  .main-nav ul { padding: 8px 20px 16px; }

  .hero { padding: 64px 0 68px; }
  .eyebrow { font-size: 15px; letter-spacing: .28em; margin-bottom: 16px; }
  .hero-text { margin-top: 20px; font-size: 15.5px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 14px; margin: 32px auto 0; max-width: 320px; }
  .hero-points { gap: 10px 22px; margin-top: 34px; font-size: 15px; }

  .shop { padding-top: 40px; padding-bottom: 80px; }
  .shop-toolbar { gap: 12px 16px; margin-bottom: 28px; }
  .result-count { font-size: 13px; }
  .clear-btn { flex-basis: 100%; text-align: left; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
  .gram-badge { top: 8px; right: 8px; width: 44px; height: 44px; }
  .gram-badge b { font-size: 12px; }
  .gram-badge small { font-size: 9.5px; }
  .carat-tag { top: 8px; left: 8px; padding: 2px 9px; font-size: 13px; }
  .product-info { padding-top: 12px; }
  .product-info .cat { font-size: 10.5px; letter-spacing: .1em; }
  .product-info h3 { margin: 4px 0 6px; font-size: 19px; }
  .product-info .price { font-size: 19px; }
  .order-row { gap: 6px; padding-top: 12px; }
  .order-btn { min-height: 40px; padding: 0 8px; gap: 6px; font-size: 17px; }
  .order-btn svg { width: 15px; height: 15px; }

  .pagination { margin-top: 52px; gap: 8px; }

  .footer-cta-inner { padding-top: 48px; padding-bottom: 52px; gap: 26px; }
  .footer-cta-buttons { flex-direction: column; align-self: stretch; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 52px; }
  .footer-about { grid-column: auto; }
  .footer-col h4 { margin-bottom: 24px; }
  .footer-bottom-inner { padding-top: 24px; padding-bottom: 28px; }
  .copyright { line-height: 1.8; }

  .back-to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
