/* =========================================================================
   CREATIVE & STANDARD UPGRADES (SEO/A11Y/ANIMATIONS)
   ========================================================================= */

/* --- 1. Infinite Marquee Banner --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #ff0055, #ff3366, #ff0055); 
  background-size: 200% auto;
  color: white; 
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1005;
  font-size: 14px; 
  font-weight: 800; 
  letter-spacing: 1px;
}

.marquee-content {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

.marquee-content span {
  display: inline-block;
  padding: 0 40px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Shift half width if items are duplicated enough */
}

/* --- 2. Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- 3. 3D Tilt Card Glow Enhancements & Hover States --- */
/* The vanilla-tilt.js will handle the inline transform, we'll boost the hover box-shadow */
.flavor-card.premium-glass {
  transition: box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.flavor-card.premium-glass:hover {
  box-shadow: 0 15px 35px var(--theme-glow, rgba(0,0,0,0.1));
}
/* Pop out the image a bit on tilt */
.flavor-card.premium-glass:hover .flavor-card-img {
  transform: translateZ(30px) scale(1.05);
  transition: transform 0.3s ease;
}
.flavor-card.premium-glass .flavor-card-img {
  transition: transform 0.3s ease;
}

/* --- 4. Dynamic Blob Parallax Background --- */
.bg-blob-1, .bg-blob-2 {
  transition: transform 0.1s ease-out; /* Smooth follow on scroll */
}

/* Clean UI tweaks */
header nav.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Accessibility focus rings */
button:focus-visible, a:focus-visible {
  outline: 2px solid #ff3366;
  outline-offset: 3px;
}


@media (max-width: 768px) {
  .marquee-container {
    font-size: 11px;
    height: 30px;
    padding: 7px 0;
  }
  .marquee-content span { padding: 0 15px; }
  header { top: 30px !important; }
}

/* =========================================================================
   SHOPPING CART DESIGN SYSTEM
   ========================================================================= */

/* Nav Controls Group */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Navbar Cart Button (Top Right Header Control) */
.btn-nav-cart {
  position: relative;
  background: rgba(255, 96, 0, 0.12);
  border: 1px solid rgba(255, 96, 0, 0.4);
  color: var(--accent-current, #ff6000) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.15);
}
.btn-nav-cart:hover {
  background: var(--accent-current, #ff6000);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 96, 0, 0.4);
}

/* Navbar Inline Cart Button (Navigation Links) */
.btn-nav-cart-link {
  background: rgba(255, 96, 0, 0.12);
  border: 1px solid rgba(255, 96, 0, 0.4);
  color: var(--accent-current, #ff6000) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.12);
}
.btn-nav-cart-link:hover {
  background: var(--accent-current, #ff6000);
  color: #ffffff !important;
  border-color: var(--accent-current, #ff6000);
  box-shadow: 0 6px 20px rgba(255, 96, 0, 0.4);
}
.btn-nav-cart-link *, .floating-cart-btn *, .btn-nav-cart * {
  pointer-events: none;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff0055, #ff3366);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 0, 85, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.bump {
  animation: badge-bump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes badge-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Catalog Card Action Buttons */
.card-action-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  width: 100%;
  position: relative;
  z-index: 5;
}
.btn-add-cart {
  flex: 1.2;
  background: linear-gradient(135deg, var(--accent-current, #ff6000), #ff9f00);
  color: #ffffff !important;
  border: none;
  padding: 10px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(255, 96, 0, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-add-cart:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(255, 96, 0, 0.5);
}
.card-action-btns .btn-catalog-buy {
  flex: 0.8;
  margin-top: 0 !important;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: var(--text-primary, #0f172a) !important;
  padding: 10px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  height: auto !important;
  white-space: nowrap;
}
.card-action-btns .btn-catalog-buy:hover {
  background: var(--accent-current, #ff6000);
  color: #ffffff !important;
  border-color: var(--accent-current, #ff6000);
  box-shadow: 0 4px 14px rgba(255, 96, 0, 0.3);
}

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6000, #ff9f00);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 96, 0, 0.5), 0 0 0 4px rgba(255, 96, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-cart-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 16px 35px rgba(255, 96, 0, 0.6), 0 0 0 6px rgba(255, 96, 0, 0.3);
}

/* Toast Notification (Top Right Luxury Pill) */
.cart-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 96, 0, 0.5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-toast.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.cart-toast-body {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-toast-body i {
  color: #00c853;
  font-size: 1.1rem;
}
.cart-toast-btn {
  background: var(--accent-current, #ff6000);
  color: #ffffff !important;
  border: none;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
}
.cart-toast-btn:hover {
  transform: scale(1.05);
}

/* Centered Glassmorphic Cart Modal Overlay (Matching Product Details Showcase Modal Theme) */
#cartDrawerOverlay {
  z-index: 2100;
}
#cartDrawerOverlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 10100 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px;
}
.cart-drawer-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.cart-drawer {
  width: 95%;
  max-width: 650px;
  max-height: 85vh;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(9, 13, 22, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 96, 0, 0.15);
  overflow: hidden;
}
.cart-drawer-overlay.active .cart-drawer {
  transform: translateY(0) scale(1) !important;
}

/* Cart Header */
.cart-drawer-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.cart-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.cart-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-header-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.cart-item-count-pill {
  background: rgba(255, 96, 0, 0.15);
  border: 1px solid rgba(255, 96, 0, 0.3);
  color: var(--accent-current, #ff6000);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
}
.cart-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-drawer-close:hover {
  background: rgba(255, 0, 85, 0.3);
  color: #ff3366;
}

/* Shipping Progress Tracker */
.shipping-progress-box {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}
.shipping-progress-text {
  font-size: 0.82rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.shipping-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6000, #00e5ff);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Cart Body & Items List */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.3s ease;
}
.cart-item-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 96, 0, 0.3);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}

.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.cart-item-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.cart-item-price {
  color: var(--accent-current, #ff6000);
  font-weight: 800;
}
.cart-item-original {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cart-qty-btn:hover {
  background: var(--accent-current, #ff6000);
  border-color: var(--accent-current, #ff6000);
}
.cart-qty-num {
  font-weight: 800;
  font-size: 0.9rem;
  min-width: 16px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.cart-item-remove:hover {
  color: #ff3366;
}

/* Empty Cart View */
.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.cart-empty-state .empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 16px;
}
.cart-empty-state h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.cart-empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Cart Footer & Summary */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 15, 0.8);
}
.cart-summary-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cart-summary-row.discount-row {
  color: #ff3366;
  font-weight: 700;
}
.summary-val {
  font-weight: 700;
  color: #fff;
}
.summary-free {
  color: #00c853;
  font-weight: 800;
}
.summary-discount {
  font-size: 0.85rem;
  font-weight: 800;
}
.cart-summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
.cart-summary-row.total-row {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.summary-total {
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--accent-current, #ff6000);
}

.cart-actions-box {
  display: flex;
  gap: 10px;
}
.btn-cart-checkout {
  flex: 2;
  background: linear-gradient(135deg, var(--accent-current, #ff6000), #ff9f00);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 96, 0, 0.4);
  transition: all 0.3s ease;
}
.btn-cart-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 96, 0, 0.6);
}
.btn-clear-cart {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-clear-cart:hover {
  background: rgba(255, 0, 85, 0.15);
  border-color: rgba(255, 0, 85, 0.4);
  color: #ff3366;
}

/* Inline Cart Checkout Form */
.cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}
.form-section-title {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cart-trust-badges {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
}
.cart-trust-badges i {
  color: var(--accent-current, #ff6000);
  margin-right: 4px;
}
.cart-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Mobile Media Queries */
@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
  }
  .floating-cart-btn {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .cart-toast {
    top: auto;
    bottom: 80px;
    right: 12px;
    left: 12px;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85rem;
    gap: 10px;
    transform: translateY(120%);
    justify-content: space-between;
  }
  .cart-toast.active {
    transform: translateY(0);
  }
}

/* Cart overlay responsive - ensure cart items scroll on mobile */
@media (max-width: 768px) {
  #cartDrawerOverlay .showcase-gallery {
    max-height: 50vh;
    overflow-y: auto;
  }
  #cartDrawerOverlay .cart-items-list {
    max-height: 30vh;
    overflow-y: auto;
  }
}

