:root {
  --maroon: #75151f;
  --maroon-deep: #3e0b12;
  --gold: #c9a23a;
  --gold-soft: #f3de9d;
  --silver: #d9dde2;
  --ink: #1a1516;
  --muted: #6d6262;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: #eadfc8;
  --green: #136f42;
  --red: #a12828;
  --shadow: 0 20px 50px rgba(45, 20, 20, .13);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 241, .94);
  border-bottom: 1px solid rgba(117, 21, 31, .12);
  backdrop-filter: blur(14px);
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 7px 14px;
  color: var(--paper);
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon), #544c4f);
  font-size: 13px;
}

.top-strip a { color: var(--gold-soft); font-weight: 700; }

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
}

.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 10px 12px;
  color: #3c3234;
  border-radius: var(--radius);
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--maroon);
  background: #f4ead5;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-link {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 700;
}

.icon-link b {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  margin-left: 4px;
  color: var(--white);
  background: var(--maroon);
  border-radius: 999px;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.btn-small { min-height: 38px; padding: 8px 12px; background: var(--maroon); color: var(--white); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #241904; border-color: #b68c23; }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--maroon); border-color: var(--line); }
.btn-glass { color: var(--white); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); }

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--maroon);
  cursor: pointer;
  font-weight: 750;
}

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.flash-success { color: #083d25; background: #dff3e8; border: 1px solid #a6d9bb; }
.flash-error { color: #7c1717; background: #ffe3e3; border: 1px solid #efb6b6; }

.hero-home {
  min-height: 76vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(34, 8, 13, .88), rgba(117, 21, 31, .58) 45%, rgba(34, 8, 13, .14)),
    url("../images/hero-jewellery.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-home h1,
.page-hero h1,
.detail-info h1,
.article-shell h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-home h1 { font-size: clamp(42px, 8vw, 86px); }
.hero-home p:not(.eyebrow) { max-width: 650px; font-size: 18px; color: #f7efd9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-band div {
  min-height: 92px;
  padding: 20px;
  border-right: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
}

.trust-band strong { display: block; color: var(--maroon); font-size: 24px; }
.trust-band span { color: var(--muted); font-size: 13px; }

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.muted-band {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: #f4efe6;
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2,
.split-section h2,
.form-section h2,
.faq-list h2 {
  margin: 0;
  color: var(--maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.section-head a { color: var(--maroon); font-weight: 850; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-tile {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: .78;
  transition: transform .3s ease;
}

.category-tile:hover img { transform: scale(1.04); }
.category-tile span, .category-tile small { position: absolute; left: 18px; right: 18px; }
.category-tile span { bottom: 52px; font-size: 22px; font-weight: 900; }
.category-tile small { bottom: 20px; color: #f2e8cc; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card,
.blog-card,
.contact-card,
.service-cards article,
.order-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(65, 35, 20, .08);
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #ece7df;
}

.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: var(--maroon);
  background: rgba(255, 250, 241, .92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.product-body { padding: 14px; }
.product-body h3, .blog-card h3, .blog-card h2 { margin: 0 0 8px; line-height: 1.2; }
.product-body p, .blog-card p, .service-list span { color: var(--muted); }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.product-meta strong { color: var(--maroon); }
.product-meta small { color: #746744; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.split-section,
.form-section,
.contact-layout,
.product-detail,
.account-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-list a,
.timeline div,
.metric-grid div,
.spec-grid div {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-list strong,
.timeline strong {
  display: block;
  color: var(--maroon);
  font-size: 18px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-grid.large { grid-template-columns: repeat(2, 1fr); }

.blog-card { overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card > *:not(a) { margin-inline: 16px; }
.blog-card .eyebrow { margin-top: 16px; }
.blog-card p:last-child { margin-bottom: 18px; }

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(48, 9, 16, .9), rgba(117,21,31,.72)),
    url("../images/hero-jewellery.jpg") center/cover no-repeat;
}

.page-hero.compact {
  min-height: 360px;
  padding: 86px max(16px, calc((100% - 1120px) / 2)) 64px;
}

.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.page-hero p:not(.eyebrow) { max-width: 680px; color: #f5ead4; font-size: 18px; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.filter-panel {
  position: sticky;
  top: 105px;
  align-self: start;
}

.filter-panel form,
.stacked-form,
.buy-box,
.search-bar {
  display: grid;
  gap: 14px;
}

label { display: grid; gap: 6px; color: #44393a; font-weight: 750; }

input, select, textarea {
  width: 100%;
  border: 1px solid #d9ccb7;
  border-radius: var(--radius);
  background: var(--white);
  padding: 11px 12px;
  color: var(--ink);
}

textarea { resize: vertical; }

.filter-panel,
.mini-contact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.mini-contact { margin-top: 16px; }
.mini-contact a { color: var(--maroon); font-weight: 850; }

.product-detail {
  grid-template-columns: minmax(280px, 520px) 1fr;
  align-items: start;
}

.detail-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-info h1 { font-size: clamp(36px, 5vw, 60px); }
.lead { color: var(--muted); font-size: 18px; }
.detail-price { color: var(--maroon); font-size: 24px; font-weight: 950; margin: 20px 0; }

.spec-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.spec-grid span,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.buy-box {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f1e6;
}

.article-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.article-shell header img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 24px;
}

.article-shell h1 { color: var(--maroon-deep); font-size: clamp(38px, 6vw, 66px); }
.article-shell header p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.article-content {
  margin-top: 34px;
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  color: var(--maroon-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

.article-content h2 { margin-top: 36px; font-size: 32px; }
.article-content h3 { margin-top: 24px; font-size: 24px; }
.article-content a { color: var(--maroon); font-weight: 800; }

.article-cta {
  margin-top: 40px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--maroon-deep);
  color: var(--white);
}

.article-cta h2 { margin: 0; }

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-cards article { padding: 18px; }
.service-cards h2 { margin: 0 0 8px; color: var(--maroon); font-size: 21px; }

.contact-layout { grid-template-columns: .8fr 1.2fr; }
.contact-card { padding: 22px; }
.map-section { width: min(1120px, calc(100% - 32px)); margin: 0 auto 72px; }
.map-section iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary { cursor: pointer; color: var(--maroon); font-weight: 850; }

.cart-list { display: grid; gap: 14px; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr 110px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.cart-row img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-row h3 { margin: 0; }
.cart-actions { display: flex; justify-content: flex-end; gap: 10px; }

.auth-shell {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 50px 16px;
  background: linear-gradient(140deg, #fff8ea, #f1e4cf, #f6f7f8);
}

.auth-card {
  width: min(440px, 100%);
  padding: 26px;
}

.account-layout {
  grid-template-columns: 260px 1fr;
  align-items: start;
}

.account-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.account-nav a,
.account-nav button {
  padding: 10px 12px;
  border-radius: var(--radius);
  text-align: left;
}

.account-nav a.is-active { background: #f4ead5; color: var(--maroon); font-weight: 850; }

.account-main {
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.metric-grid div strong { display: block; color: var(--maroon); font-size: 32px; }
.order-card { padding: 14px; margin-bottom: 10px; }
.narrow { max-width: 560px; margin-bottom: 20px; }

.site-footer {
  color: #f5ecd8;
  background: linear-gradient(135deg, var(--maroon-deep), #201619);
  padding: 54px max(16px, calc((100% - 1120px) / 2)) 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-logo { width: 70px; height: 70px; object-fit: contain; margin-bottom: 12px; }
.site-footer h3 { margin: 0 0 12px; color: var(--gold-soft); }
.site-footer a { display: block; color: #fff9e9; margin: 8px 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #d8cbb2;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #128c4a;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  font-weight: 950;
}

.mobile-bottom-nav { display: none; }

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #f4f5f7;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  color: var(--white);
  background: #201619;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 900;
}

.admin-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: var(--white); }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a,
.admin-logout {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  color: #f8efd8;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 750;
}

.admin-sidebar nav a:hover,
.admin-logout:hover { background: rgba(255,255,255,.1); }
.admin-logout { margin-top: 22px; color: var(--gold-soft); }

.admin-main { padding: 26px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-topbar h1 { margin: 0; color: #231b1d; }
.admin-topbar p { margin: 3px 0 0; color: #667; }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics div,
.admin-card {
  border: 1px solid #e1e5ea;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 30, 50, .06);
}

.admin-metrics div { padding: 18px; }
.admin-metrics strong { display: block; font-size: 34px; color: var(--maroon); }
.admin-metrics span { color: #667; }
.admin-card { padding: 18px; margin-bottom: 18px; }
.admin-card h2 { margin: 0 0 14px; }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-card p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf0f4;
  padding-bottom: 8px;
}

.bar-chart {
  height: 220px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding-top: 14px;
}

.bar-chart div {
  flex: 1;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  text-align: center;
}

.bar-chart span {
  align-self: end;
  display: block;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--gold), var(--maroon));
}

.bar-chart small { color: #667; font-size: 11px; }

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form.wide { grid-template-columns: 1fr; }
.admin-form label:has(textarea),
.admin-form .check-row,
.admin-form button { grid-column: 1 / -1; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input { width: auto; }

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-table > div {
  display: grid;
  grid-template-columns: 54px 1.4fr 1fr .7fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #edf0f4;
  border-radius: var(--radius);
}

.admin-table img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #eceff3;
}

.admin-table button,
.admin-table select {
  min-height: 36px;
  padding: 7px 9px;
}

.admin-table.messages > div,
.admin-table.orders > div {
  grid-template-columns: 1fr 1fr 1fr;
}

.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--maroon-deep), #3f454b);
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-card img { width: 76px; margin: 0 auto; }
.admin-login-card h1 { margin: 0; text-align: center; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-shell { min-height: 66px; }
  .brand { min-width: auto; }
  .brand strong { font-size: 14px; }
  .trust-band, .category-grid, .product-grid, .service-cards { grid-template-columns: repeat(2, 1fr); }
  .split-section, .form-section, .contact-layout, .product-detail, .account-layout, .shop-layout { grid-template-columns: 1fr; }
  .filter-panel, .account-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .admin-metrics, .admin-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .top-strip { overflow-x: auto; justify-content: flex-start; white-space: nowrap; }
  .nav-actions .btn-small { display: none; }
  .icon-link { padding: 7px 9px; }
  .hero-home { min-height: 72vh; }
  .hero-content { padding: 58px 0 70px; }
  .hero-home p:not(.eyebrow), .page-hero p:not(.eyebrow) { font-size: 16px; }
  .trust-band { grid-template-columns: 1fr 1fr; }
  .trust-band div { min-height: 78px; padding: 14px; }
  .section, .split-section, .form-section, .contact-layout, .product-detail, .account-layout { padding: 46px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .product-grid, .blog-grid, .blog-grid.large, .service-cards, .spec-grid, .metric-grid { grid-template-columns: 1fr; }
  .category-tile, .category-tile img { min-height: 240px; }
  .cart-row { grid-template-columns: 76px 1fr; }
  .cart-row label { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp { bottom: 88px; width: 50px; height: 50px; }
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid rgba(117,21,31,.16);
    border-radius: 18px;
    background: rgba(255,250,241,.96);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    border-radius: 12px;
    color: #55494b;
    font-size: 12px;
    font-weight: 850;
  }
  .mobile-bottom-nav a.is-active { color: var(--white); background: var(--maroon); }
  .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 14px; }
  .admin-metrics, .admin-grid-2, .admin-form { grid-template-columns: 1fr; }
  .admin-table > div, .admin-table.messages > div, .admin-table.orders > div { grid-template-columns: 1fr; }
}
