/* ============================================
   Medicare Pharmacy - Styles
   Modern, Clean, Animated Design
   ============================================ */

/* CSS Variables */
:root {
    --primary-green: #00A86B;
    --primary-dark: #008B57;
    --secondary-yellow: #FFD93D;
    --accent-blue: #4A90D9;
    --bg-light: #F8FBF8;
    --bg-cream: #FFFEF5;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

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

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

/* Animation Classes */
.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-slide-down {
    animation: slideDown 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideRight 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Header
   ============================================ */
.header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.5s ease;
    transition: transform 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.logo i {
    font-size: 1.8rem;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 10px 20px;
    gap: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary-green);
    background: var(--white);
}

.search-bar i {
    color: var(--text-gray);
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.location-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-light);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
}

.location-dropdown:hover {
    background: #e8f5e9;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-gray);
    position: relative;
}

.header-link i {
    font-size: 1.3rem;
}

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

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse 4s ease infinite;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.8;
    max-width: 350px;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-item i {
    color: var(--primary-green);
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-person {
    position: relative;
}

.person-bg {
    position: absolute;
    width: 280px;
    height: 350px;
    background: var(--secondary-yellow);
    border-radius: 150px 150px 20px 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.pharmacist-img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    animation: float 3s ease infinite;
}

.upload-prescription-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
}

.upload-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 1.8rem;
    color: var(--primary-green);
}

.upload-prescription-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.upload-prescription-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.upload-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

/* ============================================
   Categories Section
   ============================================ */
.categories {
    padding: 80px 0;
    background: var(--white);
}

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.see-all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.see-all-link:hover {
    gap: 12px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.category-icon i {
    font-size: 2rem;
    color: var(--text-dark);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* ============================================
   Deals Section
   ============================================ */
.deals-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.deal-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.deal-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff6b6b;
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.deal-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.deal-image img {
    max-height: 130px;
    object-fit: contain;
    transition: var(--transition);
}

.deal-card:hover .deal-image img {
    transform: scale(1.1);
}

.deal-info {
    position: relative;
}

.deal-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.deal-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ============================================
   Prescription Section
   ============================================ */
.prescription-section {
    padding: 80px 0;
    background: var(--white);
}

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

.prescription-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

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

.upload-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px dashed var(--secondary-yellow);
}

.consult-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.prescription-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

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

.prescription-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.prescription-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.prescription-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 24px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--white);
    color: var(--primary-green);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-green);
}

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

.know-more-link {
    color: var(--primary-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.know-more-link:hover {
    gap: 10px;
}

/* ============================================
   Brands Section
   ============================================ */
.brands-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.brands-slider {
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 50px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    transition: var(--transition);
}

.brand-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.brand-item img {
    max-height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ============================================
   Trending Section
   ============================================ */
.trending-section {
    padding: 80px 0;
    background: var(--white);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 20px;
    background: var(--bg-light);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
}

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

.tab-btn:hover:not(.active) {
    background: #e8f5e9;
    color: var(--primary-green);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.product-image img {
    max-height: 150px;
    object-fit: contain;
    transition: var(--transition);
}

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

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover {
    background: #ffe5e5;
    color: #ff6b6b;
}

.wishlist-btn:hover i {
    font-weight: 900;
}

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 40px;
}

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

.product-rating i {
    color: #ffc107;
    font-size: 0.8rem;
}

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

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

.add-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    color: var(--primary-green);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* ============================================
   Health Categories
   ============================================ */
.health-categories {
    padding: 60px 0;
    background: var(--bg-light);
}

.health-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.health-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.health-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.health-card.maternal {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.health-card.headache {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.health-card.cold {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.health-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    max-width: 180px;
}

.health-card-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.discount-badge {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.9rem;
}

.discount-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.discount-text {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.health-card-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* ============================================
   Baby Food Section
   ============================================ */
.baby-food-section {
    padding: 80px 0;
    background: var(--white);
}

.baby-food-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.baby-product-card {
    background: #e8f5e9;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.baby-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.baby-product-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.baby-product-image img {
    max-height: 130px;
    object-fit: contain;
    transition: var(--transition);
}

.baby-product-card:hover .baby-product-image img {
    transform: scale(1.1);
}

.baby-product-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.baby-product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* ============================================
   Cereal Section
   ============================================ */
.cereal-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.cereal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-sm);
}

.cereal-tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.cereal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cereal-content > p {
    color: var(--text-gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.cereal-options {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.cereal-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cereal-option input {
    display: none;
}

.option-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cereal-option input:checked + .option-text {
    background: var(--primary-green);
    color: var(--white);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.buy-now-btn {
    padding: 15px 35px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 25px;
}

.buy-now-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.cereal-flavors {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flavor-dots {
    display: flex;
    gap: 8px;
}

.flavor-dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.flavor-dot.active {
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.view-details-link {
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details-link:hover {
    gap: 12px;
}

.cereal-image {
    display: flex;
    justify-content: center;
}

.cereal-image img {
    max-width: 350px;
    animation: float 3s ease infinite;
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews-section {
    padding: 80px 0;
    background: var(--white);
}

.trustpilot-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.trustpilot-rating i {
    color: #00b67a;
}

.trustpilot-logo {
    height: 20px;
    margin-left: 5px;
}

.review-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.review-rating {
    margin-bottom: 15px;
}

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

.review-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h5 {
    font-size: 0.95rem;
    font-weight: 600;
}

.reviewer span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   Promo Section
   ============================================ */
.promo-section {
    padding: 60px 0;
    background: var(--bg-light);
}

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

.promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.promo-card.delivery {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.promo-card.discount {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.promo-content {
    max-width: 60%;
}

.promo-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.promo-btn {
    padding: 12px 25px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 25px;
    font-weight: 600;
}

.promo-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.promo-image img {
    max-width: 180px;
    animation: float 3s ease infinite;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

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

.faq-section .section-title {
    margin-bottom: 50px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    background: transparent;
}

.faq-question i {
    color: var(--primary-green);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ============================================
   App Section
   ============================================ */
.app-section {
    padding: 60px 0;
    background: var(--primary-green);
}

.app-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    border-radius: var(--border-radius-lg);
}

.app-content {
    color: var(--white);
}

.app-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.app-content p {
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.7;
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    transition: var(--transition);
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.app-btn i {
    font-size: 1.8rem;
}

.app-btn span {
    font-size: 0.75rem;
    display: block;
}

.app-btn strong {
    font-size: 1rem;
}

.app-image {
    display: flex;
    justify-content: center;
}

.app-image img {
    max-width: 300px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease infinite;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

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

.footer-column ul li a {
    color: #999;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .upload-prescription-card {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        max-width: 300px;
    }
    
    .trending-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trending-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .health-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .upload-prescription-card {
        position: static;
        transform: none;
        margin-top: 30px;
        max-width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prescription-grid {
        grid-template-columns: 1fr;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .health-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .baby-food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cereal-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cereal-options {
        justify-content: center;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .cereal-flavors {
        justify-content: center;
    }
    
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .deals-grid,
    .trending-grid,
    .baby-food-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Loading Animation
   ============================================ */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Hover Effects
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Color */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

/* ============================================
   Mobile Menu Button
   ============================================ */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-links, .main-nav, .header-actions {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active, .main-nav.active, .header-actions.active {
        display: flex;
    }
}

/* ============================================
   Additional Responsive Fixes
   ============================================ */
@media (max-width: 992px) {
    .hero-title, .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .header-actions {
        gap: 5px;
    }
    .header-actions .search-btn,
    .header-actions .user-btn {
        display: none;
    }
}

/* ============================================
   Focus Visible Styles
   ============================================ */
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ============================================
   Quick View Eye Button on Product Cards
   ============================================ */
.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--primary-green, #2e7d32);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card:hover .quick-view-btn,
.deal-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
    background: var(--dark-green, #1b5e20);
    transform: translateX(-50%) translateY(0) scale(1.1);
}

/* Touch devices: always show eye button */
@media (hover: none) and (pointer: coarse) {
    .quick-view-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.product-image {
    position: relative;
    overflow: hidden;
}

/* ============================================
   Quick View Modal
   ============================================ */
.quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.qv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.qv-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.quick-view-modal.active .qv-content {
    transform: translateY(0) scale(1);
}

.qv-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qv-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.qv-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qv-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
    min-height: 300px;
}

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

.qv-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-green, #2e7d32);
    font-weight: 600;
}

.qv-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.qv-rating span {
    color: #888;
    font-size: 0.85rem;
}

.qv-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qv-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-green, #2e7d32);
}

.qv-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.qv-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.qv-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.qv-qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qv-qty-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.qv-qty-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.qv-qty-btn:hover {
    background: var(--primary-green, #2e7d32);
    color: #fff;
    border-color: var(--primary-green, #2e7d32);
}

.qv-qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
}

.qv-qty-input::-webkit-outer-spin-button,
.qv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.qv-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.qv-add-cart {
    flex: 1;
    padding: 12px 20px;
    background: var(--primary-green, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qv-add-cart:hover {
    background: var(--dark-green, #1b5e20);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.qv-wishlist-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #e0e0e0;
    background: transparent;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qv-wishlist-btn:hover,
.qv-wishlist-btn.active {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* Quick View Modal - Mobile Responsive */
@media (max-width: 768px) {
    .qv-content {
        width: 95%;
        max-height: 92vh;
    }

    .qv-body {
        grid-template-columns: 1fr;
    }

    .qv-image {
        min-height: 220px;
        max-height: 250px;
        border-radius: 16px 16px 0 0;
    }

    .qv-info {
        padding: 20px;
    }

    .qv-name {
        font-size: 1.1rem;
    }

    .qv-close {
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.5);
        color: #fff;
    }
}

@media (max-width: 480px) {
    .qv-content {
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }

    .qv-image {
        min-height: 180px;
        max-height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .qv-info {
        padding: 16px;
    }

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

    .qv-wishlist-btn {
        width: 100%;
    }
}
