:root { 
  --brand-orange: #FF7A00; 
  --brand-green: #A2B54A; 
  --cream: #F9F1DC; 
  --text-dark: #1a1a1a; 
  --white: #ffffff; 
  --light-gray: #f8f9fa; 
  --gold: #FFD700; 
  --danger-red: #ff4d4d; 
  --beige-light: #f5f0e8;
  --beige-card: #ede8dd;
} 

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Poppins', sans-serif; 
} 

body { 
  background-color: var(--cream); 
  color: var(--text-dark); 
  overflow-x: hidden; 
} 

/* --- NAVIGATION --- */ 
nav { 
  background: var(--brand-orange); 
  padding: 15px 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  color: var(--white); 
  position: sticky; 
  top: 0; 
  z-index: 1500; 
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}  

.nav-logo img { 
  height: 35px; 
  width: auto; 
  display: block; 
} 

.nav-links { 
  display: flex; 
  gap: 20px; 
  font-size: 0.9rem; 
  align-items: center; 
} 

.nav-links a { 
  color: var(--white); 
  text-decoration: none; 
  font-weight: 600; 
  transition: opacity 0.2s; 
} 

.nav-links a:hover { 
  opacity: 0.8; 
} 

.nav-links .nav-login-btn { 
  background: var(--cream); 
  color: var(--brand-orange); 
  padding: 6px 18px; 
  border-radius: 20px; 
  font-weight: 700; 
  font-size: 0.8rem; 
} 

/* --- ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: var(--cream);
    color: black;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.close-announcement {
    position: absolute;
    right: 15px;
    cursor: pointer;
    opacity: 0.7;
    font-weight: 300;
    transition: 0.2s;
}
.close-announcement:hover {
    opacity: 1;
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .announcement-bar { font-size: 0.75rem; padding: 8px 10px; }
    .close-announcement { right: 8px; }
}

/* --- DISCOUNT BADGE --- */
.discount-badge {
    background: var(--cream);
    color: var(--brand-orange);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    animation: pulseBadge 2s infinite;
}
.discount-badge:hover {
    transform: scale(1.05);
    background: white;
}
@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 0 12px rgba(255, 122, 0, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4); transform: scale(1); }
}
/* --- Mobile Hamburger Menu --- */ 
.hamburger { 
  display: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
  color: var(--cream); 
  z-index: 1501; 
  position: relative; 
}  

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--brand-orange);
    position: fixed;
    top: 0; /* ✅ Starts from top */
    left: 0;
    width: 100%;
    height: 100vh; /* ✅ Full screen */
    padding: 0;
    gap: 0;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: none;
}  

.mobile-menu.active { 
  display: flex; 
  animation: fadeIn 0.25s ease-out; 
} 

/* Smoother animation */
@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
} 

/* --- Menu Header (Logo + Close Button) --- */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}

.mobile-menu-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.mobile-menu-close {
    font-size: 1.6rem;
    color: var(--white);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-close:hover {
    opacity: 0.8;
}

/* --- Menu Links --- */
.mobile-menu a { 
  color: var(--white); 
  text-decoration: none; 
  font-size: 1.05rem; 
  font-weight: 600; 
  text-align: center; 
  padding: 16px 0;                /* ✅ Increased padding (was 18px in previous fix) */
  border-bottom: 1px solid rgba(255,255,255,0.12); /* ✅ Lighter opacity for a subtler line */
  width: 100%; 
  display: flex;         
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  box-sizing: border-box;         /* ✅ CRITICAL: Ensures padding adds INSIDE the width, not outside */
}  

.mobile-menu a i {
    font-size: 1.1rem;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.08); 
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* Specific Styling for Cart Link */
.mobile-cart-link {
    margin-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.2) !important;
    font-size: 1.1rem !important;
}

/* --- Clean up the old Cart Badge styles (Now handled in the parent link) --- */
#mobileCartCount {
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    margin-left: 2px;
}

/* --- CART BADGE --- */ 
.cart-container { 
  position: relative; 
  cursor: pointer; 
  color: var(--white); 
} 

.cart-badge { 
  position: absolute; 
  top: -8px; 
  right: -8px; 
  background: var(--danger-red); 
  color: white; 
  border-radius: 50%; 
  padding: 2px 6px; 
  font-size: 0.65rem; 
  font-weight: 700; 
} 

/* --- TOAST NOTIFICATION --- */ 
.toast-container { 
  position: fixed; 
  top: 90px; 
  right: 20px; 
  z-index: 9999; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
} 

.toast { 
  background: var(--white); 
  color: var(--text-dark); 
  padding: 15px 25px; 
  border-radius: 12px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
  border-left: 5px solid var(--brand-green); 
  transform: translateX(150%); 
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  font-weight: 500; 
  font-size: 0.95rem; 
  max-width: 350px; 
} 

.toast.show { 
  transform: translateX(0); 
} 

.toast i { 
  color: var(--brand-green); 
  font-size: 1.5rem; 
} 

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay .spinner {
    font-size: 3rem;
    color: var(--brand-orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- HERO SECTION --- */ 
.hero { 
  position: relative; 
  height: 90vh; 
  min-height: 550px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  background-color: #0a0a0a; 
  overflow: hidden; 
} 

.hero-bg { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.6; 
  z-index: 1; 
  transition: opacity 1.5s ease-in-out; 
} 

.hero-bg.fade-out { 
  opacity: 0; 
} 

.hero-content { 
  position: relative; 
  z-index: 2; 
  color: var(--white); 
  max-width: 800px; 
  padding: 0 20px; 
} 

.hero h1 { 
  font-size: 3.5rem; 
  margin-bottom: 15px; 
  text-transform: uppercase; 
  line-height: 1.1; 
} 

.hero h1 span { 
  color: var(--brand-orange); 
} 

.hero p { 
  font-size: 1.1rem; 
  margin-bottom: 25px; 
  color: var(--cream); 
  font-weight: 300; 
} 

.hero-tagline { 
  font-size: 1rem; 
  font-weight: 300; 
  font-style: italic; 
  background: rgba(255, 122, 0, 0.85); 
  backdrop-filter: blur(5px); 
  display: inline-block; 
  padding: 10px 25px; 
  border-radius: 50px; 
  margin-bottom: 30px; 
} 

.cta-btn { 
  background: var(--cream); 
  color: var(--brand-orange); 
  padding: 15px 40px; 
  border-radius: 50px; 
  text-decoration: none; 
  font-weight: 700; 
  display: inline-block; 
  transition: transform 0.2s, box-shadow 0.2s; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
} 

.cta-btn:hover { 
  transform: scale(1.05); 
  box-shadow: 0 6px 20px rgba(0,0,0,0.5); 
} 

.loading-overlay .spinner {
    font-size: 3rem;
    color: var(--brand-orange);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TRUST BAR --- */ 
.trust-bar { 
  background: var(--white); 
  padding: 15px 20px; 
  text-align: center; 
  border-bottom: 1px solid #eee; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 20px; 
  flex-wrap: wrap; 
  font-size: 0.85rem; 
  color: #555; 
} 

.trust-bar i { 
  color: var(--gold); 
  margin-right: 5px; 
} 

.trust-item { 
  display: flex; 
  align-items: center; 
  gap: 5px; 
} 

/* --- PRODUCTS GRID --- */ 
.container { 
  max-width: 1100px; 
  margin: 60px auto; 
  padding: 0 20px; 
} 

.section-title { 
  text-align: center; 
  font-size: 2rem; 
  color: var(--brand-orange); 
  margin-bottom: 40px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
} 

.section-title::after { 
  content: ''; 
  display: block; 
  width: 50px; 
  height: 4px; 
  background: var(--brand-orange); 
  margin: 10px auto 0; 
} 

.product-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 25px; 
} 


.product-card { 
  background: var(--white); 
  border-radius: 16px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
  transition: 0.3s; 
  display: flex; 
  flex-direction: row; 
  overflow: hidden; 
  border: 1px solid rgba(0,0,0,0.03); 
  padding: 15px; 
  gap: 15px; 
  align-items: stretch; 
} 

.product-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
} 

/* Product Image Container */
.product-img-box {
     flex: 0 0 160px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: #faf7f2; 
    border-radius: 16px;
    padding: 0; 
}

.product-img-wrapper {
    width: 100%;
    height: 160px; 
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    opacity: 1;
}

.product-img.hidden {
    opacity: 0;
    pointer-events: none;
}

.product-img.hidden { 
  opacity: 0; 
  pointer-events: none; 
} 

.dots-container { 
  display: flex; 
  justify-content: center; 
  gap: 5px; 
  margin-top: 8px; 
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10; 
}  

.carousel-dot { 
  width: 6px; height: 6px; 
  border-radius: 50%; 
  background-color: #ddd; 
  border: none; 
  cursor: pointer; 
  padding: 0; 
} 

.carousel-dot.active { 
  background-color: var(--brand-orange); 
  transform: scale(1.1); 
} 

.product-info-main { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
} 

.product-info-main h3 { 
  font-size: 1.1rem; 
  color: var(--text-dark); 
  margin-bottom: 2px; 
  line-height: 1.2; 
} 

.product-info-main p { 
  color: #777; 
  font-size: 0.75rem; 
  margin-bottom: 5px; 
} 

.flavor-badge { 
  display: inline-block; 
  padding: 4px 12px; 
  background: #f0f0f0; 
  border-radius: 20px; 
  color: #555; 
  font-weight: 600; 
  font-size: 0.65rem; 
  letter-spacing: 0.5px; 
} 

.badge-coffee, .badge-raspberry { 
  background: var(--brand-green); 
  color: white;
} 


.size-option { 
  flex: 1; 
  text-align: center; 
  padding: 4px 8px; 
  font-size: 0.65rem; 
  font-weight: 600; 
  border-radius: 18px; 
  cursor: pointer; 
  transition: 0.2s; 
  color: #777; 
} 

.size-option.active { 
  background: var(--brand-orange); 
  color: white; 
  box-shadow: 0 2px 5px rgba(255, 122, 0, 0.3); 
} 

.price-and-cart { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-top: 8px; 
  gap: 5px; 
} 

.price-tag-main { 
  font-weight: 800; 
  font-size: 1rem; 
  color: var(--text-dark); 
  white-space: nowrap; 
} 

.qty-and-add-wrapper { 
  display: flex; 
  align-items: center; 
  gap: 5px; 
} 

.qty-selector-small { 
  display: flex; 
  align-items: center; 
  background: var(--light-gray); 
  border-radius: 15px; 
  padding: 0 5px; 
} 

.qty-btn-small { 
  background: transparent; 
  border: none; 
  color: var(--brand-orange); 
  font-weight: 800; 
  font-size: 1rem; 
  padding: 2px 8px; 
  cursor: pointer; 
} 

.qty-btn-small:hover { 
  color: #e06a00; 
} 

.qty-display-small { 
  font-weight: 700; 
  font-size: 0.9rem; 
  padding: 0 3px; 
  min-width: 15px; 
  text-align: center; 
} 

.add-cart-btn-small:hover { 
  background: #e06a00; 
  transform: scale(1.05); 
} 

/* --- IMPROVED CARD UI --- */
.product-card {
    padding: 18px;
    gap: 18px;
}

.product-info-main h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 2px;
}

.product-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.flavor-badge {
    font-size: 0.6rem;
    padding: 3px 10px;
    background: #f0f0f0;
    color: #555;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.8rem; 
    color: #777;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.compact-size-selector {
    display: inline-flex;
    background: var(--light-gray);
    border-radius: 20px;
    padding: 3px;
    margin-bottom: 12px;
    gap: 0;
    min-width: 150px;
}

.compact-size-option {
    flex: 1;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.2s;
    color: #888;
    text-align: center;
    white-space: nowrap;
}
.compact-size-option.active {
    background: var(--brand-orange);
    color: white;
    box-shadow: 0 2px 5px rgba(255, 122, 0, 0.3);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;       /* ✅ Lines up the price and buttons perfectly */
    margin-top: auto;
    min-height: 40px;          /* ✅ Ensures the footer is always the same height */
    gap: 8px;                  /* ✅ Adds a gap between the price and buttons */
}

.price-tag-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
}

.cart-qty-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-orange);
    border-radius: 20px;
    padding: 0 8px;
    height: 32px;
    margin-right: 6px;
    min-width: 60px;
    flex-shrink: 0;        /* ✅ ADD THIS: Stops the pill from shrinking */
    box-shadow: 0 2px 5px rgba(255, 122, 0, 0.15);
}

.cart-qty-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;         /* ✅ Increased slightly for better touch targets */
    padding: 0 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}
.cart-qty-btn:hover { opacity: 0.8; }

.cart-qty-display {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    min-width: 14px;
    text-align: center;
}

.cart-add-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 0 16px;
    height: 32px;
    min-width: 70px;        /* ✅ Increased from 60px to 70px so "Add" fits perfectly */
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(255, 122, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-add-btn:hover {
    background: #e06a00;
    transform: scale(1.02);
}

#detailsOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#detailsOverlay.active {
    display: flex;
}

.custom-panel-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-section-img {
    width: 100%;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    padding: 10px;
}
.panel-hero-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.panel-section-title {
    font-size: 1.4rem;
    color: #222;
    margin: 0;
    font-weight: 700;
}
.panel-section-title i {
    color: #FF7A00;
}

.panel-section-prices {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.price-row-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.price-row-item i {
    width: 20px;
    color: #666;
}

.panel-section-desc h4, 
.panel-section-ingredients h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: #444;
}
.panel-section-desc h4 i, 
.panel-section-ingredients h4 i {
    color: #A2B54A;
}
.panel-section-desc p, 
.panel-section-ingredients p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.panel-order-btn {
    width: 100%;
    background: #FF7A00;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}
.panel-order-btn:hover {
    background: #e06c00;
}

.details-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,.65); 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  opacity: 0; 
  visibility: hidden; 
  transition: .3s; 
  z-index: 5000; 
} 

.details-overlay.active { 
  opacity: 1; 
  visibility: visible; 
} 

@keyframes productPopup { 
  from { opacity: 0; transform: scale(.85); } 
  to { opacity: 1; transform: scale(1); } 
} 

.details-panel { 
  position: relative; 
  width: 92%; 
  max-width: 520px; 
  max-height: 90vh; 
  overflow-y: auto; 
  background: #fff; 
  border-radius: 24px; 
  padding: 30px; 
  animation: productPopup .35s ease; 
  box-shadow: 0 20px 60px rgba(0,0,0,.35); 
} 

.panel-close { 
  position: absolute; 
  top: 12px; 
  right: 16px; 
  font-size: 28px; 
  cursor: pointer; 
  color: #666; 
  line-height: 1; 
} 

.panel-img { 
  display: block; 
  width: 200px; 
  height: 200px; 
  object-fit: contain; 
  margin: 0 auto 16px; 
} 

.panel-title { 
  text-align: center; 
  font-size: 26px; 
  margin: 0 0 6px; 
  color: #222; 
} 

.panel-desc-box { 
  background: #f8f9fa; 
  border-left: 4px solid #4CAF50; 
  border-radius: 12px; 
  padding: 16px; 
  margin-bottom: 16px; 
  font-size: 15px; 
  line-height: 1.5; 
  color: #444; 
  font-style: italic; 
} 

.panel-ingredients-box { 
  background: #fff8f0; 
  border: 1px solid #ffe0b2; 
  border-radius: 12px; 
  padding: 16px; 
  margin-bottom: 20px; 
  font-size: 14px; 
  color: #555; 
  line-height: 1.5; 
} 

.ingredients-label { 
  font-weight: 700; 
  margin-bottom: 8px; 
  color: #e65100; 
  font-size: 13px; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
} 

.panel-order-btn { 
  width: 100%; 
  padding: 14px; 
  background: #25D366; 
  color: #fff; 
  border: none; 
  border-radius: 12px; 
  font-size: 16px; 
  font-weight: 600; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  transition: background 0.2s; 
} 

.panel-order-btn:hover { 
  background: #1ebe57; 
} 

/* --- REVIEWS SECTION --- */
.reviews-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-radius: 30px;
}

/* --- REVIEWS HEADER --- */
.reviews-header {
    text-align: center;
    margin-bottom: 45px;
}

.reviews-badge {
    display: inline-block;
    background: rgba(255, 122, 0, 0.1);
    color: var(--brand-orange);
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 122, 0, 0.15);
}

.reviews-badge i {
    margin-right: 6px;
}

.reviews-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.reviews-header h2 span {
    color: var(--brand-orange);
    position: relative;
}

.reviews-header h2 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 122, 0, 0.15);
    border-radius: 10px;
    z-index: -1;
}

.reviews-subtitle {
    color: #888;
    font-size: 1rem;
    margin-top: 4px;
    font-weight: 400;
}

/* --- REVIEWS STATS --- */
.reviews-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    padding: 12px 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-orange);
}

.stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #eee;
}

/* --- REVIEWS GRID --- */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* --- REVIEW FORM --- */
.review-form-card {
    background: var(--white);
    padding: 28px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 122, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-form-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.form-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-orange);
}

.form-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.form-subtitle {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

/* --- STARS --- */
.stars-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 10px 0;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

.stars-container i {
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ddd;
}

.stars-container i:hover {
    transform: scale(1.2);
    color: var(--gold);
}

.stars-container i.active {
    color: var(--gold);
}

.rating-label {
    font-size: 0.75rem;
    color: #bbb;
    margin-left: 8px;
    font-weight: 400;
}

/* --- FORM INPUTS --- */
.form-group {
    margin-bottom: 14px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 0.9rem;
}

.input-icon .review-input {
    padding-left: 42px;
}

.review-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    resize: vertical;
    box-sizing: border-box;
}

.review-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.06);
}

.review-input::placeholder {
    color: #bbb;
}

/* --- SUBMIT BUTTON --- */
.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    margin-top: 4px;
}

.submit-review-btn:hover {
    background: #e06a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
}

.submit-review-btn:active {
    transform: translateY(0);
}

/* --- REVIEWS FEED --- */
.reviews-feed {
    background: var(--white);
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 122, 0, 0.06);
    max-height: 300px;
    overflow-y: auto;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #f5f5f5;
    margin-bottom: 14px;
}

.feed-header span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feed-header span:first-child i {
    color: var(--brand-orange);
    margin-right: 8px;
}

.review-count {
    font-size: 0.75rem;
    color: #999;
    background: #f5f5f5;
    padding: 2px 12px;
    border-radius: 20px;
}

.reviews-feed::-webkit-scrollbar {
    width: 4px;
}

.reviews-feed::-webkit-scrollbar-thumb {
    background: var(--brand-orange);
    border-radius: 10px;
}

.reviews-feed::-webkit-scrollbar-track {
    background: transparent;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #999;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: #fafafa;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-orange);
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
    transition: all 0.3s ease;
}

.review-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.review-item:nth-child(1) { animation-delay: 0.05s; }
.review-item:nth-child(2) { animation-delay: 0.1s; }
.review-item:nth-child(3) { animation-delay: 0.15s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.review-item .review-stars {
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.review-item .review-stars i {
    margin-right: 1px;
}

.review-item .review-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
    font-style: italic;
}

.review-item .review-author {
    font-size: 0.78rem;
    color: #777;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-item .review-author::before {
    content: '—';
    color: #bbb;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 15px;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reviews-header h2 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .review-form-card,
    .reviews-feed {
        padding: 20px;
    }
    
    .reviews-stats {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stars-container i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .reviews-header h2 {
        font-size: 1.5rem;
    }
    
    .review-form-card {
        padding: 16px;
    }
    
    .reviews-feed {
        padding: 16px;
        max-height: 200px;
    }
}
.highlights-section { 
  background: var(--brand-green);
  padding: 50px 20px; 
  text-align: center; 
} 

.highlights-section h2 { 
  color: var(--white); 
  letter-spacing: 3px; 
  font-weight: 700; 
  margin-bottom: 35px; 
  text-transform: uppercase; 
} 

.highlight-circle-single { 
  background: var(--white); 
  width: 100px; 
  height: 100px; 
  border-radius: 50%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  color: var(--brand-green);
  font-size: 3rem; 
  margin: 0 auto 15px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
  transition: transform 0.3s; 
} 

.highlight-circle-single:hover { 
  transform: scale(1.1); 
} 

.highlights-section p { 
  color: var(--white); 
  font-size: 1.1rem; 
  font-weight: 500; 
}

.support-section { 
  background: var(--cream); 
  padding: 40px 20px; 
  text-align: center; 
} 

.support-section h2 { 
  color: var(--brand-orange); 
  margin-bottom: 20px; 
} 

.support-grid { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 15px; 
  max-width: 800px; 
  margin: 0 auto; 
} 

.support-chip { 
  background: var(--white); 
  color: var(--brand-orange); 
  border: 1px solid var(--brand-orange); 
  padding: 10px 20px; 
  border-radius: 50px; 
  cursor: pointer; 
  font-weight: 600; 
  transition: 0.2s; 
  text-decoration: none; 
  display: inline-block; 
  font-size: 0.85rem; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
} 

.support-chip:hover { 
  background: var(--brand-orange); 
  color: var(--white); 
  transform: translateY(-2px); 
} 

.checkout-modal { 
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.6); 
  backdrop-filter: blur(4px); 
  z-index: 3000; 
  justify-content: center; 
  align-items: center; 
} 

.checkout-modal.active { 
  display: flex; 
} 

.checkout-content { 
  background: var(--cream); 
  max-width: 450px; 
  width: 92%; 
  padding: 35px 30px; 
  border-radius: 25px; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.3); 
  max-height: 90vh; 
  overflow-y: auto; 
  position: relative; 
} 

.checkout-content h2 { 
  color: var(--brand-orange); 
  margin-bottom: 20px; 
  text-align: center; 
  font-size: 1.6rem; 
} 

.checkout-close-modal { 
  position: absolute; 
  top: 15px; 
  right: 20px; 
  font-size: 1.5rem; 
  cursor: pointer; 
  color: #888; 
} 

.checkout-content label { 
  display: block; 
  font-weight: 600; 
  margin-top: 15px; 
  margin-bottom: 5px; 
  font-size: 0.9rem; 
  color: #444; 
} 

.checkout-content input { 
  width: 100%; 
  padding: 12px; 
  border: 1px solid #ddd; 
  border-radius: 10px; 
  font-size: 1rem; 
  background: white; 
} 

.checkout-item-row { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: white; 
  padding: 10px 15px; 
  border-radius: 10px; 
  margin-bottom: 10px; 
  border: 1px solid #eee; 
} 

.checkout-qty-controls { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
} 

.modal-qty-btn { 
  background: var(--brand-orange); 
  color: white; 
  border: none; 
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  font-weight: bold; 
  cursor: pointer; 
  font-size: 1.1rem; 
} 

.modal-qty-btn:hover { 
  background: #cc6600; 
} 

.modal-qty-display { 
  font-weight: 700; 
  font-size: 1.1rem; 
  width: 20px; 
  text-align: center; 
} 

.modal-delete-btn { 
  background: transparent; 
  border: none; 
  color: var(--danger-red); 
  font-size: 1.2rem; 
  cursor: pointer; 
  padding: 0 5px; 
  margin-left: 5px; 
} 

.checkout-submit-btn { 
  background: var(--brand-orange); 
  color: white; 
  border: none; 
  width: 100%; 
  padding: 15px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 1.1rem; 
  cursor: pointer; 
  margin-top: 20px; 
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3); 
} 

.instagram-float { 
  position: fixed; 
  bottom: 95px; 
  right: 20px; 
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  font-size: 24px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
  z-index: 999; 
  text-decoration: none; 
  transition: 0.3s; 
  border: 3px solid white; 
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
  color: white; 
} 

.instagram-float:hover { 
  transform: scale(1.1); 
} 

.whatsapp-float { 
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  background-color: #25D366; 
  color: white; 
  width: 55px; 
  height: 55px; 
  border-radius: 50%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  font-size: 26px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
  z-index: 999; 
  text-decoration: none; 
  transition: 0.3s; 
  border: 3px solid white; 
} 

.whatsapp-float:hover { 
  transform: scale(1.1); 
  background-color: #128C7E; 
} 

footer { 
  background: #0a0a0a; 
  color: #888; 
  padding: 30px 20px; 
  text-align: center; 
  font-size: 0.85rem; 
  border-top: 4px solid var(--brand-orange); 
} 

footer a { 
  color: var(--brand-orange); 
  text-decoration: none; 
  font-weight: bold; 
} 

.footer-flags { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 10px; 
} 

.social-icons { 
  display: flex; 
  justify-content: center; 
  gap: 15px; 
  margin-top: 15px; 
} 

.social-icons a { 
  font-size: 1.5rem; 
  color: #888; 
  transition: 0.2s; 
} 

.social-icons a:hover { 
  color: var(--brand-orange); 
  transform: scale(1.1); 
} 

.success-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(8px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    opacity:0;
    visibility:hidden;
    transition:.35s ease;
}

.success-popup.show{
    opacity:1;
    visibility:visible;
}

.popup-card{
    width:90%;
    max-width:420px;
    background:#fff;
    border-radius:24px;
    padding:65px 35px 35px;
    text-align:center;
    position:relative;
    box-shadow:
        0 25px 70px rgba(0,0,0,.20),
        0 8px 20px rgba(0,0,0,.08);
    animation:popupScale .35s ease;
}

@keyframes popupScale{
    from{
        transform:scale(.85) translateY(20px);
        opacity:0;
    }
    to{
        transform:scale(1) translateY(0);
        opacity:1;
    }
}

.icon-circle{
    width:90px;
    height:90px;
    background:linear-gradient(135deg,#36d17d,#16a34a);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    position:absolute;
    left:50%;
    top:-45px;
    transform:translateX(-50%);
    box-shadow:0 12px 30px rgba(22,163,74,.35);
}

.icon-circle i{
    color:#fff;
    font-size:40px;
}

.popup-card h2{
    margin-top:5px;
    color:#111827;
    font-size:2rem;
    font-weight:700;
}

.text1{
    color:#6b7280;
    margin:12px 0 22px;
    font-size:1rem;
    line-height:1.6;
}

.order-id{
    display:inline-block;
    background:#f3f4f6;
    padding:14px 24px;
    border-radius:14px;
    margin-bottom:22px;
    font-size:1.15rem;
    font-weight:700;
    color:#16a34a;
    border:2px dashed #16a34a;
}

.order-id span{
    color:#111827;
}

.text3{
    color:#6b7280;
    line-height:1.7;
    margin-bottom:30px;
    font-size:.95rem;
}

.done-btn{
    width:100%;
    border:none;
    padding:15px;
    border-radius:14px;
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:#fff;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.done-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(22,163,74,.35);
}

.done-btn:active{
    transform:scale(.98);
}

@media(max-width:480px){

    .popup-card{
        padding:60px 25px 25px;
    }

    .popup-card h2{
        font-size:1.6rem;
    }

    .icon-circle{
        width:80px;
        height:80px;
        top:-40px;
    }

    .icon-circle i{
        font-size:34px;
    }

    .order-id{
        font-size:1rem;
        width:100%;
    }

}

#trackingPopup .popup-card h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

#trackingPopup .popup-card h2 i {
    margin-right: 8px;
}

.tracking-subtitle {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.tracking-list-container {
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
    padding-right: 5px;
    margin-bottom: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.tracking-list-container::-webkit-scrollbar {
    width: 6px;
}
.tracking-list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tracking-item-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-left: 5px solid #FF7A00;
    transition: background 0.2s;
    position: relative;
}

.tracking-item-card.delivering {
    border-left-color: #A2B54A;
    background: #f4faf0;
}

.tracking-item-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.tracking-item-card .order-items {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.tracking-item-card .order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.status-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    background: #fff3cd;
    color: #856404;
}
.status-badge.delivering {
    background: #d4edda;
    color: #155724;
}

.done-btn { 
  width: 100%; 
  border: none; 
  padding: 14px; 
  background: #2ecc71; 
  color: #fff; 
  font-size: 16px; 
  font-weight: bold; 
  border-radius: 14px; 
  cursor: pointer; 
  transition: .25s; 
} 

.done-btn:hover { 
  background: #27ae60; 
}

#adminBtn { 
  background: #1e88e5; 
  color: #fff; 
} 

#adminBtn:hover { 
  background: #1565c0; 
}

/* ============================================================ */
/* GAME SECTION - CLEAN & COMFORTABLE */
/* ============================================================ */

.game-section {
    background: linear-gradient(145deg, #faf8f5 0%, #f0ece6 100%);
    padding: 40px 20px 60px;
    border-radius: 40px 40px 0 0;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.game-header-container {
    margin-bottom: 30px;
    text-align: center;
}

.game-main-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-sub-title {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
    background: rgba(255,255,255,0.8);
    padding: 8px 24px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(162, 181, 74, 0.15);
}

.game-box {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.game-canvas-wrapper {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 25px 20px 20px;
    border: 1px solid rgba(255, 122, 0, 0.08);
    position: relative;
}

/* --- STATS BAR --- */
.game-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f6f2;
    border-radius: 16px;
    padding: 12px 8px;
    margin-bottom: 20px;
    border: 1px solid #eae5de;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-icon { font-size: 1.1rem; }
.stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-green);
    background: white;
    padding: 2px 12px;
    border-radius: 12px;
    min-width: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* --- CARD GRID --- */
#cardGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.memory-card {
    aspect-ratio: 1 / 1;
    perspective: 800px;
    cursor: pointer;
    transition: transform 0.2s;
}

.memory-card:hover:not(.flipped):not(.matched) {
    transform: scale(1.02);
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 14px;
}

.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARD BACK (UNFLIPPED) */
.memory-card-back {
    background: linear-gradient(145deg, #FF7A00, #e06a00);
    color: white;
    transform: rotateY(0deg);
    border: 2px solid #cc6600;
    font-size: 2rem;
}

.memory-card-back i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* CARD FRONT (FLIPPED) */
.memory-card-front {
    background: #ffffff;
    color: var(--text-dark);
    transform: rotateY(180deg);
    border: 2px solid #eee;
    font-size: 2.8rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.02);
}

/* MATCHED ANIMATION */
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg) scale(0.94);
}

.memory-card.matched .memory-card-front {
    background: #e8f5e9;
    border-color: var(--brand-green);
    box-shadow: 0 0 25px rgba(162, 181, 74, 0.2);
    animation: matchPulse 0.4s ease;
}

@keyframes matchPulse {
    0% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.08); }
    100% { transform: rotateY(180deg) scale(0.94); }
}

.memory-card.matched {
    cursor: default;
}

/* --- OVERLAY --- */
#gameOverlay, #winOverlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    z-index: 20;
    animation: overlayFade 0.4s ease;
}

#gameOverlay.show, #winOverlay.show {
    display: flex;
}

@keyframes overlayFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* --- GAME OVERLAY ICON --- */
#gameOverlay .overlay-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    display: inline-block;

    animation: bounceIcon 1.5s ease-in-out infinite;
}

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

#gameOverlay h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

#gameOverlay p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
    max-width: 260px;
    line-height: 1.5;
}

.game-start-btn {
    background: linear-gradient(145deg, #FF7A00, #e06a00) !important;
    color: white !important;
    border: none !important;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.game-start-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.4) !important;
}

/* --- WIN OVERLAY --- */
#winOverlay .win-icon { font-size: 4rem; }
#winOverlay .win-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-orange);
    margin: 8px 0 4px;
}
#winOverlay .win-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

.discount-card {
    background: linear-gradient(145deg, #fff9e6, #fff3cc);
    border: 3px solid var(--gold);
    border-radius: 20px;
    padding: 25px 20px;
    margin: 8px 0 20px;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    animation: discountPulse 2s ease-in-out infinite;
}

@keyframes discountPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 8px 50px rgba(255, 215, 0, 0.4); }
}

.discount-icon { font-size: 2.5rem; margin-bottom: 4px; }
.discount-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    font-weight: 600;
}
.discount-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand-orange);
    line-height: 1.2;
}
.discount-message {
    font-size: 0.8rem;
    color: #777;
    margin: 4px 0 12px;
}

.claim-discount-btn {
    background: linear-gradient(145deg, #FF7A00, #e06a00);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
    font-family: 'Poppins', sans-serif;
}

.claim-discount-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 122, 0, 0.4);
}

.win-emoji-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-top: 8px;
}

.win-emoji-row span {
    animation: emojiFloat 2.5s ease-in-out infinite;
}
.win-emoji-row span:nth-child(2) { animation-delay: 0.3s; }
.win-emoji-row span:nth-child(3) { animation-delay: 0.6s; }
.win-emoji-row span:nth-child(4) { animation-delay: 0.9s; }
.win-emoji-row span:nth-child(5) { animation-delay: 1.2s; }

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(4deg); }
}

/* --- ENCOURAGEMENT POPUP --- */
.encouragement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    padding: 16px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 99999;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    pointer-events: none;
    animation: popupFade 2s ease forwards;
}

@keyframes popupFade {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    30% { transform: translate(-50%, -50%) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .game-main-title { font-size: 1.8rem; }
    .game-sub-title { font-size: 0.85rem; padding: 6px 16px; }
    .game-canvas-wrapper { padding: 16px 12px; border-radius: 24px; }
    #cardGrid { gap: 8px; }
    .memory-card-front, .memory-card-back { font-size: 1.6rem; border-radius: 10px; }
    .stat-value { font-size: 0.9rem; padding: 2px 8px; min-width: 22px; }
    .game-stats { padding: 8px 4px; }
    #gameOverlay { padding: 20px; }
    #gameOverlay h3 { font-size: 1.4rem; }
    #gameOverlay p { font-size: 0.85rem; max-width: 220px; }
    #gameOverlay .overlay-icon { font-size: 3rem; }
    .game-start-btn { padding: 12px 30px !important; font-size: 0.9rem !important; }
    .win-title { font-size: 1.4rem; }
    .discount-amount { font-size: 2.4rem; }
    .discount-card { padding: 20px 15px; }
    .claim-discount-btn { padding: 10px 20px; font-size: 0.85rem; }
    .win-emoji-row { font-size: 1.2rem; gap: 6px; }
    .encouragement-popup { font-size: 1.4rem; padding: 12px 20px; max-width: 90%; }
}

/* --- RESPONSIVE MEDIA QUERIES --- */ 
@media (max-width: 900px) { 
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 columns on tablets & mobile */
    gap: 12px; /* Tighter gap for small screens */
  } 
}
@media (max-width: 600px) {
    .product-card {
        flex-direction: column; /* Stack image on top of text */
        padding: 12px;
        gap: 10px;
    }
    
    .product-img-box {
        flex: none;
        width: 100%;
        height: auto;
        padding: 0;
    }
    
    .product-img-wrapper {
        height: 140px; /* Smaller height for mobile */
    }
    
    .product-info-main h3 {
        font-size: 1rem; /* Smaller title */
    }
    
    .product-description {
        font-size: 0.6rem !important;   /* Make it smaller */
        margin-bottom: 6px !important;  /* Tighten the bottom gap */
        min-height: auto !important;    /* Stop forcing a fixed height */
        -webkit-line-clamp: 1 !important; /* Force exactly 1 line */
    }
    
    .compact-size-selector {
        min-width: 100%; /* Make the size selector take full width */
        margin-bottom: 6px;
    }
    
    .product-footer {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .price-tag-main {
        font-size: 1.1rem;
    }
    
    /* Force perfect alignment between the Qty pill and Add button */
    .cart-qty-pill,
    .cart-add-btn {
        height: 30px !important; /* Exactly the same height */
    }

    .cart-qty-pill {
        min-width: 55px !important; /* Stops it from being too wide */
        padding: 0 4px !important;  /* Tighter padding to match button width */
    }

    .cart-add-btn {
        min-width: 60px !important;
        padding: 0 10px !important;
    }
    .cart-qty-btn:active,
    .cart-add-btn:active {
        transform: scale(0.92) !important;
        opacity: 0.8 !important;
    }
}  

@media (max-width: 768px) { 
  .nav-links { display: none; } 
  .hamburger { display: block; } 
  .hero h1 { font-size: 2.5rem; } 
  .trust-bar { font-size: 0.75rem; gap: 10px; } 
  .product-img-box { flex: 0 0 140px; padding: 0; } 
  .product-img-wrapper { height: 140px; } 
  .product-info-main h3 { font-size: 1rem; } 
  .size-option { font-size: 0.6rem; padding: 3px 6px; } 
  .price-tag-main { font-size: 0.9rem; } 
  .toast { max-width: 90%; right: 5%; } 
  .details-panel { width: 94%; padding: 25px 20px; } 
  .panel-img { width: 160px; height: 160px; } 
  .panel-title { font-size: 22px; } 
  .popup-card { width: 92%; padding: 30px 20px; } 
  .icon-circle { width: 80px; height: 80px; } 
  .icon-circle i { font-size: 40px; } 
  .popup-card h2 { font-size: 26px; } 
  .text1 { font-size: 18px; } 
  .done-btn { padding: 14px; } 
  .product-description {
    font-size: 0.6rem;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    min-height: auto !important;
  }
  .encouragement-message {
    font-size: 1.8rem;
    padding: 15px 25px;
    max-width: 90%;
  }
  .discount-amount {
    font-size: 2.8rem;
  }
  .win-title {
    font-size: 1.6rem;
  }
} 

@media (max-width: 480px) { 
  .game-canvas-wrapper { 
    padding: 15px 12px 12px 12px; 
    border-radius: 20px;
  } 
  #cardGrid { gap: 8px; } 
  .game-stats { 
    padding: 10px 6px;
    gap: 0;
  }
  .stat-label {
    font-size: 0.5rem;
  }
  .stat-value {
    font-size: 0.85rem;
    padding: 2px 8px;
    min-width: 20px;
  }
  .stat-icon {
    font-size: 1rem;
  }
  .memory-card-front, .memory-card-back { 
    font-size: 1.6rem; 
    border-radius: 10px;
  }
  .memory-card-back::before {
    font-size: 2rem;
  }
  .memory-card-back::after {
    font-size: 0.4rem;
    bottom: 4px;
  }
  .memory-card-front {
    font-size: 2rem;
  }
  .game-main-title { 
    font-size: 1.8rem; 
    letter-spacing: 0px;
  } 
  .game-sub-title { 
    font-size: 0.85rem; 
    padding: 6px 15px;
  }
  .overlay-icon {
    font-size: 3.5rem;
  }
  #overlayTitle {
    font-size: 1.4rem;
  }
  #overlaySubtitle {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
  .game-start-btn {
    padding: 14px 35px !important;
    font-size: 0.95rem !important;
  }
  .game-canvas-wrapper {
    padding: 15px 10px 10px 10px;
  }
  .encouragement-message {
    font-size: 1.4rem;
    padding: 12px 20px;
    max-width: 95%;
  }
  .game-section::before,
  .game-section::after {
    font-size: 3rem;
    opacity: 0.03;
  }
  .win-icon {
    font-size: 3.5rem;
  }
  .win-title {
    font-size: 1.4rem;
  }
  .discount-card {
    padding: 20px 15px;
  }
  .discount-amount {
    font-size: 2.5rem;
  }
  .claim-discount-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .win-emoji-row {
    font-size: 1.4rem;
    gap: 8px;
  }
}

.phone-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-group select {
    width: 110px;
    min-width: 110px;
    padding: 10px 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.phone-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; padding: 15px;
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: #fff; width: 95%; max-width: 1300px;
    max-height: 90vh; border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; overflow: hidden;
    animation: popupScale .3s ease;
}
.modal-header {
    background: var(--brand-orange); color: white;
    padding: 20px 25px; display: flex; justify-content: space-between;
    align-items: center; border-radius: 16px 16px 0 0;
}
.modal-header h2 { margin: 0; font-size: 1.3rem; }
.modal-close-btn {
    font-size: 2rem; cursor: pointer; line-height: 1;
    transition: 0.2s;
}
.modal-close-btn:hover { transform: scale(1.1); opacity: 0.8; }
.modal-body {
    padding: 20px; overflow-y: auto; background: #fafafa;
}
.modal-body table {
    width: 100%; background: white; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-collapse: collapse; font-size: 0.85rem;
}
.modal-body th {
    text-align: left; padding: 15px 12px; background: #f8f9fa;
    position: sticky; top: 0; border-bottom: 2px solid #e9ecef;
}
.modal-body td {
    padding: 12px; border-bottom: 1px solid #f1f1f1; vertical-align: middle;
}
.modal-body tr:hover { background: #fafafa; }
.modal-body .badge-status { font-size: 0.65rem; }

/* =========================================== */
/* BOTTOM CTA & SUPPORT SECTION */
/* =========================================== */
.bottom-cta-section {
    background: var(--beige-light);
    padding: 60px 20px 40px;
    text-align: center;
}

.bottom-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Support Chips */
.support-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.support-chip {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid #eae5de;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.support-chip:hover {
    background: var(--brand-orange);
    color: var(--white);
    border-color: var(--brand-orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.2);
}

.support-chip i {
    color: var(--brand-orange);
    transition: color 0.25s ease;
}

.support-chip:hover i {
    color: var(--white);
}

/* Contact CTA */
.contact-cta-wrapper {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eae5de;
}

.contact-cta-wrapper p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.contact-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* =========================================== */
/* FOOTER (COMPACT) */
/* =========================================== */
.main-footer {
    background: #0a0a0a;
    color: #888;
    padding: 20px 20px;
    border-top: 3px solid var(--brand-orange);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    font-size: 1rem;
    color: #666;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    color: var(--brand-orange);
    transform: scale(1.1);
}

.footer-copy {
    font-size: 0.7rem;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* --- RESPONSIVE (Mobile) --- */
@media (max-width: 600px) {
    .main-footer {
        padding: 16px 15px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .footer-left {
        gap: 8px;
        justify-content: center;
    }
    .footer-logo {
        height: 24px;
    }
    .footer-tagline {
        font-size: 0.7rem;
    }
    .footer-right {
        flex-direction: column;
        gap: 4px;
    }
    .footer-socials a {
        font-size: 0.9rem;
    }
    .footer-copy {
        font-size: 0.65rem;
    }
    .out-of-stock-badge {
        height: 28px !important;       /* Forces same height as the Add button */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 12px !important;
        font-size: 0.7rem !important;
        min-width: 60px !important;    /* Forces same width as the Add button */
    }
    .product-header-row {
        align-items: center; /* Centers them perfectly on the same line */
    }
    
    .product-info-main h3 {
        font-size: 0.95rem;
        line-height: 1.2;
        margin-top: 2px;               /* Drops the title down slightly to align with the badge */
    }

    .flavor-badge {
        margin-top: 0 !important; /* Remove the extra top space */
        font-size: 0.5rem !important;
        padding: 2px 8px !important;
        line-height: 1.4 !important; /* Tighter text line height */
    }
}

/* =========================================== */
/* 🛡️ MOBILE SAFETY PATCH */
/* =========================================== */

/* 1. Fix mobile menu height so it doesn't break scrolling */
@media (max-width: 768px) {
    .mobile-menu {

        overflow-y: auto !important;          /* Scroll inside menu instead of whole page */
    }
}

/* 2. Fix checkout modal hidden buttons on mobile */
@media (max-width: 480px) {
    .checkout-content {
        max-height: 85vh !important;         /* Fits perfectly on tiny screens */
        padding: 25px 20px !important;       /* Slightly tighter padding */
    }
    .checkout-submit-btn {
        font-size: 1rem !important;          /* Ensures it stays readable */
    }
}

/* 3. Prevent horizontal scrollbars on extremely small devices */
@media (max-width: 360px) {
    body, html {
        overflow-x: hidden !important;
    }
    .container {
        padding: 0 10px !important;
    }
    .product-card {
        padding: 10px !important;
        gap: 10px !important;
    }
}

/* =========================================== */
/* 🚀 FINAL MOBILE POLISH PATCH */
/* =========================================== */

/* 1. Ensure price and controls never overlap on tiny screens */
@media (max-width: 480px) {
    .product-footer {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }
    .product-footer > div {
        width: auto;
    }
    .compact-size-selector {
        min-width: 120px;
    }
}

/* --- LOGIN MOTIVATION POPUP --- */
#loginMotivationPopup .popup-card {
    max-width: 400px;
}

#loginMotivationPopup .done-btn {
    background: var(--brand-orange) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 12px 30px;
}
#loginMotivationPopup .done-btn:hover {
    background: #cc6600 !important;
}

/* --- CUSTOM PACKAGE MODAL (RESPONSIVE & SPACIOUS) --- */
.custom-package-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Added padding for small screens */
}
.custom-package-modal.active { display: flex; }

.custom-package-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px; /* More padding for breathing room */
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* --- CLOSE BUTTON --- */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    font-weight: 300;
    color: #888;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    line-height: 1;
}
.close-modal:hover {
    color: #333;
    background: #e5e7eb;
    transform: rotate(90deg) scale(1.05);
}

/* --- MODAL HEADER --- */
.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px; /* Gives space between the header container and the subtitle */
}
.modal-header h2 {
    font-size: 1.6rem;
    margin: 0 0 2px 0; /* Ensures the text doesn't touch the bottom of its own line */
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2; /* Cleaner vertical space for the title text */
    white-space: nowrap;
}
.modal-header i {
    color: var(--brand-orange);
    font-size: 1.5rem;
}
.package-info {
    color: #777;
    font-size: 0.95rem;
    margin-top: 12px; 
    margin-bottom: 30px; /* More space before grid */
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

/* --- FLAVOR GRID --- */
.flavor-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px; /* Increased gap between cards */
    margin-bottom: 30px; /* More space after grid */
}

.flavor-option {
    background: #fafbfc;
    border: 2px solid #f0f0f0;
    border-radius: 16px; /* More rounded corners */
    padding: 20px 12px 18px; /* More internal padding */
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.flavor-option:hover:not(.disabled) { 
    border-color: var(--brand-orange); 
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.12);
}
.flavor-option.selected { 
    border-color: var(--brand-orange); 
    background: rgba(255, 122, 0, 0.05);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.08);
}
.flavor-option.selected .flavor-name {
    color: var(--brand-orange);
    font-weight: 700;
}

/* --- OUT OF STOCK STYLES --- */
.flavor-option.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e5e7eb;
}
.flavor-option.disabled .flavor-name {
    color: #a0a0a0;
}
.flavor-option.disabled .flavor-qty button {
    background: #e5e7eb !important;
    color: #b0b0b0 !important;
    cursor: not-allowed;
    transform: none !important;
}

/* --- FLAVOR NAME & BADGE --- */
.flavor-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px; /* More space below name */
}
.out-of-stock-badge {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #ff4d4d;
    background: #ffe6e6;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 8px;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* --- QTY CONTROLS --- */
.flavor-option .flavor-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* More gap between buttons */
    margin-top: 4px;
}
.flavor-option .flavor-qty button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--brand-orange);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(255, 122, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flavor-option .flavor-qty button:hover:not(:disabled) { 
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 122, 0, 0.3);
}
.flavor-option .flavor-qty button:active:not(:disabled) {
    transform: scale(0.95);
}
.flavor-option .flavor-qty span {
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 26px;
    text-align: center;
    color: #333;
    background: transparent !important;
    border: none !important;
}

/* --- PACKAGE SUMMARY BOX --- */
.package-summary {
    background: #f8f9fa;
    padding: 22px 26px; /* More padding */
    border-radius: 16px;
    margin-bottom: 30px; /* More space before button */
    border: 1px solid #f0f0f0;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0; /* More spacing between lines */
    font-size: 1rem;
    color: #333;
}
.summary-row:last-child {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px; /* More space above total */
    margin-top: 8px;
}
.summary-row .price-value {
    font-weight: 700;
    color: var(--brand-orange);
    font-size: 1.15rem;
}
.summary-row .total-count {
    font-weight: 600;
}
.summary-row .total-count.complete {
    color: var(--brand-green);
}

/* --- ADD PACKAGE BUTTON --- */
.add-package-btn {
    width: 100%;
    padding: 18px; /* Taller button */
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: not-allowed;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
}
.add-package-btn:not(:disabled) {
    background: var(--brand-orange);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.25);
}
.add-package-btn:not(:disabled):hover {
    background: #e06a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.35);
}
.add-package-btn:not(:disabled):active {
    transform: translateY(0);
}
.add-package-btn i {
    font-size: 1.1rem;
}

/* ========================================= */
/* 🔵 RESPONSIVE TWEAKS (Mobile & Tablet)    */
/* ========================================= */

/* Tablet */
@media (max-width: 768px) {
    .custom-package-content {
        padding: 30px;
        max-width: 95%;
    }
    .flavor-selection-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .custom-package-content {
        padding: 25px 25px;
        border-radius: 20px;
        max-height: 85vh;
    }
    .flavor-selection-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on small phones */
        gap: 12px;
    }
    .flavor-option {
        padding: 16px 8px 14px;
        border-radius: 14px;
    }
    .flavor-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .flavor-option .flavor-qty button {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .flavor-option .flavor-qty span {
        font-size: 1rem;
        min-width: 22px;
    }
    .modal-header h2 {
        font-size: 1.2rem;
    }
    .modal-subtitle {
        font-size: 0.8rem;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }
    .package-summary {
        padding: 18px 16px;
        margin-bottom: 25px;
    }
    .summary-row {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    .summary-row .price-value {
        font-size: 1rem;
    }
    .add-package-btn {
        padding: 15px;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    .close-modal {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* --- SUPPORT INFO MODAL --- */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.info-modal-overlay.active {
    display: flex;
}

.info-modal-box {
    background: #fff;
    max-width: 450px;
    width: 100%;
    padding: 35px 30px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    animation: modalSlideUp 0.3s ease;
    text-align: left;
}

.info-modal-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-modal-box h3 i {
    color: var(--brand-orange);
}

.info-modal-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 8px 0;
}
.info-modal-box .highlight-text {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--brand-orange);
    margin-top: 10px;
    font-weight: 500;
}

.info-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.6rem;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}
.info-modal-close:hover {
    color: #333;
    transform: rotate(90deg);
}

.info-modal-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}
.info-modal-btn:hover {
    background: #e06a00;
    transform: translateY(-2px);
}