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

/* 
  MADHAVI STORES - CORE DESIGN SYSTEM
  Static CSS - No Build Step Required
*/

:root {
  --primary: #181818;
  --secondary: #b8986e;
  --accent: #d44d44;
  --silk: #f0ebe3;
  --white: #ffffff;
  --muted: #888888;
  --border: #e5e5e5;
}

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

body {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  background-color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', serif;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
}

/* Colors & Spacing Utilities */
.bg-silk { background-color: var(--silk) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted { color: var(--muted) !important; }
.text-white { color: var(--white) !important; }

.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }

.mb-1 { margin-bottom: 4px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }

.space-y-2 > * + * { margin-top: 8px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }

/* ── COMPONENTS ────────────────────────── */

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--secondary);
  color: var(--primary);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  display: inline-block;
  padding: 16px 32px;
  background: var(--white);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background: var(--silk);
}

/* Product Card */
.pcard {
  position: relative;
  transition: transform 0.3s ease;
}

.pcard-img {
  position: relative;
  overflow: hidden;
  background-color: var(--silk);
  aspect-ratio: 3/4;
}

.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.pcard:hover .pcard-img img {
  transform: scale(1.05);
}

.pcard-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pcard-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.pcard:hover .pcard-wish {
  opacity: 1;
  transform: translateY(0);
}

.pcard-quick {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(24,24,24,0.9);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.pcard:hover .pcard-quick {
  transform: translateY(0);
}

.disc-badge {
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
}

/* Sections */
.section-title {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-display {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  font-style: italic;
}
.price-display.line-through {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-display {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary);
  font-style: italic;
}
.price-display.line-through {
  font-size: 1.25rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* ── LAYOUT ────────────────────────────── */

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.block { display: block; }
.hidden { display: none; }

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 1024px) {
  /* On tablet, keep 12 column system but reduce gap if needed */
  .grid-12 { gap: 32px; }
}

@media (max-width: 768px) {
  .grid-12 { grid-template-columns: 1fr; }
  .lg\:col-span-4, .lg\:col-span-2, .lg\:col-span-3, .lg\:col-span-12, .lg\:col-span-5, .lg\:col-span-7 { grid-column: span 12 / span 12; }
}

@media (min-width: 1025px) {
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
  .lg\:col-start-6 { grid-column-start: 6; }
}

/* Navbar utilities */
#strip {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

#strip-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.5;
}

#site-nav {
  height: 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--primary);
  padding: 10px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 999px;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-pill:hover { background: #eeeeee; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navbar icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.icon-btn:hover { color: var(--secondary); }

/* Hide on mobile */
.hidden-mob { display: none; }

@media (min-width: 1024px) {
  .hidden-mob { display: inline-flex; }
}

/* Hamburger toggle */
.mob-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mob-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--primary);
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .mob-toggle { display: none; }
}

/* Nav left link spacing */
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Drawer backdrop */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Search box */
.search-box {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  padding: 24px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box.open {
  transform: translateY(0);
}

/* Trending tags in search */
.trend-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #f5f5f5;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.trend-tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile slide-in panel */
.mob-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--white);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}

.mob-panel.open {
  transform: translateX(0);
}

/* Mobile Bottom Drawer */
.mob-drawer-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--vh, 1vh) * 85);
  background: var(--white);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.mob-drawer-bottom.open {
  transform: translateY(0);
}

/* Value Bar */
.value-bar {
  background: #faf8f5;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.value-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .value-bar .wrap { overflow-x: auto; padding-bottom: 10px; }
  .value-item { flex-shrink: 0; }
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── HOME SPECIFIC ─────────────────────── */

/* Hero */
.hero-slide {
  position: relative;
  height: clamp(500px, calc(var(--vh, 1vh) * 80), 800px);
  background: var(--primary);
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Categories */
.grid-cats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.grid-cats::-webkit-scrollbar { display: none; }

.cat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 100px;
}

.cat-pill-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--silk);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.cat-pill:hover .cat-pill-img { transform: scale(1.05); }
.cat-pill-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-pill span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-align: center;
}

/* Banners */
.dual-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.banner-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--silk);
  text-decoration: none;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.banner-card:hover img { transform: scale(1.03); }
.banner-card-overlay { position: absolute; inset: 0; }
.banner-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 40px;
  color: var(--white);
}

.dual-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .dual-banner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .dual-banner { grid-template-columns: 1fr; }
}

/* Promo */
.promo-banner {
  position: relative;
  height: 400px;
  background: var(--primary);
  overflow: hidden;
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,24,24,0.4);
}

.promo-inner {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}

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

@media (max-width: 768px) {
  .lookbook-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Newsletter */
.newsletter-form {
  display: flex;
  background: var(--white);
  padding: 4px;
  width: 100%;
  max-width: 480px;
}

/* Footer Utilities */
.text-white\/50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-white\/30 { color: rgba(255, 255, 255, 0.3) !important; }
.text-white\/20 { color: rgba(255, 255, 255, 0.2) !important; }
.text-white\/25 { color: rgba(255, 255, 255, 0.25) !important; }
.placeholder-white\/25::placeholder { color: rgba(255, 255, 255, 0.25) !important; }

.border-white\/15 { border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important; }
.border-white\/5 { border-top: 1px solid rgba(255, 255, 255, 0.05) !important; }

.italic { font-style: italic; }
.leading-relaxed { line-height: 1.625; }

footer a { text-decoration: none; }
footer ul { list-style: none; }

/* ─────────────────────────────────────────────────────────────────
   ADMIN DASHBOARD — FONT SCALE OVERRIDE
   .admin-content wraps the entire admin page content area.
   Bumps all the tiny micro-size Tailwind classes to comfortable
   reading sizes without affecting the storefront at all.
──────────────────────────────────────────────────────────────── */

/* Base font size for the whole admin content area */
.admin-content {
  font-size: 15px;
  line-height: 1.65;
}

/* Headings inside admin */
.admin-content h1 { font-size: 2rem; }
.admin-content h2 { font-size: 1.35rem; }
.admin-content h3 { font-size: 1.15rem; }
.admin-content h4 { font-size: 1rem; }

/* Tailwind text size overrides — scaled up for legibility */
.admin-content .text-xs    { font-size: 13px !important; line-height: 1.5 !important; }
.admin-content .text-sm    { font-size: 15px !important; line-height: 1.55 !important; }
.admin-content .text-base  { font-size: 16px !important; }
.admin-content .text-lg    { font-size: 18px !important; }
.admin-content .text-xl    { font-size: 20px !important; }
.admin-content .text-2xl   { font-size: 24px !important; }
.admin-content .text-3xl   { font-size: 28px !important; }

/* Arbitrary tiny sizes from Tailwind JIT — map them up */
/* text-[9px]  → 12px */
/* text-[10px] → 12px */
/* text-[11px] → 13px */
/* text-[12px] → 14px */
/* Since these render as inline styles we target by approximate
   size: the labels, badges and eyebrows mostly use font-weight
   and tracking, so we reset the base and let the above handle it */

/* Labels and badge text inside forms / cards */
.admin-content label,
.admin-content th,
.admin-content .eyebrow,
.admin-content .uppercase.tracking-wider,
.admin-content .uppercase.tracking-widest {
  font-size: 12px !important;
  letter-spacing: 0.12em;
}

/* Table cells, list items */
.admin-content td,
.admin-content li {
  font-size: 14px !important;
  line-height: 1.6;
}

/* Input, select, textarea */
.admin-content input,
.admin-content select,
.admin-content textarea {
  font-size: 14px !important;
}

/* Buttons */
.admin-content .btn-primary,
.admin-content .btn-secondary,
.admin-content button[type="submit"] {
  font-size: 12px !important;
}

/* Monospace order numbers / coupon codes */
.admin-content .font-mono {
  font-size: 14px !important;
}

/* Stat numbers */
.admin-content .text-3xl.font-display {
  font-size: 2rem !important;
}
