﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --cream-bg: #f4efeb;
  --primary-green: #1b4232;
  --dark-green-marble: #123824;
  --gold-text: #8e7345;
  --gold-bg-light: #e6dfd3;
  --gold-metallic-start: #eedfb8;
  --gold-metallic-mid: #d4c198;
  --gold-metallic-end: #b8a375;
  
  /* Gradients */
  --bg-gradient: radial-gradient(circle at top, #fcfaf6 0%, #eae3d5 100%);
  --marble-gradient: linear-gradient(135deg, #1b4232 0%, #0d251a 100%);
  --gold-gradient: linear-gradient(135deg, #eedfb8 0%, #d4c198 50%, #b8a375 100%);
  --gold-btn-gradient: linear-gradient(135deg, #eedfb8 0%, #c4af83 100%);
  --glass-bg: rgba(255, 255, 255, 0.35);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(197, 184, 160, 0.12);
}

/* Global resets for home page */
body.home-page {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  background-color: var(--cream-bg);
  color: #2b3a30;
  padding-bottom: 95px; /* space for sticky bottom nav */
}

/* Typography override */
.home-page h1, .home-page h2, .home-page h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-green);
}

.home-page .serif-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1.25;
}

/* Custom Header styling */
header.home-header {
  background: rgba(252, 250, 246, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(197, 184, 160, 0.25);
  box-shadow: 0 2px 15px rgba(197, 184, 160, 0.08) !important;
  padding: 10px 0 !important;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-container img {
  height: 38px;
  border-radius: 8px;
}

.header-logo-container a {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: 'Outfit', sans-serif;
}

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

.header-icon-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--primary-green);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

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

.header-icon-btn.gold-basket {
  color: var(--gold-text);
}

/* Custom Hamburger menu drawer overrides */
.home-page nav {
  background: rgba(252, 250, 246, 0.95);
  border-radius: 12px;
  margin-top: 10px;
  border: 1px solid rgba(197, 184, 160, 0.2);
}

.home-page nav a {
  border-bottom: 1px solid rgba(197, 184, 160, 0.1) !important;
}

.home-page nav a:hover,
.home-page nav a.active {
  background: rgba(27, 66, 50, 0.08) !important;
  color: var(--primary-green) !important;
}

/* Custom Search Bar */
.search-bar.glass-search {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(197, 184, 160, 0.45);
  box-shadow: 0 4px 15px rgba(197, 184, 160, 0.08) !important;
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  margin: 15px 0 25px 0 !important;
  position: relative;
}

.search-bar.glass-search input {
  padding: 10px 15px 10px 45px !important;
  font-size: 14px;
  background: transparent !important;
  color: var(--primary-green);
  border: none !important;
}

.search-bar.glass-search input::placeholder {
  color: rgba(27, 66, 50, 0.5);
  font-size: 13px;
}

.search-bar.glass-search .search-left-icon {
  position: absolute;
  left: 20px;
  color: var(--primary-green);
  font-size: 16px;
}

.search-bar.glass-search button {
  background: var(--primary-green) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 600;
  transition: all 0.3s;
}

.search-bar.glass-search button:hover {
  background: var(--dark-green-marble) !important;
  box-shadow: 0 4px 10px rgba(27, 66, 50, 0.2);
}

/* Cloche Hero Banner */
.welcome-banner.cloche-hero {
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 25px !important;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.cloche-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  width: 100% !important;
  padding: 0 !important;
}

.cloche-hero-text h1 {
  font-size: 32px;
  margin: 0 0 12px 0;
}

.cloche-hero-text h1 span.highlight {
  color: #27ae60;
  font-style: italic;
}

.cloche-hero-text p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(27, 66, 50, 0.8);
  margin: 0 0 20px 0;
}

.cloche-hero-text .shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(27, 66, 50, 0.25);
  font-size: 13px;
  transition: all 0.3s;
}

.cloche-hero-text .shop-now-btn:hover {
  background: var(--dark-green-marble);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 66, 50, 0.35);
}

.cloche-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cloche-hero-image img {
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(27, 66, 50, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* Category Tabs (Marble Green & Gold) */
.category-tabs.marble-tabs {
  margin: 15px 0 25px 0 !important;
  gap: 14px !important;
  display: flex;
  overflow-x: auto;
  padding-bottom: 12px;
}

.category-tabs.marble-tabs .category-tab {
  flex: 0 0 88px !important;
  height: 92px !important;
  background: var(--marble-gradient) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.category-tabs.marble-tabs .category-tab:hover {
  transform: translateY(-4px) scale(1.03) !important;
}

/* Gold Gradient Icon */
.category-tabs.marble-tabs .category-tab i {
  font-size: 24px;
  margin-bottom: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.category-tabs.marble-tabs .category-tab:hover i {
  transform: scale(1.15);
}

.category-tabs.marble-tabs .category-tab span {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

/* Active Category Tab */
.category-tabs.marble-tabs .category-tab.active {
  border: 2px solid var(--gold-metallic-mid) !important;
  box-shadow: 0 4px 20px rgba(212, 193, 152, 0.35) !important;
}

/* Feature Badges (Gold Metallic Cards) */
.feature-badges-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 25px;
  scrollbar-width: none;
}

.feature-badges-row::-webkit-scrollbar {
  display: none;
}

.feature-badge-card {
  flex: 0 0 145px;
  background: var(--gold-gradient);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(197, 184, 160, 0.15);
  transition: transform 0.2s;
}

.feature-badge-card:hover {
  transform: translateY(-2px);
}

.feature-badge-card i {
  font-size: 18px;
  color: var(--primary-green);
  opacity: 0.85;
}

.feature-badge-card .badge-text {
  display: flex;
  flex-direction: column;
}

.feature-badge-card .badge-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1.2;
}

.feature-badge-card .badge-desc {
  font-size: 8.5px;
  color: rgba(27, 66, 50, 0.85);
  line-height: 1.2;
  white-space: nowrap;
}

/* Address & Payments Bar */
.address-payments-bar {
  background: var(--marble-gradient);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.address-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.address-info i {
  font-size: 16px;
  color: var(--gold-metallic-mid);
}

.address-text {
  display: flex;
  flex-direction: column;
}

.address-text .label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.address-text .value {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.secure-payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secure-payment-badge i {
  font-size: 14px;
  color: var(--gold-metallic-mid);
}

.secure-payment-badge .text-stack {
  display: flex;
  flex-direction: column;
}

.secure-payment-badge .title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.secure-payment-badge .subtitle {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Products Heading Overrides */
.products-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 15px 0;
}

.products-section-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}

.products-section-header .view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-green);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}

.products-section-header .view-all-link:hover {
  transform: translateX(3px);
}

/* Product Card - Glassmorphism */
.product-grid {
  gap: 16px !important;
  margin-bottom: 25px !important;
}

.product-card.glass-card {
  background: var(--glass-bg) !important;
  border: var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.product-card.glass-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 36px rgba(197, 184, 160, 0.2) !important;
}

.product-card.glass-card .discount-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-green);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  z-index: 10;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(27, 66, 50, 0.15);
}

.product-card.glass-card .stock-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  z-index: 10;
}

.product-card.glass-card .product-image-wrapper {
  background: transparent !important;
  padding: 15px 15px 10px 15px !important;
}

.product-card.glass-card img {
  height: 140px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s;
}

.product-card.glass-card:hover img {
  transform: scale(1.05);
}

.product-card.glass-card .product-info {
  padding: 0 16px 16px 16px !important;
  text-align: left !important;
  display: flex;
  flex-direction: column;
}

.product-card.glass-card .product-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--primary-green) !important;
  margin: 0 0 3px 0 !important;
  line-height: 1.3 !important;
  height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card.glass-card .product-weight {
  font-size: 11px;
  color: rgba(27, 66, 50, 0.6);
  margin-bottom: 12px;
}

.product-card.glass-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-card.glass-card .price-stack {
  display: flex;
  flex-direction: column;
}

.product-card.glass-card .price-actual {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-green);
}

.product-card.glass-card .price-original {
  font-size: 11px;
  color: rgba(27, 66, 50, 0.5);
  text-decoration: line-through;
  margin-top: 1px;
}

.product-card.glass-card .gold-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(181, 152, 94, 0.35);
  transition: all 0.2s;
}

.product-card.glass-card .gold-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(181, 152, 94, 0.5);
}

.product-card.glass-card .gold-add-btn i {
  font-size: 12px;
}

/* First Order Promo Banner */
.first-order-banner {
  background: var(--primary-green);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 10px 0 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.first-order-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.first-order-left i.gift-icon {
  font-size: 22px;
  color: var(--gold-metallic-mid);
}

.first-order-info {
  display: flex;
  flex-direction: column;
}

.first-order-info .tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.first-order-info .tagline span.highlight {
  color: var(--gold-metallic-mid);
}

.first-order-info .code-wrapper {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.first-order-info .code-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--gold-metallic-mid);
  color: var(--gold-metallic-mid);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}

.first-order-banner .shop-now-btn {
  background: var(--gold-btn-gradient);
  color: var(--primary-green) !important;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.first-order-banner .shop-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Bottom Navigation Bar (Gold Gradient) */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--gold-gradient);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 -4px 20px rgba(181, 152, 94, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-green);
  opacity: 0.75;
  transition: all 0.2s;
  width: 60px;
  height: 100%;
}

.bottom-nav-item i {
  font-size: 18px;
  margin-bottom: 4px;
  transition: transform 0.2s;
}

.bottom-nav-item span {
  font-size: 9.5px;
  font-weight: 700;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  opacity: 1;
}

.bottom-nav-item.active i {
  transform: scale(1.1);
  color: var(--primary-green);
}

/* Floating Browse Button */
.bottom-nav-browse-wrapper {
  position: relative;
  width: 70px;
  height: 100%;
}

.bottom-nav-browse-btn {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 4px solid #f4efeb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(181, 152, 94, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1010;
  text-decoration: none;
}

.bottom-nav-browse-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(181, 152, 94, 0.55);
}

.bottom-nav-browse-btn i {
  font-size: 20px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.bottom-nav-browse-label {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary-green);
  opacity: 0.75;
}

/* Chatbot Override */
.chatbot-toggle-btn {
  bottom: 85px !important; /* Move above bottom nav */
  right: 16px !important;
  background: var(--primary-green) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(27, 66, 50, 0.3) !important;
  z-index: 1200 !important;
  touch-action: manipulation;
}

.chatbot-toggle-btn.active {
  transform: scale(0.96);
}

.chatbot-window {
  right: 12px !important;
  bottom: 145px !important;
  width: min(380px, calc(100vw - 24px)) !important;
  max-height: calc(100dvh - 180px);
  z-index: 1190 !important;
}

body.chatbot-open {
  overflow: hidden;
}

body.chatbot-open .chatbot-toggle-btn {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
}

/* Responsive grid for products - 2 columns on mobile, 4 on desktop */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .cloche-hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
  }
  
  .cloche-hero-image img {
    max-width: 170px;
  }
  
  .cloche-hero-text h1 {
    font-size: 24px;
  }

  .chatbot-toggle-btn {
    right: 14px !important;
    bottom: 88px !important;
    width: 58px;
    height: 58px;
  }

  .chatbot-window {
    left: 12px;
    right: 12px !important;
    width: auto !important;
    bottom: 96px !important;
    height: min(68vh, 520px);
    max-height: calc(100dvh - 108px);
    border-radius: 18px;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 993px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}



