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

:root {
    --primary-color: #32B24A;
    --secondary-color: #F02D3A;
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #2ca843;
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    margin-right: 25px;
}

.top-bar-left i {
    margin-right: 8px;
    color: var(--white);
}

.top-bar-right a {
    margin-left: 15px;
    color: var(--white);
    font-size: 16px;
}

.top-bar-right a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.search-bar {
    flex: 1;
    display: flex;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-bar button {
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #28a03d;
}

.header-actions {
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.header-icon i {
    font-size: 28px;
    margin-bottom: 4px;
    position: relative;
}

.header-icon:hover {
    color: var(--primary-color);
}

.header-icon .badge,
.header-icon .cart-count {
    position: absolute;
    top: -5px;
    right: 15px;
    background-color: #ff0000 !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    line-height: 1;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
}

/* ===== NAVIGATION ===== */
.nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: relative;
}

.nav .container {
    position: relative;
}

/* Mobile Menu Toggle Button (Hidden on desktop, shown on mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(50, 178, 74, 0.05);
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 14px;
    display: block;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* ===== UPLOAD PRESCRIPTION CTA ===== */
.prescription-cta-item {
    margin-left: auto;
}

.prescription-cta {
    background: linear-gradient(135deg, #32B24A 0%, #28a03d 100%);
    color: var(--white) !important;
    padding: 14px 24px !important;
    border-radius: 25px;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(50, 178, 74, 0.3);
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.prescription-cta i {
    font-size: 16px;
}

.prescription-cta:hover {
    background: linear-gradient(135deg, #28a03d 0%, #239537 100%) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 178, 74, 0.4);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(50, 178, 74, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(50, 178, 74, 0.5);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    padding: 0;
    margin-bottom: 60px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(50, 178, 74, 0.3);
}

.hero-placeholder i {
    font-size: 150px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background-color: #28a03d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(50, 178, 74, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: var(--light-gray);
}

.btn-cart {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
}

/* Optimized for 5-column layout - bigger text, still fits */
@media (min-width: 1200px) {
    .btn-cart {
        padding: 11px 6px;
        font-size: 13px;
        letter-spacing: -0.3px;
    }
}

/* Extra large screens can use bigger text */
@media (min-width: 1400px) {
    .btn-cart {
        padding: 12px 8px;
        font-size: 14px;
        letter-spacing: 0;
    }
}

.btn-cart:hover {
    background-color: #28a03d;
}

.btn-view-details {
    flex: 1;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optimized for 5-column layout - bigger text, still fits */
@media (min-width: 1200px) {
    .btn-view-details {
        padding: 11px 6px;
        font-size: 13px;
        letter-spacing: -0.3px;
    }
}

/* Extra large screens can use bigger text */
@media (min-width: 1400px) {
    .btn-view-details {
        padding: 12px 8px;
        font-size: 14px;
        letter-spacing: 0;
    }
}

.btn-view-details:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

/* Optimized gap for 5-column layout */
@media (min-width: 1200px) {
    .product-buttons {
        gap: 8px;
    }
}

/* Ensure buttons stay on one line - critical for 5 columns */
.product-buttons .btn {
    min-width: 0;
    flex-shrink: 1;
}

/* ===== INLINE CTA (side-by-side Add to Cart + Buy Now inside description) ===== */
.inline-cta {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: stretch;
}

/* Inline CTA wrapper — stacks quantity selector on top of the button row */
.inline-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 8px;
}

/* Both buttons share space equally and use the same size as Buy Now */
.inline-cta .btn-cart,
.inline-cta .btn-buy-now-inline {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Inline Add to Cart uses the outline style (matches .btn-view-details) */
.inline-cta .btn-cart {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.inline-cta .btn-cart:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* On very narrow sidebars, stack the two buttons vertically so neither overflows */
@media (max-width: 480px) {
    .inline-cta { flex-wrap: wrap; }
    .inline-cta .btn-cart,
    .inline-cta .btn-buy-now-inline { flex: 1 1 100%; }
}

/* Buy Now button used inside .inline-cta blocks */
.btn-buy-now-inline {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-buy-now-inline:hover {
    background-color: #28a03d;
    transform: translateY(-1px);
}

/* Buy Now button inside product cards — mirrors .btn-view-details styling */
.btn-buy-now-card {
    flex: 1;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.btn-buy-now-card:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

@media (min-width: 1200px) {
    .btn-buy-now-card {
        padding: 11px 6px;
        font-size: 13px;
        letter-spacing: -0.3px;
    }
}

@media (min-width: 1400px) {
    .btn-buy-now-card {
        padding: 12px 8px;
        font-size: 14px;
        letter-spacing: 0;
    }
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* ===== SECTIONS ===== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

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

.section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    gap: 12px;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.category-card:visited {
    color: inherit;
    text-decoration: none;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.category-icon i {
    font-size: 36px;
    color: var(--white);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== PRODUCTS ===== */
.featured-products {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Desktop: 5 items per row */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

/* Large Desktop: 5 items per row */
@media (min-width: 1200px) and (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

/* Medium Desktop/Laptop: 4 items per row */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablet: 3 items per row */
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* View All Products CTA */
.view-all-cta-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
}

.btn-view-all-products {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 178, 74, 0.2);
}

.btn-view-all-products:hover {
    background-color: #28a03d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 178, 74, 0.3);
    color: var(--white);
}

.btn-view-all-products i {
    transition: transform 0.3s ease;
}

.btn-view-all-products:hover i {
    transform: translateX(5px);
}

/* Responsive adjustments for CTA */
@media (max-width: 768px) {
    .view-all-cta-container {
        margin-top: 30px;
    }

    .btn-view-all-products {
        padding: 14px 32px;
        font-size: 15px;
    }
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    background-color: var(--light-gray);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
}

.product-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.6;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-badge.new {
    background-color: var(--primary-color);
}

.product-badge.available {
    background-color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.product-card:hover .product-badge.available,
.main-image:hover .product-badge.available {
    opacity: 1;
    transform: translateY(0);
}

.product-badge.available i {
    font-size: 11px;
}

.product-card .product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Optimized padding for 5-column layout */
@media (min-width: 1200px) {
    .product-info {
        padding: 15px;
    }
}

.product-category {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Smaller category text for 5-column layout */
@media (min-width: 1200px) {
    .product-category {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    min-height: 44px;
}

/* Optimized title for 5-column layout */
@media (min-width: 1200px) {
    .product-title {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
}

.product-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 14px;
    text-decoration: none;
    color: inherit;
}

a.product-rating:hover span {
    text-decoration: underline;
}

.product-rating i {
    color: #ffc107;
}

.product-rating span {
    color: var(--text-secondary);
    font-size: 13px;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Compact price for 5-column layout */
@media (min-width: 1200px) {
    .product-price {
        gap: 8px;
        margin-bottom: 12px;
    }
}

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

/* Smaller price for 5-column layout */
@media (min-width: 1200px) {
    .price-current {
        font-size: 18px;
    }
}

.price-original {
    font-size: 16px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

@media (min-width: 1200px) {
    .price-original {
        font-size: 14px;
    }
}

/* ===== SPECIAL OFFERS ===== */
.special-offers {
    padding: 60px 0;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.offer-card {
    border-radius: 16px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.offer-primary {
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    color: var(--white);
}

.offer-secondary {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: var(--white);
}

.offer-label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.offer-content h3 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--white);
}

.offer-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.offer-icon {
    font-size: 120px;
    opacity: 0.2;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2ca843;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 45px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--white);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
}

.contact-info i {
    color: var(--white);
    font-size: 16px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: var(--white);
    font-size: 14px;
}

/* ===== CART NOTIFICATION ===== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive notification positioning */
@media (max-width: 768px) {
    .cart-notification {
        top: 60px !important;
        right: 10px !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
        max-width: calc(100% - 20px) !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    .cart-notification {
        top: 55px !important;
        right: 5px !important;
        left: 5px !important;
        font-size: 12px !important;
        padding: 10px 15px !important;
        text-align: center;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: var(--light-gray);
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

.breadcrumb i {
    margin: 0 10px;
    font-size: 10px;
    color: var(--text-secondary);
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== PRODUCT DETAILS ===== */
.product-details {
    padding: 60px 0;
}

.product-details-section {
    padding: 40px 0;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-width: 500px;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    max-width: 500px;
    width: 100%;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.product-placeholder-large {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-large i {
    font-size: 150px;
    color: var(--primary-color);
    opacity: 0.5;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.thumbnail {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-placeholder-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-thumb i {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.5;
}

.product-main-info {
    padding: 20px 0;
}

.product-brand {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars i {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.product-sku {
    color: var(--text-secondary);
    font-size: 14px;
}

.product-pricing {
    margin-bottom: 25px;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.original-price {
    font-size: 24px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.discount-badge {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 25px;
}

.product-stock i {
    font-size: 18px;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.product-description > p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.description-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.description-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-section h4 i {
    font-size: 20px;
}

.description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.description-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.description-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.benefits-list,
.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-item,
.ingredient-item {
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.benefit-item strong,
.ingredient-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 5px;
}

.benefit-item p,
.ingredient-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.product-description-short {
    margin-bottom: 30px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-options {
    margin-bottom: 30px;
}

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

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    background-color: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-selector input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.quantity-selector input:focus {
    outline: none;
}

/* Quantity selector lives on its own row above the CTAs */
.qty-main {
    margin: 24px 0 12px;
}

.product-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 30px;
}

.product-actions .btn-add-to-cart,
.product-actions .btn-buy-now {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.product-actions .btn-add-to-cart {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.product-actions .btn-add-to-cart:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-actions .btn-buy-now {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(50, 178, 74, 0.25);
}

.product-actions .btn-buy-now:hover {
    background-color: #28a03d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(50, 178, 74, 0.35);
}

.product-actions .btn-buy-now i {
    font-size: 18px;
}

.product-actions .btn-wishlist {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions .btn-wishlist:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.product-actions .btn-wishlist i {
    font-size: 20px;
}

/* Responsive adjustments for product actions */
@media (max-width: 768px) {
    .product-actions {
        flex-wrap: wrap;
        flex-direction: column;
    }

    .product-actions .btn-add-to-cart,
    .product-actions .btn-buy-now {
        width: 100%;
        min-width: auto;
    }

    .product-actions .btn-wishlist {
        width: 100%;
    }
}

.product-actions-main {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.product-actions-main .btn {
    flex: 1;
}

.product-actions-main .btn-outline {
    flex: 0 0 auto;
    width: 60px;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.feature-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== PRODUCT TABS ===== */
.product-tabs {
    margin-bottom: 60px;
}

.tabs-header {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

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

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

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

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

.tab-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tab-content h4 {
    font-size: 18px;
    margin: 25px 0 15px;
}

.tab-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.tab-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.tab-content ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

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

.ingredient-item span {
    color: var(--text-secondary);
    font-weight: 600;
}

.reviews-summary {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    font-size: 24px;
    color: #ffc107;
}

.rating-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.review-item {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

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

.reviewer-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.review-stars i {
    color: #ffc107;
    font-size: 14px;
}

.review-date {
    color: var(--text-secondary);
    font-size: 13px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    margin-top: 60px;
}

.related-products .section-title {
    text-align: left;
}

.related-products-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.related-products-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: var(--text-primary);
}

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

.no-related-products {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.no-related-products p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.no-related-products i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ===== PRODUCTS PAGE ===== */
.products-section {
    padding: 60px 0;
    background-color: var(--white);
}

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

.products-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.products-filters {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-count {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.products-count p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.products-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.product-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.product-quantity {
    color: var(--text-secondary);
    font-weight: 500;
}

.product-quantity i {
    color: var(--primary-color);
    margin-right: 5px;
}

.product-brand {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    padding: 80px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.info-icon i {
    font-size: 32px;
    color: var(--white);
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 5px;
    line-height: 1.6;
}

.contact-form-container {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
}

.contact-form-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

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

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

.contact-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.map-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== ABOUT PAGE ===== */
.about-section {
    padding: 60px 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(50, 178, 74, 0.3);
}

.about-placeholder i {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.9);
}

.mission-vision {
    padding: 60px 0;
    background-color: var(--light-gray);
}

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

.mv-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.mv-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #28a03d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.mv-icon i {
    font-size: 36px;
    color: var(--white);
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.mv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.why-choose-us {
    padding: 60px 0;
}

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

.feature-card {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

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

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-filters {
        width: 100%;
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
    }

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

    .hero-slide {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 42px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-details-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-images {
        position: static;
        max-width: 100%;
    }

    .main-image {
        max-width: 100%;
    }

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

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

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-left span {
        display: block;
        margin: 5px 0;
    }

    /* Mobile header layout */
    .header {
        padding: 15px 0;
    }

    .header-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    /* Top row: hamburger | logo | actions (space-between) */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        z-index: 1002;
        margin-right: 0;
    }

    .logo {
        order: 2;
        margin: 0;
    }

    .logo img {
        height: 40px;
    }

    /* Compact icon-only actions on mobile (login/wishlist/cart) */
    .header-actions {
        display: flex;
        order: 3;
        gap: 14px;
        margin-left: 0;
    }

    /* Hide the text labels (Login/Wishlist/Cart) — keep icons + badges */
    .header-actions .header-icon span:not(.badge) {
        display: none;
    }

    .header-actions .header-icon i {
        font-size: 22px;
        margin-bottom: 0;
    }

    /* Re-seat the badge over the smaller icon now that the label is gone */
    .header-actions .header-icon .badge,
    .header-actions .header-icon .cart-count {
        top: -6px;
        right: -8px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Search bar below - full width */
    .search-bar {
        order: 4;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        flex-basis: 100%;
    }

    .search-bar input {
        font-size: 14px;
        padding: 10px 15px;
    }

    .search-bar button {
        padding: 10px 20px;
    }

    /* Hide nav menu by default on mobile */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 60px 0 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    /* Show nav menu when active */
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 15px 20px;
        font-size: 16px;
    }

    /* Prescription CTA on mobile */
    .prescription-cta-item {
        margin-left: 0;
        padding: 15px 20px;
        background-color: rgba(50, 178, 74, 0.05);
    }

    .prescription-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }

    /* Mobile dropdown styles */
    .nav-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        max-height: 500px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu .dropdown-menu a {
        padding: 12px 20px 12px 40px;
        background-color: var(--light-gray);
        font-size: 14px;
    }

    /* Overlay when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-placeholder {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

    .product-name {
        font-size: 24px;
    }

    .current-price {
        font-size: 28px;
    }

    .product-actions-main {
        flex-direction: column;
    }

    .product-actions-main .btn-outline {
        width: 100%;
    }

    .tabs-header {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
    }

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

    .related-products-section .products-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .offer-card {
        padding: 30px;
    }

    .offer-content h3 {
        font-size: 24px;
    }

    .offer-icon {
        display: none;
    }

    /* Tighter header-actions row on small phones */
    .header-actions {
        gap: 10px;
    }

    .header-actions .header-icon i {
        font-size: 20px;
    }

    .header-actions .header-icon .badge,
    .header-actions .header-icon .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -5px;
        right: -6px;
    }
}

/* ===== WHATSAPP FLOATING WIDGET ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 32px;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp Options Menu */
.whatsapp-options {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.whatsapp-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.whatsapp-close i {
    font-size: 16px;
    color: #666;
}

.whatsapp-options-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-options-header i {
    font-size: 28px;
    color: #25D366;
}

.whatsapp-options-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
    border-bottom: 1px solid #eee;
}

.whatsapp-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.whatsapp-option:hover {
    background: #f8f9fa;
}

.whatsapp-option-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-option-icon i {
    font-size: 20px;
    color: white;
}

.whatsapp-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.whatsapp-option-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.whatsapp-option-text span {
    font-size: 13px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 28px;
    }
    
    .whatsapp-options {
        width: 280px;
        right: -10px;
    }
}
