/* Tashvika Jewels website - emerald & gold */
:root {
  --green-900: #062013;
  --green-800: #0b2a1b;
  --green-700: #11402C;
  --green-600: #1a5a3e;
  --gold: #C9A04F;
  --gold-light: #E6C47A;
  --gold-text: #8a6a2c;         /* gold dark enough for text on light backgrounds */
  --ivory: #FBF7F0;
  --ivory-2: #F4ECDD;
  --white: #ffffff;
  --text: #2a2420;
  --muted: #6b6259;
  --line: #eadfcb;
  --danger: #a33a2a;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(6, 32, 19, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.topbar { background: var(--green-900); color: var(--gold-light); font-size: 13px; letter-spacing: .04em; }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
#topbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { opacity: .85; }
.head-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 0 10px; }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #cfc4b2; max-width: 420px; padding: 6px 0; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 1.8; flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 15px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-mark { height: 54px; width: auto; }
.brand-word { height: 22px; width: auto; }
.head-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.market select { border: 1px solid var(--line); background: var(--ivory); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--ivory-2); }
.icon-btn svg { width: 24px; height: 24px; fill: var(--green-700); }
.menu-btn { display: none; }
.menu-btn svg { fill: none; stroke: var(--text); stroke-width: 2; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav-in { display: flex; justify-content: space-between; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--text); padding: 12px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: var(--green-700); border-color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; margin: 20px auto 0; border-radius: 14px; overflow: hidden; min-height: 420px;
  background: radial-gradient(120% 140% at 80% 50%, #1d5a40 0%, var(--green-700) 38%, var(--green-900) 100%); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(var(--gold-light) 1px, transparent 1.4px); background-size: 22px 22px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; min-height: 420px; padding: 40px 56px; }
.hero-eyebrow { color: var(--gold-light); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; margin: 12px 0 14px; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p { color: #e8e1d3; max-width: 46ch; margin: 0 0 26px; font-weight: 300; font-size: 17px; }
.hero-art { position: relative; height: 340px; }
.hero-art .ring { position: absolute; inset: 0; margin: auto; width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(230, 196, 122, .45); box-shadow: 0 0 0 18px rgba(230, 196, 122, .06), 0 0 0 40px rgba(230, 196, 122, .04); }
.hero-art img.emblem { position: absolute; inset: 0; margin: auto; width: 210px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.hero-photos { position: absolute; inset: 0; }
.hero-photos img { position: absolute; width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold-light); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-photos img:nth-child(1) { left: 2%; top: 8%; }
.hero-photos img:nth-child(2) { right: 4%; top: 30%; width: 170px; height: 170px; }
.hero-photos img:nth-child(3) { left: 22%; bottom: 0; width: 120px; height: 120px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 500; letter-spacing: .02em; transition: .2s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--gold-light); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-gold { background: var(--gold); color: var(--green-900); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #188046; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- sections ---------- */
.section { padding: 56px 0 8px; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); color: var(--green-700); margin: 0; }
.section-head p { color: var(--muted); margin: 6px 0 0; }
.section-head .rule { width: 90px; height: 1px; background: var(--gold); margin: 14px auto 0; position: relative; }
.section-head .rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cat-tile { text-align: center; }
.cat-tile .img { aspect-ratio: 9 / 10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #fbf3e4 0%, #efdfc2 100%); display: grid; place-items: center; transition: .25s; }
.cat-tile .img img.photo { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .img img.art { width: 62%; }
.cat-tile:hover .img { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-tile span { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; margin-top: 12px; }
.cat-tile.more .img { background: #fff; }
.cat-tile.more .img div { font-family: var(--serif); font-size: 24px; color: var(--green-700); line-height: 1.4; }
.round-arrow { width: 52px; height: 52px; border: 1px solid var(--green-700); border-radius: 50%; display: grid; place-items: center; margin: 18px auto 0; }
.round-arrow svg { width: 22px; fill: none; stroke: var(--green-700); stroke-width: 1.8; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: .25s; position: relative; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .img { aspect-ratio: 1; background: linear-gradient(160deg, #fbf3e4, #efdfc2); display: grid; place-items: center; overflow: hidden; }
.card .img img.photo { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .img img.photo { transform: scale(1.05); }
.card .img img.art { width: 55%; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .title { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.2; }
.card .code { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.card .price { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: 18px; color: var(--green-700); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--green-900); color: var(--gold-light); font-size: 12px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.badge.sold { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.cur { display: inline-block; width: .78em; height: .68em; background: currentColor; vertical-align: -0.02em; margin-right: .18em;
  -webkit-mask: var(--sign) no-repeat center / contain; mask: var(--sign) no-repeat center / contain; }
.cur-AED { --sign: url("../img/dirham_sign.svg"); }
.cur-INR { --sign: url("../img/rupee_sign.svg"); width: .6em; }

/* promise strip */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.promise div { text-align: center; padding: 0 8px; }
.promise b { display: block; font-family: var(--serif); font-size: 21px; color: var(--green-700); }
.promise span { color: var(--muted); font-size: 14px; }

/* shop */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 8px; }
.filters { position: sticky; top: 170px; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.filters h3 { font-family: var(--serif); font-size: 22px; margin: 0 0 10px; color: var(--green-700); }
.filters a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; color: var(--text); }
.filters a.active, .filters a:hover { background: var(--ivory-2); }
.filters a small { color: var(--muted); }
.filters label { display: flex; gap: 8px; align-items: center; margin-top: 14px; cursor: pointer; }
.shop-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.shop-bar h1 { font-family: var(--serif); font-size: 34px; margin: 0; color: var(--green-700); font-weight: 600; }
.shop-bar select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; }
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.chip.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.more-wrap { text-align: center; margin: 28px 0 0; }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--green-700); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 20px 0 8px; }
.pdp .gallery { background: linear-gradient(160deg, #fbf3e4, #efdfc2); border-radius: 14px; overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); }
.pdp .gallery img.photo { width: 100%; height: 100%; object-fit: cover; }
.pdp .gallery img.art { width: 55%; }
.pdp h1 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; margin: 0; line-height: 1.1; }
.pdp .meta { color: var(--muted); margin: 6px 0 18px; letter-spacing: .03em; }
.pdp .price { font-size: 30px; color: var(--green-700); font-weight: 500; }
.pdp .tax { color: var(--muted); font-size: 14px; }
.pdp .avail { display: inline-block; margin: 14px 0; padding: 4px 12px; border-radius: 999px; font-size: 14px; background: #e6f2ea; color: #1e6b45; }
.pdp .avail.sold { background: #f8e9e6; color: var(--danger); }
.pdp .desc { white-space: pre-line; margin: 6px 0 22px; }
.pdp .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdp .note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; }

/* static pages */
.page { max-width: 820px; margin: 0 auto; padding: 40px 0 8px; }
.page h1 { font-family: var(--serif); font-size: 44px; color: var(--green-700); margin: 0 0 10px; font-weight: 600; }
.page h2 { font-family: var(--serif); font-size: 28px; color: var(--green-700); margin: 28px 0 6px; }

/* states */
.empty, .loading { text-align: center; color: var(--muted); padding: 48px 16px; }
.loading::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal (UPI) */
.modal { position: fixed; inset: 0; background: rgba(6, 32, 19, .6); z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 16px; width: min(440px, 100%); max-height: 92vh; overflow: auto; padding: 28px; position: relative; text-align: center; }
.modal-close { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 30px; cursor: pointer; color: var(--muted); }
.modal h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 4px; color: var(--green-700); }
.qr { width: 230px; height: 230px; margin: 16px auto; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.steps { text-align: left; color: var(--muted); font-size: 14px; padding-left: 20px; }
.upi-id { font-weight: 600; letter-spacing: .02em; }
.modal .btn { width: 100%; margin-top: 10px; }

/* footer */
.site-footer { margin-top: 72px; background: var(--green-900); color: #d9d2c4; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 40px; }
.site-footer h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--gold-light); margin: 0 0 14px; }
.site-footer h3.mt { margin-top: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--gold-light); }
.foot-logo { width: 220px; margin-bottom: 14px; }
.foot-brand p { font-weight: 300; max-width: 32ch; }
.social { display: flex; gap: 14px; }
.social a { width: 44px; height: 44px; border: 1px solid rgba(230, 196, 122, .5); border-radius: 50%; display: grid; place-items: center; }
.social svg { width: 20px; height: 20px; fill: var(--gold-light); }
.foot-bottom { border-top: 1px solid rgba(230, 196, 122, .18); font-size: 13px; color: #a79f90; padding: 16px 0; }

/* whatsapp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--text);
  padding: 8px 16px 8px 8px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: 14px; }
.wa-float svg { width: 40px; height: 40px; padding: 8px; background: #1f9d55; fill: #fff; border-radius: 50%; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid, .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar-right { display: none; }
  .topbar { font-size: 12px; text-align: center; }
  .topbar-in { justify-content: center; }
  .head-main { grid-template-columns: auto 1fr auto; padding: 10px 0; }
  .search { display: none; }
  .search.open { display: flex; grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .brand { align-items: flex-start; flex-direction: row; gap: 8px; align-items: center; }
  .brand-mark { height: 36px; }
  .brand-word { height: 12px; }
  .menu-btn { display: grid; }
  .market select { padding: 7px 10px; font-size: 14px; }
  .cat-nav-in { justify-content: flex-start; }
  .cat-nav a { font-size: 17px; }
  .hero, .hero-in { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; padding: 32px 22px; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-art { height: 220px; }
  .hero-art .ring { width: 200px; height: 200px; }
  .hero-art img.emblem { width: 140px; }
  .hero-photos img { width: 90px !important; height: 90px !important; }
  .grid, .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-tile span { font-size: 18px; }
  .card .title { font-size: 17px; }
  .card .body { padding: 10px 12px 12px; }
  .promise { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; padding-top: 18px; }
  .filters { display: none; }
  .chips { display: flex; }
  .pdp { grid-template-columns: 1fr; gap: 22px; }
  .pdp .actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .wa-float span { display: none; }
  .wa-float { padding: 0; }
}
