:root {
  --primary: #750303;
  /* Deep Red from Image 1 */
  --secondary: #a52a2a;
  /* Rich Burgundy/Brownish-Red */
  --accent: #d4af37;
  /* Gold/Yellow for premium feel */
  --highlight: #750303;
  /* Darker Red */
  --light: #f7f2ee;
  /* Cream from Image 2 */
  --text-dark: #3e2723;
  /* Very Dark Brown-Red for text */
  --text-light: #f7f2ee;
  --footer-bg: #750303;
  /* Matches Primary Red */
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Yeseva One', serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--text-dark);
  overflow-x: hidden;
  width: 100% !important;
  position: relative;
}

html {
  overflow-x: hidden;
  width: 100%;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-display);
}

.brand {
  font-size: 2.2rem;
  letter-spacing: -1px;
  color: var(--primary);
  /* Changed to primary color for white header */
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: transparent !important;
  padding: 0;
  border-radius: 0;
  transition: all 0.3s ease;
}

.brand img {
  height: 65px;
  /* Increased from 50px */
  display: block;
}

.brand span {
  font-weight: 700;
  margin-top: -4px;
  /* Tiny adjustment for baseline alignment with logo */
}

@media (max-width: 480px) {
  .brand img {
    height: 40px;
  }
  
  header {
    padding: 0.6rem 3% !important;
  }
  
  .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
}

/* Navbar */
header {
  background-color: white !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

/* Simplified header states since it's always white */
header.header-scrolled {
  padding: 0.7rem 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
  }
  
  header #mobileMenuBtn {
    justify-self: start;
  }
  
  header .brand {
    justify-self: center;
    margin: 0 auto;
  }
  
  header div:last-child {
    justify-self: end;
  }
}

header.header-light .brand {
  color: #3E2723 !important;
  /* Deep Chocolate Brown */
}

header.header-light .icon-btn:not(.yellow) {
  background: #f5f5f5 !important;
  color: #3E2723 !important;
}

.icon-btn {
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.icon-btn.yellow {
  background: var(--accent);
}

.icon-btn:hover {
  transform: scale(1.1);
}

/* Wavy Dividers using SVG */
/* 
  Path for down-scallop: M0,0 A30,30 0 0,0 60,0 Z
  Sweep flag 0 goes counter-clockwise, which from (0,0) to (60,0) goes down to y=30.
*/
.scallop-down {
  width: 100%;
  height: 31px; /* Increased by 1px for overlap */
  background-repeat: repeat-x;
  background-size: 60px 30px;
  position: absolute;
  top: -1px; /* Slight overlap to prevent gap */
  left: 0;
  z-index: 10;
}

/* 
  Path for up-scallop: M0,30 A30,30 0 0,1 60,30 Z 
  From (0,30) to (60,30) with positive sweep goes up to y=0.
*/

.products-grid:empty {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 250, 244, 0.5);
  border-radius: 30px;
  border: 1px dashed #ddd;
}

.products-grid:empty::before {
  content: "Preparing the Finest Treats!";
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.products-grid:empty::after {
  content: "Our artisans are currently crafting fresh batches of your favorites. Please check back with us soon!";
  display: block;
  color: #666;
  font-size: 1.1rem;
  max-width: 500px;
  line-height: 1.6;
}

.scallop-up {
  width: 100%;
  height: 31px; /* Increased by 1px for overlap */
  background-repeat: repeat-x;
  background-size: 60px 30px;
  position: absolute;
  top: -30px;
  margin-top: 1px; /* Ensure 1px overlap into the section below */
  left: 0;
  z-index: 10;
}

.bg-brown-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-burgundy-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='%23a52a2a'/%3E%3C/svg%3E");
}

.bg-yellow-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='%23d4af37'/%3E%3C/svg%3E");
}

.bg-brown-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-footer-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-yellow-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23d4af37'/%3E%3C/svg%3E");
}

.bg-dark-green-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-dark-green-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-red-scallop-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-red-scallop-down {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='%23750303'/%3E%3C/svg%3E");
}

.bg-light-up {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='%23f7f2ee'/%3E%3C/svg%3E");
}

/* Video Scallops */
.video-scallop {
  width: 100%;
  height: 30px;
  position: absolute;
  left: 0;
  z-index: 20;
  overflow: hidden;
  pointer-events: none;
}

.video-scallop.scallop-down {
  top: 0;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
  mask-size: 60px 30px;
  -webkit-mask-size: 60px 30px;
}

.video-scallop.scallop-up {
  top: -30px;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E");
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
  mask-size: 60px 30px;
  -webkit-mask-size: 60px 30px;
}

.video-scallop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
}

/* ===== HERO – Premium Split Layout ===== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 750px;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;

  /* Wavy bottom scallop mask */
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-size: 60px 30px, 100% calc(100% - 28px);
  -webkit-mask-position: bottom, top;
  -webkit-mask-repeat: repeat-x, no-repeat;
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,0 A30,30 0 0,0 60,0 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-size: 60px 40px, 100% calc(100% - 38px);
  mask-position: bottom, top;
  mask-repeat: repeat-x, no-repeat;
}

@media (max-width: 768px) {
  .hero-video-section {
    -webkit-mask-size: 40px 20px, 100% calc(100% - 18px);
    mask-size: 40px 20px, 100% calc(100% - 18px);
  }
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(10, 4, 0, 0.88) 0%,
      rgba(40, 10, 5, 0.65) 45%,
      rgba(10, 4, 0, 0.15) 100%);
  z-index: 1;
}

/* --- Hero Content (main left panel) --- */
.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: flex-start; /* Changed from center to flex-start for safe centering */
  justify-content: flex-start; /* Aligned left for desktop */
  padding: 0 7%;
  padding-top: var(--header-h, 120px); /* increased base buffer */
  padding-bottom: 80px; /* increased bottom padding to avoid overlap with trust strip */
}

.hero-left {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligned left */
  text-align: left; /* Aligned left */
  margin-top: auto;
  margin-bottom: auto;
}

/* Eyebrow / Tagline above title */
.hero-eyebrow {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
  opacity: 0;
  animation: heroFadeInDown 0.8s forwards 0.2s;
}

/* Main title – huge serif stacked */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0,0,0,0.6);
  margin-bottom: 30px;
  text-align: left; /* Explicitly left */
  opacity: 0;
  animation: heroFadeInUp 1s forwards 0.4s;
}

.hero-title .accent-text {
  display: block;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

/* Row: circular seal + subtitle text */
.hero-mid-row {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Aligned left */
  gap: 22px;
  margin-bottom: 38px;
  opacity: 0;
  animation: heroFadeInUp 1s forwards 0.7s;
}

/* SVG Circular Seal */
.hero-seal {
  flex-shrink: 0;
}
.seal-svg {
  width: 90px;
  height: 90px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  text-align: left;
}

/* CTA Buttons */
.hero-btns {
  display: flex;
  justify-content: flex-start; /* Aligned left */
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: heroFadeInUp 1s forwards 1s;
}

.hero-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(117,3,3,0.5);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.hero-primary-btn:hover {
  background: #a00;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(117,3,3,0.6);
}

.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.hero-secondary-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-3px);
}

/* --- Trust Badge Strip at Bottom --- */
.hero-trust-strip {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212,175,55,0.25);
  padding: 18px 6% 45px; /* Increased bottom padding for scallop mask */
  flex-wrap: wrap;
  flex-shrink: 0;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 6px 24px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.trust-badge-item i {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}
.trust-badge-item span {
  color: rgba(255,255,255,0.75);
}
.trust-badge-item span strong {
  display: block;
  color: #fff;
  font-size: 0.87rem;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(212,175,55,0.3);
  flex-shrink: 0;
}

/* Highlighted count badge */
.trust-badge-item--highlight {
  background: rgba(212,175,55,0.12);
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.4);
  padding: 8px 20px;
}
.trust-count-wrap {
  text-align: center;
}
.trust-count {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.trust-count-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.trust-stars {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 3px;
  letter-spacing: 1px;
}

/* --- Keyframes --- */
@keyframes heroFadeInDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shine {
  to { background-position: 200% center; }
}

/* Desktop Extension for zoom & large screens */
@media (min-width: 1200px) {
  .hero-video-section {
    min-height: 850px; /* Give it even more height on large desktops */
  }
  .hero-content {
    padding-top: calc(var(--header-h, 120px) + 40px);
  }
}

/* --- Mobile Responsive: <= 768px --- */
@media (max-width: 768px) {
  .hero-video-section {
    height: 100svh;
    min-height: 560px;
  }
  .hero-content {
    padding: 0 5%;
    padding-top: var(--header-h, 90px);
    align-items: flex-start; /* Changed from center to flex-start for safe centering */
    justify-content: center;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center; /* Force center on mobile */
  }
  .hero-mid-row {
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Center on mobile */
    gap: 14px;
    margin-bottom: 26px;
  }
  .seal-svg { width: 70px; height: 70px; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-btns { 
    justify-content: center; /* Center on mobile */
    gap: 12px; 
  }
  .hero-primary-btn,
  .hero-secondary-btn { font-size: 0.9rem; padding: 0.75rem 1.5rem; }
  .trust-divider--hide-mobile,
  .trust-badge-item--hide-mobile { display: none; }
  .hero-trust-strip { gap: 0; padding: 14px 3%; }
  .trust-badge-item { padding: 4px 10px; font-size: 0.7rem; }
  .trust-badge-item i { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero-content {
    text-align: center;
    align-items: flex-start; /* Changed from center to flex-start for safe centering */
    justify-content: center;
    padding: 0 4%;
    padding-top: var(--header-h, 90px);
  }
  .hero-title { 
    font-size: clamp(2.2rem, 15vw, 3.5rem);
    text-align: center;
  }
  .hero-mid-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-bottom: 30px;
  }
  .hero-subtitle {
    border-left: none;
    border-top: 1px solid rgba(212,175,55,0.4);
    padding-left: 0;
    padding-top: 15px;
    font-size: 0.95rem;
    max-width: 280px;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
  .hero-primary-btn, .hero-secondary-btn {
    width: 100%;
    justify-content: center;
  }
  .hero-trust-strip { 
    justify-content: center; /* ALIGN CENTER AS REQUESTED */
    overflow-x: auto; 
    flex-wrap: nowrap;
    padding: 15px 5% 55px;
    gap: 20px;
    scrollbar-width: none;
    text-align: center;
  }
  .hero-trust-strip::-webkit-scrollbar { display: none; }

  .trust-badge-item { 
    flex-shrink: 0; 
    flex-direction: column; 
    align-items: center; /* Center icon and text */
    text-align: center;
    gap: 4px;
    padding: 0;
    min-width: 90px;
  }
  .trust-badge-item i { font-size: 1.1rem; }
  .trust-badge-item span { font-size: 0.65rem; }
  .trust-badge-item span strong { font-size: 0.72rem; }
}

/* Legacy shared button classes (used in other sections) */
.primary-btn {
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.primary-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.secondary-btn {
  background-color: transparent;
  color: white;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  border: 2px solid white;
  transition: all 0.3s ease;
}
.secondary-btn:hover {
  background-color: white;
  color: var(--primary);
  transform: translateY(-5px);
}

/* Why Pavani Section */
.why-pavani {
  background-color: var(--primary);
  color: white;
  text-align: center;
  position: relative;
  padding: 8rem 5% 6rem;
  margin-top: -30px;
  z-index: 5;
}

.why-title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.why-pavani h2 {
  font-size: 3.5rem;
  color: white;
}

.why-pavani .badge {
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  transform: rotate(-15deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.why-pavani h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.why-pavani p {
  max-width: 850px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  font-size: 1.15rem;
  opacity: 0.95;
}

/* Collections */
.collections {
  background-color: var(--light);
  padding: 6rem 5%;
  text-align: center;
  position: relative;
}

.collections h2 {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.collections>p {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

/* Dynamic Category Navigation */
.category-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 5% 25px;
  transition: all 0.5s ease;
}
.category-grid::-webkit-scrollbar {
  display: none;
}

/* Auto-scrolling state */
.category-grid.should-scroll {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 20px 25px;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.category-grid.should-scroll::-webkit-scrollbar {
  display: none;
}


.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 120px;
}

.cat-img-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.cat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-card span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  text-transform: none;
  transition: all 0.3s ease;
}

.category-card:hover .cat-img-wrapper {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--highlight);
}

.category-card.active .cat-img-wrapper {
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(229, 177, 58, 0.3);
}

.category-card.active span {
  color: var(--accent);
}

@media (max-width: 600px) {
  .category-grid {
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    justify-content: flex-start; /* Changed from center for better overflow */
    overflow-x: auto;
    padding: 10px 15px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }

  .category-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  .category-card {
    width: 85px;
    flex-shrink: 0;
  }

  .cat-img-wrapper {
    width: 70px;
    height: 70px;
  }

  .category-card span {
    font-size: 0.85rem;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.category-group-wrapper {
  grid-column: 1 / -1;
  width: 100%;
}

.products-grid > .product-grid {
  grid-column: 1 / -1;
  width: 100%;
}

.product-card {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;

}

.product-name {
  color: #666;
  margin-bottom: 1rem;
}

.buy-btn {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

/* Variant Selector Theme */
.variant-selector-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
}

.btn-variant {
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  font-family: var(--font-main);
}

.btn-variant:hover {
  background: var(--light);
  transform: scale(1.05);
}

.btn-variant.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(59, 35, 19, 0.3);
}

.btn-variant:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #999;
}

/* Quantity Controls Theme */
.qty-control-wrapper {
  background: #fff;
  border: 1.5px solid #e0d5ce;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;

  padding: 2px;
  box-shadow: 0 2px 5px rgba(59, 35, 19, 0.05);
}

.qty-btn-card {
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  border: none;
  background: #fdf5f0;
  color: var(--primary);
  font-weight: 900;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn-card:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
}

.qty-input-styled {
  width: 35px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a7366;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Button Group Premium */
.btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;

}

.btn-add,
.buy-btn {
  padding: 10px 15px;
  border-radius: 50px !important;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-add {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 10px rgba(122, 43, 41, 0.2);
}

.btn-add:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.buy-btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(59, 35, 19, 0.2);
}

.buy-btn:hover {
  background: #27160b;
  transform: translateY(-2px);
}

.btn-disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.why-features-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.why-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.why-feat-item .feat-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.why-feat-item span {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

@media (max-width: 480px) {
  .why-features-grid {
    gap: 1.5rem;
  }
  .why-feat-item .feat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

.scattered-img-frame {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05); /* Placeholder until user adds images */
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.5s ease;
}

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

/* Positions */
.scattered-img-frame.pos1 { top: 10%; left: 16%; rotate: -15deg; width: 120px; height: 120px; }
.scattered-img-frame.pos2 { bottom: 15%; left: 5%; rotate: 10deg; width: 180px; height: 180px; }
.scattered-img-frame.pos3 { top: 15%; right: 15%; rotate: 12deg; width: 140px; height: 140px; }
.scattered-img-frame.pos4 { bottom: 10%; right: 5%; rotate: -8deg; width: 160px; height: 160px; }

@media (max-width: 768px) {
  .why-pavani {
    padding: 7rem 5% 8rem;
  }
  .why-title-wrap {
    flex-direction: column;
    gap: 10px;
  }
  .why-title-wrap h2 {
    font-size: 2rem;
    text-align: center;
  }
  .why-pavani .badge {
    display: none;
  }
  .why-pavani h3 {
    font-size: 1.5rem;
    padding: 0 5%;
  }
  .why-pavani p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .why-features-grid {
    gap: 1.2rem;
    margin: 2rem 0;
  }
  .scattered-img-frame {
    display: none !important; /* Hide on mobile to prevent overlap with centered text */
  }
  .scattered-img-frame.pos2, .scattered-img-frame.pos4 { display: none !important; }
}

/* Founder Legacy Section */
.pavani-legacy {
  background: var(--light);
  color: var(--text-dark);
  padding: 10rem 5%;
  position: relative;
  margin-top: -30px;
  z-index: 6;
  overflow: hidden;
}

.legacy-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.legacy-image-wrap {
  position: relative;
  padding: 20px;
}


.legacy-blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-morph 10s infinite alternate;
  z-index: -1;
}

.founder-img {
  width: 100%;
  border-radius: 30px;
  display: block;
  z-index: 2;
  position: relative;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.legacy-badge {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: var(--secondary);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  z-index: 3;
  transform: rotate(5deg);
}

.legacy-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.pavani-legacy h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--primary);
}

.story-lead {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.story-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 1rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.achieve-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.achieve-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
}

.achieve-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
  font-weight: 600;
}

.media-mention {
  display: flex;
  align-items: center;
  gap: 20px;
}

.media-mention span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #aaa;
}

.media-logos {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.media-tag {
  background: white;
  padding: 5px 15px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.media-logo-img {
  height: 35px;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.media-logo-img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
}

@media (max-width: 1024px) {
  .legacy-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .legacy-content {
    align-items: center;
  }
  .legacy-image-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  .pavani-legacy h2 {
    font-size: 2.5rem;
  }
  .media-mention {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .media-logos {
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .achievement-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 1.5rem 0;
  }
  .achieve-value {
    font-size: 1.5rem;
  }
  .achieve-label {
    font-size: 0.65rem;
  }
  .pavani-legacy h2 {
    font-size: 2.2rem;
  }
  .legacy-badge {
    right: 10px;
    bottom: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* Wholesale Section */
.wholesale-section {
  padding: 8rem 5%;
  background-color: #fcf8f5; /* Very light cream */
  text-align: center;
  position: relative;
}

.wholesale-header {
  margin-bottom: 5rem;
}

.wholesale-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.wholesale-line {
  width: 80px;
  height: 2px;
  background: var(--secondary);
  margin: 0 auto;
}

.wholesale-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  text-align: left;
}

.wholesale-eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1.5rem;
}

.wholesale-heading {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 3rem;
}

.wholesale-contact-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2.5rem;
}

.wholesale-contact-bar .w-icon {
  color: var(--secondary);
  font-size: 1.5rem;
}

.wholesale-contact-bar p {
  font-size: 1.1rem;
  color: #666;
}

.whatsapp-wholesale-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-wholesale-btn:hover {
  background: #128c7e;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* Premium Flip Card */
.wholesale-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.premium-card-flip {
  background-color: transparent;
  width: 100%;
  max-width: 600px;
  height: 350px;
  perspective: 1000px;
  animation: float-card 5s ease-in-out infinite;
}

.p-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.premium-card-flip:hover .p-card-inner {
  transform: rotateY(180deg);
}

.p-card-front, .p-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: float-shadow 5s ease-in-out infinite;
}

@keyframes float-card {
  0% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-20px) rotateX(2deg) rotateY(-1deg); }
  100% { transform: translateY(0) rotateX(0) rotateY(0); }
}

@keyframes float-shadow {
  0% { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 45px 70px rgba(0,0,0,0.15); }
  100% { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
}

.p-card-front img, .p-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-card-back {
  transform: rotateY(180deg);
}

.flip-hint {
  font-size: 0.9rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulse-hint 2s ease-in-out infinite;
  margin-top: 10px;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 1100px) {
  .wholesale-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .wholesale-contact-bar {
    justify-content: center;
  }
  .wholesale-heading {
    font-size: 3rem;
  }
  .premium-card-flip {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .wholesale-heading {
    font-size: 2.2rem;
  }
  .premium-card-flip {
    height: 200px;
  }
  .wholesale-title {
    font-size: 2.5rem;
  }
}

@keyframes blob-morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  33% {
    border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%;
  }

  66% {
    border-radius: 45% 55% 50% 50% / 40% 60% 55% 45%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Recipes Redesign */
.recipes {
  background-color: #fff6f2;
  /* Creamy light background */
  padding: 0 0 8rem;
  text-align: center;
  position: relative;
}

.recipes-header {
  background-color: #ed2424;
  padding: 6rem 5% 7rem;
  /* Increased bottom padding for card overlap */
  position: relative;
  margin-bottom: 0;
}

.recipes-header h2 {
  font-size: 8rem;
  /* Large playful title */
  color: white;
  margin: 0;
  text-transform: none;
  font-family: var(--font-display);
  letter-spacing: -2px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: -60px auto 4rem;
  /* Overlap with header */
  padding: 0 5%;
  position: relative;
  z-index: 5;
}

.recipe-card {
  background: transparent;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  aspect-ratio: 1.1;
  transform: translateY(-15px) rotate(5deg);
  /* Hover style now normal */
}

.recipe-card:hover {
  transform: translateY(0) rotate(0);
  /* Normal style now hover */
}

.recipe-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.recipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.play-btn-serrated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  /* Hover style now normal */
  background-color: #ed2424;
  /* Hover color now normal */
  color: white;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 5;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  /* Scalloped circle mask/clip */
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='black' d='M100 50c0 3.7-2.6 7-6 8l-.3.1c-1.6 4-1.2 8.7 1.3 12.3l.2.3c-1.3 3.5-4.2 6.2-7.8 7.3l-.3.1c-.2 4.3-2.3 8.3-5.7 10.8l-.3.2c-2.7 2.7-6.5 4-10.4 3.7l-.3-.1c-1.6 4-4.8 7.3-8.8 8.9l-.3.1c-3.4 1.3-7.2 1.3-10.6 0l-.3-.1c-4-1.6-7.2-4.9-8.8-8.9l-.3.1c-3.9.3-7.7-1-10.4-3.7l-.3-.2C25 87 22.9 83 22.7 78.7l-.3-.1c-3.6-1.1-6.5-3.8-7.8-7.3l.2-.3c2.5-3.6 2.9-8.3 1.3-12.3l-.3-.1c-3.4-1-6-4.3-6-8 0-3.7 2.6-7 6-8l.3-.1c1.6-4 1.2-8.7-1.3-12.3l-.2-.3c1.3-3.4 4.2-6.2 7.8-7.3l.3-.1c.2-4.3 2.3-8.3 5.7-10.8l.3-.2c2.7-2.7 6.5-4 10.4-3.7l.3.1c1.6-4 4.8-7.3 8.8-8.9l.3-.1c3.4-1.3 7.2-1.3 10.6 0l.3.1c4 1.6 7.2 4.9 8.8 8.9l.3-.1c3.9-.3 7.7 1 10.4 3.7l.3.2c3.4-2.5 5.5-6.5 5.7-10.8l.3.1c3.6 1.1 6.5 3.9 7.8 7.3l-.2.3c-2.5 3.6-2.9 8.3-1.3 12.3l.3.1c3.4 1 6 4.3 6 8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='black' d='M100 50c0 3.7-2.6 7-6 8l-.3.1c-1.6 4-1.2 8.7 1.3 12.3l.2.3c-1.3 3.5-4.2 6.2-7.8 7.3l-.3.1c-.2 4.3-2.3 8.3-5.7 10.8l-.3.2c-2.7 2.7-6.5 4-10.4 3.7l-.3-.1c-1.6 4-4.8 7.3-8.8 8.9l-.3.1c-3.4 1.3-7.2 1.3-10.6 0l-.3-.1c-4-1.6-7.2-4.9-8.8-8.9l-.3.1c-3.9.3-7.7-1-10.4-3.7l-.3-.2C25 87 22.9 83 22.7 78.7l-.3-.1c-3.6-1.1-6.5-3.8-7.8-7.3l.2-.3c2.5-3.6 2.9-8.3 1.3-12.3l-.3-.1c-3.4-1-6-4.3-6-8 0-3.7 2.6-7 6-8l.3-.1c1.6-4 1.2-8.7-1.3-12.3l-.2-.3c1.3-3.4 4.2-6.2 7.8-7.3l.3-.1c.2-4.3 2.3-8.3 5.7-10.8l.3-.2c2.7-2.7 6.5-4 10.4-3.7l.3.1c1.6-4 4.8-7.3 8.8-8.9l.3-.1c3.4-1.3 7.2-1.3 10.6 0l.3.1c4 1.6 7.2 4.9 8.8 8.9l.3-.1c3.9-.3 7.7 1 10.4 3.7l.3.2c3.4-2.5 5.5-6.5 5.7-10.8l.3.1c3.6 1.1 6.5 3.9 7.8 7.3l-.2.3c-2.5 3.6-2.9 8.3-1.3 12.3l.3.1c3.4 1 6 4.3 6 8z'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
  transition: all 0.3s ease;
}

.play-btn-serrated:hover {
  transform: translate(-50%, -50%) scale(1.0);
  /* Normal style now hover */
  background-color: white;
  /* Normal color now hover */
  color: #ed2424;
}

.recipe-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  text-align: left;
  z-index: 6;
}

.recipe-info h4 {
  font-size: 1.4rem;
  color: white;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.view-all-btn {
  background-color: #750303;
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 0 #072a27;
  /* Hover style (extended shadow) now normal */
  transform: translateY(-2px);
  /* Hover transform now normal */
}

.view-all-btn:hover {
  transform: translateY(0);
  /* Normal style now hover */
  box-shadow: 0 8px 0 #072a27;
}

.view-all-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #072a27;
}

/* Testimonials Redesign */
.testimonials {
  background-color: #fff6f2;
  padding: 0 0 8rem;
  /* Remove top padding as header has it */
  text-align: center;
  position: relative;
}

.testimonials-red-bg {
  background-color: #750303;
  padding: 8rem 5% 12rem;
  position: relative;
  margin-bottom: -10rem;
  /* Slider will overlap this */
}

.testimonials-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 5rem;
}

.testimonials-header h2 {
  font-size: 3.5rem;
  /* Reduced from 8rem for mobile/general sanity */
  line-height: 0.9;
  margin: 0;
  color: white;
  text-transform: none;
  font-family: var(--font-display);
  letter-spacing: -2px;
}

.heart-white-blob {
  width: 90px;
  height: 90px;
  background-color: white;
  color: #750303;
  border-radius: 40% 60% 30% 70% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  animation: blob-morph 6s infinite alternate;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.reviews-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.testimonials-slider-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--light);
  padding: 40px 30px;
  border-radius: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.9);
  opacity: 1;
  border: 4px solid var(--primary);
}

.review-card.featured {
  background: var(--primary) !important;
  color: white !important;
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
  opacity: 1;
  border: 4px solid var(--light);
}

/* Talk Bubble Pointer */
.review-card::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--light) !important;
}

.review-card.featured::after {
  border-top-color: var(--primary) !important;
}

.stars {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #ffc107;
}

.review-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.reviewer {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-top: auto;
}

.nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* Instagram */
.instagram-section {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--light);
  position: relative;
  /* Top Wave Mask */
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-size: 60px 30px, 100% calc(100% - 29.5px);
  -webkit-mask-position: top, bottom;
  -webkit-mask-repeat: repeat-x, no-repeat;

  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-size: 60px 30px, 100% calc(100% - 29.5px);
  mask-position: top, bottom;
  mask-repeat: repeat-x, no-repeat;

  margin-top: -30px;
  /* Overlap testimonial section with wavy top */
  min-height: 500px;
}

.insta-info {
  flex: 1;
  min-width: 300px;
  padding: 4rem 5% 3rem;
  /* More compact padding to match earlier height */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.insta-info h2 {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.insta-info p {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  max-width: 300px;
}

.follow-btn {
  background-color: var(--secondary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.insta-grid-wrapper {
  flex: 2;
  min-width: 300px;
  overflow: hidden;
  position: relative;
  max-height: 500px;
  /* Restored earlier height limit */
  align-self: stretch;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 250px;
}

.insta-grid.scrolling {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  animation: instaMarqueeVertical 20s linear infinite;
}

.insta-grid.scrolling:hover {
  animation-play-state: paused;
}

@keyframes instaMarqueeVertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insta-grid a:hover img {
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: white;
  padding: 5rem 5% 2rem;
  text-align: center;
  position: relative;
}

footer .brand {
  margin-bottom: 2.5rem;
  justify-content: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-social {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.social-icons-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icon-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}


.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.7;
  flex-wrap: wrap;
  text-align: center;
}

.payment-icons {
  display: flex;
  gap: 10px;
}

.payment-icons span {
  background: white;
  color: var(--text-dark);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .desktop-only {
    display: none !important;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .why-migo h2 {
    font-size: 2.2rem;
  }

  .hero-images {
    flex-direction: column;
  }

  .img-left,
  .img-right {
    display: none;
  }

  .img-center {
    transform: none;
    width: 250px;
    height: 300px;
  }

  .yum-grid {
    grid-template-columns: 1fr;
  }

  .reviews-container {
    flex-direction: column;
  }

  .review-card.featured {
    transform: none;
  }

  .insta-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Font Size & Spacing Corrections for Mobile */
  .why-pavani {
    padding: 6rem 5% 4rem;
  }
  .why-pavani h2 {
    font-size: 2.5rem !important;
  }
  .why-pavani h3 {
    font-size: 1.4rem !important;
  }
  .why-pavani p {
    font-size: 1rem !important;
  }

  .collections {
    padding: 3rem 5% !important;
  }
  .collections h2 {
    font-size: 2rem !important;
  }
  .collections > p {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .wow-yum {
    padding: 4rem 5% !important;
  }
  .yum-center h2 {
    font-size: 4rem !important;
    letter-spacing: -2px !important;
  }
  .yum-text h4 {
    font-size: 1.3rem !important;
  }
  .yum-blob {
    width: 70px !important;
    height: 70px !important;
    font-size: 2rem !important;
  }
  
  .testimonials-header {
    gap: 15px !important;
    margin-bottom: 3rem !important;
  }
  .testimonials-header h2 {
    font-size: 3rem !important;
  }
  .heart-white-blob {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
  }
  .reviewer {
    font-size: 1.4rem !important;
  }

  .insta-info h2 {
    font-size: 2.5rem !important;
  }
  .insta-info p {
    font-size: 0.95rem !important;
  }
  
  .footer-links a {
    font-size: 0.85rem !important;
  }
}

/* ================= CART THEME ENHANCEMENTS ================= */
.cart-sidebar {
  background-color: white !important;
  border-left: none;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-header {
  background-color: white !important;
  color: var(--primary) !important;
  padding: 1.5rem !important;
  border-bottom: 1px solid #eee;
}

.cart-header h2 {
  font-family: var(--font-display) !important;
  font-size: 1.6rem !important;
  text-transform: none !important;
  letter-spacing: 0;
}

.close-cart {
  color: #750303 !important;
  opacity: 0.8;
  top: 25px !important;
  right: 25px !important;
}

.close-cart:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.2);
}

.cart-footer {
  background-color: white !important;
  border-top: 3px dashed #ece0d1 !important;
  padding: 25px !important;
}

.cart-total {
  color: var(--primary) !important;
  font-family: var(--font-display);
  font-size: 1.4rem !important;
  margin-bottom: 20px !important;
}

/* Button Overrides */
.btn-primary {
  background-color: var(--primary) !important;
  color: white !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 12px !important;
  padding: 14px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 6px 0 #4a1a18 !important;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #8c3634 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #4a1a18 !important;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #4a1a18 !important;
}

.input-group-styled {
  border: 2px solid #eddec9 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: white;
}

.input-group-styled button {
  background: var(--primary) !important;
  color: white !important;
  font-family: var(--font-display) !important;
  border-radius: 0 !important;
  padding: 0 20px !important;
  font-size: 0.9rem !important;
  transition: background 0.3s;
}

.input-group-styled button:hover {
  background: var(--secondary) !important;
}

.referral-toggle {
  background: #fbf1e4 !important;
  border-radius: 12px !important;
  border: 1px dashed var(--accent) !important;
  color: var(--primary) !important;
  padding: 12px 15px !important;
  margin: 15px 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.referral-toggle .toggle-text {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-weight: 600 !important;
}

.referral-toggle .arrow-icon {
  font-size: 0.8rem !important;
  transition: transform 0.3s ease !important;
}

.referral-input-wrapper {
  margin-bottom: 15px !important;
}

.input-group-styled {
  display: flex !important;
  border: 2px solid #eddec9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: white !important;
}

.input-group-styled input {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: none !important;
  outline: none !important;
  font-family: var(--font-main) !important;
  font-size: 0.95rem !important;
}

.input-group-styled button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  padding: 0 20px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
}

.input-group-styled button:hover {
  background: var(--secondary) !important;
}

.referral-msg {
  font-size: 0.85rem !important;
  margin-top: 8px !important;
  padding: 0 5px !important;
}

.referral-msg.success {
  color: #2e7d32 !important;
}

.referral-msg.error {
  color: #d32f2f !important;
}

.cart-addr-header span {
  color: var(--secondary) !important;
  font-weight: 700;
  cursor: pointer;
}


/* Cart Item Styles */
.cart-item-row {
  border-bottom: 1px solid #f1e4d1 !important;
  padding-bottom: 20px !important;
  margin-bottom: 20px !important;
}

.ci-title {
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  font-size: 1rem !important;
}

.qty-pill {
  background: #fdf5f0 !important;
  border: 1px solid #e0d5ce !important;
  border-radius: 50px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 2px 5px !important;
}

.qty-pill button {
  background: white !important;
  color: var(--primary) !important;
  border: none !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  font-size: 0.8rem !important;
  transition: all 0.2s !important;
}

.qty-pill button:hover {
  background: var(--primary) !important;
  color: white !important;
}

.btn-remove {
  background: transparent !important;
  color: #bfa59a !important;
  border: none !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin-left: 10px !important;
  transition: color 0.3s !important;
}

.btn-remove:hover {
  color: var(--secondary) !important;
}


.btn-text:hover {
  color: var(--primary) !important;
}

/* Star Rating System */
.star-rating {
  font-size: 2.5rem;
  color: #ffd700;
  display: flex;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.star-rating i {
  transition: transform 0.2s, color 0.2s;
}

.star-rating i.active {
  color: #ff9800;
  transform: scale(1.2);
}

.star-rating i:hover {
  transform: scale(1.1);
}

/* Review Button in Order Card */
.btn-review {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-review:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

.product-review-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.featured .product-review-tag {
  color: #aaa;
}

.stars-display {
  color: #ffc107;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.testimonials-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 10px;
}

.reviews-viewport {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Styles consolidated above */

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: white;
  color: var(--primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

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

@media (max-width: 968px) {
  .review-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 600px) {
  .review-card {
    flex: 0 0 100%;
    opacity: 1;
    transform: scale(1);
  }

  .testimonials-slider-wrapper {
    gap: 0;
    padding: 0;
  }

  .slider-btn {
    display: none;
  }

  .reviews-viewport {
    padding: 10px 0;
  }
}

.auth-modal h3,
.auth-modal h4 {
  font-family: var(--font-display) !important;
  color: var(--primary);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* --- Premium Profile Redesign --- */
.profile-modal-content {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    max-width: 440px !important;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(0,0,0,0.05);
    /* Improved inner scrollbar feel */
    scrollbar-gutter: stable;
}

.profile-modal-content::-webkit-scrollbar {
    width: 8px;
}

.profile-modal-content::-webkit-scrollbar-track {
    background: transparent; /* Transparent track makes it feel more inside */
    margin: 15px 0; /* Keeps it away from the curved top/bottom */
}

.profile-modal-content::-webkit-scrollbar-thumb {
    background: #e0d5ce;
    border-radius: 10px;
    /* Create "inset" effect using transparent borders */
    border: 2px solid #fff;
}

.profile-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.profile-modal-content #profileViewMain {
    padding: 35px;
}

.close-auth-circle {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 38px;
    height: 38px;
    background: #fdfaf8;
    border: none;
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.close-auth-circle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.profile-header-new {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar-big {
    width: 85px;
    height: 85px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 55px;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(117, 3, 3, 0.2);
}

.profile-title-container h3 {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.1;
}

.profile-title-container p {
    font-size: 0.95rem;
    color: #6a6a6a;
    margin: 8px 0 0;
    line-height: 1.4;
}

.profile-form-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1.5px solid #f5f0ed;
    border-radius: 16px;
}

.profile-field-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.profile-field-group input {
    background: #fdfaf8 !important;
    border: 1.5px solid #eae2dc !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-size: 1rem;
    color: #333;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.profile-field-group input:focus:not(:disabled) {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(117, 3, 3, 0.05);
    background: #fff !important;
    outline: none;
}

.profile-field-group input:disabled {
    opacity: 0.7;
    background: #f9f9f9 !important;
    cursor: not-allowed;
}

.btn-update-profile, .btn-order-history {
    margin-top: 10px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-update-profile:hover, .btn-order-history:hover {
    background: #5a0202;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(117, 3, 3, 0.25);
}

.profile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
}

.section-title i {
    font-size: 1.4rem;
}

.section-title h4 {
    margin: 0;
    font-size: 1.3rem;
    font-family: var(--font-display);
}

.btn-add-new {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-add-new:hover {
    opacity: 0.7;
}

.addr-list-scroll {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding-right: 8px;
}

/* Premium Card Design for Addresses */
.addr-card-premium {
    background: #fff9f6;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 18px;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.addr-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(117, 3, 3, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.addr-icon-circle {
    width: 50px;
    height: 50px;
    background: #feece2;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.addr-content-info {
    flex: 1;
}

.addr-badge {
    background: #ffe6e6;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.addr-name-row {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.addr-name-row strong {
    color: var(--primary);
}

.addr-relationship {
    color: #a52a2a;
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.7;
}

.addr-details-grid p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
    line-height: 1.5;
}

.addr-phone-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 10px;
}

.addr-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.addr-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #777;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.addr-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn-order-history {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    margin-bottom: 25px;
}

.btn-order-history:hover {
    background: #fff4f4;
    color: #5a0202;
    border-color: #5a0202;
}

.logout-container {
    text-align: center;
    margin-top: 10px;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 12px 25px;
    transition: all 0.3s;
    border-radius: 12px;
}

.btn-logout:hover {
    background: #fff4f4;
    transform: translateY(-2px);
}

/* Scrollbar Style */
.addr-list-scroll::-webkit-scrollbar {
    width: 5px;
}
.addr-list-scroll::-webkit-scrollbar-track {
    background: #fdfaf8;
}
.addr-list-scroll::-webkit-scrollbar-thumb {
    background: #ffd9c4;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .profile-modal-content #profileViewMain {
        padding: 25px 20px;
    }
    .profile-avatar-big {
        width: 70px;
        height: 70px;
        font-size: 45px;
    }
    .profile-title-container h3 {
        font-size: 1.6rem;
    }
    .addr-card-premium {
        padding: 15px;
        gap: 12px;
    }
    .addr-icon-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* --- Secondary Views Styling --- */
.view-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px;
    padding: 0 0 15px;
    border-bottom: 1px solid #f5f0ed;
}

.view-header i {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfaf8;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.view-header i:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-3px);
}

.view-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--primary);
    font-family: var(--font-display);
}

#ordersView, #addressForm {
    padding: 35px;
}

#addressForm .input-style {
    background: #fdfaf8 !important;
    border: 1.5px solid #eae2dc !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: all 0.3s;
}

#addressForm .input-style:focus {
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 4px 15px rgba(117, 3, 3, 0.05);
    outline: none;
}

#addressForm label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-scroll::-webkit-scrollbar {
    width: 5px;
}

.orders-scroll::-webkit-scrollbar-thumb {
    background: #ffd9c4;
    border-radius: 10px;
}

@media (max-width: 480px) {
    #ordersView, #addressForm {
        padding: 25px 20px;
    }
    .view-header h3 {
        font-size: 1.4rem;
    }
}

/* --- Desktop Refinement for Profile Section --- */
@media (min-width: 1024px) {
    .profile-modal-content {
        max-width: 400px !important;
        border-radius: 28px !important;
        box-shadow: 
            0 20px 40px -10px rgba(0,0,0,0.15),
            0 0 0 1px rgba(0,0,0,0.03) !important;
    }

    .profile-modal-content #profileViewMain,
    #ordersView, #addressForm {
        padding: 28px !important;
    }

    .close-auth-circle {
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
    }

    .profile-header-new {
        gap: 16px;
        margin-bottom: 25px;
    }

    .profile-avatar-big {
        width: 70px;
        height: 70px;
        font-size: 44px;
        box-shadow: 0 8px 20px rgba(117, 3, 3, 0.15);
    }

    .profile-title-container h3 {
        font-size: 1.6rem;
    }

    .profile-title-container p {
        font-size: 0.88rem;
        margin-top: 4px;
    }

    .profile-form-container {
        padding: 20px;
        gap: 15px;
        border-radius: 18px;
        background: linear-gradient(145deg, #ffffff, #fdfaf8);
    }

    .profile-field-group label {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .profile-field-group input {
        padding: 10px 16px !important;
        font-size: 0.92rem;
    }

    .btn-update-profile, .btn-order-history {
        padding: 14px;
        font-size: 0.88rem;
        border-radius: 12px;
        margin-top: 6px;
    }

    .profile-section-header {
        margin: 30px 0 15px;
    }

    .section-title h4 {
        font-size: 1.15rem;
    }

    .section-title i {
        font-size: 1.2rem;
    }

    .btn-add-new {
        font-size: 0.9rem;
    }

    .addr-card-premium {
        padding: 16px;
        gap: 14px;
        border-radius: 18px;
    }

    .addr-icon-circle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }

    .addr-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
        margin-bottom: 6px;
    }

    .addr-name-row {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .addr-relationship {
        font-size: 0.88rem;
    }

    .addr-details-grid p {
        font-size: 0.82rem;
        margin: 3px 0;
    }

    .addr-phone-premium {
        font-size: 0.88rem;
        margin-top: 8px;
    }

    .addr-actions-vertical {
        gap: 8px;
    }

    .addr-action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .logout-container {
        margin-top: 5px;
    }

    .btn-logout {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .view-header {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .view-header h3 {
        font-size: 1.4rem;
    }

    .view-header i {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    #ordersListContainer {
        max-height: 350px !important;
    }

    #addressForm .input-style {
        padding: 12px 18px !important;
        font-size: 0.88rem !important;
        border-radius: 10px !important;
    }

    #addressForm {
        gap: 8px !important;
    }
}

/* ========================================================
   FRANCHISE SECTION
   ======================================================== */

/* --- Main Section --- */
.franchise-section {
  position: relative;
  background: linear-gradient(135deg, #750303 0%, #5a0202 40%, #8b0000 70%, #750303 100%);
  padding: 100px 5% 80px;
  z-index: 7;
  margin-top: -30px;
  
  /* Scallop Mask - Fixes color mismatch by making the section background itself wavy */
  -webkit-mask-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  -webkit-mask-size: 60px 30px, 100% calc(100% - 29.5px);
  -webkit-mask-position: top, bottom;
  -webkit-mask-repeat: repeat-x, no-repeat;

  mask-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cpath d='M0,30 A30,30 0 0,1 60,30 Z' fill='black'/%3E%3C/svg%3E"),
    linear-gradient(#000, #000);
  mask-size: 60px 30px, 100% calc(100% - 29.5px);
  mask-position: top, bottom;
  mask-repeat: repeat-x, no-repeat;
}

/* Decorative background pattern - removed gold accents */
.franchise-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(0,0,0,0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Inner layout --- */
.franchise-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.franchise-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas: 
    "text visual"
    "cta visual";
  gap: 0 80px;
  align-items: center;
}

.franchise-text-group { grid-area: text; }
.franchise-visual { grid-area: visual; }
.franchise-cta-group { grid-area: cta; }

/* --- Left Content --- */
.franchise-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.franchise-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
}

.franchise-heading-accent {
  background: linear-gradient(90deg, #fff 0%, #ffcfcf 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: franchise-shine 4s linear infinite;
}

@keyframes franchise-shine {
  to { background-position: 200% center; }
}

.franchise-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}
.franchise-desc strong { color: #fff; border-bottom: 1px dashed rgba(255,255,255,0.5); }

/* Stats row - removed gold border */
.franchise-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 20px 0;
  overflow: hidden;
}

.fstat {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.fstat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.fstat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.fstat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* CTA buttons */
.franchise-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.franchise-btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  letter-spacing: 0.5px;
}

.franchise-btn-info:hover {
  background: #fff;
  color: #750303;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.franchise-btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #fff;
  color: #750303;
  border: 1.5px solid #fff;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.franchise-btn-apply:hover {
  background: #f7f2ee;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

/* --- Right Visual Card --- */
.franchise-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.franchise-card-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: franchise-pulse 3s ease-in-out infinite;
}

@keyframes franchise-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.franchise-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 32px 28px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  width: 100%;
  max-width: 380px;
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.franchise-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #750303;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.franchise-card-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.fcard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.fcard-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  transform: translateX(4px);
}

.fcard-item > i {
  font-size: 1.2rem;
  color: #fff;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.fcard-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fcard-item div strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.fcard-item div span {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

.fcard-apply-btn {
  width: 100%;
  padding: 13px;
  background: #fff;
  color: #750303;
  border: none;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.fcard-apply-btn:hover {
  background: #f7f2ee;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

/* Floating decorative elements */
.franchise-float-1, .franchise-float-2 {
  position: absolute;
  color: #fff;
  pointer-events: none;
  animation: franchise-float 3s ease-in-out infinite;
}
.franchise-float-1 {
  top: -20px;
  right: -10px;
  font-size: 1.8rem;
  opacity: 0.2;
  animation-delay: 0s;
}
.franchise-float-2 {
  bottom: 10px;
  left: -15px;
  font-size: 1.1rem;
  opacity: 0.15;
  animation-delay: 1.5s;
}
@keyframes franchise-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(15deg); }
}

/* ========================================================
   FRANCHISE OVERLAYS & MODALS
   ======================================================== */

.franchise-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.franchise-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.franchise-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  z-index: 10;
}
.franchise-modal-close:hover {
  background: #fff;
  color: #750303;
  transform: scale(1.1);
}

/* --- Info Modal (image viewer) --- */
.franchise-info-modal {
  position: relative;
  background: #750303;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.franchise-overlay.active .franchise-info-modal,
.franchise-overlay.active .franchise-apply-modal {
  transform: scale(1) translateY(0);
}

.franchise-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.franchise-info-img-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.franchise-info-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Fallback cards */
.franchise-img-fallback {
  padding: 20px;
}
.ffallback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.ffallback-card {
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}
.ffallback-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.ffallback-card p { font-size: 0.82rem; opacity: 0.8; margin-bottom: 5px; }

/* Info footer */
.franchise-info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.franchise-info-footer p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.franchise-info-footer p i { color: #fff; margin-right: 4px; }
.franchise-info-footer p strong { color: #fff; }

.franchise-btn-apply-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  color: #750303;
  border: none;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.franchise-btn-apply-bottom:hover {
  background: #f7f2ee;
  transform: translateY(-2px);
}

/* --- Apply Modal --- */
.franchise-apply-modal {
  position: relative;
  background: #750303;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.franchise-apply-header {
  text-align: center;
  margin-bottom: 28px;
}

.franchise-apply-icon {
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #750303;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.franchise-apply-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.franchise-apply-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.franchise-apply-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fform-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fform-group.full {
  grid-column: span 2;
}

.fform-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.fform-group label i {
  color: #fff;
  font-size: 0.75rem;
}

.fform-group input,
.fform-group select,
.fform-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: all 0.25s;
  width: 100%;
}

.fform-group input::placeholder,
.fform-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.fform-group input:focus,
.fform-group select:focus,
.fform-group textarea:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.fform-group select option {
  background: #750303;
  color: #fff;
}

.fform-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #fff;
  color: #750303;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.fform-submit-btn:hover {
  background: #f7f2ee;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.fform-submit-btn:disabled {
  opacity: 0.6;
}

.franchise-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 16px;
}

.fsuccess-icon {
  font-size: 4rem;
  color: #fff;
  animation: franchise-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes franchise-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.franchise-success-msg h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}

.franchise-success-msg p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Franchise Outlets Section --- */
.franchise-outlets {
  margin-top: 100px;
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  display: none; /* Hidden by default, shown if outlets exist */
}

.outlets-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 5%;
}

.outlets-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.outlets-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.outlets-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
  /* Premium fade effect on edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.outlets-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: outletsScroll 40s linear infinite;
  padding-left: 30px;
}

.outlets-track:hover {
  animation-play-state: paused;
}

@keyframes outletsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 15px)); }
}

.outlet-card {
  flex: 0 0 350px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
}

.outlet-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.outlet-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.outlet-card:hover .outlet-img {
  transform: scale(1.15);
}

.outlet-img-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.15);
}

.outlet-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  color: #750303;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.outlet-badge.coming-soon {
  background: #750303;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.outlet-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.outlet-info h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.outlet-addr {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}

.outlet-addr i {
  color: #ffa500; /* Subtle gold accent for markers */
  margin-top: 4px;
}

.outlet-contact {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.outlet-contact span {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.outlet-contact i {
  color: rgba(255,255,255,0.6);
}

.outlet-card.upcoming {
  opacity: 0.85;
}

/* ========================================================
   RESPONSIVE — FRANCHISE SECTION
   ======================================================== */

@media (max-width: 900px) {
  .franchise-content {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "text"
      "visual"
      "cta";
    gap: 0;
  }
  .franchise-visual {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
  .franchise-section {
    padding: 80px 5% 60px;
    text-align: center;
  }
  
  .franchise-eyebrow {
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .franchise-heading {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .franchise-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .franchise-stats-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
  }
  
  .fstat {
    flex: 0 0 calc(50% - 10px);
    background: rgba(255,255,255,0.05);
    padding: 20px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
  }
  
  .fstat-val {
    font-size: 1.4rem;
  }

  .fstat-divider {
    display: none;
  }

  .franchise-cta-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .franchise-btn-info,
  .franchise-btn-apply {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }

  .franchise-visual {
    margin-bottom: 60px;
  }

  .franchise-card {
    padding: 25px 20px;
  }

  .fcard-item {
    padding: 12px;
    gap: 12px;
  }

  .outlets-header {
    margin-bottom: 30px;
  }

  .outlets-title {
    font-size: 2.2rem;
  }

  .outlets-subtitle {
    font-size: 0.95rem;
  }

  .outlet-card {
    flex: 0 0 280px;
  }

  .outlets-track {
    animation-duration: 30s;
    gap: 20px;
  }

  /* Form & Modal Responsive Restored */
  .fform-row {
    grid-template-columns: 1fr;
  }
  .fform-group.full {
    grid-column: span 1;
  }
  .franchise-apply-modal,
  .franchise-info-modal {
    padding: 30px 20px 24px;
  }
  .franchise-info-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .ffallback-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= PHONE OTP AUTH STYLES ================= */

/* Auth Phone Header */
.auth-phone-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-phone-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #750303, #a52a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 5px;
    box-shadow: 0 10px 25px rgba(117, 3, 3, 0.25);
    animation: pulseIcon 2s ease-in-out infinite;
}

.auth-phone-icon.otp-icon {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25);
}

.auth-phone-icon.profile-icon {
    background: linear-gradient(135deg, #e65100, #ff6d00);
    box-shadow: 0 10px 25px rgba(230, 81, 0, 0.25);
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #eae2dc;
    border-radius: 14px;
    overflow: hidden;
    background: #fdfaf8;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(117, 3, 3, 0.08);
    background: #fff;
}

.phone-country-code {
    padding: 14px 16px;
    font-weight: 700;
    color: var(--primary);
    background: #f5ece5;
    border-right: 2px solid #eae2dc;
    font-size: 1rem;
    min-width: 55px;
    text-align: center;
    user-select: none;
}

.phone-input-group input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 14px 16px !important;
    font-size: 1.1rem !important;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent !important;
    font-family: var(--font-main);
}

.phone-input-group input::placeholder {
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.95rem;
    color: #aaa;
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-box {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid #eae2dc;
    border-radius: 14px;
    background: #fdfaf8;
    color: var(--primary);
    transition: all 0.3s ease;
    outline: none;
    font-family: var(--font-main);
}

.otp-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(117, 3, 3, 0.1);
    background: #fff;
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: #2e7d32;
    background: #f1fdf1;
}

.otp-box.error {
    border-color: #d32f2f;
    background: #ffeaea;
    animation: shakeOtp 0.4s ease;
}

@keyframes shakeOtp {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* OTP Actions */
.otp-actions {
    text-align: center;
    margin-top: 15px;
}

.otp-timer {
    font-size: 0.85rem;
    color: #888;
}

.otp-timer strong {
    color: var(--primary);
}

.btn-resend-otp {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-resend-otp:hover {
    background: #fff4f4;
    transform: translateY(-1px);
}

/* Alt Auth Options (Google / Email buttons) */
.alt-auth-options {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn-alt-auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #eae2dc;
    background: #fff;
    color: #333;
    font-family: var(--font-main);
}

.btn-alt-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn-alt-auth.btn-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-alt-auth.btn-google:hover {
    background: #ea4335;
    color: white;
}

.btn-alt-auth.btn-email-auth {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-alt-auth.btn-email-auth:hover {
    background: var(--primary);
    color: white;
}

/* reCAPTCHA container */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
    min-height: 0;
    transition: min-height 0.3s ease;
}

#recaptcha-container > div {
    transform: scale(0.9);
    transform-origin: center;
}

/* Mobile OTP responsive */
@media (max-width: 400px) {
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 1.3rem;
        border-radius: 10px;
    }
    
    .otp-input-group {
        gap: 6px;
    }
    
    .auth-phone-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .phone-country-code {
        padding: 12px 12px;
        font-size: 0.9rem;
        min-width: 48px;
    }
    
    .alt-auth-options {
        flex-direction: column;
    }
}

/* Trust Badges & GST */
.trust-badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.badge-icon {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-icon:hover {
  opacity: 1;
  transform: translateY(-8px) scale(1.1);
  filter: none;
}

.gst-number {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.gst-number:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

@media (max-width: 480px) {
  .trust-badges-container {
    gap: 25px;
    margin-bottom: 2rem;
  }
  .badge-icon {
    height: 38px;
  }
  .gst-number {
    font-size: 0.85rem;
    padding: 8px 18px;
    width: 100%;
    max-width: 280px;
  }
}