/* Mama Yellow — Static Site Styles */
:root {
  --color-yellow: #FFF000;
  --color-yellow-soft: #FFFDE0;
  --color-yellow-muted: #FFF9A0;
  --color-yellow-dark: #E6D800;
  --color-black: #111111;
  --color-charcoal: #222222;
  --color-muted: #6B6560;
  --color-warm-white: #FCFBF7;
  --color-cream: #FFFDF5;
  --color-beige: #F5EED8;
  --color-beige-light: #FAF6EC;
  --color-border: #EAE4D4;
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-card: 0 2px 16px 0 rgba(17, 17, 17, 0.06), 0 1px 4px 0 rgba(17, 17, 17, 0.04);
  --shadow-hover: 0 8px 40px 0 rgba(17, 17, 17, 0.11), 0 2px 8px 0 rgba(17, 17, 17, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-warm-white);
  color: var(--color-black);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-black);
}

::selection {
  background-color: var(--color-yellow);
  color: var(--color-black);
}

:focus-visible {
  outline: 2.5px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography utilities */
.font-display { font-family: var(--font-display); }
.text-muted-brand { color: var(--color-muted); }
.text-yellow-dark { color: var(--color-yellow-dark); }
.bg-warm-white { background-color: var(--color-warm-white); }
.bg-cream { background-color: var(--color-cream); }
.bg-beige { background-color: var(--color-beige); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-dark-brand { background-color: var(--color-black); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-yellow-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-highlight {
  position: relative;
  display: inline;
}
.text-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 35%;
  background: var(--color-yellow);
  z-index: -1;
  border-radius: 3px;
  opacity: 0.7;
}

.highlight-underline {
  position: relative;
  display: inline-block;
}
.highlight-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  right: 0;
  height: 12px;
  background: var(--color-yellow);
  z-index: -1;
  border-radius: 3px;
}

/* Buttons */
.btn-yellow {
  background-color: var(--color-yellow);
  color: var(--color-black);
  font-weight: 700;
  border: none;
  border-radius: 50rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.05);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-yellow:hover {
  background-color: var(--color-yellow-dark);
  color: var(--color-black);
  transform: scale(0.98);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-black);
  font-weight: 700;
  border: 2px solid var(--color-black);
  border-radius: 50rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline-dark:hover {
  background-color: var(--color-black);
  color: #fff;
}

.btn-dark {
  background-color: var(--color-black);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-dark:hover {
  background-color: #2c2c2c;
  color: #fff;
}

/* Cards */
.card-premium {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-premium:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  color: inherit;
}
.product-card .product-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-beige);
  overflow: hidden;
}
.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}
.product-card .quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

/* Badges */
.badge-yellow {
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}
.badge-dark {
  background: var(--color-black);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}
.badge-terracotta {
  background: #FDDDD8;
  color: #8B2E1A;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 50rem;
}

/* Stars */
.star-rating svg { flex-shrink: 0; }
.star-rating.sm svg { width: 12px; height: 12px; }
.star-rating.md svg { width: 16px; height: 16px; }
.star-rating.lg svg { width: 20px; height: 20px; }

/* Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: all 0.3s ease;
  padding: 1rem 0;
}
.shop-page .site-header {
  background: rgba(252, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.05);
}
.site-header.scrolled {
  background: rgba(252, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.05);
  padding: 0.5rem 0;
}
.site-header .navbar-brand img {
  height: 40px;
  width: auto;
}
@media (min-width: 576px) {
  .site-header .navbar-brand img { height: 46px; }
}
.nav-link-brand {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-black) !important;
  position: relative;
  white-space: nowrap;
}
.nav-link-brand:hover { color: var(--color-yellow-dark) !important; }
.nav-link-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--color-yellow);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link-brand:hover::after { width: 100%; }

/* Mobile drawer */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.mobile-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-warm-white);
  box-shadow: -8px 0 40px rgba(17, 17, 17, 0.15);
  z-index: 1055;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.show { transform: translateX(0); }
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--color-black);
  color: #fff;
}
.site-footer a {
  color: #A09990;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: #fff; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--color-yellow);
  color: var(--color-black);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero-blob-1 {
  position: absolute;
  top: -128px;
  right: -128px;
  width: 70vw;
  height: 70vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(100px);
  background: radial-gradient(circle at 60% 40%, #FFF000 0%, #FFFDE0 50%, transparent 75%);
  pointer-events: none;
}
.hero-blob-2 {
  position: absolute;
  bottom: -96px;
  left: -96px;
  width: 50vw;
  height: 50vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(80px);
  background: radial-gradient(circle, #F5EED8 0%, #FFFDF5 60%, transparent 80%);
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  border: 1px solid rgba(255, 240, 0, 0.2);
  border-radius: 50%;
  animation: spin-slow 12s linear infinite;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero-pill .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-black);
  animation: pulse 1.5s ease-in-out infinite;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-beige);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 1.8s ease-in-out infinite;
}

/* Tabs */
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.05);
}
.tab-btn:not(.active) {
  background: var(--color-beige);
  color: var(--color-muted);
}
.tab-btn:not(.active):hover {
  background: var(--color-yellow-soft);
  color: var(--color-black);
}

/* Why section cards */
.why-card {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  height: 100%;
}
.why-card:hover {
  border-color: rgba(255, 240, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.why-card:hover h3 { color: var(--color-yellow); }
.why-card:hover .why-icon { transform: scale(1.1); }
.why-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
  display: block;
}

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  color: var(--color-black);
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-yellow-dark); }
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.faq-item.open .faq-toggle {
  background: var(--color-yellow);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s;
  opacity: 0;
}
.faq-item.open .faq-answer {
  opacity: 1;
}

/* Forms */
.form-control-brand {
  padding: 0.875rem 1.25rem;
  border-radius: 50rem;
  border: 2px solid var(--color-border);
  background: #fff;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}
.form-control-brand:focus {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: none;
}
.form-control-brand-square {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-warm-white);
  font-size: 0.875rem;
  width: 100%;
}
.form-control-brand-square:focus {
  outline: none;
  border-color: var(--color-yellow);
}

/* Page header spacing */
.page-header-space { padding-top: 7rem; }

/* Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product detail */
.product-image-main {
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-beige);
  position: sticky;
  top: 6rem;
}
.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benefit-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-badge {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--color-beige);
  border-radius: 12px;
}
.tag-pill {
  padding: 0.25rem 0.75rem;
  background: var(--color-beige);
  color: #6B5432;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50rem;
  text-transform: capitalize;
}

/* Utilities */
.rounded-xl-custom { border-radius: 28px; }
.max-w-7xl { max-width: 80rem; }

/* =========================================================
   Ecommerce: product gallery, cart & guest checkout
   ========================================================= */
.product-gallery {
  position: relative;
}
.product-gallery-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-beige);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: crosshair;
}
.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .2s ease;
}
.product-gallery-main.zoom-active img {
  transform: scale(2);
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}
.product-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--color-border);
  border-radius: 50rem;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.product-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.product-thumbnail {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-beige);
  aspect-ratio: 1 / 1;
  padding: 0;
}
.product-thumbnail.active {
  border-color: var(--color-black);
}
.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50rem;
  overflow: hidden;
  background: #fff;
}
.qty-control button {
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  font-size: 20px;
  line-height: 1;
}
.qty-control input {
  width: 42px;
  border: 0;
  text-align: center;
  font-weight: 700;
  background: transparent;
}
.cart-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 16px;
}
.cart-item-image {
  width: 92px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-beige);
}
.cart-summary {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 24px;
  position: sticky;
  top: 100px;
}
.checkout-shell {
  background: var(--color-warm-white);
}
.checkout-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(252,251,247,.96);
}
.checkout-form-card,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
}
.checkout-summary {
  position: sticky;
  top: 24px;
}
.checkout-product-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.checkout-product-row img {
  width: 58px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--color-beige);
}
.checkout-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 10px;
  font-weight: 900;
  border: 2px solid var(--color-warm-white);
}
.form-label-brand {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-control-brand,
.form-select-brand {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  min-height: 48px;
  background: #fff;
}
.form-control-brand:focus,
.form-select-brand:focus {
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(255,240,0,.28);
}
.cod-option {
  border: 2px solid var(--color-black);
  border-radius: 14px;
  padding: 15px;
  background: var(--color-yellow-soft);
}
.empty-cart {
  border: 1px dashed var(--color-border);
  border-radius: 20px;
  background: var(--color-cream);
}
@media (max-width: 991.98px) {
  .cart-summary, .checkout-summary { position: static; }
}
@media (max-width: 575.98px) {
  .product-thumbnails { gap: 7px; }
  .cart-item-image { width: 72px; height: 88px; }
}

/* Final ecommerce navigation refinements */
#cartBadge.checkout-badge {
  top: -2px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 10px;
  font-weight: 900;
  z-index: 5;
}
.checkout-order-button {
  margin-top: 18px;
}
@media (max-width: 575.98px) {
  #cartBadge.checkout-badge {
    top: -1px;
    right: -2px;
  }
}

/* Working cart / checkout navigation */
.nav-checkout-link {
  color: var(--color-black, #111) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 6px;
  white-space: nowrap;
}
.nav-checkout-link:hover { text-decoration: underline !important; }
#cartBadge.checkout-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50rem;
  background: var(--color-yellow, #fff000);
  color: #111;
  border: 2px solid #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  z-index: 10;
}

#checkoutCartBadge {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50rem;
  background: var(--color-yellow, #fff000);
  color: #111;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}
