/* Guveraa Unified E-Commerce Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for design tokens */
:root {
  --primary-color: #0A4224;      /* Deep Forest Green */
  --primary-hover: #072F19;
  --secondary-color: #2D7D46;    /* Vibrant Mint Green */
  --accent-color: #F0A500;       /* Honey Golden Amber */
  --bg-color: #FCFBF9;           /* Soft Sand/Cream Background */
  --card-bg: #FFFFFF;
  --text-main: #1C2520;          /* Charcoal Black */
  --text-muted: #626D66;         /* Slate Muted Gray */
  --border-color: #E5EAE7;
  --success-color: #2D7D46;
  --danger-color: #D32F2F;
  --shadow-sm: 0 2px 8px rgba(10, 66, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 66, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 66, 36, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-sans: 'Poppins', sans-serif;
  --font-serif: 'Poppins', sans-serif;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Disable blue tap highlight on mobile */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for bottom nav on mobile */
}

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 30px 0;
}

/* Header Component */
.header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-icon {
  background: var(--primary-color);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0; /* Leaf-like shape */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-10deg);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

/* Navigation for Desktop */
.desktop-nav {
  display: none; /* Hidden on mobile, shown on desktop */
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  transition: var(--transition);
}

.cart-icon-btn:hover {
  background: var(--border-color);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-color);
  color: var(--text-main);
  font-weight: 700;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.badge-animate {
  animation: popScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Mobile Bottom Navigation Bar (App style) */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(10, 66, 36, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  width: 25%;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.mobile-nav-item svg {
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.mobile-nav-item.active svg {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.mobile-nav-item .cart-badge {
  top: 6px;
  right: calc(50% - 22px);
}

/* Hero Section */
.hero-slider {
  margin-top: 10px;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(10, 66, 36, 0.9) 0%, rgba(10, 66, 36, 0.7) 100%), url('assets/hero_banner.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
  justify-content: center;
}

/* Decorative SVG backgrounds for hero */
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(240, 165, 0, 0.15);
  filter: blur(60px);
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(71, 168, 103, 0.2);
  filter: blur(50px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.hero-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  max-width: 450px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-color);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.3);
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 165, 0, 0.4);
}

/* Category Scroller Section */
.categories-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.categories-container::-webkit-scrollbar {
  display: none; /* Hide Chrome/Safari scrollbar */
}

.category-pill {
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-pill:hover, .category-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Search Bar */
.search-section {
  margin-bottom: 20px;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 52px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 20px 0 50px;
  font-size: 15px;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 66, 36, 0.1);
}

.search-icon-svg {
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 13px;
  color: var(--secondary-color);
  font-weight: 600;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 16px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 66, 36, 0.15);
}

.card-link-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-container {
  aspect-ratio: 1 / 1;
  background-color: #F0F4F1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

.product-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-color);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(240, 165, 0, 0.2);
}

.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.product-category-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
  display: block;
}

.product-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.product-rating-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.star-rating {
  color: var(--accent-color);
  font-size: 14px;
}

.rating-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.size-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
}

.add-to-cart-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(10, 66, 36, 0.15);
}

.add-to-cart-circle:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.add-to-cart-circle:active {
  transform: scale(0.95);
}

/* PRODUCT DETAIL PAGE CSS */
.detail-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-bottom: 10px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--primary-color);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.detail-image-panel {
  background-color: #F0F4F1;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.detail-main-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.detail-badge-pill {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(240, 165, 0, 0.25);
}

.detail-info-panel {
  display: flex;
  flex-direction: column;
}

.detail-category-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.detail-stars {
  color: var(--accent-color);
  font-size: 16px;
}

.detail-rating-number {
  font-weight: 700;
  font-size: 14px;
}

.detail-reviews-count {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-price-box {
  margin-bottom: 24px;
}

.detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
}

.currency {
  font-size: 20px;
  font-weight: 600;
  margin-right: 2px;
}

.detail-description {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Sizing Options */
.section-subtitle-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.detail-size-selector {
  margin-bottom: 24px;
}

.size-pills-row {
  display: flex;
  gap: 12px;
}

.size-pill {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  transition: var(--transition);
}

.size-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Quantity selector */
.detail-quantity-selector {
  margin-bottom: 30px;
}

.quantity-controller {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: fit-content;
  background: var(--card-bg);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--bg-color);
}

.qty-val {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 44px;
  line-height: 44px;
}

/* Action buttons */
.detail-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.btn {
  height: 52px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  width: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(10, 66, 36, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(10, 66, 36, 0.03);
}

/* Collapsible tabs (benefits, ingredients, etc) */
.product-tabs-container {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-tab {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  overflow: hidden;
}

.accordion-header {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  background: var(--card-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
}

.accordion-content {
  padding: 0 20px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-content ul li {
  display: flex;
  align-items: flex-start;
}

/* Related Products */
.related-products-section {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  margin-top: 30px;
}

.related-products-section .products-grid {
  grid-template-columns: repeat(2, 1fr);
}

.related-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-color);
  color: var(--text-main);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}

/* CART & CHECKOUT PAGE STYLE */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.cart-items-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 80px 1fr 60px;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #F0F4F1;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cart-item-size {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.cart-item-actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.quantity-controller.compact {
  border-radius: 6px;
}

.quantity-controller.compact .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.quantity-controller.compact .qty-val {
  min-width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 13px;
}

.btn-remove-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--danger-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-remove-item:hover {
  opacity: 0.8;
}

.cart-item-line-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: right;
  align-self: flex-start;
}

/* Empty cart state style */
.empty-state-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 280px;
}

/* Checkout Panel & Forms */
.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.checkout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-color);
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--secondary-color);
  background: white;
}

textarea.form-input {
  height: auto;
  padding: 12px;
  resize: vertical;
}

/* Payment selection radio cards */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  transition: var(--transition);
}

.payment-radio-label:hover {
  background: var(--bg-color);
}

.payment-radio-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-radio-input {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

.payment-radio-label.active,
.payment-radio-input:checked + .payment-radio-info {
  font-weight: 600;
}

/* Total / Summary Panel */
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 12px;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

.checkout-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0;
}

.checkout-divider::before,
.checkout-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.checkout-divider:not(:empty)::before {
  margin-right: .5em;
}

.checkout-divider:not(:empty)::after {
  margin-left: .5em;
}

/* MODAL SYSTEM (Checkout & Success Popups) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 66, 36, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-end; /* Opens from bottom on mobile */
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.modal-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card-bg);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.modal.modal-open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success Screen styling */
.success-screen-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

.success-check-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(45, 125, 70, 0.3);
  animation: scaleBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Desktop and Tablet Media Queries */
@media (min-width: 768px) {
  body {
    padding-bottom: 0; /* Remove bottom bar spacing */
  }

  /* Show navigation top-header */
  .desktop-nav {
    display: block;
  }

  /* Hide bottom nav on desktop */
  .mobile-nav {
    display: none;
  }

  /* Banner sizing adjustments */
  .hero-banner {
    padding: 60px 50px;
    min-height: 320px;
    flex-direction: row;
    align-items: center;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-description {
    font-size: 16px;
  }

  /* Adjust product grid to 3 columns */
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .product-card-title {
    font-size: 15px;
    height: 40px;
  }
  
  .product-info {
    padding: 16px;
  }

  /* Related section also scales */
  .related-products-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Product Details Split Screen layout */
  .product-detail-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .detail-image-panel {
    position: sticky;
    top: 90px;
  }

  .detail-title {
    font-size: 34px;
  }

  .detail-actions-row {
    flex-direction: row;
  }

  .detail-actions-row button {
    flex: 1;
  }

  /* Cart Layout Split columns */
  .cart-layout {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .cart-items-panel {
    position: sticky;
    top: 90px;
  }

  .checkout-panel {
    position: sticky;
    top: 90px;
  }

  .cart-item-card {
    grid-template-columns: 100px 1fr 100px;
    padding: 16px;
  }

  .cart-item-img {
    width: 100px;
    height: 100px;
  }

  .cart-item-title {
    font-size: 16px;
  }

  /* Modals center fully on desktop */
  .modal {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius-lg);
    transform: translateY(50px);
  }

  .modal.modal-open .modal-content {
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  /* Grid increases to 4 columns on large monitors */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.contact-info-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Mock Map styling */
.mock-map-container {
  height: 200px;
  background: #EAECE9;
  border-radius: var(--radius-sm);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-map-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(10, 66, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 66, 36, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.mock-map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mock-map-pin-icon {
  font-size: 32px;
  color: #D32F2F;
}

.mock-map-label {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  margin-top: 4px;
  display: inline-block;
}

/* ==========================================================================
   ORDER TRACKING PAGE STYLES
   ========================================================================== */
.track-search-card {
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
}

.track-search-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.track-search-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.track-search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.track-input {
  flex-grow: 1;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 14px;
  background: var(--bg-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm) inset;
}

.track-input:focus {
  border-color: var(--secondary-color);
  background: white;
}

.btn-track {
  height: 48px;
  padding: 0 24px;
  width: auto;
}

/* Tracking Result Card */
.track-result-panel {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.track-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.track-id-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
}

.track-status-badge {
  background: var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

.track-status-badge.active-status {
  background: var(--secondary-color);
  color: white;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Timeline Stepper */
.tracking-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 7px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Connect completed lines */
.timeline-item.completed::after {
  content: '';
  position: absolute;
  top: 16px;
  left: -17px;
  height: calc(100% - 10px);
  width: 2px;
  background: var(--secondary-color);
  z-index: 1;
}

.timeline-item:last-child.completed::after {
  display: none;
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -24px;
  top: 4px;
  z-index: 2;
  transition: var(--transition);
}

.timeline-item.completed .timeline-node {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.timeline-item.active .timeline-node {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.2);
}

.timeline-node svg {
  display: none;
  color: white;
}

.timeline-item.completed .timeline-node svg {
  display: block;
}

.timeline-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-item.completed .timeline-title {
  color: var(--primary-color);
}

.timeline-item.active .timeline-title {
  color: var(--accent-color);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Detail Box (Items, courier, address) */
.track-details-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 15px;
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.track-details-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.track-details-col p {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

/* Media Queries for Contact/Tracking screens */
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
  }
  
  .track-details-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   UNIFIED DARK GROUPED LEFT-ALIGNED FOOTER STYLES
   ========================================================================== */
.footer {
  background-color: #051F10; /* Very deep dark forest green background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 50px;
  padding: 50px 20px 85px; /* Extra bottom padding for mobile navigation bar */
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-col-main {
  text-align: left;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--accent-color); /* Amber/gold */
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 420px;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.footer-col-group {
  display: flex;
  gap: 80px; /* Increased space between columns */
  flex-wrap: wrap;
}

.footer-col-links,
.footer-col-contact {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.footer-links-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--accent-color);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-details p {
  line-height: 1.4;
  margin: 0;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
  background: var(--accent-color);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.3);
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 25px;
  padding-top: 20px;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

@media (min-width: 768px) {
  .footer {
    padding: 60px 20px 40px; /* Standard bottom padding on desktop */
  }
  
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
