/* ============================================================
   Devina Jewels — Design System
   Forest green · Gold · Ivory
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --green-900: #0c2c1c;
  --green-800: #0f3a26;
  --green-700: #17512f;
  --green-600: #1e6b3f;

  --gold:       #c9a24c;
  --gold-light: #e3c877;
  --gold-dark:  #a9843c;

  --ivory:  #f6f3ea;
  --ivory-2:#efe9db;
  --cream:  #fffdf8;
  --ink:    #16211b;
  --muted:  #6b7269;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --shadow-sm: 0 6px 18px rgba(12, 44, 28, .08);
  --shadow-md: 0 18px 44px rgba(12, 44, 28, .14);
  --radius: 18px;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* section heading */
.eyebrow {
  font-family: var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-dark);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--green-800);
}
.section-sub { color: var(--muted); margin-top: .4rem; }
.center { text-align: center; }
.star { position: relative; display: inline-block; }
.star::before { content: "✦"; color: var(--gold); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px;
  font-weight: 500; letter-spacing: .04em; font-size: .95rem;
  border: 1.5px solid transparent; transition: .25s ease;
}
.btn-gold { background: var(--gold); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-green { background: var(--green-800); color: var(--ivory); }
.btn-green:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-ghost { border-color: var(--gold-dark); color: var(--green-800); }
.btn-ghost:hover { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 243, 234, .82);
  border-bottom: 1px solid rgba(169,132,60,.18);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { height: 38px; width: auto; flex: none; display: block; }
.brand-full { height: 82px; width: auto; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: .2em; color: var(--green-800);
}
.wordmark small {
  font-family: var(--serif); font-weight: 500; font-size: .58rem;
  letter-spacing: .5em; color: var(--gold-dark); margin-top: 3px; padding-left: .2em;
}
/* legacy fallback (unused badges) */
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--green-800); letter-spacing: .06em; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .42em; color: var(--gold-dark); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .95rem; color: var(--green-800); position: relative; padding: .2rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .25s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold-dark); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1.5px solid rgba(169,132,60,.35); color: var(--green-800);
  transition: .2s;
}
.icon-btn:hover { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }

.nav-toggle { display: none; background: none; border: none; color: var(--green-800); }

/* ============================================================
   HERO  (editorial · arched model photo)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(201,162,76,.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(15,58,38,.06), transparent 60%),
    var(--ivory);
}
.hero-watermark {
  position: absolute; left: 2%; top: 50%; transform: translateY(-50%);
  height: 82%; width: auto; z-index: 0;
  opacity: .1; pointer-events: none; user-select: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center;
  gap: 2.5rem; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  min-height: min(88vh, 780px);
}
.hero-copy { position: relative; z-index: 3; max-width: 32rem; }
.hero-copy h1 {
  font-family: var(--serif); font-weight: 600; color: var(--green-800);
  font-size: clamp(2.8rem, 6.2vw, 5rem); line-height: 1.02; margin: .6rem 0 1rem;
}
.hero-copy h1 em { font-style: italic; color: var(--gold-dark); }
.hero-copy p { color: #444c43; margin-bottom: 1.7rem; max-width: 30rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2.4rem; margin-top: 2rem; }
.hero-meta b { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--green-800); display: block; line-height: 1; }
.hero-meta span { font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

.hero-visual { position: relative; z-index: 3; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 1; width: 84%; aspect-ratio: .82; right: -2%; top: 8%;
  background: linear-gradient(160deg, var(--green-700), var(--green-900));
  border-radius: 280px 280px 28px 28px;
}
.hero-arch {
  position: relative; z-index: 2; width: min(90%, 430px); aspect-ratio: 3/4;
  border-radius: 280px 280px 24px 24px; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: var(--shadow-md);
  animation: floaty 7s ease-in-out infinite;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

.hero-spark { position: absolute; z-index: 4; color: var(--gold); font-size: 1.6rem; animation: twinkle 3s ease-in-out infinite; }
.hero-spark.s1 { top: 4%; right: 8%; font-size: 2.2rem; }
.hero-spark.s2 { bottom: 20%; left: 2%; animation-delay: 1s; }
@keyframes twinkle { 0%,100%{ opacity:.5; transform:scale(.85) } 50%{ opacity:1; transform:scale(1.1) } }

/* floating product chip */
.float-card {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: .7rem;
  background: rgba(255,253,248,.94); backdrop-filter: blur(6px);
  padding: .55rem .75rem .55rem .55rem; border-radius: 16px; box-shadow: var(--shadow-md);
  width: 240px; border: 1px solid rgba(201,162,76,.3);
  animation: floaty 6s ease-in-out infinite; animation-delay: .6s;
}
.float-card img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.float-card .fc-name { font-size: .84rem; font-weight: 500; color: var(--green-800); line-height: 1.15; }
.float-card .fc-price { font-size: .82rem; color: var(--gold-dark); font-weight: 600; }
.float-card.bottom { bottom: 6%; left: -4%; }

/* ============================================================
   VALUE STRIP (marquee of trust badges)
   ============================================================ */
.strip { background: var(--green-900); color: var(--ivory); }
.strip-track {
  display: flex; gap: 3.5rem; align-items: center; padding: 1.05rem 0;
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden;
}
.strip-track span { display: inline-flex; align-items: center; gap: 3.5rem; animation: marquee 26s linear infinite; }
.strip-track b { color: var(--gold-light); font-weight: 500; }
.strip-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ============================================================
   PRODUCT HIGHLIGHTS (arched cards)
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.highlights-head { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-bottom: 2.6rem; }
.arch-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.1rem; align-items: end;
}
.arch {
  position: relative; border-radius: 220px 220px 20px 20px; overflow: hidden;
  aspect-ratio: 3/4.4; box-shadow: var(--shadow-sm); transition: .3s; display: block;
  background: var(--green-700);
}
.arch:nth-child(2n) { transform: translateY(-18px); }
.arch:hover { transform: translateY(-26px); box-shadow: var(--shadow-md); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .8rem .8rem;
  background: linear-gradient(transparent, rgba(12,44,28,.86));
  color: var(--ivory); text-align: center;
}
.arch-cap .n { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.arch-cap .p { color: var(--gold-light); font-size: .85rem; }

/* ============================================================
   COLLECTIONS (product card row / grid)
   ============================================================ */
.collections-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.card-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .28s; display: flex; flex-direction: column;
  border: 1px solid rgba(169,132,60,.12); position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.pc-imgwrap { position: relative; aspect-ratio: 1; background: var(--ivory-2); overflow: hidden; }
.pc-imgwrap img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.product-card:hover .pc-imgwrap img { transform: scale(1.06); }
.pc-badge {
  position: absolute; top: .8rem; left: .8rem; background: var(--green-800); color: var(--gold-light);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px;
}
.pc-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.pc-cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.pc-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; color: var(--green-800); line-height: 1.1; }
.pc-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .6rem; }
.pc-price { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.pc-buy {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--green-900); transition: .2s; flex: none;
}
.product-card:hover .pc-buy { background: var(--green-800); color: var(--gold-light); }
.pc-amazon { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }

/* ============================================================
   WHY CHOOSE US (dark section + accordion)
   ============================================================ */
.why { background: var(--green-900); color: var(--ivory); }
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.why h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); color: var(--ivory); margin-bottom: 1.6rem; }
.why h2 .star::before { color: var(--gold); }
.acc-item { border-top: 1px solid rgba(227,200,119,.22); padding: 1.15rem 0; }
.acc-item:last-child { border-bottom: 1px solid rgba(227,200,119,.22); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ivory); background: none; border: none; width: 100%; text-align: left;
}
.acc-q .chev { color: var(--gold); transition: .3s; }
.acc-item.open .acc-q .chev { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: #cdd4c9; }
.acc-item.open .acc-a { max-height: 220px; }
.acc-a p { padding-top: .7rem; max-width: 40ch; }
.why-visual {
  position: relative;
  border-radius: 240px 240px 24px 24px; overflow: hidden; aspect-ratio: 3/4;
  border: 2px solid var(--gold); box-shadow: 0 30px 60px rgba(0,0,0,.4);
  background: linear-gradient(160deg, var(--green-700), var(--green-800));
}
.why-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ivory); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer .brand-name { color: var(--green-800); }
.footer h4 { font-family: var(--serif); font-size: 1.35rem; color: var(--green-800); margin-bottom: .9rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: #4b5349; font-size: .95rem; transition: .2s; }
.footer a:hover { color: var(--gold-dark); }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(169,132,60,.4); color: var(--green-800); transition: .2s;
}
.socials a:hover { background: var(--green-800); color: var(--gold-light); border-color: var(--green-800); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(169,132,60,.3);
  text-align: center; color: var(--muted); font-size: .9rem;
}
.footer-bottom b { color: var(--gold-dark); font-weight: 600; }

/* ============================================================
   PRODUCTS PAGE — toolbar + filters
   ============================================================ */
.page-head {
  background: linear-gradient(160deg, var(--green-800), var(--green-700));
  color: var(--ivory); padding: clamp(2.5rem,6vw,4rem) 0; text-align: center;
}
.page-head h1 { font-family: var(--serif); font-size: clamp(2.4rem,5vw,3.6rem); margin-bottom: .4rem; }
.page-head p { color: #d6ddd0; }

.toolbar {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
  margin: 2rem 0 1.4rem;
}
.search {
  display: flex; align-items: center; gap: .6rem; background: var(--cream);
  border: 1.5px solid rgba(169,132,60,.3); border-radius: 999px; padding: .6rem 1.1rem;
  min-width: min(100%, 340px); flex: 1;
}
.search input { border: none; outline: none; background: none; font-family: inherit; font-size: .95rem; width: 100%; color: var(--ink); }
.search svg { color: var(--gold-dark); flex: none; }
.select {
  border: 1.5px solid rgba(169,132,60,.3); border-radius: 999px; padding: .6rem 1.1rem;
  background: var(--cream); font-family: inherit; font-size: .92rem; color: var(--green-800); outline: none;
}
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .85rem;
  border: 1.5px solid rgba(169,132,60,.35); background: transparent; color: var(--green-800); transition: .2s;
}
.chip:hover { border-color: var(--gold-dark); }
.chip.active { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .star { font-size: 2rem; }
.count { color: var(--muted); font-size: .9rem; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-shell { min-height: 100vh; background: var(--ivory); }
.admin-topbar {
  background: var(--green-900); color: var(--ivory); padding: 1rem 0;
}
.admin-topbar .nav-inner { min-height: auto; }
.admin-topbar .wordmark b { color: var(--ivory); }
.admin-topbar .wordmark small { color: var(--gold-light); }
.admin-topbar .brand-name { color: var(--ivory); }
.admin-main { padding: 2.5rem 0; }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }

.panel { background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.6rem; border: 1px solid rgba(169,132,60,.14); }
.panel h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--green-800); margin-bottom: 1rem; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 500; color: var(--green-800); margin-bottom: .35rem; letter-spacing: .02em; }
.field input, .field select {
  width: 100%; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid rgba(169,132,60,.3);
  background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink); outline: none; transition: .2s;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: .3rem; }

.dropzone {
  border: 2px dashed rgba(169,132,60,.5); border-radius: 14px; padding: 1.2rem; text-align: center;
  color: var(--muted); cursor: pointer; transition: .2s; background: #fff;
}
.dropzone:hover { border-color: var(--gold); background: #fffdf5; }
.dropzone.has { padding: .6rem; }
.dropzone img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 10px; }

.admin-list { display: flex; flex-direction: column; gap: .8rem; }
.admin-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center;
  background: var(--cream); border-radius: 14px; padding: .7rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(169,132,60,.12);
}
.admin-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--ivory-2); }
.admin-row .meta .n { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--green-800); }
.admin-row .meta .s { font-size: .82rem; color: var(--muted); }
.admin-row .acts { display: flex; gap: .4rem; }
.mini {
  border: 1.5px solid rgba(169,132,60,.35); background: #fff; color: var(--green-800);
  border-radius: 10px; padding: .45rem .7rem; font-size: .82rem; transition: .2s;
}
.mini:hover { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }
.mini.danger:hover { background: #a3352b; border-color: #a3352b; }

.login-card { max-width: 400px; margin: 8vh auto; }

.banner { padding: .8rem 1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1rem; }
.banner.info { background: #e9f0e6; color: var(--green-700); border: 1px solid rgba(23,81,47,.2); }
.banner.warn { background: #fdf4e3; color: var(--gold-dark); border: 1px solid rgba(169,132,60,.35); }
.banner.err  { background: #fbe9e7; color: #a3352b; border: 1px solid rgba(163,53,43,.25); }
.banner.ok   { background: #e9f0e6; color: var(--green-700); border: 1px solid rgba(23,81,47,.25); }

.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: sp 0.7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg) } }

.demo-banner {
  background: var(--gold); color: var(--green-900); text-align: center;
  font-size: .85rem; padding: .5rem 1rem; font-weight: 500;
}
.demo-banner a { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { margin-top: 2rem; }
  .float-card.bottom { left: 0; }
  .arch-row { grid-template-columns: repeat(3, 1fr); }
  .arch:nth-child(4), .arch:nth-child(5) { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { max-width: 360px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--ivory); padding: 1rem 1.5rem; gap: 1rem; box-shadow: var(--shadow-md);
  }
  .arch-row { grid-template-columns: repeat(2, 1fr); }
  .arch:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.4rem; }
  .hero-watermark { height: auto; width: 66vw; opacity: .04; }
}
