/*
Theme Name: Olishop
Description: Custom WordPress Theme for Olishop Landing Page
Author: Antigravity
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Layout */
  --max-width-lg: 1280px;
  --max-width-md: 1180px;
  --max-width-sm: 1120px;
  
  --padding-section-x: 32px;
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;
  
  /* Spacing */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  
  /* Colors */
  --color-dark-green: #0D4F45;
  --color-cream: #F2EBDC;
  --color-page-bg: #E8EFED;
  --color-heading-green: #124C43; /* Adjusted based on hero spec */
  --color-white: #FFFFFF;
  --color-muted-text: #5A6A67;
  --color-mint: #C2E3E0;
  --color-border: rgba(255, 255, 255, 0.15);
  
  /* Product Card Colors */
  --card-pink: #FFB6C1;
  --card-coral: #FF7F50;
  --card-lilac: #E6E6FA;
  --card-peach: #FFDAB9;
  --card-aqua: #87CEEB;
  --card-lime: #32CD32;
  --card-lemon: #FFFACD;
  --card-sand: #F4A460;
  
  /* Fonts */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-page-bg);
  color: var(--color-muted-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading-green);
  font-weight: 700;
  line-height: 1.05;
}

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

ul {
  list-style: none;
}

/* Global Container Utility Classes (Elementor style) */
.e-con {
  display: flex;
  width: 100%;
}

.e-con-col {
  flex-direction: column;
}

.e-con-row {
  flex-direction: row;
}

.e-con-full {
  width: 100%;
}

.e-con-inner {
  margin: 0 auto;
  width: 100%;
}

.e-justify-start { justify-content: flex-start; }
.e-justify-center { justify-content: center; }
.e-justify-between { justify-content: space-between; }
.e-justify-end { justify-content: flex-end; }

.e-align-start { align-items: flex-start; }
.e-align-center { align-items: center; }
.e-align-end { align-items: flex-end; }

/* 1. Sticky Wrapper */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* 2. Announcement Bar */
.announcement-bar {
  min-height: 24px;
  background-color: var(--color-dark-green);
  color: var(--color-white);
  padding: 0 16px;
  font-size: 11px;
  font-weight: 500;
}

/* 3. Header */
.main-header {
  min-height: 60px;
  background-color: var(--color-cream);
  padding: 0 28px;
  position: relative; /* Anchor for mega menu */
}
.main-header .e-con-inner { max-width: var(--max-width-lg); }

.nav-links { gap: 30px; font-size: 12px; font-weight: 500; height: 100%; }

/* Mega Menu Styles */
.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item > a {
  padding: 20px 0; /* Increase hover area */
}

.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-page-bg);
  padding: 40px 28px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.nav-item:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
}

.mega-menu-panel .e-con-inner {
  margin: 0 auto;
  max-width: var(--max-width-lg);
  align-items: flex-start;
}

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

.mega-column h4 {
  font-family: var(--font-heading);
  color: var(--color-heading-green);
  font-size: 18px;
  margin-bottom: 12px;
}

.mega-column a {
  font-family: var(--font-body);
  color: var(--color-dark-green);
  font-size: 14px;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
}

.mega-column a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Search Bar Row */
.search-bar-row {
  background-color: var(--color-cream);
  padding: 10px 28px 20px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separation from hero */
}
.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: stretch; /* Allows button and input to fill height */
  background: var(--color-white);
  border-radius: 30px;
  border: 1.5px solid var(--color-mint);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  height: 50px; /* Force consistent height to fix button clipping */
}
.search-input {
  flex: 1;
  border: none;
  padding: 0 24px; /* Padding now handled by stretch and height */
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-dark-green);
  outline: none;
  background: transparent;
}
.search-input::placeholder {
  color: rgba(2, 62, 54, 0.5); /* var(--color-dark-green) at 50% */
}
.camera-icon {
  width: 22px;
  height: 22px;
  fill: rgba(2, 62, 54, 0.5);
  margin-right: 12px;
  cursor: pointer;
  align-self: center; /* Keep icon vertically centered */
}
.camera-icon:hover {
  fill: var(--color-dark-green);
}
.search-btn {
  background-color: var(--color-dark-green);
  border: none;
  padding: 0 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  /* Removed height/align-self as parent flex stretch handles it perfectly */
}
.search-btn:hover {
  background-color: var(--color-heading-green);
}
.search-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.utility-links { gap: 16px; font-size: 12px; font-weight: 500; }
.utility-links .icon { font-size: 14px; display: flex; align-items: center; }
.utility-links .icon svg { width: 16px; height: 16px; }

/* 4. Hero */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Removed background-color and padding to eliminate the blue bar */
}
.hero-section .e-con-inner { 
  max-width: 100%; 
  position: relative;
  justify-content: center;
}
.hero-title {
  font-size: 80px;
  color: var(--color-heading-green);
  z-index: 2;
  position: absolute;
  top: 40px; /* Float over the image instead of stacking */
}
.hero-image {
  width: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.1) translateY(10px); /* Enlarge and align */
}

/* Hero Wave Transition */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.hero-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
  fill: var(--color-white); /* transition into brands section */
}

/* 4. Brand Showcase */
.brands-section {
  padding-top: 60px;
  background-color: var(--color-white);
  position: relative;
}
/* Grid aligns perfectly with other .e-con-inner elements */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #eaeaea;
  border-left: 1px solid #eaeaea;
  width: 100%;
}
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  border-right: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  text-decoration: none;
  transition: all 0.2s;
  background-color: var(--color-white);
}
.brand-item:hover {
  background-color: #fcfcfc;
  transform: scale(1.02);
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.brand-svg {
  width: 100%;
  height: auto;
  max-width: 120px;
}

/* Brands Wave Transition */
.brands-wave {
  width: 100%;
  line-height: 0;
  margin-top: 40px; /* Space under the grid */
}
.brands-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  fill: var(--color-page-bg);
}

/* 5. Our Flavors */
.flavors-section {
  background-color: var(--color-page-bg);
  padding-top: 56px;
  padding-bottom: 72px;
}
.flavors-section .e-con-inner { max-width: var(--max-width-sm); gap: 28px; padding: 0 var(--padding-section-x); }
.section-header-row { width: 100%; }
.section-title { font-size: 48px; }

.filter-controls { gap: 8px; }
.filter-label { font-size: 11px; margin-right: 4px; }
.pill-btn {
  height: 24px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: rgba(255,255,255,0.5);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  transition: all 0.2s;
}
.pill-btn.active, .pill-btn:hover { background-color: var(--color-white); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  width: 100%;
}

.product-card {
  min-height: 255px;
  border-radius: var(--radius-md);
  padding: 16px 16px 12px;
  background-color: #fff; /* fallback */
  z-index: 1;
  position: relative;
  overflow: hidden;
}

.card-media-zone {
  position: relative;
  min-height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-backdrop {
  position: absolute;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  z-index: 2;
  background-color: rgba(255,255,255,0.4);
}

.can-image {
  position: relative;
  z-index: 3;
  height: 110px;
  object-fit: contain;
}

.card-content {
  margin-top: 12px;
  z-index: 4;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 11px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.card-stars {
  font-size: 10px;
  color: #FFA500;
  letter-spacing: 2px;
}

.cherry-splash {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.8;
}

.add-pack-btn {
  margin-top: 6px;
  background-color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* 5. Variety Packs */
.variety-section {
  padding-top: 24px;
  padding-bottom: 40px;
}
.variety-section .e-con-inner { max-width: var(--max-width-sm); gap: 24px; padding: 0 var(--padding-section-x); }
.variety-title { font-size: 44px; margin-bottom: 6px; }
.variety-subtitle { font-size: 12px; color: var(--color-heading-green); }
.variety-subtitle a { text-decoration: underline; }

.packs-row { gap: 24px; width: 100%; justify-content: center;}

.pack-card {
  width: 195px;
  min-height: 180px;
  border-radius: 10px;
  padding: 16px 16px 12px;
  background-color: #f8e1e1; /* fallback */
  align-items: center;
}
.pack-card .circle-backdrop { width: 120px; height: 120px; }
.pack-card .can-image { height: 90px; width: auto; max-width: 100%; }

/* 6. Gift Cards */
.giftcard-section {
  padding-top: 20px;
  padding-bottom: 50px;
}
.giftcard-section .e-con-inner { max-width: var(--max-width-sm); gap: 22px; padding: 0 var(--padding-section-x); }
.giftcard-title { font-size: 44px; }

.giftcard-card {
  width: 195px;
  min-height: 180px;
  border-radius: 10px;
  background-color: var(--color-white);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.giftcard-top {
  background-color: #ffd1dc;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.giftcard-bottom {
  background-color: var(--color-mint);
  height: 70px;
  padding: 12px;
}
.giftcard-top svg { width: 80px; height: 50px; color: #ff6b81; }

/* 7. Footer Wave */
.footer-wave {
  min-height: 120px;
  background-color: var(--color-page-bg);
  position: relative;
}
.footer-wave svg {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 100%;
  fill: var(--color-dark-green);
}

/* 8. Footer Main */
.footer-main {
  background-color: var(--color-dark-green);
  color: var(--color-white);
  padding-top: 28px;
  padding-bottom: 30px;
}
.footer-main .e-con-inner { max-width: var(--max-width-md); padding: 0 var(--padding-section-x); }

.footer-link-matrix { gap: 36px; width: 66%; }
.footer-link-col { gap: 10px; font-size: 12px; }
.footer-link-col a { opacity: 0.8; transition: opacity 0.2s; }
.footer-link-col a:hover { opacity: 1; }
.footer-link-col .col-heading { font-weight: 600; opacity: 1; margin-bottom: 4px; }

.footer-newsletter { gap: 16px; width: 34%; }
.newsletter-heading { font-size: 12px; font-weight: 500; }
.newsletter-form { gap: 8px; width: 100%; }
.newsletter-form input {
  height: 36px;
  border-radius: var(--radius-pill);
  border: none;
  padding: 0 16px;
  flex: 1;
  font-family: var(--font-body);
  font-size: 12px;
}
.newsletter-form button {
  height: 36px;
  width: 92px;
  border-radius: var(--radius-pill);
  border: none;
  background-color: #f7b731;
  color: var(--color-dark-green);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.social-icons { gap: 16px; }
.social-icons svg { width: 18px; height: 18px; fill: var(--color-white); opacity: 0.9; }
.bcorp-badge { width: 40px; height: 40px; border-radius: 50%; border: 1px solid white; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; margin-left: auto; }

/* 9. Footer Legal */
.footer-legal {
  background-color: var(--color-dark-green);
  border-top: 1px solid var(--color-border);
  min-height: 42px;
  color: var(--color-white);
  font-size: 11px;
}
.footer-legal .e-con-inner { max-width: var(--max-width-md); padding: 0 var(--padding-section-x); }
.legal-links { gap: 18px; opacity: 0.8; }
.legal-links a:hover { opacity: 1; }
.copyright { opacity: 0.8; }

/* Responsive Behavior */
@media (max-width: 1024px) {
  :root {
    --padding-section-x: 24px;
  }
  
  .main-header { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .logo-container img { width: 60px; }
  
  .hero-section { min-height: 360px; padding-top: 40px; }
  .hero-title { font-size: 54px; }
  .hero-image { max-width: 920px; }
  
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  
  .section-title { font-size: 40px; }
  .section-header-row { flex-wrap: wrap; gap: 16px; }
  
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product-card { min-height: 240px; }
  .card-media-zone { min-height: 136px; }
  
  .packs-row { flex-wrap: wrap; }
  
  .footer-main .e-con-inner { flex-direction: column; gap: 40px; }
  .footer-newsletter { width: 100%; align-items: flex-start; order: -1; }
  .footer-link-matrix { width: 100%; flex-wrap: wrap; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .bcorp-badge { margin-left: 0; }
}

@media (max-width: 767px) {
  :root {
    --padding-section-x: 16px;
  }
  
  .announcement-bar { display: none; } /* Kept as per some mobile specs but let's keep it visible per spec: "Height: 24px" */
  
  .nav-links, .utility-links span { display: none; }
  
  .hero-section { min-height: auto; padding-top: 26px; padding-bottom: 18px; }
  .hero-title { font-size: 36px; }
  
  .brands-section { padding-top: 40px; }
  .brands-grid { 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    border: none;
    gap: 16px;
    padding-bottom: 16px; /* Space for scrollbar */
    padding-left: 16px;
    padding-right: 16px;
  }
  .brands-wave { margin-top: 20px; }
  .brands-wave svg { height: 40px; }
  .brand-item {
    flex: 0 0 140px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    scroll-snap-align: center;
    padding: 24px 16px;
  }
  
  .section-header-row.e-con-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-title, .variety-title, .giftcard-title { font-size: 30px; }
  .filter-controls { flex-wrap: wrap; }
  .pill-btn { height: 28px; padding: 0 16px; }
  
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { min-height: 208px; padding: 12px; }
  .card-media-zone { min-height: 118px; }
  .circle-backdrop { width: 90px; height: 90px; }
  .can-image { height: 86px; }
  .card-title { font-size: 14px; }
  
  .packs-row.e-con-row { flex-direction: column; align-items: center; }
  .pack-card, .giftcard-card { width: 100%; max-width: 280px; }
  
  .footer-wave { min-height: 44px; }
  .footer-link-matrix { grid-template-columns: 1fr; }
  
  .newsletter-form.e-con-row { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; height: 40px; }
  
  .footer-legal .e-con-inner { flex-direction: column; gap: 8px; align-items: center; text-align: center; }
  .legal-links { flex-wrap: wrap; justify-content: center; }
}
