/* ==========================================================
   Tohfa Hair Oil — Main Theme CSS
   Compiled from HTML design. No Tailwind CDN dependency.
   ========================================================== */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hind Siliguri', sans-serif;
  background-color: #FFFBF0;
  color: #1a1a1a;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --gold-light:   #F5D060;
  --gold:         #D4AF37;
  --gold-dark:    #8B6914;
  --gold-deeper:  #5C4500;
  --green-dark:   #1B4332;
  --cream:        #FFFBF0;
  --cream-warm:   #FFFDE7;
  --gray-text:    #4b5563;
  --gray-light:   #9ca3af;
  --gray-mid:     #374151;
  --white:        #ffffff;
  --error:        #ef4444;
  --whatsapp:     #25D366;
  --max-w:        1200px;
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    24px;
  --radius-full:  9999px;
  --shadow-gold:  0 4px 18px rgba(212,175,55,0.45);
  --shadow-gold-lg: 0 8px 28px rgba(212,175,55,0.6);
}

/* ── Typography Helpers ───────────────────────────────────── */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 30%, var(--gold) 50%, var(--gold-light) 70%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #1a1a1a;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-gold);
  display: inline-block;
  border: none;
  font-family: inherit;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold-lg); }

.btn-outline {
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  background: transparent;
}
.btn-outline:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }

/* ── Cards ────────────────────────────────────────────────── */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(212,175,55,0.25);
}

/* ── Components ───────────────────────────────────────────── */
.step-circle {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1a1a;
  font-weight: 800;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(212,175,55,0.4);
}

.ingredient-card {
  background: var(--white);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ingredient-card:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFFDE7, #FFF8D6);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(212,175,55,0.2);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deeper);
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ornament-line::before,
.ornament-line::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gold-deeper);
}

/* ── Navbar ───────────────────────────────────────────────── */
#topbar { transition: max-height 0.35s ease; overflow: hidden; }
.navbar-scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }

#profile-dropdown { display: none; }
.pdd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--gray-mid);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.pdd-item:hover { background: rgba(212,175,55,0.07); }
.pdd-icon { width: 16px; text-align: center; flex-shrink: 0; color: var(--gold); }

#mobile-menu { display: none; }
#mobile-menu.open { display: flex !important; }

/* ── Cart Sidebar ─────────────────────────────────────────── */
#cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 55; display: none;
}
#cart-sidebar {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: 380px; max-width: 92vw;
  background: var(--white);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: -6px 0 40px rgba(0,0,0,0.14);
  font-family: 'Hind Siliguri', sans-serif;
}
#cart-sidebar.open { transform: translateX(0); }

@media (min-width: 1024px) {
  #cart-overlay {
    inset: 108px 0 0 0;
    height: calc(100vh - 108px);
  }
  #cart-sidebar {
    top: 108px;
    height: calc(100vh - 108px);
  }
}

.cart-sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--green-dark); flex-shrink: 0;
}
.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-sidebar-footer {
  padding: 18px 22px;
  border-top: 1.5px solid rgba(212,175,55,0.25);
  flex-shrink: 0; background: var(--cream);
}

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--green-dark); color: var(--white);
  font-size: 0.62rem; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-full);
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.cart-badge.visible { display: flex; }

#tohfa-desktop-cart-fab { display: none; }

#cart-toast {
  position: fixed; top: 86px; right: 24px; z-index: 70;
  background: var(--green-dark); color: var(--white);
  font-weight: 700; font-size: 0.88rem;
  padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(27,67,50,0.3);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#cart-toast.show { opacity: 1; transform: translateY(0); }

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }

  #tohfa-desktop-cart-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 46;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0.9rem 1.2rem;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(135deg, #F5D060, #D4AF37, #8B6914);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(212,175,55,0.38);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  #tohfa-desktop-cart-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(212,175,55,0.45);
  }

  #scroll-top-btn {
    right: 34px !important;
    bottom: 94px !important;
  }
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: var(--radius-full); }

/* ── Layout Utilities (compiled from Tailwind) ────────────── */
.container-main { max-width: var(--max-w); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px)  { .container-main { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-main { padding-inline: 2rem; } }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.gap-1 { gap: 0.25rem; } .gap-1-5 { gap: 0.375rem; } .gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }   .gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }  .gap-8 { gap: 2rem; }   .gap-12 { gap: 3rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px)  { .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* Display */
.block { display: block; } .inline-block { display: inline-block; }
.inline-flex { display: inline-flex; } .hidden { display: none; }
@media (min-width: 640px)  { .sm\:flex { display: flex; } .sm\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:flex { display: flex; } .lg\:hidden { display: none; } }

/* Spacing */
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }    .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }    .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }    .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mr-1 { margin-right: 0.25rem; } .mr-2 { margin-right: 0.5rem; } .mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }  .ml-2 { margin-left: 0.5rem; }
.-mt-3 { margin-top: -0.75rem; } .-top-3 { top: -0.75rem; }
.-left-4 { left: -1rem; } .-right-4 { right: -1rem; } .-bottom-2 { bottom: -0.5rem; }

.p-2 { padding: 0.5rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-inline: 0.75rem; } .px-4 { padding-inline: 1rem; } .px-5 { padding-inline: 1.25rem; }
.px-6 { padding-inline: 1.5rem; } .px-8 { padding-inline: 2rem; }
.py-1 { padding-block: 0.25rem; } .py-1-5 { padding-block: 0.375rem; } .py-2 { padding-block: 0.5rem; }
.py-2-5 { padding-block: 0.625rem; } .py-3 { padding-block: 0.75rem; } .py-3-5 { padding-block: 0.875rem; }
.py-4 { padding-block: 1rem; }    .py-12 { padding-block: 3rem; } .py-16 { padding-block: 4rem; }
.py-20 { padding-block: 5rem; }
.pt-28 { padding-top: 7rem; } .pb-4 { padding-bottom: 1rem; }

/* Max-width */
.max-w-xs  { max-width: 20rem; }  .max-w-sm { max-width: 24rem; }
.max-w-lg  { max-width: 32rem; }  .max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }  .max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }  .max-w-6xl { max-width: 72rem; }
.w-full { width: 100%; } .w-px { width: 1px; } .h-px { height: 1px; }
.w-9  { width: 2.25rem; }  .h-9  { height: 2.25rem; }
.w-10 { width: 2.5rem; }   .h-10 { height: 2.5rem; }
.w-14 { width: 3.5rem; }   .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }     .h-16 { height: 4rem; }
.w-48 { width: 12rem; }    .w-52 { width: 13rem; }
.w-72 { width: 18rem; }    .h-72 { height: 18rem; }
.w-96 { width: 24rem; }    .h-96 { height: 24rem; }
.min-w-\[18px\] { min-width: 18px; } .min-w-\[24px\] { min-width: 24px; }
.h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-20 { height: 5rem; }

/* Text */
.text-xs  { font-size: 0.75rem; }   .text-sm  { font-size: 0.875rem; }
.text-base{ font-size: 1rem; }      .text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }   .text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }  .text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
@media (min-width: 640px) {
  .sm\:text-xl  { font-size: 1.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:text-6xl { font-size: 3.75rem; }
}
.font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; } .font-black { font-weight: 900; }
.text-center { text-align: center; } .text-right { text-align: right; }
.leading-tight { line-height: 1.25; } .leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide { letter-spacing: 0.025em; } .uppercase { text-transform: uppercase; }

/* Colors (text) */
.text-white { color: var(--white); }
.text-gold  { color: var(--gold); }

/* Border */
.border   { border: 1px solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-xl   { border-radius: 0.75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }

/* Position */
.relative { position: relative; } .absolute { position: absolute; }
.fixed    { position: fixed; }   .sticky  { position: sticky; }
.inset-0  { inset: 0; } .top-0 { top: 0; } .right-0 { right: 0; } .left-0 { left: 0; }
.bottom-\[28px\] { bottom: 28px; } .bottom-\[24px\] { bottom: 24px; }
.z-40 { z-index: 40; } .z-45 { z-index: 45; } .z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden   { overflow: hidden; }
.overflow-y-auto   { overflow-y: auto; }

/* Opacity / Blur */
.opacity-5  { opacity: 0.05; } .opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.20; } .opacity-30 { opacity: 0.30; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Shadows */
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15)); }

/* Object fit */
.object-contain { object-fit: contain; } .object-cover { object-fit: cover; }

/* Space-y */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Responsive order */
.order-1 { order: 1; } .order-2 { order: 2; }
@media (min-width: 1024px) {
  .lg\:order-1 { order: 1; } .lg\:order-2 { order: 2; }
  .lg\:text-left { text-align: left; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:mx-0 { margin-inline: 0; }
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Blur utility */
.blur-3xl { filter: blur(64px); }
.blur-2xl { filter: blur(40px); }

/* Text columns */
.col-span-2 { grid-column: span 2 / span 2; }

/* Min-height */
.min-h-screen { min-height: 100vh; }

/* Transition */
.transition-colors { transition: color 0.2s ease; }
.transition-all { transition: all 0.3s ease; }

/* Flex direction responsive */
.flex-col { flex-direction: column; }
@media (min-width: 640px) { .sm\:flex-row { flex-direction: row; } }
