/* 
==============================================
WOODEN TOYS ECOMMERCE - MAIN STYLESHEET
==============================================
Author: AI Assistant
Description: Main stylesheet for Wooden Toys eCommerce website
Version: 1.0
==============================================
*/

/* ===== VARIABLES ===== */
:root {
  /* Color Palette - Natural Wood Theme */
  --primary-color: #8B5A2B;      /* Dark wood brown */
  --secondary-color: #D2B48C;    /* Tan/Light wood */
  --accent-color: #228B22;       /* Forest green */
  --background-color: #FFF8E7;   /* Cream */
  --text-color: #3E2723;         /* Dark brown text */
  --light-text: #F5F5F5;         /* Off-white text */
  --danger-color: #B71C1C;       /* Red for alerts/sales */
  --success-color: #2E7D32;      /* Green for success messages */
  --border-color: #D7CCC8;       /* Light brown border */
  --shadow-color: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

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

ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

button, .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

button:hover, .btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  color: white !important;
}
@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 15px;
    padding-left: 15px;
  }
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.btn-green {
  background-color: var(--success-color);
  color: var(--light-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-green:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.btn-light {
  background-color: var(--accent-color);
  color: var(--light-text);
  border: none;
}

.btn-light:hover {
  background-color: var(--light-text) !important;
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Remove bottom padding from last section before footer on testimonials page */
.share-experience {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.testimonials-section {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure footer has no margin on testimonials page */
body:has(.share-experience) .footer,
.share-experience + .footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure no extra space after footer */
html {
  margin-bottom: 0;
  padding-bottom: 0;
}

body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title.text-center {
  display: block;
  text-align: center;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  display: block;
  width: 100%;
  margin-top: var(--spacing-sm);
  font-size: 1rem;
  color: var(--text-color);
}

/* Values Section */
.values-section {
    background-color: #fff;
    padding: var(--spacing-xl) 0;
}

.values-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.value-card {
    flex: 1;
    background-color: #fff;
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E8DDD0;
    border-bottom: 2.5px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.value-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.value-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

@media (max-width: 767px) {
    .values-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
    
    .value-icon i {
        font-size: 1.75rem;
    }
    
    .value-title {
        font-size: 1.35rem;
    }
}

.about-hero {
    padding: 1rem 0;
    background-color: var(--background-color);
    text-align: center;
}

.about-hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-hero-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    line-height: 1.3;
}

.about-hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    text-align: center;
    width: 100%;
    margin: 0;
}

.about-story {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.about-story .about-story-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    line-height: 1.8;
}

.story-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.about-story .about-story-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .about-hero {
        padding: 0.75rem 0;
    }
    
    .about-hero-content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    .about-hero-title {
        font-size: 1.5rem;
    }
    
    .about-hero-subtitle {
        font-size: 0.85rem;
    }
    
    .about-story .about-story-content {
        padding: 0 var(--spacing-md);
    }
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: var(--accent-color);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
  display: flex;
  justify-content: center;
}

/* CTA Section */
.cta-section {
  background-color: #6B4423;
  padding: 5rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: rgba(210, 180, 140, 0.4);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  line-height: 1.2;
}

.cta-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  max-width: 700px;
}

.btn-cta {
  background-color: #FFF8E7;
  color: var(--primary-color);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-cta:hover {
  background-color: #F5F0E0;
  color: #6B4423;
  transform: none;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 3.5rem 0;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .btn-cta {
    padding: 0.75rem 1.75rem;
  }
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-accent {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.bg-light {
  background-color: var(--background-color);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.p-1 {
  padding: var(--spacing-xs);
}

.p-2 {
  padding: var(--spacing-sm);
}

.p-3 {
  padding: var(--spacing-md);
}

.p-4 {
  padding: var(--spacing-lg);
}

.p-5 {
  padding: var(--spacing-xl);
}

/* Image Gallery Section */
.image-gallery {
    padding: 1rem 0 3.5rem 0;
    background-color: var(--background-color);
}

.gallery-wrapper {
    background-color: #FAF7F2;
    padding: 2rem;
    border-radius: var(--border-radius-md);
}

.gallery-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.gallery-item {
    flex: 1;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .image-gallery {
        padding: 1rem 0 2.5rem 0;
    }
    
    .gallery-wrapper {
        padding: 1.5rem;
    }
    
    .gallery-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 250px;
    }
}

.rounded {
  border-radius: var(--border-radius-md);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow {
  box-shadow: 0 4px 6px var(--shadow-color);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px var(--shadow-color);
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-center {
  align-items: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

/* ===== GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col {
  flex: 1 0 0%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== HEADER & NAVIGATION ===== */
.header {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
  min-height: 145px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 var(--spacing-md);
  gap: 2rem;
  position: relative;
}

.logo {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: -0.5rem; /* Move logo slightly to the left */
}

.logo img {
  height: 135px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  background-color: transparent;
  display: block;
}

nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem; /* Even spacing between nav items */
  align-items: center;
  justify-content: center;
}

.nav-item {
  margin: 0; /* Remove margin-left, use gap instead */
}

.nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: block;
}

.nav-link:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.nav-link.active {
  color: var(--accent-color);
  font-weight: 700;
}

.header-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.5rem;
}

/* Global header search */
.header-search {
  display: flex;
  align-items: center;
  flex: 0 1 320px;
  max-width: 360px;
}

.header-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.header-search-input:focus {
  outline: none;
}

.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-search-submit:hover {
  background-color: var(--accent-color);
  transform: translateY(-1px);
}

.header-search-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-icon {
  font-size: 1.75rem;
  position: relative;
  color: var(--primary-color);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: var(--light-text);
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 769px) {
  .header .container {
    justify-content: space-between;
    gap: 0;
  }

  .header nav {
    flex: 0 0 auto;
  }

  .header-icons {
    display: contents;
  }

  .header-icon {
    flex: 0 0 auto;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-color: var(--background-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
    z-index: 2;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-carousel {
        position: relative;
        height: auto;
    }

    .hero-image {
        /* keep image fully visible and prominent on mobile */
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
        object-position: center;
    }

    .hero-image:not(.active) {
        display: none;
        opacity: 0;
    }

    .hero-image.active {
        opacity: 1;
    }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  width: 90%;
  padding: var(--spacing-xl);
  background-color: rgba(255, 248, 231, 0.6);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  transition: all 0.3s ease-in-out;
  /* removed hero overlay */
  display: none;
}

/* Responsive adjustments for hero content */
@media (max-width: 768px) {
  .hero-content {
    padding: var(--spacing-lg);
    max-width: 90%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--spacing-xl) 0;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* spacing between cards */
  justify-content: center; /* center the entire row */
}

.feature-column {
  flex: 0 0 32%; /* roughly 3 columns with gap */
  display: flex;
}

@media (max-width: 767px) {
  .feature-column {
    flex: 0 0 100%; /* full width on mobile */
  }

  .features .feature-row {
    gap: 10px;
  }

  .features .feature-column {
    flex: 0 0 calc(33.333% - 10px); /* 3 columns in Why Choose Wooden Products */
  }

  .features .feature-card {
    min-height: 210px;
    padding: 14px;
  }

  .features .feature-title {
    font-size: 0.85rem;
  }

  .features .feature-card p {
    font-size: 0.78rem;
  }

  .why-us .feature-column {
    flex: 0 0 calc(50% - 10px); /* 2 columns in Why Choose Us */
  }

  .why-us .feature-card {
    min-height: 240px;
    padding: 20px;
  }

  .why-us .feature-title {
    font-size: 0.95rem;
  }

  .why-us .feature-card p {
    font-size: 0.85rem;
  }
}

.feature-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  flex: 1;
  min-height: 300px;
  width: 100%;
  transition: transform 0.3s ease;
  height: 100%;
}

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

.feature-card p {
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

.feature-icon i {
  color: #28a745;
}

.feature-title {
  font-weight: 600;
  color: #5a3d1c;
  text-align: center;
}

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: var(--spacing-xl) 0;
}

/* Homepage product groups tabs */
.product-groups-tabs {
  min-height: 640px;
  padding-top: var(--spacing-md);
}

.product-group-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 8px 4px 16px;
  margin-bottom: 8px;
}

.product-group-tabs::-webkit-scrollbar {
  height: 0;
  display: none;
}

.product-group-tabs::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.product-group-tab {
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #5a3d1c;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-group-loading-note {
  text-align: center;
  color: #777;
  font-size: 0.95rem;
  margin: 4px 0 12px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.product-group-loading-note.is-hidden {
  opacity: 0;
}

.product-group-tab.is-active {
  border-color: #5a3d1c;
  box-shadow: 0 4px 12px rgba(90, 61, 28, 0.2);
}

.product-group-tab:focus {
  outline: none;
  border-color: #5a3d1c;
  box-shadow: 0 0 0 3px rgba(90, 61, 28, 0.15);
}

.product-groups-carousel .carousel-container {
  transition: opacity 0.2s ease;
}

.product-groups-carousel .carousel-container.is-switching {
  opacity: 0.25;
}

.product-group-empty-message {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 24px 0;
  font-size: 1rem;
}

.product-group-empty-state {
  text-align: center;
  color: #666;
  padding: 20px 0;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

/* Featured Products Grid Layout */
.product-carousel {
  display: block;
  margin: 0 auto;
}

.product-carousel .carousel-container {
  width: 100%;
}

.product-carousel .carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: var(--spacing-lg);
  transform: none !important;
}

.product-carousel .carousel-slide {
  width: 100% !important;
  margin-right: 0 !important;
}

.carousel-prev, .carousel-next {
  display: none;
}

/* Homepage product group loading skeleton */
.homepage-groups-skeleton .section-title h2 {
  color: #9a9a9a;
}

.homepage-groups-skeleton .product-card {
  box-shadow: none;
  border: 1.5px solid #C69A6B;
  background-color: #FFF8F2;
}

@media (max-width: 768px) {
  .homepage-groups-skeleton .carousel-track .carousel-slide:nth-child(n+5) {
    display: none;
  }
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: #eeeeee;
}

.skeleton-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0) 100%);
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton-line {
  height: 18px;
  border-radius: 10px;
  width: 70%;
  margin: 0.5rem auto 0.75rem;
}

.skeleton-pill {
  height: 44px;
  border-radius: 999px;
  flex: 1 1 0;
}

@media (max-width: 992px) {
  .product-carousel .carousel-track {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  .product-groups-tabs {
    min-height: 560px;
  }
}

@media (max-width: 768px) {
  /* mobile: 2 products per row */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }

  /* mobile: 2 products per row */
  .product-carousel .carousel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: var(--spacing-sm);
  }

  .product-group-tabs,
  .category-tabs {
    justify-content: flex-start;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    min-width: 0;
  }

  .product-group-tabs::-webkit-scrollbar,
  .category-tabs::-webkit-scrollbar {
    height: 6px;
  }

  .product-group-tabs::-webkit-scrollbar-thumb,
  .category-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
  }

  .product-groups-tabs {
    min-height: 520px;
  }

  .product-actions .btn.view-product,
  .product-actions .btn.view-more,
  .product-actions .add-to-cart-btn {
    font-size: 1.1rem;
    font-weight: 700;
  }
}

/* Homepage product card spacing */
.products.section .product-carousel .carousel-track {
  gap: 24px;
}

.products.section .product-carousel .carousel-container {
  padding: 4px;
}

@media (max-width: 768px) {
  .products.section .product-carousel .carousel-track {
    gap: 16px;
  }

  .products.section .product-carousel .carousel-container {
    padding: 4px;
  }
}

@media (max-width: 576px) {
  .carousel-track {
    /* mobile: 2 products per row */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: var(--spacing-sm);
  }
}

.product-card {
  background-color: #FFF8F2;
  border: 1.5px solid #C69A6B;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product name styling - reduced font size */
.product-card .product-name,
.product-card h3.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #333;
  min-height: 2.8em; /* Consistent height for 2-3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* Product price wrapper for consistent alignment */
.product-price-wrapper {
  min-height: 48px; /* Consistent height for price area (handles both single price and original+offer) */
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 12px;
}

.product-card .product-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
  text-align: center;
}

.product-card .product-price .original-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #999;
  text-decoration: line-through;
  line-height: 1.2;
  text-align: center;
}

.product-card .product-price .offer-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3E2723; /* Dark brown */
  line-height: 1.2;
  text-align: center;
}

.product-card .product-price .current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000; /* Black */
  line-height: 1.2;
  text-align: center;
}

/* Fallback for prices without class when no offer */
.product-card .product-price > span:not(.original-price):not(.offer-price):not(.current-price) {
  color: #000000; /* Black */
}

/* Hide product description on shop page */
.product-card .product-description {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-4px);
    border-color: #A27A4A;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }
}

@media (max-width: 768px) {
  .product-card {
    border-width: 1px;
  }

  .product-card > .product-image,
  .product-card > img.product-image {
    padding: 2% 3% 3%;
    aspect-ratio: auto;
    min-height: 0;
  }

  .product-card > img.product-image {
    display: block;
    width: 100%;
    height: auto;
  }
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* Square canvas for consistent presentation */
  background-color: var(--background-color); /* Page background color for canvas */
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%; /* Equal padding (~10%) on all sides */
  box-sizing: border-box;
  min-height: 250px; /* Fallback for older browsers */
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* No cropping - show full product */
  object-position: center center; /* Center the product in the canvas */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  z-index: 2;
  display: block;
}

.product-image:hover img {
  transform: scale(1.03); /* Slight zoom on hover */
}

.product-image img.loaded {
  opacity: 1;
}

.product-image.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background-color); /* Match page background for consistent canvas appearance */
  z-index: 1;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.product-info {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

/* Price container with white background */
.product-price-container {
  background-color: #FFFFFF; /* White */
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.product-price .original-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #999; /* Light grey */
  text-decoration: line-through;
  text-align: center;
}

.product-price .offer-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3E2723; /* Dark brown */
  text-align: center;
}

.product-price .current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000; /* Black */
  text-align: center;
}

/* Fallback for prices without class when no offer */
.product-price > span:not(.original-price):not(.offer-price):not(.current-price) {
  color: #000000; /* Black */
}

.product-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: auto;
  align-items: stretch;
}

.product-actions > .btn,
.product-actions > .contact-btn,
.product-actions > .contact-whatsapp-btn {
  flex: 1 1 0;
}

/* Featured Products Section - Reduced Spacing and No Price */
.products .product-carousel .product-card .featured-product-info {
  padding: 0.75rem var(--spacing-md) var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.products .product-carousel .product-card .featured-product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.4;
  /* Fixed height for 2 lines: font-size (1.25rem) × line-height (1.4) × 2 lines = 3.5rem */
  height: 3.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products .product-carousel .product-card .featured-product-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: auto;
  align-items: stretch;
}

/* View More button - light gray with border */
.product-actions .btn.view-product,
.product-actions .btn.view-more {
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  line-height: 1.2;
  background-color: #FFF8F2;
  color: #A27A4A;
  border: 1px solid #C69A6B;
}

@media (hover: hover) and (pointer: fine) {
  .product-actions .btn.view-product:hover,
  .product-actions .btn.view-more:hover {
    background-color: #FFF3E8;
    color: #A27A4A;
    border-color: #C69A6B;
  }
}

.product-actions .add-to-cart-btn {
  flex: 1;
  background-color: #C69A6B;
  color: #FFFFFF;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.2;
  margin-top: 0;
  width: auto;
  border: 1px solid #C69A6B;
}

@media (hover: hover) and (pointer: fine) {
  .product-actions .add-to-cart-btn:hover {
    background-color: #A27A4A;
    color: #FFFFFF;
    border-color: #A27A4A;
  }
}

/* Shop page contact button styled to green */
.product-actions .contact-btn {
  background-color: #25D366; /* Vibrant green */
  color: white;
  flex: 1;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  line-height: 1.4;
  border: none;
}

.product-actions .contact-btn:hover {
  background-color: #128C7E;
  color: white;
}

/* Ensure btn-green in product-actions has proper spacing */
.product-actions .btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== CAROUSEL BASE ===== */
.carousel {
  position: relative;
  --carousel-visible: 1;
  --carousel-height: auto;
  --carousel-gap: 20px;
}

.carousel .carousel-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: var(--carousel-height);
  touch-action: pan-y;
}

.carousel .carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel .carousel-slide {
  flex: 0 0 calc((100% - (var(--carousel-visible) - 1) * var(--carousel-gap)) / var(--carousel-visible));
  box-sizing: border-box;
  display: flex;
  height: 100%;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background-color: rgba(0, 0, 0, 0.45);
  transform: scale(1.1);
}

.carousel.is-dragging .carousel-track {
  transition: none;
}

.testimonials-carousel,
.why-us-carousel {
  margin: 0 auto;
  max-width: 1200px;
}

.testimonials-carousel {
  --carousel-visible: 1;
  --carousel-height: 360px;
}

/* Testimonials: viewport clips strictly; track uses full width for percentage-based sliding */
.testimonials-carousel .carousel-viewport {
  overflow: hidden;
  position: relative;
}

.testimonials-carousel .carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
  gap: 0;
}

.testimonials-carousel .testimonial-slide {
  flex: 0 0 100%;
  display: flex;
  gap: 24px;
  box-sizing: border-box;
  min-width: 0;
}

.testimonials-carousel .testimonial-slide .testimonial-card {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}

.why-us-carousel {
  --carousel-visible: 3;
  --carousel-height: 340px;
}

@media (max-width: 768px) {
  .carousel {
    --carousel-gap: 12px;
  }
  
  .testimonials-carousel,
  .why-us-carousel {
    --carousel-visible: 1;
    --carousel-height: 320px;
  }
}

/* Testimonials-only dot sizing + mobile 2-up layout */
.testimonials .carousel-dots {
  gap: 12px;
}

.testimonials .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  padding: 0;
  min-width: 0;
  min-height: 0;
  line-height: 0;
}

.why-us .carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.22);
  padding: 0;
  min-width: 0;
  min-height: 0;
  line-height: 0;
}

.testimonials .carousel-dot.is-active {
  background-color: rgba(0, 0, 0, 0.5);
  transform: none;
}

.why-us .carousel-dot.is-active {
  background-color: rgba(0, 0, 0, 0.5);
  transform: none;
}

@media (max-width: 768px) {
  .testimonials-carousel {
    --carousel-visible: 1;
    --carousel-height: 420px;
  }

  .testimonials .carousel-dot {
    width: 3px;
    height: 3px;
  }
}

@media (max-width: 768px) {
  .why-us-carousel {
    --carousel-visible: 2;
    --carousel-height: 320px;
  }

  .why-us .carousel-dot {
    width: 3px;
    height: 3px;
    padding: 0;
    min-width: 0;
    min-height: 0;
    line-height: 0;
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: var(--spacing-xl) 0;
  background-color: var(--secondary-color);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Masonry Grid Layout */
/* .testimonials-masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  grid-auto-flow: dense;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
} */

/* .testimonial-row {
  display: block;
  margin-bottom: var(--spacing-md);
  width: 100%;
} */

.testimonial-container {
  width: 100%;
  height: 100%;
  display: flex;
  margin-bottom: 0; /* Remove bottom margin as grid gap handles spacing */
} 

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
  }
  
  .testimonial-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
  }  

  .testimonial-card {
    padding: var(--spacing-sm);
    min-width: 0;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  .testimonial-text {
    font-size: 0.8rem;
    line-height: 1.35;
  }
 }

.testimonial-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px var(--shadow-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  height: 100%;
}
 

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--spacing-md);
}

.testimonial-author {
  font-weight: 700;
}

.testimonial-rating {
  color: #FFD700;
  margin-top: var(--spacing-xs);
}

/* Testimonial text styles defined earlier */

/* ===== ABOUT SECTION ===== */
.about-preview {
  padding: var(--spacing-xl) 0;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 100%;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  padding: var(--spacing-lg);
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social-media-section {
  padding: var(--spacing-xl) 0;
}

.social-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin: 0 auto;
}

.social-media-block {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-media-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.social-media-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
  flex: 1;
}

.social-media-description {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.4;
  margin: var(--spacing-xs) 0;
  max-width: 80%;
}

.social-media-follow {
  width: 100%;
  max-width: 300px;
  margin-top: var(--spacing-xs);
  margin-top: auto;
}

/* Instagram Styles */
.instagram-btn {
  background-color: #E1306C;
  border-color: #E1306C;
  width: 100%;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  height: 48px;
}

.instagram-btn:hover {
  background-color: #C13584;
  border-color: #C13584;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

/* Facebook Styles */
.facebook-btn {
  background-color: #1877F2;
  border-color: #1877F2;
  width: 100%;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  height: 48px;
}

.facebook-btn:hover {
  background-color: #0D65D9;
  border-color: #0D65D9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Responsive Styles for Social Media Section */
@media (max-width: 768px) {
  .social-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
  }

  .social-media-block {
    padding: var(--spacing-xs) var(--spacing-md);
  }

  .social-media-description {
    font-size: 0.9rem;
    margin: var(--spacing-xs) 0;
    max-width: 90%;
  }

  .social-media-follow {
    max-width: 250px;
  }

  .instagram-btn,
  .facebook-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
    height: 44px;
  }
}

.facebook-item:hover .facebook-image {
  transform: scale(1.1);
}

.facebook-item:hover .facebook-caption {
  transform: translateY(0);
}

.facebook-btn {
  background-color: #1877f2;
  border-color: #1877f2;
  width: 100%;
  justify-content: center;
}

.facebook-btn:hover {
  background-color: #166fe5;
  border-color: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

/* Common Social Media Button Styles */
.social-media-follow .btn {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.social-media-follow .btn i {
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ===== SHOP PAGE ===== */
.shop-container {
  display: flex;
  gap: var(--spacing-lg);
}

.shop-sidebar {
  flex: 0 0 250px;
  background-color: #fff;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.filter-toggle {
  display: none;
}

@media (min-width: 1024px) {
  /* sticky filters - desktop only */
  .shop-sidebar {
    position: sticky;
    top: 170px;
    align-self: flex-start;
  }
}

.filter-group {
  margin-bottom: var(--spacing-lg);
}

.filter-title {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border-color);
}

.filter-item {
  margin-bottom: var(--spacing-xs);
}

@media (min-width: 768px) {
  .shop-sidebar .filter-item label {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

.filter-checkbox {
  margin-right: var(--spacing-xs);
}

.price-range {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.price-input {
  width: 80px;
  padding: var(--spacing-xs);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

@media (max-width: 767px) {
  /* mobile: collapsible filters */
  .shop-sidebar > h3 {
    display: none;
  }

  #category-filter-group .filter-title {
    display: none;
  }

  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
  }

  .filter-toggle i {
    transition: transform 0.2s ease;
  }

  .shop-sidebar:not(.is-collapsed) .filter-toggle i {
    transform: rotate(180deg);
  }

  .filter-panel {
    max-height: 1200px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    margin-top: var(--spacing-md);
  }

  .shop-sidebar.is-collapsed .filter-panel {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
  }
}

.shop-products {
  flex: 1;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
  padding: var(--spacing-xl) 0 0 0;
}

/* Product Media Container - Unified container for gallery and video */
.product-media-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
}

.product-media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid rgba(139, 69, 19, 0.2);
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.product-media-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.product-video-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #666;
  background-color: rgba(139, 69, 19, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.product-video-indicator i {
  font-size: 0.75rem;
  color: rgba(139, 69, 19, 0.7);
}

.product-video-indicator:hover {
  background-color: rgba(139, 69, 19, 0.12);
  color: #555;
}

.product-gallery {
  position: relative;
}

.product-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
  min-height: 200px;
  align-items: stretch;
}

.product-main-image-container {
  width: 100%;
  order: 1; /* Main image first on mobile */
  position: relative;
  background-color: #FAF7F2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  /* Maintain consistent aspect ratio - 4:3 ratio for product images */
  aspect-ratio: 4 / 3;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensures entire image is visible without cropping */
  border-radius: var(--border-radius-lg);
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Ensure images maintain aspect ratio within container */
  max-width: 100%;
  max-height: 100%;
  /* Smooth image loading */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Smooth fade-in when image changes */
.product-main-image.loading {
  opacity: 0.5;
}

.product-main-image.loaded {
  opacity: 1;
}

.product-thumbnails-container {
  display: flex;
  flex-direction: row; /* Horizontal on mobile */
  gap: var(--spacing-sm);
  order: 2; /* Thumbnails after main image on mobile */
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  min-height: 80px;
  width: 100%;
}

.product-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.product-thumbnail:hover {
  opacity: 1;
  transform: scale(1.05);
}

.product-thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color, #8B4513);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Desktop: thumbnails on left, vertical layout */
@media (min-width: 769px) {
  .product-media-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .product-gallery-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-md);
    flex-shrink: 0;
  }
  
  .product-thumbnails-container {
    flex-direction: column;
    order: 1;
    max-width: 100px;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 450px;
    /* Hide scrollbar but keep scroll functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  .product-thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .product-main-image-container {
    flex: 1;
    order: 2;
    /* Image gallery remains primary focus */
    aspect-ratio: 4 / 3;
    min-height: 350px;
    max-height: 450px;
  }
  
  .product-thumbnail {
    width: 80px;
    height: 80px;
  }
  
  /* Video appears directly below gallery with compact spacing */
  .product-video-section {
    margin-top: var(--spacing-sm);
    flex-shrink: 0;
  }
  
  /* Constrain video thumbnail wrapper width to ensure it fits */
  .product-video-thumbnail-wrapper {
    max-width: 100%;
  }
}

/* Product Video Section - Now inside Product Media container */
.product-video-section {
  margin-top: 0;
  width: 100%;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* related products – same category – read-only supabase */
.product-related-products {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.product-related-heading {
  margin-bottom: var(--spacing-xs);
  font-size: 1.2rem;
  color: #333;
  font-weight: 600;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.product-related-track {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.product-related-track::-webkit-scrollbar {
  height: 6px;
}

.product-related-track::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.related-product-card {
  flex: 0 0 170px;
  background-color: #fff;
  border: 1.5px solid #C69A6B;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

@media (min-width: 769px) {
  .product-related-products {
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .product-related-track {
    padding-top: 6px;
    overflow-y: visible;
  }

  .related-product-card {
    padding-top: 6px;
  }
}

.related-product-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background-color: #FAF7F2;
}

.related-product-info {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.related-product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.related-product-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.related-original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.related-offer-price {
  color: #3E2723;
  font-weight: 700;
}

.related-current-price {
  color: #000;
  font-weight: 700;
}

/* Add spacing around Shorts thumbnail for intentional feel */
.product-video-section.has-shorts-video {
  align-items: center;
  padding: var(--spacing-xs) 0;
}

.product-video-section.has-shorts-video .product-video-thumbnail-wrapper {
  margin: var(--spacing-xs) 0;
}

.product-video-title {
  margin-bottom: var(--spacing-xs);
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.product-video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000;
  outline: none; /* Remove default outline, we'll add custom focus style */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: manipulation; /* Improve tap responsiveness on mobile */
}

/* YouTube Shorts thumbnail wrapper: centered, constrained width, 9:16 aspect ratio */
.product-video-thumbnail-wrapper.video-shorts-thumbnail {
  width: 100%;
  max-width: 320px; /* Match iframe container width */
  margin: 0 auto; /* Center horizontally */
  padding-bottom: 177.78%; /* 9:16 aspect ratio */
  border-radius: 12px; /* Match iframe container */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Enhanced shadow */
}

.product-video-thumbnail-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.product-video-thumbnail-wrapper:focus {
  outline: 3px solid rgba(139, 69, 19, 0.5);
  outline-offset: 2px;
}

.product-video-thumbnail-wrapper:active {
  transform: translateY(0);
}

.product-video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  pointer-events: none;
}

.product-video-thumbnail-wrapper:hover .product-video-play-overlay {
  background-color: rgba(0, 0, 0, 0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.product-video-play-overlay i {
  color: #fff;
  font-size: 2rem;
  margin-left: 4px; /* Slight offset to center the play icon visually */
}

.product-video-iframe-container {
  width: 100%;
}

.product-video-iframe-container .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  aspect-ratio: 16 / 9; /* Standard YouTube video aspect ratio */
}

/* YouTube Shorts container: centered, constrained width, 9:16 aspect ratio */
.product-video-iframe-container.video-shorts-container {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-xs) 0;
  text-align: center;
}

.product-video-iframe-container.video-shorts-container .video-wrapper {
  display: inline-block;
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 16; /* YouTube Shorts aspect ratio */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #000;
  vertical-align: top;
}

.product-video-iframe-container .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.product-video-error {
  padding: 2rem;
  text-align: center;
  color: #666;
  font-size: 1rem;
  background-color: #f5f5f5;
  border-radius: 10px;
  margin-top: 1rem;
}

.product-video-error p {
  margin: 0;
}

/* Responsive styles for product video section */
@media (max-width: 768px) {
  /* mobile fix: product detail layout */
  /* Ensure product container is full-width on mobile */
  .product-container {
    width: 100% !important;
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
    height: auto;
    overflow: visible;
    box-sizing: border-box;
    max-width: 100%;
  }
  
  /* Ensure col-md-6 stacks vertically on mobile */
  .product-detail .row {
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
  }
  
  .product-detail .col-md-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .product-detail .row > * {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  
  /* Mobile order: back link -> title -> price -> cart -> images -> description -> video -> reviews -> related */
  .product-detail .col-md-6 {
    display: contents;
  }
  
  .product-details,
  .product-media-container {
    display: contents;
  }
  
  .back-to-products {
    order: 1;
  }
  
  #product-title {
    order: 2;
  }
  
  #product-rating-container,
  #product-price {
    order: 2;
  }

  .product-detail .product-actions {
    order: 3;
  }
  
  .product-media-header,
  .product-gallery {
    order: 4;
  }
  
  #product-description-container {
    order: 5;
  }
  
  #product-video-section {
    order: 6;
  }
  
  #product-reviews-section {
    order: 7;
  }
  
  #related-products-section {
    order: 8;
  }
  
  .product-meta {
    order: 8;
  }
  
  .product-actions {
    order: 3;
  }

  /* mobile fix: enquire button overflow */
  .product-page .product-actions,
  .product-page .product-actions .btn,
  .product-page .product-actions .btn-green {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .product-media-container {
    max-height: none;
    overflow-y: visible;
    gap: var(--spacing-sm);
    height: auto;
    overflow: visible;
  }
  
  .product-media-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
  
  .product-media-title {
    font-size: 1.25rem;
    margin-bottom: 0;
  }
  
  .product-video-indicator {
    font-size: 0.8rem;
    padding: 0.3rem 0.65rem;
  }
  
  .product-video-indicator i {
    font-size: 0.7rem;
  }
  
  /* Mobile stacking order: Main image, then thumbnails, then video */
  .product-gallery-wrapper {
    gap: var(--spacing-xs);
  }
  
  .product-main-image-container {
    order: 1; /* Main image first */
    width: 100%;
    max-height: 60vh;
    height: auto;
  }
  
  .product-thumbnails-container {
    order: 2; /* Thumbnails second */
  }
  
  .product-video-section {
    margin-top: var(--spacing-sm);
    /* Video appears third naturally due to DOM order */
  }

  /* mobile fix: prevent content overlap */
  .product-main-image {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: contain;
  }

  .product-gallery {
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .product-description {
    margin-top: var(--spacing-md);
  }

  #product-description-container {
    margin-top: var(--spacing-sm);
  }

  .product-related-products {
    margin-top: var(--spacing-sm);
  }

  .product-related-heading {
    font-size: 1.05rem;
  }

  .related-product-card {
    flex-basis: 70%;
  }

  .related-product-image {
    height: 160px;
  }
  
  .product-video-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .product-reviews-heading {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
  }
  
  .product-video-thumbnail-wrapper {
    width: 100%;
    margin: 0;
    /* Ensure full-width on mobile */
    max-width: 100%;
  }
  
  /* Mobile: Shorts thumbnail takes full width */
  .product-video-thumbnail-wrapper.video-shorts-thumbnail {
    max-width: 100%;
    width: 100%;
  }
  
  .product-video-play-overlay {
    width: 60px;
    height: 60px;
  }
  
  /* Mobile: Shorts take full width for better mobile experience */
  .product-video-iframe-container.video-shorts-container {
    padding: var(--spacing-xs) 0; /* Reduced horizontal padding on mobile */
    margin: var(--spacing-xs) 0;
  }
  
  .product-video-iframe-container.video-shorts-container .video-shorts-wrapper {
    width: 100% !important; /* Full width on mobile, override desktop width */
    max-width: 100%;
  }
  
  .product-video-play-overlay i {
    font-size: 1.5rem;
  }
  
  /* Ensure iframe container is full-width on mobile */
  .product-video-iframe-container {
    width: 100%;
    max-width: 100%;
  }
  
  .product-video-iframe-container .video-wrapper {
    width: 100%;
    max-width: 100%;
  }
  
  /* Improve tap target size on mobile */
  .product-video-thumbnail-wrapper:active {
    transform: scale(0.98);
  }

  /* mobile fix: prevent content clipping */
  .product-reviews-section,
  .product-related-products {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .product-related-track {
    overflow-y: visible;
  }

  /* mobile fix: text overflow containment */
  .product-description,
  .product-description-content,
  #product-description-container {
    max-width: 100%;
    width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
  }

  /* mobile fix: product title overflow */
  #product-title {
    max-width: 100%;
    width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  .product-review-card,
  .product-review-text,
  .product-reviewer-name,
  .product-reviewer-context {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  .product-reviews-list,
  .product-review-card {
    width: 100%;
    box-sizing: border-box;
  }

  .product-review-text {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .product-reviews-section {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-x: visible;
    box-sizing: border-box;
  }

  .product-reviews-list {
    overflow-x: visible;
  }

  /* mobile fix: related products card sizing */
  .related-product-card {
    flex-basis: 58%;
    max-width: 58%;
  }

  .related-product-image {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .related-product-title {
    font-size: 0.85rem;
  }
}

.product-details {
  padding: 0 var(--spacing-lg);
}

/* back to products link */
.back-to-products {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.back-to-products:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.product-detail-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

/* Product Rating Container */
.product-rating-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: #666;
}

.product-rating-stars {
  color: #8B4513; /* Brown color matching brand */
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.product-rating-value {
  font-weight: 600;
  color: #333;
}

.product-review-count-link {
  color: var(--accent-color);
  text-decoration: underline;
  text-decoration-color: rgba(34, 139, 34, 0.4);
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-weight: 500;
}

.product-review-count-link:hover {
  color: #1a6b1a;
  text-decoration-color: var(--accent-color);
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-detail-price .original-price {
  font-size: 1.2rem;
  font-weight: 500;
  color: #999; /* Light grey */
  text-decoration: line-through;
  line-height: 1.2;
}

.product-detail-price .offer-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3E2723; /* Dark brown */
  line-height: 1.2;
}

/* Regular price (no offer) on product detail page */
.product-detail-price .current-price {
  color: #000000; /* Black */
  font-size: 1.5rem;
  font-weight: 700;
}

#product-price {
  color: #000000; /* Default to black for regular prices */
}

#product-price .current-price {
  color: #000000; /* Black */
  font-size: 1.5rem;
  font-weight: 700;
}

#product-price .original-price {
  color: #999; /* Light grey */
  text-decoration: line-through;
  font-size: 1.2rem;
  font-weight: 500;
}

#product-price .offer-price {
  color: #3E2723; /* Dark brown */
  font-size: 1.5rem;
  font-weight: 700;
}

/* Product Reviews Section */
.product-reviews-section {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.product-reviews-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.product-description-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: var(--spacing-xs);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.product-reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-review-card {
  padding: var(--spacing-md);
  background-color: #fafafa;
  border: 1px solid rgba(139, 69, 19, 0.1);
  border-radius: 8px;
  transition: box-shadow 0.2s ease;
}

.product-review-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-review-rating {
  color: #8B4513;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-xs);
}

.product-review-text {
  color: #333;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
}

.product-review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
}

.product-reviewer-name {
  font-weight: 600;
  color: #333;
}

.product-reviewer-context {
  color: #666;
  font-style: italic;
}

.product-description {
  margin-bottom: var(--spacing-lg);
}

.product-description-wrapper {
  position: relative;
}

.product-description-content {
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap; /* Preserve line breaks and whitespace */
  overflow-wrap: break-word;
  hyphens: auto;
}

.product-description-content.collapsed {
  position: relative;
}

.product-description-content.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em; /* Height for fade effect */
  background: linear-gradient(to bottom, rgba(255, 248, 231, 0), rgba(255, 248, 231, 0.98));
  pointer-events: none;
}

.product-description-toggle {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-decoration-color: rgba(34, 139, 34, 0.4);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  font-family: inherit;
}

.product-description-toggle:hover {
  color: #1a6b1a;
  text-decoration-color: var(--accent-color);
}

.product-description-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

.product-description-toggle .toggle-text {
  display: inline-block;
}

.product-meta {
  margin-bottom: var(--spacing-lg);
}

.product-meta-item {
  display: flex;
  margin-bottom: var(--spacing-xs);
}

.product-meta-label {
  font-weight: 700;
  width: 120px;
}

/* Product actions for individual product pages */
.product-page .product-actions {
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* Phase 1: cart UI only */
.product-cart-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.product-cart-controls .quantity-selector {
  margin-bottom: 0;
}

.product-cart-controls .add-to-cart-btn {
  flex: 1;
  min-width: 160px;
  width: auto;
}

.quantity-selector {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.quantity-btn {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border: none;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 1rem;
  margin: 0 var(--spacing-xs);
}

.add-to-cart-btn {
  width: 100%;
  padding: var(--spacing-md);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.shipping-info {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.shipping-info-title {
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.shipping-info-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.shipping-info-icon {
  margin-right: var(--spacing-sm);
  color: var(--accent-color);
}

.product-tabs {
  margin-top: var(--spacing-xl);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--spacing-lg);
}

.tab-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color);
}

.tab-btn.active {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.related-products {
  margin-top: var(--spacing-xl);
}

/* ===== ABOUT PAGE ===== */
.about-banner {
  height: 400px;
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.about-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background-color: rgba(255, 248, 231, 0.85);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  max-width: 600px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.timeline-content {
  position: relative;
  width: calc(50% - 40px);
  padding: var(--spacing-md);
  background-color: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  position: absolute;
  top: 0;
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: calc(50% - 40px);
}

.timeline-item:nth-child(even) .timeline-date {
  right: calc(50% - 40px);
}

.team-section {
  padding: var(--spacing-xl) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.team-card {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

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

.team-info {
  padding: var(--spacing-md);
  text-align: center;
}

.team-name {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.team-role {
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

.team-bio {
  font-size: 0.9rem;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
  display: flex;
  gap: var(--spacing-lg);
}

.contact-section .row {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-form-container {
  width: 500px;
  background-color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-form .form-group:last-of-type {
  margin-bottom: auto;
}

.contact-form .btn {
  margin-top: var(--spacing-md);
}

.contact-info {
  width: 500px;
  background-color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--body-font);
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-info-card {
  background-color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-bottom: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  padding: 15px;
  background-color: #fff4e6;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.contact-info-icon i {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-container {
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}

.contact-map {
  height: 300px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-map-container {
  width: 100%;
  margin-top: var(--spacing-lg);
}

.contact-map.full-width {
  height: 350px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* ===== ACCORDION STYLES ===== */
.accordion-item {
  margin-bottom: var(--spacing-md);
  background-color: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.accordion-header {
  padding: var(--spacing-md);
  background-color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  border-radius: var(--border-radius-sm);
}

.accordion-header:hover {
  background-color: #fff4e6;
  color: var(--primary-color);
}

.accordion-title {
  margin: 0;
  font-size: 1.1rem;
}

.accordion-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  opacity: 1;
  padding: var(--spacing-md);
}

.accordion-item.active .accordion-header {
  background-color: #fff4e6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  color: var(--primary-color);
  border-color: var(--primary-color-light);
}

.accordion-header i {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.accordion-item.active .accordion-header i {
  transform: rotate(45deg);
  color: var(--primary-color);
}

/* FAQ specific styles */
.faq-category {
  margin-bottom: var(--spacing-xl);
}

.faq-category-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color-light);
  color: var(--primary-color);
}

.faq-contact-cta {
  background-color: #f9f9f9;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-top: var(--spacing-xl);
}

/* ===== BLOG PAGE ===== */
/* Commented out for future reference */
/*
/* 1️⃣ Grid container for consistent layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; /* consistent spacing between cards */
  padding: 2rem 0; /* space above/below blog grid */
  width: 100%;
  box-sizing: border-box;
}

/* 2️⃣ Blog cards styled uniformly */
.blog-card {
  background-color: var(--background-color, #fdf5e6); /* warm beige fallback */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; /* cards fill grid area */
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional: Add subtle hover effect */
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 3️⃣ Blog images styled consistently */
.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 4️⃣ Blog content container with uniform padding */
.blog-content {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 5️⃣ Text styles inside cards */
.blog-date {
  font-size: 0.9rem;
  color: var(--accent-color, #8b4513); /* warm brown accent fallback */
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #4b2e1a; /* dark brown for titles */
}

.blog-excerpt {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #3b2a20;
  font-size: 1rem;
  line-height: 1.5;
}

/* 6️⃣ "Read More" or call-to-action link/button styling */
.blog-readmore {
  align-self: flex-start;
  color: var(--accent-color, #8b4513);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-readmore:hover {
  color: #5d2f10; /* darker on hover */
}

/* Blog expanded content styling */
.blog-expanded-content {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f9f1e6;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.blog-expanded-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-collapse {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-collapse:hover {
  color: #5d2f10;
}

/* Optional: Featured article styling */
.blog-featured {
  grid-column: 1 / -1; /* span full width on grid */
  background-color: var(--background-color, #fdf5e6);
  padding: 2rem;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Make sure the overall blog container doesn't collapse margins */
.blog-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem; /* spacing around the content */
  box-sizing: border-box;
}
*/


/* ===== CART & CHECKOUT PAGES ===== */
.cart-container {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.cart-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 44px;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  justify-items: center;
}

.cart-header span:first-child {
  justify-self: start;
  text-align: left;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 44px;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
  justify-items: center;
}

.cart-item .cart-product {
  justify-self: start;
}

.cart-unit-price,
.cart-line-total {
  text-align: center;
  justify-self: center;
}

.cart-product {
  display: flex;
  align-items: center;
}

.cart-product-info h4 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.cart-product-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  margin-right: var(--spacing-md);
}

.cart-quantity {
  display: flex;
  align-items: center;
  justify-self: center;
}

.cart-quantity-btn {
  width: 30px;
  height: 30px;
  background-color: var(--secondary-color);
  border: none;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.cart-quantity-input {
  width: 40px;
  height: 30px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  margin: 0 var(--spacing-xs);
}

.cart-remove {
  /* cart remove icon – UI fix */
  background: transparent;
  border: none;
  color: var(--danger-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  line-height: 1;
}

.cart-remove i {
  font-size: 1rem;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  color: #b42318;
}

@media (max-width: 768px) {
  .cart-remove {
    /* mobile-safe remove action */
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
  }

  .cart-remove i {
    font-size: 0.95rem;
  }
}

.cart-summary {
  margin-top: var(--spacing-lg);
  background-color: var(--secondary-color);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.25rem;
  border-top: 1px solid var(--border-color);
  padding-top: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.checkout-btn {
  width: 100%;
  margin-top: var(--spacing-md);
}

.checkout-container {
  display: flex;
  gap: var(--spacing-lg);
}

.checkout-form {
  flex: 2;
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.checkout-summary {
  flex: 1;
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
  align-self: flex-start;
}

.checkout-section {
  margin-bottom: var(--spacing-lg);
}

.checkout-section-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border-color);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.payment-method {
  flex: 1 0 calc(50% - var(--spacing-sm));
  min-width: 120px;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  cursor: pointer;
}

.payment-method.active {
  border-color: var(--accent-color);
  background-color: rgba(34, 139, 34, 0.1);
}

.payment-method-radio {
  margin-right: var(--spacing-sm);
}

/* ===== POLICIES PAGE ===== */
.policy-container {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-bottom: var(--spacing-lg);
}

.policy-section {
  margin-bottom: var(--spacing-xl);
}

.policy-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 1px solid var(--border-color);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #EFE3D3;
  padding: 60px 0;
  color: #4A4A4A;
  margin-bottom: 0 !important;
}

/* Ensure product page footer sits flush */
body.product-page .footer {
  margin-bottom: 0;
}

body.product-page {
  min-height: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
  width: 100%;
}

.footer-column {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  color: #8B5A2B;
  margin-bottom: 20px;
}

.footer-description {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #4A4A4A;
  font-weight: normal;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #4A4A4A;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: normal;
}

.footer-links a:hover {
  color: #333333;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a,
.social-icon {
  color: #4A4A4A;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover,
.social-icon:hover {
  color: #333333;
}

.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
  color: #4A4A4A;
  font-weight: normal;
}

/* Footer h5 headings (for product.html and similar pages) */
.footer h5 {
  color: #8B5A2B;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Footer paragraphs and text */
.footer p {
  color: #4A4A4A;
  font-weight: normal;
}

/* Footer bottom section */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
  color: #4A4A4A;
}

.footer-bottom p {
  color: #4A4A4A;
  font-weight: normal;
  margin: 0;
}

/* Footer logo section */
.footer-logo {
  color: #4A4A4A;
}

.footer-logo p {
  color: #4A4A4A;
  font-weight: normal;
}

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

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.whatsapp-btn {
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: var(--transition-fast);
}

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

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition-normal);
}

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

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.popup-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.popup-content {
  text-align: center;
}

.discount-code {
  background-color: var(--secondary-color);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  margin: var(--spacing-md) 0;
  display: inline-block;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 var(--spacing-lg);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    max-width: 500px;
  }
  
  .shop-container {
    flex-direction: column;
  }
  
  .shop-sidebar {
    flex: 0 0 auto;
    margin-bottom: var(--spacing-lg);
  }
  
  .checkout-container {
    flex-direction: column;
  }
  
  .checkout-summary {
    margin-top: var(--spacing-lg);
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-date {
    left: 0 !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header {
    padding: 0.5rem 0;
    min-height: 96px;
  }
  
  .header .container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .logo {
    margin-left: 0;
  }
  
  .logo img {
    height: 88px;
  }
  
  nav {
    order: 3;
    width: 100%;
    flex: 1 1 100%;
  }
  
  .nav-menu {
    position: fixed;
    top: 96px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 96px);
    background-color: var(--background-color);
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: 5px 0 15px var(--shadow-color);
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0 0 var(--spacing-md) 0;
    width: 100%;
  }
  
  .nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 2;
  }
  
  .header-icons {
    order: 2;
    gap: 1rem;
  }

  .header-search {
    order: 2;
  }

  .header-search-form {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, 92vw);
    background-color: #fff;
    z-index: 1001;
  }

  .header-search.is-open .header-search-form {
    display: flex;
  }

  .header-search-toggle {
    display: inline-flex;
  }
  
  .hero {
    height: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: block;
  }

  .hero-carousel {
    position: static;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-image {
    position: relative;
    display: block;
    width: 100vw;
    height: auto;
    margin: 0;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100vw;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .hero-image:not(.active) {
    display: none;
    opacity: 0;
  }

  .hero-image.active {
    opacity: 1;
  }
  
  .hero-content {
    max-width: 100%;
    width: 90%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .cart-header {
    display: none;
  }
  
  .cart-item {
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    /* mobile cart layout fix */
    display: grid;
    grid-template-areas:
      "product product price"
      "quantity remove total";
    align-items: center;
  }
  
  .cart-product {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    grid-area: product;
    text-align: left;
  }

  .cart-product-image {
    width: 64px;
    height: 64px;
    margin-right: 0;
    flex-shrink: 0;
  }

  /* mobile cart typography refinement */
  .cart-product-info h4 {
    font-size: 0.95rem;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cart-unit-price,
  .cart-line-total {
    font-weight: 600;
  }

  .cart-unit-price {
    color: var(--text-color);
    grid-area: price;
    margin-bottom: 0;
    align-self: start;
    text-align: right;
    font-size: 0.95rem;
  }

  .cart-line-total {
    color: var(--primary-color);
    grid-area: total;
    text-align: right;
  }

  .cart-quantity {
    /* compact quantity controls – mobile */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    grid-area: quantity;
  }

  .cart-quantity-btn {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
    padding: 0;
  }

  .cart-quantity-input {
    width: 34px;
    height: 26px;
    font-size: 0.8rem;
    margin: 0 2px;
  }

  .cart-remove {
    /* aligned remove icon – mobile */
    grid-area: remove;
    align-self: center;
    justify-self: center;
  }

  .cart-remove i {
    font-size: 1.1rem;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-form-container,
  .contact-info {
    margin-bottom: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
  }

  /* Contact page columns stack fully on mobile */
  .contact-section .row {
    flex-direction: column;
  }

  .contact-section .row > div {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .product-grid {
    /* mobile: 2 products per row */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
  }

  .blog-grid,
  .team-grid,
  .instagram-grid {
    grid-template-columns: 1fr;
  }
  
  .about-preview .row {
    flex-direction: column;
  }
  
  .about-image {
    margin-bottom: var(--spacing-lg);
  }
  
  .product-detail .row {
    flex-direction: column;
  }
  
  .product-gallery {
    margin-bottom: var(--spacing-lg);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.5s ease;
}

/* ===== UTILITY CLASSES FOR SPACING ===== */
.py-1 { padding-top: var(--spacing-xs); padding-bottom: var(--spacing-xs); }
.py-2 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-3 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-5 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

.px-1 { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); }
.px-2 { padding-left: var(--spacing-sm); padding-right: var(--spacing-sm); }
.px-3 { padding-left: var(--spacing-md); padding-right: var(--spacing-md); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }
.px-5 { padding-left: var(--spacing-xl); padding-right: var(--spacing-xl); }

.my-1 { margin-top: var(--spacing-xs); margin-bottom: var(--spacing-xs); }
.my-2 { margin-top: var(--spacing-sm); margin-bottom: var(--spacing-sm); }
.my-3 { margin-top: var(--spacing-md); margin-bottom: var(--spacing-md); }
.my-4 { margin-top: var(--spacing-lg); margin-bottom: var(--spacing-lg); }
.my-5 { margin-top: var(--spacing-xl); margin-bottom: var(--spacing-xl); }

.mx-1 { margin-left: var(--spacing-xs); margin-right: var(--spacing-xs); }
.mx-2 { margin-left: var(--spacing-sm); margin-right: var(--spacing-sm); }
.mx-3 { margin-left: var(--spacing-md); margin-right: var(--spacing-md); }
.mx-4 { margin-left: var(--spacing-lg); margin-right: var(--spacing-lg); }
.mx-5 { margin-left: var(--spacing-xl); margin-right: var(--spacing-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }
  .testimonial-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
    border: 2px solid var(--color-primary-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure testimonial cards align and have uniform height */
/* Testimonial card styles defined earlier */

/* Pinterest-like masonry grid layout */
/* Testimonials masonry grid styles defined earlier */

@media (max-width: 1200px) { 
  .testimonials-masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 992px) { 
   .testimonials-masonry-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .testimonial-card {
    min-height: 240px;
    padding: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .testimonials-masonry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 var(--spacing-sm);
  }
  
  .testimonial-card {
    min-height: 200px;
    min-width: 0;
  }
  
  .testimonial-text {
    line-clamp: 4;
  }
 }

/* Testimonial container styles */
.testimonials-masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns in a row */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
  .testimonials-masonry-grid {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
}

/* Loved by Customers – mobile-only compact cards */
@media (max-width: 768px) {
  .section.testimonials .testimonials-carousel {
    --carousel-height: auto;
  }

  .section.testimonials .testimonial-card {
    max-height: 180px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .section.testimonials .testimonial-card.is-expanded {
    max-height: none;
    overflow: visible;
  }

  .section.testimonials .testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section.testimonials .testimonial-card.is-expanded .testimonial-text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
  }

  .section.testimonials .testimonial-read-more {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--accent-color);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
  }
}

@media (min-width: 769px) {
  .section.testimonials .testimonial-read-more {
    display: none;
  }
}

/* .testimonial-card {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 2px 8px var(--shadow-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
} */

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
/* Testimonial header styles defined earlier */

/* Testimonial image styles defined earlier */

.testimonial-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-image img {
  transform: scale(1.05);
}

.testimonial-meta {
  flex: 1;
}

.testimonial-name {
  font-size: 0.95rem;
  margin: 0 0 2px;
}

.testimonial-rating {
  color: var(--color-accent);
  font-size: 0.8rem;
}

.testimonial-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Testimonial footer and product styles removed - no longer used */
/* .testimonial-footer {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.testimonial-product {
  font-weight: 600;
  color: var(--color-primary);
} */

/* Fix for large testimonial bottom image */
.share-experience img {
  width: 100%;
  max-width: 500px;     /* Limit the size */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  object-fit: cover;
}
.share-experience {
  background-color: var(--background-color); /* Optional: Same bg as testimonials */
  padding: var(--spacing-xl) 0 0 0;
  border-radius: var(--border-radius-lg);
  max-width: 100%; /* container will restrict width */
  margin: 0 auto;
  margin-bottom: 0;
  text-align: center; /* Keeps your heading/button centered */
}
.share-experience h2,
.share-experience p {
  margin-bottom: var(--spacing-md);
}
.share-experience button, .share-experience .btn {
  margin-top: var(--spacing-md);
}
/* Feature row styles defined earlier */

/* Feature column styles defined earlier */

/* Feature card styles defined earlier */ 
.feature-card{
  transition: transform 0.3s;
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}
.pagination-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.pagination {
  display: inline-flex;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  background-color: #8B5E3C;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pagination-btn:hover {
  background-color: #A66E45;
}

.pagination-btn.active {
  background-color: #5d4326;
  font-weight: bold;
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  gap: 0.5rem;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}
.newsletter-form button {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border: none;
  background: #8C6239;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: var(--background-color) 0.2s;
}
.newsletter-form button:hover {
  background: #5d4326;
}

/* Updated accordion styles with higher specificity */
.faq-category .accordion-item {
  background-color: #fff4e6; /* Warm beige */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  margin-bottom: 15px; /* Added spacing between accordion items */
}

.faq-category .accordion-item .accordion-header {
  background-color: #a16836 !important; /* Rich brown */
  color: #fff !important;
  font-weight: bold;
  font-size: 1rem;
  padding: 1rem !important;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: background-color 0.3s ease;
  box-shadow: none !important;
}

.faq-category .accordion-item .accordion-header:hover,
.faq-category .accordion-item .accordion-header.active {
  background-color: #804d22 !important;
}

/* Storage Setup Section Styles */
.storage-info {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #007bff;
}

.storage-status {
  margin-bottom: 1.5rem;
}

.storage-status h3 {
  color: #333;
  margin-bottom: 1rem;
}

.storage-actions {
  margin-bottom: 1.5rem;
}

.storage-actions h3 {
  color: #333;
  margin-bottom: 1rem;
}

.storage-actions .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.storage-instructions {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.storage-instructions h3 {
  color: #333;
  margin-bottom: 1rem;
}

.storage-instructions ol {
  margin-left: 1rem;
}

.storage-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.storage-instructions code {
  background-color: #e9ecef;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

/* Status indicator styles */
.status-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.status-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

.status-warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.status-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #17a2b8;
}

.status-success p,
.status-error p,
.status-warning p,
.status-info p {
  margin-bottom: 0.5rem;
}

.status-success p:last-child,
.status-error p:last-child,
.status-warning p:last-child,
.status-info p:last-child {
  margin-bottom: 0;
}

.status-info ul {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.status-info li {
  margin-bottom: 0.25rem;
}

.faq-category .accordion-item .accordion-header i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.faq-category .accordion-item.active .accordion-header i {
  transform: rotate(45deg);
}

.faq-category .accordion-item .accordion-content {
  background-color: #fff8ee; /* Light background for answers */
  color: #333;
  padding: 0 1rem;
}

.faq-category .accordion-item .accordion-content p {
  padding: 1rem 0;
  margin: 0;
  line-height: 1.6;
}

.faq-category .accordion-item.active .accordion-content {
  padding: 1rem;
}
.contact-cta {
  padding: var(--spacing-lg) 0;
}

.contact-cta .row {
  display: flex;
  align-items: center;
}

.contact-cta .col-md-4 {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .contact-cta .col-md-4 {
    justify-content: center;
    margin-top: var(--spacing-md);
  }
}
/* Container grid layout for specific sections */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Product info container */
.product-info-container {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: #fff8ee;
}
.btn-secondary{
  background-color: #8B5E3C;
  color: #fff;
}

/* ===== MOBILE OPTIMIZATION OVERRIDES ===== */
/* Mobile-first touch targets and spacing adjustments */
@media (max-width: 768px) {
  /* Reduce overall section padding for compact layouts */
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.25rem;
  }

  body {
    line-height: 1.5; /* tighter, more readable on small screens */
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .section-title {
    margin-bottom: var(--spacing-lg);
  }

  /* Ensure tap targets meet minimum size */
  button,
  .btn,
  .nav-link,
  .pagination-btn,
  .accordion-header,
  .mobile-menu-toggle,
  .header-icon,
  .contact-btn,
  .contact-whatsapp-btn {
    min-height: 44px;
  }

  .nav-link {
    display: flex;
    align-items: center;
  }

  /* Mobile tap feedback */
  button:active,
  .btn:active,
  .nav-link:active,
  .header-icon:active,
  .accordion-header:active,
  .pagination-btn:active {
    transform: translateY(1px);
    filter: brightness(0.95);
  }

  .header-icon {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Prevent background scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
    position: relative;
  }

  /* Tighten hero spacing for above-the-fold visibility */
  .hero {
    height: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-carousel {
    position: relative;
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  .hero-image:not(.active) {
    display: none;
    opacity: 0;
  }

  .hero-image.active {
    opacity: 1;
  }

  .hero-content {
    padding: var(--spacing-md);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  }

  .hero-title {
    margin-bottom: var(--spacing-sm);
  }

  .hero-subtitle {
    margin-bottom: var(--spacing-md);
  }

  /* Compact cards and sections */
  .feature-card,
  .testimonial-card,
  .team-card,
  .policy-container,
  .contact-info-card,
  .cart-container,
  .checkout-form,
  .checkout-summary {
    padding: var(--spacing-md);
  }

  .cta-section {
    padding: 2.5rem 0;
  }

  .cta-text {
    margin-bottom: 1.5rem;
  }

  /* Product cards: reduce padding for mobile */
  .product-info {
    padding: var(--spacing-sm);
  }

  .product-price-container {
    padding: 10px 12px;
  }

  .product-actions {
    gap: 8px;
  }

  /* Inputs should be easy to tap */
  .form-control,
  .price-input,
  .quantity-input {
    min-height: 44px;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
  }

  /* Reduce extra margins between blocks */
  .about-story .about-story-content p,
  .contact-info-item,
  .faq-category,
  .policy-section {
    margin-bottom: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  /* Further tighten spacing for small phones */
  :root {
    --spacing-lg: 1.25rem;
    --spacing-xl: 2rem;
  }

  html {
    font-size: 13.5px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col,
  [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .header {
    min-height: 72px;
    padding: 0.2rem 0;
  }

  /* Phone header alignment: hamburger left, logo center, WhatsApp right */
  .header .container {
    display: grid;
    grid-template-columns: 44px 44px 1fr 88px;
    align-items: center;
    gap: 0.5rem;
  }

  nav {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    justify-self: start;
  }

  .header-search {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 44px;
    max-width: 44px;
  }

  .mobile-menu-toggle {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }

  .logo {
    grid-column: 3;
    justify-self: center;
    margin-left: 0;
  }

  .header-icons {
    grid-column: 4;
    justify-self: end;
    min-width: 88px;
  }

  .logo img {
    height: 72px;
  }

  .nav-menu {
    top: 72px;
    height: calc(100vh - 72px);
    width: 88%;
    padding: var(--spacing-md);
  }

  .nav-item {
    margin-bottom: var(--spacing-sm);
  }

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

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .gallery-wrapper {
    padding: 1rem;
  }

  .gallery-image {
    height: 220px;
  }

  .product-thumbnail {
    width: 72px;
    height: 72px;
  }

  .product-main-image-container {
    min-height: 240px;
  }

  .footer {
    padding: 40px 0;
  }
}

@media (max-width: 420px) {
  /* Compact for 320–390px widths */
  .hero-content {
    width: 92%;
  }

  .product-actions,
  .products .product-carousel .product-card .featured-product-actions {
    flex-direction: column;
  }

  .product-actions .btn,
  .product-actions .contact-btn,
  .product-actions .contact-whatsapp-btn {
    width: 100%;
  }

  .contact-form-container,
  .contact-info {
    width: 100%;
  }

  .contact-info-item {
    padding: 12px;
  }

  .testimonial-card {
    padding: var(--spacing-sm);
  }
}

/* toast reposition — center anchored for add-to-cart feedback */
/* mobile + desktop center positioning */
.toast-container {
  position: fixed;
  left: 50%;
  bottom: 28vh;
  transform: translateX(-50%);
  z-index: 900;
  pointer-events: none;
}

.toast-message {
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  max-width: min(320px, 90vw);
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .toast-container {
    bottom: 20px;
  }
}

/* ===== Category tabs — light sweep + hover + active ===== */
.category-tabs {
  position: relative;
  display: flex;
  gap: 12px;
}

/* Desktop only: clip sweep and hide overflow (mobile uses overflow-x: auto for tab scroll) */
@media (min-width: 769px) {
  .category-tabs {
    overflow: hidden;
  }
}

/* Base tab refinement */
.category-tabs button,
.category-tabs .tab,
.category-tabs a {
  position: relative;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* Hover — tactile feel, not glow */
.category-tabs button:hover,
.category-tabs .tab:hover,
.category-tabs a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* Active tab */
.category-tabs .active,
.category-tabs .is-active {
  background: #caa472 !important;
  color: white !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.18);
}

/* Light sweep layer */
.category-tabs::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -20%;
  width: 40%;
  height: calc(100% + 12px);
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.18) 55%,
    rgba(255,255,255,0) 100%
  );
  filter: blur(8px);
  opacity: 0;
  pointer-events: none;
}

/* Animation */
.category-tabs.attention::after {
  animation: tabSweep 1.2s ease-out forwards;
}

@keyframes tabSweep {
  0% {
    left: -25%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* ===== SHOP PAGE DESKTOP: Fix "Add to Cart" button clipping in product cards ===== */
/* Scoped to .shop-page (Products listing page) + desktop only — mobile untouched */
@media (min-width: 1024px) {
  .shop-page .product-actions {
    gap: 8px;
  }

  .shop-page .product-actions .btn.view-more,
  .shop-page .product-actions .add-to-cart-btn {
    padding: 10px 10px;
  }
}
