/* ==========================================================================
   CooX - High Resolution & Dark Red Hover Theme
   ========================================================================== */

:root {
  --bg-hero: #F8E7E9;
  --bg-card: #F8E5E9;
  --bg-card-hover: #66001B; /* Dark red on hover matching screenshot 2 */
  --bg-pill: #D9C4C8; /* Soft dusty rose pill bar background from target screenshot */
  --bg-info: #F3EAE1; /* Soft warm sandy beige matching target screenshot */
  --bg-footer: #66001B;
  
  --text-dark: #1F191A;
  --text-muted: #5C4E51;
  --text-light: #FFFFFF;
  --accent-maroon: #66001B;
  --accent-maroon-pill: #6E0A1E; /* Deep dark red active pill from target screenshot */
  --vegan-green: #738A75; /* Exact sage green color for V-label icon */
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-title: 'Quicksand', 'Outfit', sans-serif; /* Rounded geometric font matching target screenshot */
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #FFFFFF;
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Floating Header (Exact Replica of Target Screenshot) */
.floating-header-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
}

.floating-header {
  max-width: 1160px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 16px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #66001B;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #66001B;
  margin-top: 3px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.header-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: #66001B; /* Dark maroon link color matching target screenshot */
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.75;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-tag {
  font-size: 0.85rem;
  font-weight: 600;
  background: #F4E8EA;
  color: var(--accent-maroon);
  padding: 5px 12px;
  border-radius: 999px;
}

.cart-btn {
  position: relative;
  background: var(--accent-maroon);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.cart-btn:hover {
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--accent-maroon);
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-hero);
  min-height: 720px;
  padding: 0;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: none;
  min-height: 720px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 64px 90px;
  text-align: center;
}

.hero-subbrand {
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-maroon);
  letter-spacing: 0.24em;
  display: block;
  margin-bottom: 13px;
}

.hero-heading {
  max-width: 650px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 4.75rem;
  font-weight: 400;
  line-height: 0.98;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}

.hero-media-side {
  min-width: 0;
  min-height: 720px;
  overflow: hidden;
  background: #8C0A28;
}

.hero-video {
  width: 100%;
  height: 100%;
  min-height: 720px;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Category Filter Section (Interactive Exclusive Hover Highlight) */
.category-section {
  background-color: #FFFFFF;
  padding: 70px 24px 50px;
  text-align: center;
}

.category-container {
  max-width: 1300px;
  margin: 0 auto;
}

.category-pill-bar {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-pill); /* #D9C4C8 */
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(110, 10, 30, 0.08);
}

.cat-pill {
  padding: 22px 58px;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  background: transparent;
  border: none;
}

/* Default Active Tab (When NOT hovering over the bar) */
.cat-pill.active {
  background-color: var(--accent-maroon-pill) !important; /* #6E0A1E */
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(110, 10, 30, 0.3);
}

/* When hovering over the category pill bar: reset active pill background so ONLY the hovered pill is highlighted! */
.category-pill-bar:hover .cat-pill.active {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Hovered Option: Exclusively receives the dark red highlight */
.cat-pill:hover {
  background-color: var(--accent-maroon-pill) !important; /* #6E0A1E */
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(110, 10, 30, 0.3) !important;
}

/* Ice Cream 3D Circular Orbit Carousel Section */
.ice-cream-section {
  padding: 60px 24px 100px;
  background-color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.ice-cream-carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--accent-maroon);
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
  transition: all 0.25s ease;
  border: 1px solid rgba(0,0,0,0.06);
}

.carousel-arrow:hover {
  background: var(--accent-maroon);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.12);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.ice-cream-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 360px;
  transform-style: preserve-3d;
}

.ice-cream-card {
  position: absolute;
  top: 40px;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease, filter 0.75s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.ice-cream-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.15));
  transition: filter 0.75s ease;
}

/* Active Ice Cream Title Display (Single Row) */
.ice-cream-active-title {
  margin-top: 44px;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  white-space: nowrap; /* Always on 1 single row */
  text-align: center;
  transition: opacity 0.3s ease;
}

.ice-cream-cart-bar {
  margin-top: 24px;
}

.ice-cream-add-btn {
  background: var(--accent-maroon);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(102, 0, 27, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.ice-cream-add-btn:hover {
  transform: scale(1.05);
  background: #7E0A26;
}

/* Matcha 3D Circular Orbit Carousel Section */
.matcha-section {
  padding: 60px 24px 100px;
  background-color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.matcha-carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.matcha-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 360px;
  transform-style: preserve-3d;
}

.matcha-card {
  position: absolute;
  top: 40px;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease, filter 0.75s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

.matcha-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.15));
  transition: filter 0.75s ease;
}

/* Active Matcha Title Display (Single Row) */
.matcha-active-title {
  margin-top: 44px;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  white-space: nowrap; /* Always on 1 single row */
  text-align: center;
  transition: opacity 0.3s ease;
}

.matcha-cart-bar {
  margin-top: 24px;
}

.matcha-add-btn {
  background: var(--accent-maroon);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(102, 0, 27, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.matcha-add-btn:hover {
  transform: scale(1.05);
  background: #7E0A26;
}

/* Cookies Staggered Layout Section */
.cookies-list-section {
  padding: 60px 24px 120px;
  background-color: #FFFFFF;
}

.cookies-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.cookie-row {
  display: flex;
  width: 100%;
  position: relative;
}

/* Banner Card Styling */
.banner-card {
  background-color: var(--bg-card);
  border-radius: 24px;
  padding: 44px 52px;
  display: flex;
  align-items: center;
  width: 58%;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* HOVER STATE: Dark Red Background & White Text */
.banner-card:hover {
  background-color: var(--bg-card-hover);
  color: #FFFFFF;
}

.banner-card:hover .cookie-title,
.banner-card:hover .cookie-desc,
.banner-card:hover .banner-price,
.banner-card:hover .add-link {
  color: #FFFFFF !important;
}

/* Small Cookies Theme (Warm Sandy Beige Cards matching User Screenshot) */
.small-cookies-theme .banner-card {
  background-color: #F5EBE1 !important; /* Sandy beige color from user screenshot */
}

.small-cookies-theme .banner-card:hover {
  background-color: var(--bg-card-hover) !important; /* Dark red on hover */
  color: #FFFFFF !important;
}

/* Alignment Rules */
.cookie-row.right-banner {
  justify-content: flex-end;
}

.cookie-row.left-banner {
  justify-content: flex-start;
}

/* BIGGER Cookie Image Wrappers & Cutouts */
.cookie-img-wrapper {
  width: 360px;
  height: 360px;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.cookie-cutout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.18));
  transition: none !important;
}

/* Position Cookies overlapping Card edges */
.cookie-row.right-banner .cookie-img-wrapper {
  right: -100px;
}

.cookie-row.left-banner .cookie-img-wrapper {
  left: -100px;
}

/* Increased Spacing between Cookie Cutout Image and Card Title/Description */
.cookie-row.left-banner .banner-text {
  margin-left: 240px;
}

.cookie-row.right-banner .banner-text {
  margin-right: 240px;
}

/* Text Typography & Internal Spacing */
.banner-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: color 0.3s ease;
}

.title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Exact V-Label Vegan Leaf Icon Styling (Enlarged to 44px) */
.vegan-v-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 2px;
}

.vegan-v-icon .v-stem {
  stroke: var(--vegan-green);
  transition: stroke 0.3s ease;
}

.vegan-v-icon .v-leaf {
  fill: var(--vegan-green);
  transition: fill 0.3s ease;
}

.vegan-v-icon .v-vein {
  stroke: #FFFFFF;
  transition: stroke 0.3s ease;
}

/* Green SuperScript (vegan) Tag */
.vegan-tag {
  font-size: 0.78em;
  font-weight: 700;
  color: var(--vegan-green); /* #738A75 Sage Green */
  vertical-align: super;
  margin-left: 6px;
  transition: color 0.3s ease;
}

/* Hover State Transition for Vegan Elements */
.banner-card:hover .vegan-v-icon .v-stem {
  stroke: #FFFFFF;
}

.banner-card:hover .vegan-v-icon .v-leaf {
  fill: #FFFFFF;
}

.banner-card:hover .vegan-v-icon .v-vein {
  stroke: var(--bg-card-hover);
}

.banner-card:hover .vegan-tag {
  color: #FFFFFF !important;
}

.cookie-title {
  font-family: var(--font-title); /* Quicksand rounded geometric font matching screenshot */
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.cookie-desc {
  font-family: var(--font-title); /* Quicksand font matching screenshot */
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
  transition: color 0.3s ease;
}

.banner-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-maroon);
  margin-top: 6px;
  transition: color 0.3s ease;
}

.add-link {
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Info Section (Jobs & Franchise - Exact Replica of Target Screenshot) */
.info-section {
  background-color: var(--bg-info); /* #F3EAE1 soft warm sandy beige */
  padding: 110px 24px 120px;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.info-box {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center-aligned layout matching target screenshot */
  text-align: center;
}

.info-title {
  font-family: var(--font-title); /* Quicksand rounded geometric font */
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}

.info-desc {
  font-family: var(--font-title); /* Quicksand font */
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 44px;
}

.info-btn {
  display: inline-block;
  border: 1px solid var(--text-dark); /* Thin dark outline button */
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 36px;
  text-align: center;
  transition: all 0.25s ease;
}

.info-btn:hover {
  background-color: var(--text-dark);
  color: #FFFFFF;
}

/* Floating Cookie Consent & Disclaimer Wrapper at Bottom Right */
.cookie-consent-wrapper {
  position: fixed;
  bottom: 0;
  right: 24px;
  z-index: 2000;
}

/* DEFAULT STATE: Top edge of white container is ALWAYS peeking out! */
.cookie-consent-badge {
  background-color: #FFFFFF;
  color: #66001B;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px 14px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateY(calc(100% - 10px)); /* Top curved edge peeks out by default! */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.cookie-disclaimer-popup {
  position: absolute;
  bottom: 46px;
  right: 0;
  width: 340px;
  background: #FFFFFF;
  color: var(--text-dark);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(102, 0, 27, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* ON HOVER OR PINNED CLICK STATE: Slide UP & keep open permanently until closed! */
.cookie-consent-wrapper:hover .cookie-consent-badge,
.cookie-consent-wrapper.pinned .cookie-consent-badge {
  transform: translateY(0);
  background-color: #FFFFFF;
}

.cookie-consent-wrapper:hover .cookie-disclaimer-popup,
.cookie-consent-wrapper.pinned .cookie-disclaimer-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.disclaimer-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-maroon);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.disclaimer-body {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.disclaimer-actions {
  display: flex;
  gap: 8px;
}

.disclaimer-btn {
  flex: 1;
  background: var(--accent-maroon);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.disclaimer-btn:hover {
  background-color: #7E0A26;
}

.disclaimer-btn-alt {
  background: #F4E8EA;
  color: var(--accent-maroon);
}

.disclaimer-btn-alt:hover {
  background: #E8D4D8;
}

/* Footer Section (Exact Replica of Target Screenshot with Bigger White CooX Logo) */
.site-footer {
  background-color: var(--bg-footer); /* #66001B */
  color: #FFFFFF;
  padding: 100px 24px 60px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-svg-icon {
  width: 60px !important;
  height: 60px !important;
}

.footer-title-text {
  font-size: 2.6rem !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  line-height: 1 !important;
}

.footer-subtitle-text {
  font-size: 0.78rem !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em !important;
  margin-top: 6px !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-family: var(--font-title);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.footer-col a:hover {
  opacity: 0.75;
}

.lang-col {
  text-align: right;
  align-items: flex-end;
}

.lang-tag {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.mobile-language {
  display: none;
}

/* Footer Bottom Row */
.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.social-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icons a {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 0.75;
}

.legal-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFFFFF;
}

.legal-block a {
  color: #FFFFFF;
  transition: opacity 0.2s ease;
}

.legal-block a:hover {
  opacity: 0.75;
}

.legal-sep {
  opacity: 0.7;
}

/* Cart Drawer Overlay */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F0F0F0;
}

.cart-close {
  font-size: 1.5rem;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0F0F0;
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-maroon);
  font-weight: 600;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #F0F0F0;
  background: var(--bg-hero);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.checkout-btn {
  width: 100%;
  background: var(--accent-maroon);
  color: #fff;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--accent-maroon);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .header-nav {
    gap: 20px !important;
  }
  
  .cat-pill {
    padding: 16px 36px !important;
    font-size: 1.1rem !important;
  }

  .banner-card {
    width: 70% !important;
  }
  
  .cookie-img-wrapper {
    width: 280px !important;
    height: 280px !important;
  }
  
  .cookie-row.left-banner .cookie-img-wrapper {
    left: -70px !important;
  }
  
  .cookie-row.right-banner .cookie-img-wrapper {
    right: -70px !important;
  }
  
  .cookie-row.left-banner .banner-text {
    margin-left: 170px !important;
  }

  .cookie-row.right-banner .banner-text {
    margin-right: 170px !important;
  }

  .ice-cream-active-title,
  .matcha-active-title {
    font-size: 1.8rem !important;
  }

  .info-container {
    gap: 50px !important;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr !important;
  }

  .lang-col {
    text-align: left !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .cat-pill {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  .ice-cream-active-title,
  .matcha-active-title {
    font-size: 1.5rem !important;
    white-space: normal !important;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-text-side {
    padding: 138px 24px 54px;
  }

  .hero-media-side,
  .hero-video {
    min-height: 0;
    height: clamp(310px, 82vw, 470px);
  }
  
  .hero-heading {
    font-size: 2.8rem;
  }
  
  .cookies-container {
    gap: 40px !important;
  }
  
  .banner-card {
    width: 100% !important;
    padding: 24px !important;
  }

  .cookie-row.left-banner .banner-text,
  .cookie-row.right-banner .banner-text {
    margin: 0 !important;
  }

  .cookie-img-wrapper {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    margin: 0 auto 16px !important;
    left: 0 !important;
    right: 0 !important;
    width: 220px !important;
    height: 220px !important;
  }

  .banner-card {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .info-container {
    grid-template-columns: 1fr;
    gap: 60px !important;
  }
  
  .footer-container {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    text-align: center !important;
  }
}

@media (max-width: 600px) {
  .floating-header-wrap {
    top: 10px;
    padding: 0 14px;
  }

  .floating-header {
    position: relative;
    max-width: 360px;
    min-height: 68px;
    padding: 10px 13px 10px 18px;
    border-radius: 999px;
    box-shadow: 0 7px 22px rgba(102, 0, 27, 0.12);
  }

  .brand-wrap {
    gap: 7px;
  }

  .brand-icon {
    width: 31px;
    height: 31px;
  }

  .brand-title {
    font-size: 1.05rem;
    letter-spacing: 0.11em;
  }

  .brand-subtitle {
    margin-top: 2px;
    font-size: 0.4rem;
    letter-spacing: 0.2em;
  }

  .header-right {
    gap: 4px;
  }

  .currency-tag {
    display: none;
  }

  .cart-btn,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 50%;
    color: var(--accent-maroon);
  }

  .cart-btn {
    background: #FAEFF2;
  }

  .cart-btn:hover {
    transform: none;
  }

  .mobile-menu-toggle {
    background: transparent;
  }

  .cart-badge {
    top: -1px;
    right: -1px;
    width: 16px;
    height: 16px;
    background: var(--accent-maroon);
    color: #FFFFFF;
    font-size: 0.61rem;
    box-shadow: 0 2px 5px rgba(102, 0, 27, 0.2);
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0 !important;
    padding: 10px;
    border: 1px solid rgba(102, 0, 27, 0.08);
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 16px 34px rgba(102, 0, 27, 0.14);
  }

  .floating-header.is-open .header-nav {
    display: grid;
  }

  .header-nav a {
    padding: 11px 14px;
    border-radius: 13px;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
  }

  .header-nav a:hover,
  .header-nav a:focus-visible {
    background: #FAEFF2;
    opacity: 1;
  }

  .mobile-menu-toggle svg path {
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .floating-header.is-open .mobile-menu-toggle svg path:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .floating-header.is-open .mobile-menu-toggle svg path:nth-child(2) {
    opacity: 0;
  }

  .floating-header.is-open .mobile-menu-toggle svg path:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .cart-drawer-overlay {
    display: flex;
    align-items: flex-end;
    padding-top: 80px;
    background: rgba(31, 25, 26, 0.52);
  }

  .cart-drawer {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(84dvh, 720px);
    min-height: 360px;
    border-radius: 28px 28px 0 0;
    transform: translateY(105%);
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -14px 42px rgba(31, 25, 26, 0.2);
    overflow: hidden;
  }

  .cart-drawer::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #DDC8CD;
  }

  .cart-drawer-overlay.active .cart-drawer {
    transform: translateY(0);
  }

  .cart-header {
    padding: 28px 20px 15px;
  }

  .cart-header h3 {
    font-size: 1.05rem;
  }

  .cart-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FAEFF2;
    color: var(--accent-maroon);
    line-height: 1;
  }

  .cart-items {
    min-height: 150px;
    padding: 16px 20px;
  }

  .cart-footer {
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  }

  .checkout-btn {
    min-height: 48px;
  }
}

@media (max-width: 600px) {
  body.cart-open {
    overflow: hidden;
  }
}

/* Preserve the desktop alternating cookie banners on mobile. */
@media (max-width: 600px) {
  .cookies-list-section {
    padding: 70px 0 105px;
    overflow: hidden;
  }

  .cookies-container {
    width: 100%;
    padding: 0;
    gap: 88px !important;
  }

  .cookie-row,
  .cookie-row.left-banner,
  .cookie-row.right-banner {
    min-height: 158px;
    align-items: center;
    overflow: visible;
  }

  .cookie-row.left-banner {
    justify-content: flex-start;
  }

  .cookie-row.right-banner {
    justify-content: flex-end;
  }

  .cookie-row.left-banner .banner-card {
    border-radius: 0 18px 18px 0;
  }

  .cookie-row.right-banner .banner-card {
    border-radius: 18px 0 0 18px;
  }

  .banner-card {
    width: calc(100% - 24px) !important;
    min-height: 152px;
    padding: 19px 22px !important;
    flex-direction: row !important;
    align-items: center;
    border-radius: 18px;
    overflow: visible;
    text-align: center !important;
  }

  .cookie-img-wrapper {
    position: absolute !important;
    top: 50% !important;
    width: clamp(205px, 58vw, 242px) !important;
    height: clamp(205px, 58vw, 242px) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 2;
    pointer-events: none;
  }

  .cookie-row.left-banner .cookie-img-wrapper {
    right: auto !important;
    left: -120px !important;
  }

  .cookie-row.right-banner .cookie-img-wrapper {
    right: -120px !important;
    left: auto !important;
  }

  .cookie-row.left-banner .banner-text {
    margin: 0 0 0 82px !important;
  }

  .cookie-row.right-banner .banner-text {
    margin: 0 82px 0 0 !important;
  }

  .banner-text {
    width: 100%;
    gap: 7px;
    position: relative;
    z-index: 3;
  }

  .title-wrap {
    justify-content: center;
    gap: 5px;
  }

  .vegan-v-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
  }

  .cookie-title {
    font-size: clamp(1.08rem, 5.7vw, 1.38rem);
    line-height: 1.18;
    text-align: center;
  }

  .cookie-desc {
    font-size: clamp(0.68rem, 3.05vw, 0.78rem);
    line-height: 1.3;
    text-align: center;
  }

  .banner-price {
    display: block;
    margin-top: 2px;
    font-size: clamp(0.65rem, 2.9vw, 0.76rem);
    line-height: 1.25;
    text-align: center;
  }

  .cookie-row.left-banner .banner-text,
  .cookie-row.left-banner .cookie-title,
  .cookie-row.left-banner .cookie-desc,
  .cookie-row.left-banner .banner-price {
    text-align: left;
  }

  .cookie-row.right-banner .banner-text,
  .cookie-row.right-banner .cookie-title,
  .cookie-row.right-banner .cookie-desc,
  .cookie-row.right-banner .banner-price {
    text-align: right;
  }

  .cookie-row.left-banner .title-wrap {
    justify-content: flex-start;
  }

  .cookie-row.right-banner .title-wrap {
    justify-content: flex-end;
  }
}

/* Compact four-tab category switcher for the mobile menu. */
@media (max-width: 600px) {
  .category-section {
    padding: 38px 18px 30px;
  }

  .category-container {
    width: 100%;
    max-width: 360px;
  }

  .category-pill-bar {
    width: 100%;
    min-height: 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 999px;
    background: #D9C4C8;
    box-shadow: none;
  }

  .cat-pill {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 0 7px !important;
    border-radius: 999px;
    font-size: 0.82rem !important;
    font-weight: 600;
    line-height: 1.05;
    white-space: normal;
    box-shadow: none !important;
  }

  .cat-pill[data-cat="ice-cream"],
  .cat-pill[data-cat="small-cookies"] {
    font-size: 0 !important;
  }

  .cat-pill[data-cat="ice-cream"]::after,
  .cat-pill[data-cat="small-cookies"]::after {
    display: inline-block;
    color: inherit;
    font-size: 0.82rem;
    line-height: 1.02;
    white-space: pre-line;
  }

  .cat-pill[data-cat="ice-cream"]::after {
    content: "Ice\A Cream";
  }

  .cat-pill[data-cat="small-cookies"]::after {
    content: "Small\A Cookies";
  }

  .cat-pill.active,
  .category-pill-bar:hover .cat-pill.active {
    background: var(--accent-maroon-pill) !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
  }

  .cat-pill:not(.active):hover {
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Organized single-column footer for mobile. */
@media (max-width: 600px) {
  .site-footer {
    padding: 54px 24px 34px;
  }

  .footer-container {
    width: 100%;
    margin: 0 auto 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "brand language"
      "links-one links-one"
      "links-two links-two";
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
  }

  .footer-container .brand-col {
    grid-area: brand;
  }

  .footer-container > .footer-col:nth-child(2) {
    grid-area: links-one;
    margin-top: 48px;
  }

  .footer-container > .footer-col:nth-child(3) {
    grid-area: links-two;
    margin-top: 7px;
  }

  .footer-container .lang-col {
    grid-area: language;
    align-self: center;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-svg-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .footer-title-text {
    font-size: 1.45rem !important;
  }

  .footer-subtitle-text {
    margin-top: 4px !important;
    font-size: 0.46rem !important;
    letter-spacing: 0.23em !important;
  }

  .footer-col {
    gap: 7px;
  }

  .footer-col a {
    width: fit-content;
    font-size: 0.96rem;
    line-height: 1.16;
  }

  .desktop-currency {
    display: none;
  }

  .mobile-language {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .mobile-language i {
    font-style: normal;
    font-weight: 400;
    opacity: 0.8;
  }

  .footer-bottom-container {
    width: 100%;
    margin: 0 auto;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between;
    gap: 16px !important;
    text-align: left !important;
  }

  .social-block {
    gap: 9px;
  }

  .social-title {
    font-size: 0.96rem;
  }

  .social-icons {
    gap: 8px;
  }

  .social-icons a {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--bg-footer);
  }

  .social-icons svg {
    width: 16px;
    height: 16px;
  }

  .legal-block {
    justify-content: flex-end;
    gap: 5px;
    padding-bottom: 3px;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .cookies-container {
    padding-right: 0;
    padding-left: 0;
  }

  .cookie-row.left-banner .cookie-img-wrapper {
    left: -108px !important;
  }

  .cookie-row.right-banner .cookie-img-wrapper {
    right: -108px !important;
  }

  .cookie-row.left-banner .banner-text {
    margin-left: 72px !important;
  }

  .cookie-row.right-banner .banner-text {
    margin-right: 72px !important;
  }
}
