/* ══════════════════════════════════════════
   SHARED CSS — Dada Ji Halwai
   Used by index.html, shop.html, blog.html,
   about.html, contact.html
══════════════════════════════════════════ */

/* ── CSS VARIABLES (exact oklch from Lovable) ── */
:root {
  --radius: 0.5rem;
  --background:         oklch(97.2% 0.025 80);
  --foreground:         oklch(32% 0.13 30);
  --card:               oklch(98.5% 0.018 80);
  --card-foreground:    oklch(32% 0.13 30);
  --primary:            oklch(45% 0.18 27);
  --primary-foreground: oklch(97% 0.025 80);
  --secondary:          oklch(82% 0.16 80);
  --secondary-foreground: oklch(28% 0.12 30);
  --muted:              oklch(93% 0.03 75);
  --muted-foreground:   oklch(45% 0.06 40);
  --accent:             oklch(72% 0.18 50);
  --accent-foreground:  oklch(18% 0.05 30);
  --border:             oklch(85% 0.06 60);
  --mehendi:            oklch(48% 0.13 140);
  --ink:                oklch(32% 0.13 30);
  --shadow-warm:  0 20px 60px -20px oklch(45% 0.18 27 / 0.35);
  --shadow-card:  0 10px 30px -10px oklch(32% 0.13 30 / 0.25);
  --shadow-glow:  0 0 60px oklch(72% 0.18 50 / 0.4);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ── ANIMATIONS ── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float-petal {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(8deg); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ripple-anim {
  from { opacity: 0.6; transform: scale(0); }
  to   { opacity: 0;   transform: scale(3); }
}

/* ── UTILITY ── */
.bg-festive {
  background-image: linear-gradient(135deg,
    oklch(72% 0.18 50) 0%, oklch(45% 0.18 27) 50%, oklch(82% 0.16 80) 100%);
}
.bg-paper {
  background-image: radial-gradient(circle at top,
    oklch(98.5% 0.018 80), oklch(94% 0.04 75));
}
.shadow-warm { box-shadow: var(--shadow-warm); }
.shadow-card { box-shadow: var(--shadow-card); }

.card-3d {
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.5s;
}
.card-3d:hover {
  box-shadow: var(--shadow-warm);
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-6px);
}

.ripple-trigger { position: relative; overflow: hidden; }
.ripple-trigger::after {
  content: '';
  background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(255,255,255,0.5), transparent 40%);
  opacity: 0; pointer-events: none; position: absolute; inset: 0;
}
.ripple-trigger:active::after { animation: 0.6s ease-out ripple-anim; }

.story-link { display: inline-block; position: relative; }
.story-link::after {
  content: ''; background: var(--primary); transform-origin: 100%;
  width: 100%; height: 2px; transition: transform 0.3s;
  position: absolute; bottom: -2px; left: 0; transform: scaleX(0);
}
.story-link:hover::after { transform-origin: 0; transform: scaleX(1); }

.reveal { opacity: 0; }
.reveal.in-view {
  animation: 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards reveal-up;
}
.float    { animation: 5s ease-in-out infinite float-petal; }
.spin-slow{ animation: 30s linear infinite spin-slow; }
.marquee-track { animation: 30s linear infinite marquee; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ══════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background-color: oklch(97.2% 0.025 80 / 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.nav-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; }
.nav-brand img { height: 42px; width: auto; }
.brand-bot { font-size: 0.58rem !important; letter-spacing: 0.1em !important; }
.nav-brand-text { line-height: 1; }
.brand-top { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.brand-bot { font-family: 'Yatra One', cursive; font-size: 0.72rem; color: var(--mehendi); letter-spacing: 0.2em; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-family: 'Cinzel', serif; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: oklch(32% 0.13 30 / 0.75); text-decoration: none; transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  border: none; cursor: pointer; display: grid; place-items: center;
  transition: transform 0.2s; box-shadow: var(--shadow-card);
}
.cart-btn:hover { transform: scale(1.05); }
.cart-btn:active { transform: scale(0.95); }
.cart-btn svg { width: 20px; height: 20px; }
.mobile-btn {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; color: var(--foreground); align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════
   MADHUBANI BORDER
══════════════════════════════════════════ */
.madhubani-border {
  width: 100%; height: 28px; position: relative; overflow: hidden;
  background: oklch(82% 0.16 80);
}
.madhubani-border::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent 0, transparent 5px,
    oklch(45% 0.18 27) 5px, oklch(45% 0.18 27) 10px);
  clip-path: polygon(
    0% 0%,2% 100%,4% 0%,6% 100%,8% 0%,10% 100%,12% 0%,14% 100%,
    16% 0%,18% 100%,20% 0%,22% 100%,24% 0%,26% 100%,28% 0%,30% 100%,
    32% 0%,34% 100%,36% 0%,38% 100%,40% 0%,42% 100%,44% 0%,46% 100%,
    48% 0%,50% 100%,52% 0%,54% 100%,56% 0%,58% 100%,60% 0%,62% 100%,
    64% 0%,66% 100%,68% 0%,70% 100%,72% 0%,74% 100%,76% 0%,78% 100%,
    80% 0%,82% 100%,84% 0%,86% 100%,88% 0%,90% 100%,92% 0%,94% 100%,
    96% 0%,98% 100%,100% 0%,100% 100%,0% 100%);
}

/* ══════════════════════════════════════════
   FEATURE TICKER
══════════════════════════════════════════ */
.feature-ticker { background: var(--primary); color: var(--primary-foreground); padding: 20px 0; overflow: hidden; }
.ticker-wrap {
  display: flex; white-space: nowrap; gap: 3rem;
  font-family: 'Cinzel', serif; letter-spacing: 0.3em; font-size: 0.82rem; text-transform: uppercase;
  animation: 30s linear infinite marquee;
}
.ticker-group { display: flex; gap: 3rem; flex-shrink: 0; }
.ticker-group span { flex-shrink: 0; }

/* ══════════════════════════════════════════
   PAGE HEADER (shop / blog / about / contact)
══════════════════════════════════════════ */
.page-header { text-align: center; margin-bottom: 2.5rem; }
.page-header .hindi-label { font-family: 'Yatra One', cursive; font-size: 1.2rem; color: var(--mehendi); }
.page-header h1 { font-family: 'Cinzel', serif; font-size: clamp(2.5rem,6vw,4rem); color: var(--primary); margin-top: 0.5rem; }
.page-header p { color: var(--muted-foreground); margin-top: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.section-divider {
  height: 4px; width: 96px; border-radius: 9999px; margin: 1rem auto 0;
  background-image: linear-gradient(135deg, oklch(72% 0.18 50), oklch(45% 0.18 27), oklch(82% 0.16 80));
}

/* ══════════════════════════════════════════
   PRODUCT CARDS (shared between index + shop)
══════════════════════════════════════════ */
.products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

.product-card {
  background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card);
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.5s;
}
.product-card:hover {
  box-shadow: var(--shadow-warm);
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-6px);
}
.product-card > a { text-decoration: none; color: inherit; display: block; }
.product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--muted); }
.product-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem;
  background: linear-gradient(135deg, oklch(93% 0.04 70), oklch(90% 0.06 65));
  transition: transform 0.7s;
}
.product-card:hover .product-placeholder { transform: scale(1.08); }
.product-badge {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px;
  border-radius: 9999px; background: var(--secondary); color: var(--secondary-foreground);
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.product-body { padding: 1.25rem 1.25rem 0; }
.product-hindi { font-family: 'Yatra One', cursive; font-size: 0.875rem; color: var(--mehendi); }
.product-name { font-family: 'Cinzel', serif; font-size: 1.2rem; color: var(--foreground); margin-top: 4px; }
.product-tagline { font-size: 0.75rem; color: var(--muted-foreground); font-style: italic; margin-top: 4px; }
.product-meta { display: flex; align-items: center; gap: 4px; margin-top: 0.5rem; font-size: 0.75rem; }
.star-svg { width: 14px; height: 14px; fill: oklch(82% 0.16 80); color: oklch(82% 0.16 80); flex-shrink: 0; }
.rating-val { font-weight: 600; }
.review-ct { color: var(--muted-foreground); }
.product-wt { margin-left: auto; color: var(--muted-foreground); }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem 1.25rem; }
.product-price { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.add-btn {
  height: 40px; padding: 0 1rem; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  border: none; font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; transition: transform 0.2s; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
}
.add-btn::after {
  content: ''; background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(255,255,255,0.5), transparent 40%);
  opacity: 0; pointer-events: none; position: absolute; inset: 0;
}
.add-btn:hover { transform: scale(1.05); }
.add-btn:active { transform: scale(0.95); }
.add-btn:active::after { animation: 0.6s ease-out ripple-anim; }
.add-btn svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { margin-top: 6rem; }
.footer-main { background: var(--primary); color: var(--primary-foreground); }
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 3.5rem 1rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-brand-name { font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700; }
.footer-brand-hindi { font-family: 'Yatra One', cursive; font-size: 1.1rem; color: var(--secondary); margin-top: 4px; }
.footer-desc { margin-top: 1rem; font-size: 0.875rem; opacity: 0.9; }
.footer-col-title {
  font-family: 'Cinzel', serif; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--secondary); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: inherit; text-decoration: none; opacity: 0.85; transition: color 0.2s, opacity 0.2s; }
.footer-links a:hover { color: var(--secondary); opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-row { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.footer-contact-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--secondary); color: var(--secondary-foreground);
  display: grid; place-items: center; text-decoration: none; transition: transform 0.2s;
}
.social-btn:hover { transform: scale(1.1); }
.social-btn svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid oklch(97% 0.025 80 / 0.2); padding: 1.25rem 1rem; text-align: center; font-size: 0.75rem; opacity: 0.8; }

/* ══════════════════════════════════════════
   MOBILE NAV MENU
══════════════════════════════════════════ */
.mobile-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 80px; left: 0; right: 0; z-index: 100;
  background: oklch(97.2% 0.025 80 / 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border);
  padding: 0 1.5rem; gap: 0;
  box-shadow: 0 8px 24px oklch(32% 0.13 30 / 0.12);
  max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.2,0.8,0.2,1), opacity 0.25s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 400px; opacity: 1; pointer-events: all; padding: 1rem 1.5rem 1.5rem; }
.mobile-menu a {
  font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 500;
  color: var(--foreground); text-decoration: none;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em; transition: color 0.2s, transform 0.15s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--primary); }
.mobile-menu a:active { transform: translateX(6px); color: var(--primary); }
.mobile-nav-overlay {
  position: fixed; top: 80px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: oklch(32% 0.13 30 / 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

/* ══════════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  height: 64px;
  background: oklch(97.2% 0.025 80 / 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px oklch(32% 0.13 30 / 0.08);
  align-items: stretch; padding: 0 0.25rem;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted-foreground);
  font-family: 'Cinzel', serif; font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent; padding: 0.35rem 0;
}
.bottom-nav-item svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.15s; }
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item.active svg { transform: scale(1.12); }
.bottom-nav-item:active { transform: scale(0.88); color: var(--primary); }
.bottom-nav-cart-wrap { position: relative; display: inline-flex; }
#bottomCartBadge {
  position: absolute; top: -5px; right: -9px;
  background: #c0392b; color: #fff; border-radius: 50%;
  width: 16px; height: 16px; font-size: 0.55rem; font-weight: 700;
  display: none; align-items: center; justify-content: center; line-height: 1;
  border: 1.5px solid oklch(97.2% 0.025 80);
}
#bottomCartBadge.visible { display: flex; }

/* ══════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed; right: 20px; bottom: 80px; z-index: 49;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px oklch(45% 0.18 27 / 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top-btn.visible { opacity: 1; pointer-events: all; }
.scroll-top-btn:active { transform: scale(0.9); }
.scroll-top-btn svg { width: 18px; height: 18px; }
@media (min-width: 769px) { .scroll-top-btn { bottom: 24px; right: 24px; } }

/* ══════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════ */
.djh-toast-wrap {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; align-items: center;
  gap: 8px; pointer-events: none;
}
.djh-toast {
  background: oklch(32% 0.13 30 / 0.92); color: #fff;
  padding: 0.6rem 1.25rem; border-radius: 9999px;
  font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: toast-in 0.3s cubic-bezier(0.2,0.8,0.2,1) forwards;
  white-space: nowrap;
}
.djh-toast.out { animation: toast-out 0.3s ease forwards; }
.djh-toast.success { background: oklch(40% 0.15 140 / 0.92); }
.djh-toast.error   { background: oklch(45% 0.2 25 / 0.92); }
@keyframes toast-in  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-out { from { opacity:1; } to { opacity:0; transform:translateY(-8px); } }
@media (min-width: 769px) { .djh-toast-wrap { bottom: 40px; } }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav   { display: none; }
  .mobile-btn { display: flex; }
  .bottom-nav { display: flex; }
  body        { padding-bottom: 70px; }
}
@media (max-width: 540px) {
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { text-align: center; }
  .footer-social { justify-content: center; }
}
@media (max-width: 480px) {
  .product-name  { font-size: 0.95rem; }
  .product-price { font-size: 1.15rem; }
  .product-body  { padding: 0.85rem 0.85rem 0; }
  .product-footer { padding: 0.7rem 0.85rem 0.85rem; }
  .add-btn { height: 34px; padding: 0 0.7rem; font-size: 0.8rem; }
  .product-hindi { font-size: 0.78rem; }
  .product-tagline { font-size: 0.68rem; }
}
@media (hover: none) {
  .product-card:active { transform: scale(0.97) !important; }
  .add-btn:active      { transform: scale(0.93) !important; }
}
