/* Home Page Specific Styles - Maroon Theme */

/* Maroon palette
    - Accent: #800000 (maroon)
    - Accent Dark: #5a0000
    - Text: #2b0000 (very dark maroon)
    - Muted text: #a65b5b
    - Light backgrounds: #ffffff, #f7eaea, #f7eaea
*/

/* ===== HOME HERO SECTION (Inspired by osmokitchen.com) ===== */
.modern-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000; /* Dark background for opacity effect */
    overflow: hidden;
    padding-top: 0 !important; /* Override global style.css padding */
}

.modern-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use CSS variable from inline style, with fallback */
    background: var(--hero-bg, url('../images/hero_bg_index.png')) center/cover no-repeat;
    opacity: 1; /* 100% opacity for the image */
    z-index: 0;
}

/* Dark gradient overlay for better text visibility - NO RED */
.modern-hero::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    ) !important;
    z-index: 1 !important;
}

/* .hero-overlay removed in favor of ::before opacity */
.hero-overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 40px !important; /* Override global style.css padding */
    max-width: 1000px !important; /* Override global style.css max-width */
    margin: 0 auto;
}

.hero-content {
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-family: 'Mokoto', sans-serif;
    font-size: 5.5rem !important;
    line-height: 1.08 !important;
    margin-bottom: 28px !important;
    color: #ffffff;
    letter-spacing: 0.01em;
    text-align: center;
    width: 100%;
    font-weight: 700;
    /* Premium text shadow for depth and impact */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: titleReveal 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.hero-btn {
    padding: 18px 48px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-btn-primary {
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, #a00000 0%, #c00000 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(128, 0, 0, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
}

.hero-btn-secondary:hover {
    background: #ffffff;
    color: #800000;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.hero-availability {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ffffff;
    margin-top: 20px;
}

.hero-shipping-notice {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Category Icons Section (Like osmokitchen.com category circles) */
.category-icons-section {
    background: #f5f5f5;
    padding: 60px 20px;
}

.category-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.category-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-icon-item:hover {
    transform: translateY(-5px);
}

.category-icon-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    background: #ffffff;
}

.category-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-icon-item:hover .category-icon-circle img {
    transform: scale(1.1);
}

.category-icon-label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hero-badge {
     display: inline-block;
     background: rgba(255, 255, 255, 0.2); /* Subtle transparency for premium look */
     border: 2px solid rgba(255, 255, 255, 0.4); /* Adjust border for elegance */
     padding: 8px 20px;
     border-radius: 25px;
     font-size: 0.9rem;
     font-weight: 700; /* Enhance font weight for premium feel */
     margin-bottom: 30px;
     color: #ffffff; /* Match font color to white */
}

.hero-title {
     font-family: 'Mokoto', sans-serif;
     font-size: 5.5rem !important;
     line-height: 1.08 !important;
     margin-bottom: 28px !important;
     color: #ffffff;
     letter-spacing: 0.01em;
     text-align: center;
     font-weight: 700;
     text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.title-line {
     display: block;
     opacity: 0;
     transform: translateY(30px);
     animation: titleReveal 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes titleReveal {
     to {
          opacity: 1;
          transform: translateY(0);
     }
}

.hero-subtitle {
     font-size: 1.5rem;
     line-height: 1.6;
     margin-bottom: 40px;
     color: #ffffff;
     max-width: 500px;
}

.hero-buttons {
     display: flex;
     gap: 20px;
     margin-bottom: 60px;
}

.btn {
     display: inline-flex;
     align-items: center;
     gap: 12px;
     padding: 12px 24px;
     border-radius: 8px;
     font-weight: 600;
     text-decoration: none;
     transition: all 0.3s ease;
     border: 2px solid transparent;
     font-size: 1rem;
}

/* Primary: filled accent */
.btn-primary {
     background: #800000;
     color: #ffffff;
     box-shadow: 0 10px 30px rgba(128,0,0,0.12);
     border-color: transparent;
}

.btn-primary:hover {
     transform: translateY(-3px);
     box-shadow: 0 15px 40px rgba(128,0,0,0.16);
}

/* Secondary: subtle outline */
.btn-secondary {
     background: transparent;
     color: #ffffff;
     border-color: #800000;
}

.btn-secondary:hover {
     background: rgba(43,0,0,0.04);
     border-color: rgba(43,0,0,0.12);
     transform: translateY(-3px);
}

.hero-stats {
     display: flex;
     gap: 40px;
}

.stat {
     text-align: center;
}

.stat-number {
     font-size: 2rem;
     font-weight: bold;
     margin-bottom: 5px;
     color: #2b0000;
}

.stat-label {
     font-size: 0.9rem;
     color: #800000;
}

/* Hero visual */
.hero-visual {
     display: none; /* Hide the image */
}

/* ===== FEATURED PRODUCTS SECTION ===== */
/* Minimalist Featured Essentials */
.featured-section { padding:80px 0; background:linear-gradient(135deg,#8b0000,#6b0000); position:relative; overflow:hidden; }
.featured-section::before { content:''; position:absolute; top:-40px; left:-40px; width:240px; height:240px; background:rgba(255,255,255,0.08); border-radius:50%; z-index:0; }
.featured-section::after { content:''; position:absolute; bottom:-40px; right:-40px; width:300px; height:300px; background:rgba(255,255,255,0.08); border-radius:50%; z-index:0; }
.featured-section .container { position:relative; z-index:1; }
.featured-section .section-title { font-size:2.4rem; letter-spacing:-0.5px; text-shadow:0 2px 6px rgba(0,0,0,0.25); }
.featured-section .section-title { color:#ffffff; }
.featured-section .section-subtitle { font-size:0.95rem; color:#fce3e3; }
.products-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:26px; }
.section-header { position:relative; z-index:3; }
.products-grid { position:relative; z-index:1; }
.product-card.featured { position:relative; }
.product-badge {
     position:absolute;
     top:12px;
     left:16px;
     background:#800000;
     color:#fff;
     padding:4px 10px;
     font-size:0.65rem;
     font-weight:600;
     letter-spacing:.5px;
     border-radius:14px;
     box-shadow:0 2px 6px rgba(43,0,0,0.25);
     z-index:2;
}
.product-card.featured { background:#fff; border:1px solid rgba(255,255,255,0.15); border-radius:14px; box-shadow:0 4px 14px rgba(43,0,0,0.18); padding:16px 16px 18px; display:flex; flex-direction:column; transition:transform .35s ease, box-shadow .35s ease; }
.product-card.featured:hover { transform:translateY(-6px); box-shadow:0 10px 28px rgba(43,0,0,0.28); }
.product-image { height:170px; border-radius:10px; overflow:hidden; margin-bottom:12px; }
.product-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.product-card.featured:hover .product-image img { transform:scale(1.04); }
.product-category { font-size:0.65rem; letter-spacing:1px; margin-bottom:5px; color:#800000; text-transform:uppercase; }
.product-title { font-size:1.15rem; margin:0 0 8px; color:#800000; }
.product-description { font-size:0.8rem; line-height:1.45; color:#a65b5b; margin:0 0 10px; }
.product-rating { display:flex; align-items:center; gap:3px; margin-bottom:12px; }
.rating-count { font-size:0.75rem; color:#a65b5b; margin-left:4px; }
.product-footer { display:flex; flex-direction:column; gap:6px; align-items:center; }
.price { font-size:1.15rem; font-weight:600; color:#800000; }

.shop-now-btn {
     display: inline-block;
     padding: 10px 20px;
     background: #800000;
     color: #ffffff;
     text-decoration: none;
     border-radius: 25px;
     font-weight: bold;
     transition: background 0.3s ease, transform 0.3s ease;
}

.shop-now-btn:hover {
     background: #5a0000;
     transform: translateY(-3px);
}

@media (max-width: 768px) {
     .products-grid {
          grid-template-columns: 1fr;
     }
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-section {
     padding: 100px 0;
     background: linear-gradient(135deg, #ffffff, #f7eaea);
     position: relative;
     overflow: hidden;
}

.section-header {
     text-align: center;
     margin-bottom: 60px;
}

.section-title {
     font-family: 'Mokoto', sans-serif;
     font-size: 3rem;
     color: #800000;
     margin-bottom: 15px;
}

.section-subtitle {
     font-size: 1.2rem;
     color: #a65b5b;
     max-width: 600px;
     margin: 0 auto;
}

.features-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 40px;
}

.feature-card {
     text-align: center;
     padding: 40px 30px;
     border-radius: 15px;
     background: #ffffff;
     transition: all 0.3s ease;
     border: 1px solid rgba(43, 0, 0, 0.1);
     box-shadow: 0 10px 30px rgba(43, 0, 0, 0.05);
     /* Initial scattered state */
     opacity: 0;
     transform: translate(var(--scatter-x, 0), var(--scatter-y, 0)) rotate(var(--scatter-rotate, 0deg)) scale(0.8);
}

/* Scattered positions for each card */
.feature-card:nth-child(1) { --scatter-x: -120px; --scatter-y: -80px; --scatter-rotate: -15deg; }
.feature-card:nth-child(2) { --scatter-x: 0px; --scatter-y: -100px; --scatter-rotate: 8deg; }
.feature-card:nth-child(3) { --scatter-x: 120px; --scatter-y: -60px; --scatter-rotate: 12deg; }
.feature-card:nth-child(4) { --scatter-x: -100px; --scatter-y: 80px; --scatter-rotate: 10deg; }
.feature-card:nth-child(5) { --scatter-x: 0px; --scatter-y: 100px; --scatter-rotate: -8deg; }
.feature-card:nth-child(6) { --scatter-x: 100px; --scatter-y: 60px; --scatter-rotate: -12deg; }

/* Animated state when section is visible */
.features-grid.animate-in .feature-card {
     opacity: 1;
     transform: translate(0, 0) rotate(0deg) scale(1);
     transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                 transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered animation delays */
.features-grid.animate-in .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid.animate-in .feature-card:nth-child(2) { transition-delay: 0.15s; }
.features-grid.animate-in .feature-card:nth-child(3) { transition-delay: 0.25s; }
.features-grid.animate-in .feature-card:nth-child(4) { transition-delay: 0.35s; }
.features-grid.animate-in .feature-card:nth-child(5) { transition-delay: 0.45s; }
.features-grid.animate-in .feature-card:nth-child(6) { transition-delay: 0.55s; }

/* Hover state - only applies after animation completes */
.features-grid.animate-in .feature-card:hover {
     background: #f7eaea;
     border-color: #800000;
     transform: translateY(-5px) scale(1);
     box-shadow: 0 15px 40px rgba(43, 0, 0, 0.1);
     transition: all 0.3s ease;
     transition-delay: 0s;
}

.feature-icon {
     width: 80px;
     height: 80px;
     background: linear-gradient(135deg, #800000, #5a0000);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 0 auto 25px;
     font-size: 2rem;
     color: #ffffff;
}

.feature-card h3 {
     font-family: 'Mokoto', sans-serif;
     font-size: 1.4rem;
     color: #800000;
     margin-bottom: 15px;
}

.feature-card p {
     color: #2b0000;
     line-height: 1.6;
     font-size: 1rem;
}

@media (max-width: 768px) {
     .features-grid {
          grid-template-columns: 1fr;
     }
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
     padding: 100px 0;
     background: linear-gradient(135deg, #ffffff, #f7eaea);
     position: relative;
     overflow: hidden;
}

.categories-section::before,
.categories-section::after {
     content: '';
     position: absolute;
     width: 300px;
     height: 300px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     z-index: 0;
}

.categories-section::before {
     top: -50px;
     left: -50px;
}

.categories-section::after {
     bottom: -50px;
     right: -50px;
}

/* Category Cards Animation */
.category-card {
    opacity: 0;
    transform: translate(var(--cat-scatter-x, 0), var(--cat-scatter-y, 0)) rotate(var(--cat-scatter-rotate, 0deg)) scale(0.85);
}

/* Scattered positions for category cards */
.category-card:nth-child(1) { --cat-scatter-x: -100px; --cat-scatter-y: -80px; --cat-scatter-rotate: -10deg; }
.category-card:nth-child(2) { --cat-scatter-x: 80px; --cat-scatter-y: 100px; --cat-scatter-rotate: 8deg; }
.category-card:nth-child(3) { --cat-scatter-x: -80px; --cat-scatter-y: 80px; --cat-scatter-rotate: 10deg; }
.category-card:nth-child(4) { --cat-scatter-x: 100px; --cat-scatter-y: -60px; --cat-scatter-rotate: -8deg; }

/* Animated state when section is visible */
.category-cards-grid.animate-in .category-card {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered animation delays for category cards */
.category-cards-grid.animate-in .category-card:nth-child(1) { transition-delay: 0.1s; }
.category-cards-grid.animate-in .category-card:nth-child(2) { transition-delay: 0.2s; }
.category-cards-grid.animate-in .category-card:nth-child(3) { transition-delay: 0.3s; }
.category-cards-grid.animate-in .category-card:nth-child(4) { transition-delay: 0.4s; }

.categories-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 30px;
     justify-content: center;
     position: relative;
     z-index: 1;
}

/* ===== Fix: Prevent double top-padding and visible seam between sections ===== */
/* The global stylesheet adds a top padding to all sections which caused
   the hero and the next colored section to stack their padding and show
   a hard horizontal line. Override the global rule for these homepage
   sections so the gradient blends smoothly. */
.modern-hero {
     padding-top: 0 !important;
     /* keep hero visually full-height while accounting for header offset */
     min-height: calc(100vh - (var(--nav-height) + 12px)) !important;
}

.featured-section {
     /* Restore the intended top padding (overrides the global !important) */
     padding-top: 80px !important;
}

/* Small visual smoothing: use matching gradient stops so transition is less harsh */
.featured-section, .modern-hero {
     background-image: linear-gradient(135deg, #800000 0%, #6b0000 100%);
}

/* Smooth blending removed - no red overlay */

/* Ensure featured section content remains above the blend layer */
.featured-section { z-index: 1; position: relative; }

/* Add an upward translucent fade at the top of the featured section so the
   overlap from the hero and the section background blend together smoothly. */
.featured-section::before {
     content: '';
     position: absolute;
     left: 0;
     right: 0;
     top: -100px; /* reach up into the hero overlap */
     height: 200px;
     pointer-events: none;
     z-index: 2; /* above hero blend but below section content */
     background: linear-gradient(to top,
          rgba(107,0,0,1) 0%,
          rgba(107,0,0,0.9) 18%,
          rgba(107,0,0,0.6) 36%,
          rgba(128,0,0,0.25) 62%,
          rgba(128,0,0,0) 100%);
}

/* Ensure the section content sits above the blend pseudo-element */
.featured-section .container { position: relative; z-index: 3; }

/* Small adjustment for smaller screens */
@media (max-width: 768px) {
     .featured-section::before {
          top: -60px;
          height: 120px;
     }
}

.category-card {
     position: relative;
     border-radius: 15px;
     overflow: hidden;
     background: #fff;
     box-shadow: 0 8px 24px rgba(43, 0, 0, 0.08);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     border: 1px solid rgba(128,0,0,0.15);
     padding: 0;
}

/* Uniform heights; large card slightly taller for emphasis */
.category-card { height: 280px; }
.category-card.large { height: 580px; }

.category-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 16px 48px rgba(43, 0, 0, 0.18);
}

.category-card img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.05); }

/* Overlay content */
.category-content {
     position: absolute;
     left: 0; right: 0; bottom: 0;
     padding: 22px 18px 18px;
     background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(43,0,0,0.75) 85%);
     text-align: left;
     display: flex;
     flex-direction: column;
     gap: 6px;
}

.category-content h3 {
     font-family: 'Mokoto', sans-serif;
     font-size: 1.2rem;
     margin: 0;
     color: #fff;
}

.category-content p {
     margin: 0 0 8px;
     opacity: 0.85;
     color: #f7eaea;
     font-size: 0.85rem;
}

.category-content .shop-now-btn {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 8px 16px;
     background: #800000;
     color: #ffffff;
     text-decoration: none;
     border-radius: 18px;
     font-weight: 600;
     font-size: 0.8rem;
     letter-spacing: .5px;
     transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
     box-shadow: 0 4px 12px rgba(128,0,0,0.35);
}

.category-content .shop-now-btn:hover {
     background: #5a0000;
     transform: translateY(-3px);
     box-shadow: 0 8px 20px rgba(128,0,0,0.45);
}

/* Decorative circles inside section */
.categories-section .decor-circle {
     position: absolute;
     border-radius: 50%;
     background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(128,0,0,0.15));
     filter: blur(2px);
     z-index: 0;
}
.categories-section .decor-circle.circle-a { width: 220px; height: 220px; top: 140px; left: 40px; }
.categories-section .decor-circle.circle-b { width: 160px; height: 160px; bottom: 120px; right: 60px; }
.categories-section .decor-circle.circle-c { width: 100px; height: 100px; bottom: 60px; left: 50%; transform: translateX(-50%); }

@media (max-width: 768px) {
     .categories-grid {
          grid-template-columns: 1fr;
     }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
     padding: 100px 0;
     background: linear-gradient(135deg, #ffffff, #f7eaea);
     position: relative;
     overflow: hidden;
}

.testimonials-section::before,
.testimonials-section::after {
     content: '';
     position: absolute;
     width: 300px;
     height: 300px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     z-index: 0;
}

.testimonials-section::before {
     top: -50px;
     left: -50px;
}

.testimonials-section::after {
     bottom: -50px;
     right: -50px;
}

.testimonials-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 40px;
     position: relative;
     z-index: 1;
}

.testimonial-card {
     background: #ffffff;
     border-radius: 20px;
     padding: 40px;
     box-shadow: 0 10px 30px rgba(43, 0, 0, 0.05);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     position: relative;
}

.testimonial-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 50px rgba(43, 0, 0, 0.1);
}

.testimonial-content {
     text-align: center;
     margin-bottom: 30px;
}

.quote-icon {
     font-size: 4rem;
     color: rgba(43, 0, 0, 0.1);
     margin-bottom: 20px;
}

.testimonial-text {
     font-size: 1.2rem;
     line-height: 1.7;
     color: #2b0000;
     font-style: italic;
}

.testimonial-author {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 15px;
}

.testimonial-author img {
     width: 80px;
     height: 80px;
     border-radius: 50%;
     object-fit: cover;
     box-shadow: 0 5px 15px rgba(43, 0, 0, 0.1);
}

.author-info {
     text-align: left;
}

.author-info h4 {
     font-family: 'Mokoto', sans-serif;
     color: #800000;
     margin-bottom: 5px;
}

.author-info p {
     color: #a65b5b;
     font-size: 0.9rem;
}

/* ===== FOOTER SECTION ===== */
.main-footer {
     padding: 50px 0;
     background: linear-gradient(135deg, #3d0000 0%, #1a0000 100%);
     color: #ffffff;
     position: relative;
     overflow: hidden;
}

/* 
.main-footer::before,
.main-footer::after {
     content: '';
     position: absolute;
     width: 300px;
     height: 300px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     z-index: 0;
}

.main-footer::before {
     top: -50px;
     left: -50px;
}

.main-footer::after {
     bottom: -50px;
     right: -50px;
} 
*/

.footer-content {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 40px;
     position: relative;
     z-index: 1;
}

.footer-column {
     text-align: center;
}

.footer-logo {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     font-size: 1.5rem;
     font-weight: bold;
     color: #ffffff;
     margin-bottom: 20px;
}

.footer-logo i {
     font-size: 2rem;
}

.footer-links {
     list-style: none;
     padding: 0;
     margin: 0;
}

.footer-links li {
     margin-bottom: 10px;
}

.footer-links a {
     color: #ffffff;
     text-decoration: none;
     font-size: 0.9rem;
     transition: color 0.3s ease;
}

.footer-links a:hover {
     color: #ffc107;
}

.social-links {
     display: flex;
     justify-content: flex-start;
     gap: 15px;
     margin-top: 20px;
}

.social-link {
     color: #ffffff;
     font-size: 1.2rem;
     transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
     transform: scale(1.2);
     color: #ffc107;
}

.copyright {
     text-align: center;
     margin-top: 40px;
     font-size: 0.9rem;
     color: #ffffff;
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
     padding: 80px 0;
     background: linear-gradient(135deg, #ffffff, #f7eaea);
     color: #2b0000;
     position: relative;
     overflow: hidden;
}

.newsletter-section::before,
.newsletter-section::after {
     content: '';
     position: absolute;
     width: 300px;
     height: 300px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     z-index: 0;
}

.newsletter-section::before {
     top: -50px;
     left: -50px;
}

.newsletter-section::after {
     bottom: -50px;
     right: -50px;
}

.newsletter-content {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     position: relative;
     z-index: 1;
}

.newsletter-text h2 {
     font-family: 'Mokoto', sans-serif;
     font-size: 2.5rem;
     margin-bottom: 15px;
     color: #800000;
}

.newsletter-text p {
     font-size: 1.1rem;
     color: #a65b5b;
     line-height: 1.6;
     margin-bottom: 30px;
}

.newsletter-form {
     display: flex;
     gap: 15px;
     width: 100%;
     max-width: 600px;
     justify-content: center;
}

.newsletter-form input {
     flex: 1;
     padding: 18px 25px;
     border: 2px solid #800000;
     border-radius: 50px;
     font-size: 1rem;
     background: #ffffff;
     color: #2b0000;
     box-shadow: 0 5px 15px rgba(43, 0, 0, 0.1);
     transition: border-color 0.3s ease, box-shadow 0.3s ease;
     text-align: center;
}

.newsletter-form input::placeholder {
     color: #a65b5b;
}

.newsletter-form input:focus {
     outline: none;
     border-color: #ffc107;
     box-shadow: 0 10px 30px rgba(43, 0, 0, 0.2);
}

.newsletter-form button {
     padding: 18px 25px;
     border: none;
     border-radius: 50px;
     background: #800000;
     color: #ffffff;
     font-size: 1rem;
     font-weight: bold;
     cursor: pointer;
     box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
     transition: background 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form button:hover {
     background: #5a0000;
     box-shadow: 0 10px 30px rgba(128, 0, 0, 0.3);
}

@media (max-width: 1024px) {
     .hero-container {
          flex-direction: column;
          justify-content: center;
          align-items: center;
          gap: 40px;
     }
     .hero-content {
          align-items: center;
          text-align: center;
          padding-right: 0;
     }
     .hero-visual {
          justify-content: center;
     }
}

/* Footer headings underline & left alignment */
.footer-content { align-items: flex-start; }
.footer-column { text-align: left; }
.footer-column h3 { margin-top:0; margin-bottom:16px; position:relative; font-weight:600; }
.footer-column h3::after { content:''; display:block; width:42px; height:2px; background:#fce3e3; margin-top:6px; border-radius:2px; }
.footer-links li { margin-bottom:8px; }

@media (max-width:768px){
     .footer-column, .social-links { text-align:center; }
     .social-links { justify-content:center; }
}

@media (max-width: 768px) {
     .hero-title {
          font-size: 2.8rem !important;
     }
     
     .hero-buttons {
          flex-direction: column;
          align-items: center;
     }
     
     .hero-stats {
          flex-direction: column;
          gap: 20px;
     }
     
     .products-grid {
          grid-template-columns: 1fr;
     }
     
     .features-grid {
          grid-template-columns: 1fr;
     }
     
     .categories-grid {
          grid-template-columns: 1fr;
     }
     
     .testimonials-grid {
          grid-template-columns: 1fr;
     }
     
     .newsletter-form .input-group {
          flex-direction: column;
     }
     
     .floating-product img {
          max-width: 300px;
          max-height: 300px;
     }
     .hero-visual {
          min-height: 300px;
     }
}

@media (max-width: 480px) {
     .hero-title {
          font-size: 2.2rem !important;
     }
     
     .section-title {
          font-size: 2rem;
     }
     
     .product-card.featured {
          margin: 0 10px;
     }
     
     .testimonial-card {
          padding: 30px 20px;
     }
     
     .categories-section,
     .testimonials-section {
          padding: 60px 20px;
     }
}

/* Cart toggle button visible on home page now */
.cart-toggle-btn, #cart-toggle {
     display: flex !important;
}

/* ===== Header/Nav consistency (enforced) ===== */
.main-header {
     display: flex !important;
     align-items: center !important;
     justify-content: center !important;
     gap: 30px !important;
     height: var(--nav-height, 68px) !important;
     min-height: var(--nav-height, 68px) !important;
     padding: 12px 30px !important;
     background: linear-gradient(135deg, var(--primary, #800000) 0%, var(--primary-dark, #5d1212) 100%) !important;
     box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
     border-radius: 0 !important;
     margin-top: 0 !important;
     padding-top: 0 !important;
     width: 100% !important;
     box-sizing: border-box !important;
}

.main-header .menu-toggle-btn,
.main-header .logo,
.main-header .navbar {
     margin-top: 0 !important;
}

.main-header .navbar-left {
     display: flex !important;
     gap: var(--nav-gap, 18px) !important;
     align-items: center !important;
     justify-content: flex-start !important;
     min-width: 0 !important;
     flex: 1 1 0 !important;
     flex-wrap: nowrap !important;
}

.main-header .navbar-right {
     display: flex !important;
     gap: var(--nav-gap, 18px) !important;
     align-items: center !important;
     justify-content: flex-end !important;
     flex: 1 1 0 !important;
     min-width: 0 !important;
     flex-wrap: nowrap !important;
}

@media (min-width: 1400px) {
     .main-header {
          gap: 40px !important;
     }
}

@media (max-width: 1200px) {
     .main-header {
          gap: 20px !important;
          padding: 12px 30px !important;
     }
     .navbar-left {
          gap: 14px !important;
     }
}

@media (max-width: 1024px) {
     .main-header {
          grid-template-columns: minmax(0, 1fr) 250px minmax(0, 1fr) !important;
          gap: 15px !important;
          padding: 12px 20px !important;
     }
     .navbar-left {
          gap: 12px !important;
     }
     .navbar a {
          font-size: 0.95rem !important;
     }
}

@media (max-width:980px){
     .main-header { 
          padding: 10px 14px !important; 
     }
}
/* ===== STORE CAROUSEL SECTION ===== */
.store-carousel-section {
    background: #ffffff !important;
    padding: 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Subtle decorative lines for white background */
.store-carousel-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(128,0,0,0.1), transparent) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.store-carousel-section::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Geometric decorations */
.carousel-header {
    text-align: center !important;
    margin-bottom: 60px !important;
    position: relative !important;
    z-index: 2 !important;
}

.carousel-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,215,0,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.carousel-header h2 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #2d2d2d !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.carousel-header h2 i {
    color: #800000 !important;
    font-size: 2rem !important;
}

.carousel-header p {
    color: #666666 !important;
    font-size: 1.15rem !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

.store-carousel-wrapper {
    position: relative !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    z-index: 2 !important;
}

.store-carousel {
    display: flex !important;
    gap: 30px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 20px 10px !important;
    justify-content: center !important;
}

.store-carousel::-webkit-scrollbar {
    display: none;
}

/* Store Card */
.store-card {
    min-width: 320px !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.07),
        0 10px 20px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 2 !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    /* Initial scattered state */
    opacity: 0;
    transform: translate(var(--store-scatter-x, 0), var(--store-scatter-y, 0)) rotate(var(--store-scatter-rotate, 0deg)) scale(0.85);
}

/* Scattered positions for each store card */
.store-card:nth-child(1) { --store-scatter-x: -150px; --store-scatter-y: -60px; --store-scatter-rotate: -12deg; }
.store-card:nth-child(2) { --store-scatter-x: 0px; --store-scatter-y: 100px; --store-scatter-rotate: 8deg; }
.store-card:nth-child(3) { --store-scatter-x: 150px; --store-scatter-y: -60px; --store-scatter-rotate: 12deg; }

/* Animated state when section is visible */
.store-carousel.animate-in .store-card {
    opacity: 1 !important;
    transform: translate(0, 0) rotate(0deg) scale(1) !important;
    transition: opacity 0.9s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Staggered animation delays for store cards */
.store-carousel.animate-in .store-card:nth-child(1) { transition-delay: 0.1s !important; }
.store-carousel.animate-in .store-card:nth-child(2) { transition-delay: 0.25s !important; }
.store-carousel.animate-in .store-card:nth-child(3) { transition-delay: 0.4s !important; }

.store-carousel.animate-in .store-card:nth-child(3) { transition-delay: 0.4s !important; }

/* Hover state for store cards - only after animation */
.store-carousel.animate-in .store-card:hover {
    transform: translateY(-8px) scale(1) !important;
    box-shadow: 
        0 8px 15px rgba(0,0,0,0.1),
        0 20px 40px rgba(0,0,0,0.15),
        0 30px 60px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    transition-delay: 0s !important;
}

.store-card-header {
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}

.store-logo {
    max-width: 70% !important;
    max-height: 120px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)) !important;
}

.store-card-body {
    padding: 24px 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
}

.store-card-body h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.store-card-body p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex: 1;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #800000;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    align-self: flex-start;
}

.store-card:hover .store-badge {
    background: #800000;
    color: white;
    border-color: #800000;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #4a0d0d;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.carousel-nav:hover {
    background: #ffd700;
    color: #4a0d0d;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        padding: 14px 32px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .category-icons-grid {
        gap: 30px;
    }
    
    .category-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    .store-carousel-wrapper {
        padding: 0 20px;
    }
    
    .store-card {
        min-width: 280px;
        max-width: 280px;
    }
    
    .carousel-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-tagline {
        font-size: 12px;
    }
    
    .category-icons-grid {
        gap: 20px;
    }
    
    .category-icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .category-icon-label {
        font-size: 12px;
    }
}

/* =====================================================
   ENHANCED MOBILE-FIRST RESPONSIVE STYLES
   ===================================================== */

/* Mobile Base Styles (360px and up) */
@media (max-width: 768px) {
    /* Header Mobile Improvements */
    .main-header {
        flex-wrap: wrap !important;
        padding: 10px 12px !important;
        gap: 10px !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .main-header .navbar-left,
    .main-header .navbar-right {
        display: none !important;
    }
    
    .main-header .logo {
        order: 1;
        margin: 0 auto;
    }
    
    .main-header .logo img {
        height: 36px !important;
        width: auto !important;
    }
    
    /* Mobile Navigation Toggle - COMPLETELY HIDE (use mobile-menu-btn instead) */
    .mobile-nav-toggle,
    button.mobile-nav-toggle,
    #mobile-nav-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .mobile-cart-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .mobile-cart-toggle .cart-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: #ffd700;
        color: #800000;
        font-size: 10px;
        font-weight: bold;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Section Mobile */
    .modern-hero {
        min-height: 70vh;
        padding-top: 60px;
    }
    
    .hero-container {
        padding: 30px 16px 25px;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 8px 18px;
        margin-bottom: 18px;
        letter-spacing: 2px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 18px;
        line-height: 1.15;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.6),
            0 4px 8px rgba(0, 0, 0, 0.4) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 25px;
        padding: 0 10px;
        line-height: 1.6;
        text-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.8),
            0 2px 6px rgba(0, 0, 0, 0.5) !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px;
        padding: 0 20px;
    }
    
    .hero-btn {
        width: 100% !important;
        max-width: 260px;
        padding: 12px 28px !important;
        font-size: 12px !important;
        text-align: center;
        justify-content: center;
    }
    
    .hero-shipping-notice {
        font-size: 10px;
        padding: 10px 15px;
        line-height: 1.4;
    }
    
    /* Category Icons Mobile - Horizontal Scroll */
    .category-icons-section {
        padding: 35px 0;
        overflow: hidden;
    }
    
    .category-icons-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px !important;
        padding: 10px 16px;
        justify-content: flex-start !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-icons-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-icon-item {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: 80px;
    }
    
    .category-icon-circle {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 8px;
    }
    
    .category-icon-label {
        font-size: 11px !important;
        white-space: nowrap;
    }
    
    /* Store Carousel Mobile */
    .store-carousel-section {
        padding: 40px 0;
    }
    
    .carousel-header {
        padding: 0 16px;
        margin-bottom: 25px;
    }
    
    .carousel-header h2 {
        font-size: 1.5rem;
    }
    
    .carousel-header p {
        font-size: 0.9rem;
    }
    
    .store-carousel-wrapper {
        padding: 0 16px !important;
    }
    
    .store-carousel {
        gap: 15px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .store-card {
        min-width: 240px !important;
        max-width: 240px !important;
        scroll-snap-align: start;
    }
    
    .store-card-header {
        height: 100px;
    }
    
    .store-logo {
        max-height: 50px !important;
    }
    
    .store-card-body h3 {
        font-size: 1.1rem;
    }
    
    .store-card-body p {
        font-size: 0.85rem;
    }
    
    /* Featured Products Mobile */
    .featured-section {
        padding: 40px 0;
    }
    
    .featured-section .container {
        padding: 0 12px;
    }
    
    .section-header {
        margin-bottom: 30px;
        padding: 0 8px;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-badge {
        font-size: 10px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-category {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-description {
        display: none;
    }
    
    .product-rating {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .product-rating i {
        font-size: 10px;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-footer .price {
        font-size: 1rem;
        text-align: center;
    }
    
    .btn-add-cart {
        width: 100%;
        padding: 10px 12px;
        font-size: 11px;
        justify-content: center;
    }
    
    .btn-add-cart i {
        font-size: 12px;
    }
    
    /* Quick View Hidden on Mobile */
    .product-overlay {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Why Choose Section Mobile */
    .why-choose-section {
        padding: 50px 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Categories Section Mobile */
    .categories-section {
        padding: 40px 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .category-card {
        height: 180px;
    }
    
    .category-card.large {
        height: 220px;
    }
    
    .category-content h3 {
        font-size: 1.3rem;
    }
    
    .category-content p {
        font-size: 0.85rem;
    }
    
    /* Testimonials Mobile */
    .testimonials-section {
        padding: 40px 16px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    
    .author-info h4 {
        font-size: 0.95rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
    
    /* Newsletter Mobile */
    .newsletter-section {
        padding: 40px 16px;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .newsletter-text h2 {
        font-size: 1.5rem;
    }
    
    .newsletter-text p {
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .newsletter-form .input-group {
        flex-direction: column !important;
        gap: 12px;
    }
    
    .newsletter-form input[type="email"] {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 8px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 14px 20px;
        border-radius: 8px;
    }
    
    /* Footer Mobile */
    .main-footer {
        padding: 40px 16px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center !important;
        width: 100%;
    }
    
    .footer-column h3::after {
        margin: 6px auto 0;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo img {
        height: 40px !important;
    }
    
    .social-links {
        justify-content: center !important;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .copyright {
        padding-top: 20px;
        margin-top: 20px;
        font-size: 0.8rem;
    }
    
    /* Modals Mobile */
    .modal-content {
        max-width: 95% !important;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 16px !important;
    }
    
    .about-modal-content {
        padding: 25px 20px;
    }
    
    .about-header h2 {
        font-size: 1.5rem;
    }
    
    .about-logo {
        height: 60px;
    }
    
    /* Contact Modal Mobile */
    #contact-modal .modal-content {
        flex-direction: column !important;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    #contact-modal .modal-content > div:first-child {
        width: 100% !important;
        padding: 25px 20px;
    }
    
    #contact-modal .modal-content > div:last-child {
        width: 100% !important;
        padding: 25px 20px;
    }
    
    #contact-modal .modal-content h2 {
        font-size: 1.5rem;
    }
    
    #contact-modal .modal-content h3 {
        font-size: 1.3rem;
    }
    
    #contact-modal form input,
    #contact-modal form textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .hero-btn {
        padding: 12px 24px !important;
        font-size: 12px !important;
    }
    
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 14px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .category-icon-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .category-icon-label {
        font-size: 10px !important;
    }
    
    .store-card {
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .hero-btn {
        min-height: 48px;
    }
    
    .btn-add-cart {
        min-height: 44px;
    }
    
    .category-icon-item {
        min-width: 85px;
    }
    
    .store-card {
        cursor: pointer;
    }
    
    /* Disable hover effects on touch */
    .feature-card:hover,
    .category-card:hover,
    .store-card:hover,
    .product-card:hover {
        transform: none;
    }
    
    /* Active state for touch feedback */
    .hero-btn:active,
    .btn-add-cart:active,
    .store-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Safe Area Support for Notched Devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .main-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .cart-sidebar-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* Landscape Mobile Adjustments */
@media (max-width: 812px) and (orientation: landscape) {
    .modern-hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-container {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
    
    .hero-btn {
        width: auto !important;
    }
}