/* Shop Healthy Diet - Main Styles */
:root {
  --green: #14B75D;
  --green-dark: #0d9a4a;
  --green-light: #e8f8ef;
  --orange: #FF6B35;
  --orange-dark: #e55a28;
  --dark: #1a1a1a;
  --dark-2: #2d2d2d;
  --gray: #666;
  --gray-light: #f5f5f5;
  --white: #fff;
  --red: #e74c3c;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Torn edge */
.torn-top {
  position: relative;
  margin-top: -2px;
}
.torn-top::before {
  content: '';
  display: block;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,30 L0,15 Q15,25 30,10 Q45,0 60,15 Q75,30 90,10 Q105,0 120,20 Q135,30 150,10 Q165,0 180,18 Q195,30 210,12 Q225,0 240,20 Q255,30 270,8 Q285,0 300,18 Q315,30 330,10 Q345,0 360,22 Q375,30 390,12 Q405,0 420,18 Q435,30 450,10 Q465,0 480,20 Q495,30 510,8 Q525,0 540,18 Q555,30 570,12 Q585,0 600,20 Q615,30 630,10 Q645,0 660,18 Q675,30 690,12 Q705,0 720,20 Q735,30 750,8 Q765,0 780,18 Q795,30 810,10 Q825,0 840,22 Q855,30 870,12 Q885,0 900,18 Q915,30 930,10 Q945,0 960,20 Q975,30 990,8 Q1005,0 1020,18 Q1035,30 1050,12 Q1065,0 1080,20 Q1095,30 1110,10 Q1125,0 1140,18 Q1155,30 1170,12 Q1185,0 1200,15 L1200,30 Z' fill='white'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

.torn-bottom::after {
  content: '';
  display: block;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,15 Q15,5 30,20 Q45,30 60,15 Q75,0 90,20 Q105,30 120,10 Q135,0 150,18 Q165,30 180,12 Q195,0 210,20 Q225,30 240,8 Q255,0 270,18 Q285,30 300,10 Q315,0 330,22 Q345,30 360,12 Q375,0 390,18 Q405,30 420,10 Q435,0 450,20 Q465,30 480,8 Q495,0 510,18 Q525,30 540,12 Q555,0 570,20 Q585,30 600,10 Q615,0 630,18 Q645,30 660,12 Q675,0 690,20 Q705,30 720,8 Q735,0 750,18 Q765,30 780,10 Q795,0 810,22 Q825,30 840,12 Q855,0 870,18 Q885,30 900,10 Q915,0 930,20 Q945,30 960,8 Q975,0 990,18 Q1005,30 1020,12 Q1035,0 1050,20 Q1065,30 1080,10 Q1095,0 1110,18 Q1125,30 1140,12 Q1155,0 1170,20 Q1185,30 1200,15 L1200,0 Z' fill='white'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
}

/* Header */
.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo img { height: 42px; width: auto; }

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--green); }

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}

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

.header-icons a {
  color: var(--white);
  font-size: 1.2rem;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=1600&q=80') center/cover no-repeat;
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
}

.page-banner h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.breadcrumb {
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  font-size: 0.9rem;
}

.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
}
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* Section */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title .subtitle {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--dark);
}

/* Hero */
.hero {
  padding: 60px 0 40px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text .subtitle {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--gray);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--green);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0.15;
}

.hero-image img {
  position: relative;
  z-index: 1;
  max-height: 420px;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* Benefits bar */
.benefits-bar {
  background: var(--green);
  padding: 50px 0;
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-item {
  text-align: center;
  color: var(--white);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

.benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.benefit-item p { font-size: 0.85rem; opacity: 0.9; }

/* Featured products */
.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 60px 0;
}

.featured-product.reverse { direction: rtl; }
.featured-product.reverse > * { direction: ltr; }

.featured-product-img {
  position: relative;
  text-align: center;
}

.featured-product-img::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 3px solid var(--gray-light);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.featured-product-img img {
  position: relative;
  z-index: 1;
  max-height: 350px;
  margin: 0 auto;
  border-radius: var(--radius);
}

.featured-product-info .category {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-product-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 10px 0 16px;
}

.featured-product-info p { color: var(--gray); margin-bottom: 20px; }

.featured-product-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 20px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.product-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.product-card-img {
  padding: 20px;
  background: var(--gray-light);
  text-align: center;
  position: relative;
}

.product-card-img img {
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
}

.product-card-body { padding: 20px; }

.product-card-body .category {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.product-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 6px 0 10px;
  line-height: 1.4;
}

.product-card-body h3 a:hover { color: var(--green); }

.product-card-body .price {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card-body .rating {
  margin: 8px 0 14px;
  font-size: 0.85rem;
  color: var(--gray);
}

.star { color: #ddd; font-style: normal; }
.star.filled { color: #f1c40f; }

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

.add-cart-circle {
  width: 42px;
  height: 42px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.add-cart-circle:hover { background: var(--green-dark); transform: scale(1.1); }

/* Why choose us */
.why-section {
  background: var(--green);
  padding: 80px 0;
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.05rem;
}

.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.why-image img {
  border-radius: 50%;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border: 6px solid rgba(255,255,255,0.3);
}

/* Testimonial */
.testimonial-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1600&q=80') center/cover fixed;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.testimonial-section blockquote {
  font-size: 1.3rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--green);
}

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  background: none;
  text-align: left;
  padding: 20px 40px 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-question::after { content: '−'; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  color: var(--gray);
}

.faq-item.active .faq-answer { max-height: 500px; }

/* Shop layout */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 60px 0;
}

.sidebar-widget {
  background: var(--gray-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

.category-list li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}

.category-list a:hover { color: var(--green); }
.category-list .count {
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--gray);
  border: 1px solid #ddd;
}
.tag-cloud a:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a, .pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination a:hover,
.pagination .active { background: var(--green); color: var(--white); border-color: var(--green); }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.product-gallery .main-image {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin-bottom: 16px;
}

.product-gallery .main-image img {
  max-height: 400px;
  margin: 0 auto;
}

.thumb-list {
  display: flex;
  gap: 12px;
}

.thumb-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumb-list img:hover,
.thumb-list img.active { border-color: var(--green); }

.product-info-detail .category {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.product-info-detail h1 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 10px 0;
}

.product-info-detail .price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}

.product-info-detail .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
}

.product-info-detail .original-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 1.1rem;
}

.product-info-detail .discount-badge {
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.qty-selector label { font-weight: 600; }

.qty-selector input {
  width: 70px;
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.product-tabs { margin-top: 50px; }

.tab-nav {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
}

.tab-nav button {
  padding: 14px 28px;
  background: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-nav button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel ul { padding-left: 20px; list-style: disc; }
.tab-panel li { margin-bottom: 8px; color: var(--gray); }

.benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.benefits-list li {
  padding-left: 24px;
  position: relative;
  color: var(--gray);
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Cart */
.cart-page { padding: 60px 0; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-price { color: var(--green); font-weight: 600; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: var(--gray-light);
  border-radius: 4px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px;
}

.cart-item-total { font-weight: 700; font-size: 1.1rem; }

.cart-remove {
  background: none;
  font-size: 1.5rem;
  color: var(--gray);
  transition: var(--transition);
}

.cart-remove:hover { color: var(--red); }

.cart-summary {
  background: var(--gray-light);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 30px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 { margin-bottom: 20px; text-transform: uppercase; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: none;
  padding-top: 16px;
  color: var(--green);
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--gray);
}

.cart-empty h3 { margin-bottom: 16px; font-size: 1.5rem; }

.checkout-form { margin-top: 40px; }
.checkout-form h3 { margin-bottom: 24px; text-transform: uppercase; }

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20,183,93,0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid { border-color: var(--red); }

.field-error {
  display: block;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-success {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
  display: none;
}

.order-success {
  background: var(--green);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 40px;
  display: none;
}

.order-success h2 { margin-bottom: 12px; font-size: 1.8rem; }

/* About */
.about-section { padding: 60px 0; }

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.about-text p { color: var(--gray); margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

.value-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--dark);
}

.value-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 0;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
}

.stat-item p {
  color: var(--gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-top: 6px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  background: var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-card-body { padding: 20px; }
.team-card-body h4 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card-body span { color: var(--green); font-size: 0.85rem; }

/* Legal pages */
.legal-content {
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 14px;
  color: var(--dark);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 10px;
  color: var(--green-dark);
}

.legal-content p,
.legal-content li {
  color: var(--gray);
  margin-bottom: 12px;
}

.legal-content ul { padding-left: 24px; list-style: disc; margin-bottom: 16px; }

.legal-content .updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 30px;
  font-style: italic;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.contact-info-block h3 { margin-bottom: 20px; font-size: 1.5rem; }
.contact-info-block p { color: var(--gray); margin-bottom: 16px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Subscribe pages */
.subscribe-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 0;
  text-align: center;
}

.subscribe-page h2 { margin-bottom: 16px; }
.subscribe-page p { color: var(--gray); margin-bottom: 30px; }

.subscribe-box {
  background: var(--gray-light);
  padding: 40px;
  border-radius: var(--radius);
  text-align: left;
}

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-about .logo-footer img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; }

.social-links { display: flex; gap: 10px; }

.social-links a {
  width: 36px;
  height: 36px;
  background: var(--dark-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
}

.social-links a:hover { background: var(--green); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--green); }

.footer-subscribe input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
  background: var(--dark-2);
  color: var(--white);
}

.footer-subscribe input::placeholder { color: rgba(255,255,255,0.4); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.payment-icons { display: flex; gap: 12px; align-items: center; }
.payment-icons span {
  background: var(--dark-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* Partners */
.partners {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  opacity: 0.4;
}

.partners-row span {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
}

/* CTA section */
.cta-section {
  background: var(--green-light);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 { margin-bottom: 16px; font-size: 2rem; }
.cta-section p { color: var(--gray); margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Blog-style cards for home page */
.blog-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body { padding: 20px; }
.blog-card-body .date { color: var(--gray); font-size: 0.8rem; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 10px; }
.blog-card-body h3 a:hover { color: var(--green); }
.blog-card-body p { color: var(--gray); font-size: 0.9rem; }

/* Decorative leaves */
.leaf-deco {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 66px);
    background: var(--dark);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    transition: var(--transition);
  }

  .nav-menu.open { left: 0; }

  .hero .container,
  .featured-product,
  .why-grid,
  .about-content,
  .contact-layout,
  .product-detail,
  .shop-layout { grid-template-columns: 1fr; }

  .featured-product.reverse { direction: ltr; }

  .product-grid,
  .blog-preview,
  .team-grid { grid-template-columns: 1fr; }

  .hero-text h1 { font-size: 2rem; }
  .page-banner h1 { font-size: 2rem; }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }

  .cart-item-qty,
  .cart-item-total { grid-column: 2; }

  .form-row { grid-template-columns: 1fr; }

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

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

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

  .benefits-grid { grid-template-columns: 1fr; }

  .benefits-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .values-grid { grid-template-columns: 1fr; }
}
