/* ============ VRUNDARTS — brand stylesheet ============ */
:root {
  --cream: #f7f2e9;
  --ivory: #fffaf2;
  --ink: #241a12;
  --brown: #3a2a1e;
  --brown-soft: #6d5a48;
  --gold: #c29a4b;
  --gold-soft: #e2c98f;
  --danger: #b3402f;
  --whatsapp: #25d366;
  --wa-dark: #128c7e;
  --shadow: 0 10px 30px rgba(36, 26, 18, 0.10);
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
}
* { 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;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
em { color: var(--gold); font-style: italic; }
.muted { color: var(--brown-soft); }
.center { text-align: center; }
.s { text-decoration: line-through; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 500; font-size: .95rem; transition: all .2s ease; background: transparent;
}
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--brown); transform: translateY(-1px); }
.btn-ghost { border-color: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-whatsapp {
  background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; font-weight: 600;
}
.btn-whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- announcement + header ---------- */
.announce {
  background: var(--ink); color: var(--gold-soft); font-size: .78rem;
  text-align: center; padding: .45rem .8rem; letter-spacing: .04em;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 242, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 42, 30, .08);
}
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; }
.brand-thin { font-weight: 400; color: var(--gold); }
.nav { display: flex; gap: 1.6rem; }
.nav-link { font-size: .9rem; font-weight: 500; color: var(--brown); position: relative; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--gold); transition: width .25s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.header-actions { display: flex; gap: .4rem; align-items: center; }
.icon-btn {
  background: none; border: none; font-size: 1.25rem; padding: .35rem .5rem;
  border-radius: 8px; position: relative; color: var(--ink);
}
.icon-btn:hover { background: rgba(58,42,30,.06); }
.cart-count {
  position: absolute; top: -2px; right: -2px; background: var(--danger); color: #fff;
  font-size: .62rem; min-width: 17px; height: 17px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 600;
}
.menu-toggle { display: none; font-size: 1.4rem; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 85% 20%, rgba(226,201,143,.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(226,201,143,.25), transparent 50%),
    var(--cream);
}
.eyebrow { font-size: .72rem; letter-spacing: .3em; color: var(--brown-soft); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); margin-bottom: 1rem; }
.hero-sub { color: var(--brown-soft); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.4rem; color: var(--brown); }
.hero-stats span { font-size: .78rem; color: var(--brown-soft); }
.hero-collage { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: auto auto; gap: 1rem; }
.hero-collage img {
  border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover;
  width: 100%; height: 100%;
}
.hero-collage img:first-child { grid-row: 1 / 3; }
.hero-collage img:nth-child(3) { grid-column: 2; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem); }
.section-cream { background: var(--cream); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-align: center; margin-bottom: .6rem; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--brown-soft); margin-bottom: 2.5rem; }

/* categories */
.category-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.category-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.category-card:hover img { transform: scale(1.06); }
.category-label {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(36,26,18,.85)); color: var(--ivory);
  display: flex; flex-direction: column;
}
.category-label strong { font-family: var(--serif); font-size: 1.3rem; }
.category-label span { font-size: .75rem; opacity: .85; }

/* product cards */
.product-grid {
  display: grid; gap: 1.4rem; margin-bottom: 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
}
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(36,26,18,.16); }
.product-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--cream); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge-off, .badge-video, .badge-fav {
  position: absolute; z-index: 2; font-size: .7rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px;
}
.badge-off { top: 10px; left: 10px; background: var(--danger); color: #fff; }
.badge-fav { top: 10px; right: 10px; background: var(--gold); color: #fff; }
.badge-video { bottom: 10px; right: 10px; background: rgba(36,26,18,.75); color: #fff; }
.product-body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-cat { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.product-body h3 { font-size: 1.15rem; }
.product-body h3 a:hover { color: var(--brown); }
.product-pricing { display: flex; gap: .6rem; align-items: baseline; }
.product-pricing strong { font-size: 1.05rem; }
.product-body .btn { margin-top: auto; }

/* about */
.about-inner {
  max-width: 900px; margin: 0 auto; display: flex; gap: 2.5rem; align-items: center;
}
.about-logo { width: 130px; flex-shrink: 0; border-radius: 50%; box-shadow: var(--shadow); }
.about p { margin-bottom: .8rem; color: var(--brown); }

/* instagram */
.insta-grid {
  display: grid; gap: .8rem; margin-bottom: 2.2rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.insta-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.insta-tile:hover img { transform: scale(1.08); }
.insta-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .4rem;
  align-items: center; justify-content: center; color: #fff; font-size: .72rem; text-align: center;
  background: rgba(36,26,18,.45); opacity: 0; transition: opacity .3s; padding: .5rem;
}
.insta-tile:hover .insta-overlay { opacity: 1; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ivory); padding: 3rem clamp(1rem,5vw,4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { width: 72px; border-radius: 50%; margin-bottom: .8rem; }
.footer h4 { color: var(--gold-soft); margin-bottom: .8rem; font-size: 1.05rem; }
.footer a { display: block; padding: .25rem 0; color: rgba(255,250,242,.75); font-size: .9rem; }
.footer a:hover { color: var(--gold-soft); }
.footer-note {
  border-top: 1px solid rgba(255,250,242,.12); padding-top: 1.2rem;
  text-align: center; font-size: .78rem; color: rgba(255,250,242,.55);
}

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(36,26,18,.45); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 100vw); z-index: 100;
  background: var(--ivory); box-shadow: -10px 0 40px rgba(36,26,18,.25);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
body.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.cart-open .cart-drawer { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid rgba(58,42,30,.1);
}
.drawer-head h3 { font-size: 1.4rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { text-align: center; color: var(--brown-soft); margin-top: 3rem; }
.cart-item { display: flex; gap: .9rem; align-items: flex-start; }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.qty-row { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.qty-row button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(58,42,30,.25);
  background: #fff; font-size: .95rem; line-height: 1;
}
.qty-row .link-danger { border: none; background: none; color: var(--danger); font-size: .78rem; width: auto; }
.drawer-foot { padding: 1.1rem 1.3rem 1.4rem; border-top: 1px solid rgba(58,42,30,.1); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: .9rem; font-size: 1.05rem; }
.cart-hint { font-size: .75rem; margin-top: .6rem; text-align: center; }

/* ---------- mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; background: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transform: translateX(-105%); transition: transform .35s ease;
}
.mobile-nav a { font-family: var(--serif); font-size: 1.7rem; }
body.nav-open .mobile-nav { transform: none; }
.mobile-nav .close { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.5rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--ivory); padding: .7rem 1.4rem; border-radius: 999px;
  font-size: .85rem; z-index: 150; transition: transform .3s; pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%); }

/* ---------- shop page ---------- */
.page-head { padding: 2rem clamp(1rem,5vw,4rem) 0; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.shop-layout {
  display: grid; grid-template-columns: 250px 1fr; gap: 2rem;
  padding: 2rem clamp(1rem,5vw,4rem) 4rem;
}
.filters { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 1.6rem; }
.filter-block h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brown-soft); margin-bottom: .7rem; }
.filter-block button {
  display: block; width: 100%; text-align: left; padding: .45rem .7rem; border: none;
  background: none; border-radius: 8px; font-size: .9rem; color: var(--brown);
}
.filter-block button:hover { background: var(--cream); }
.filter-block button.active { background: var(--ink); color: var(--ivory); }
.filter-block select, .filter-block input {
  width: 100%; padding: .6rem .8rem; border: 1px solid rgba(58,42,30,.25);
  border-radius: 10px; font-family: inherit; background: #fff; font-size: .9rem;
}
.empty-note { text-align: center; color: var(--brown-soft); padding: 3rem 1rem; }

/* ---------- product detail ---------- */
.breadcrumbs { padding: 1.2rem clamp(1rem,5vw,4rem) 0; font-size: .88rem; }
.breadcrumbs a:hover { text-decoration: underline; }
.pdp {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.5rem clamp(1rem,5vw,4rem) 4rem;
}
.pdp-stage {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--cream); box-shadow: var(--shadow);
}
.pdp-stage img, .pdp-stage video { width: 100%; height: 100%; object-fit: cover; }
.pdp-stage video { display: none; }
.play-badge {
  position: absolute; inset: auto 0 0 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; border: none; background: rgba(36,26,18,.8); color: #fff; font-size: 1.4rem;
}
.stage-empty { display: grid; place-items: center; height: 100%; color: var(--brown-soft); }
.pdp-thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden; position: relative;
  border: 2px solid transparent; background: var(--cream); padding: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active { border-color: var(--gold); }
.pdp-thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .7rem; background: rgba(36,26,18,.55); color: #fff; }
.pdp-info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .3rem 0 .8rem; }
.pdp-pricing { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem; }
.pdp-price { font-size: 2rem; font-family: var(--serif); }
.off-tag { background: var(--gold); color: #fff; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; font-weight: 600; }
.pdp-desc { color: var(--brown); margin-bottom: 1.2rem; }
.pdp-stock { font-size: .85rem; margin-bottom: 1.4rem; color: #1f7a3d; }
.pdp-stock.oos { color: var(--danger); }
.pdp-actions { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.qty-picker { display: flex; align-items: center; gap: .8rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: .2rem .8rem; }
.qty-picker button { background: none; border: none; font-size: 1.2rem; }
.qty-picker span { min-width: 1.4rem; text-align: center; font-weight: 600; }
.pdp-trust {
  display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.6rem;
  color: var(--brown-soft); font-size: .8rem; border-top: 1px dashed rgba(58,42,30,.25); padding-top: 1.2rem;
}

/* ===================== ADMIN PORTAL ===================== */
.admin-body { background: #efe9de; font-family: var(--sans); }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.admin-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
.admin-hero { text-align: center; margin-bottom: 1.6rem; }
.admin-hero img { width: 84px; border-radius: 50%; margin-bottom: .6rem; box-shadow: var(--shadow); }
.admin-hero h1 { font-size: 1.6rem; }
.admin-hero p { color: var(--brown-soft); font-size: .88rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; color: var(--brown); }
.field input, .field textarea, .field select {
  width: 100%; padding: .65rem .8rem; border: 1px solid rgba(58,42,30,.3);
  border-radius: 10px; font-family: inherit; font-size: .92rem; background: #fffdf9;
}
.field textarea { min-height: 100px; resize: vertical; }
.err { color: var(--danger); font-size: .82rem; margin: .5rem 0; }
.admin-topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--ink); color: var(--ivory); padding: .8rem 1.4rem; border-radius: 16px;
  margin-bottom: 1.4rem;
}
.admin-topbar img { width: 38px; border-radius: 50%; }
.admin-topbar strong { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .08em; }
.admin-topbar .spacer { flex: 1; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-light { background: rgba(255,250,242,.12); border-color: rgba(255,250,242,.3); color: var(--ivory); }
.admin-product-row {
  display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 12px;
  padding: .7rem 1rem; margin-bottom: .7rem; box-shadow: 0 3px 12px rgba(36,26,18,.07);
}
.admin-product-row img.thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.row-info { flex: 1; min-width: 0; }
.row-info strong { display: block; font-size: .95rem; }
.row-info .muted { font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.row-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.dropzone {
  border: 2px dashed rgba(58,42,30,.4); border-radius: 12px; padding: 1.3rem;
  text-align: center; color: var(--brown-soft); font-size: .85rem; cursor: pointer;
  background: #fffdf9; margin-bottom: .5rem; transition: all .2s;
}
.dropzone.drag { border-color: var(--gold); background: #fdf6e7; }
.upload-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.upload-thumb { position: relative; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.upload-thumb img, .upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff; font-size: .7rem; line-height: 1;
}
.check-row { display: flex; align-items: center; gap: .5rem; margin: .8rem 0; font-size: .9rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat-card { background: #fff; border-radius: 12px; padding: 1rem 1.2rem; box-shadow: 0 3px 12px rgba(36,26,18,.07); }
.stat-card strong { font-size: 1.6rem; font-family: var(--serif); display: block; }
.stat-card span { font-size: .75rem; color: var(--brown-soft); letter-spacing: .1em; text-transform: uppercase; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-collage { max-width: 560px; margin: 0 auto; width: 100%; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
  .filter-block { min-width: 200px; flex: 1; }
  .filter-block > div { display: flex; flex-wrap: wrap; gap: .3rem; }
  .filter-block > div button { width: auto; }
  .pdp { grid-template-columns: 1fr; }
  .about-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 1.4rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
  .product-body { padding: .7rem .8rem 1rem; }
  .product-body h3 { font-size: .98rem; }
  .btn { padding: .7rem 1.2rem; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-actions { flex-direction: column; align-items: stretch; }
  .qty-picker { justify-content: center; }
  .admin-product-row { flex-wrap: wrap; }
}
