[file name]: style.css
[file content begin]
/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --primary: #2A5CAA;
    --primary-dark: #1a3c75;
    --primary-light: #4a7bc8;
    --secondary: #4CAF50;
    --secondary-dark: #3d8b40;
    --secondary-light: #6fbf73;
    
    /* Neutral Colors */
    --dark: #1a3c75;
    --dark-text: #333;
    --light: #f8fafd;
    --light-gray: #e6edf5;
    --medium-gray: #5a6c7d;
    --white: #ffffff;
    --off-white: #f9fafc;
    
    /* Feedback Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 20px rgba(42, 92, 170, 0.3);
    --shadow-secondary: 0 10px 20px rgba(76, 175, 80, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-circle: 50%;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
}

p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-sm);
    z-index: var(--z-popover);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    gap: 8px;
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
}

.btn-secondary:hover:not(:disabled),
.btn-secondary:focus:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-secondary);
}

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

.btn-outline:hover:not(:disabled),
.btn-outline:focus:not(:disabled) {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-login {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.btn-login:hover,
.btn-login:focus {
    background-color: var(--primary);
    color: var(--white);
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(42, 92, 170, 0.1);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.logo-highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--medium-gray);
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

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

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    margin-bottom: 30px;
    max-width: 600px;
}

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

.hero-image {
    flex: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

/* ==================== SECTIONS COMMON ==================== */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    contain: layout style;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 35px 25px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-bounce);
    border: 1px solid var(--light-gray);
    background: linear-gradient(145deg, var(--white), var(--light));
    contain: content;
}

.category-card:hover,
.category-card:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(42, 92, 170, 0.15);
    border-color: var(--primary);
    background: linear-gradient(145deg, var(--light), var(--white));
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    background: rgba(42, 92, 170, 0.1);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circle);
    margin-left: auto;
    margin-right: auto;
    contain: layout;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.category-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    contain: layout style;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-bounce);
    border: 1px solid var(--light-gray);
    background: linear-gradient(145deg, var(--white), var(--light));
    contain: content;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(42, 92, 170, 0.15);
    border-color: var(--primary);
}

.product-image {
    height: 180px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
    contain: layout;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-info {
    padding: 20px;
    background: var(--white);
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.3;
    min-height: 50px;
}

.product-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    min-height: 70px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 8px 0;
    border-top: 1px dashed var(--light-gray);
    border-bottom: 1px dashed var(--light-gray);
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-add-to-cart {
    flex: 2;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 44px;
}

.btn-add-to-cart:hover:not(:disabled),
.btn-add-to-cart:focus:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(60, 139, 63, 0.3);
}

.btn-view-details {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 44px;
}

.btn-view-details:hover,
.btn-view-details:focus {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.03);
}

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

/* Search Bar */
.search-container {
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    transition: border-color var(--transition-base);
}

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

.search-bar i {
    color: var(--medium-gray);
    margin-right: 12px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--dark-text);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--medium-gray);
}

.btn-clear {
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.btn-clear:hover,
.btn-clear:focus {
    color: var(--primary);
}

.search-info {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

.product-card--skeleton {
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-text--price {
    width: 80px;
    margin-left: auto;
    margin-right: auto;
}

.skeleton-button {
    height: 44px;
    flex: 1;
}

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

/* ==================== ABOUT ==================== */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.list-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark);
    color: #d1d9e9;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a:hover,
.footer-col ul li a:focus {
    color: var(--white);
    text-decoration: underline;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info i {
    margin-top: 3px;
    color: var(--secondary);
    flex-shrink: 0;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-circle);
    color: var(--white);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.social-links a:hover,
.social-links a:focus {
    background-color: var(--secondary);
    transform: translateY(-3px);
    text-decoration: none;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1rem;
    min-height: 44px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.newsletter-form button {
    align-self: flex-start;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--secondary);
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    text-decoration: underline;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet */
@media (max-width: 992px) {
    .hero .container,
    .about .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

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

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

    .list-item {
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info h3 {
        font-size: 1rem;
        min-height: 45px;
    }
    
    .product-description {
        font-size: 0.85rem;
        min-height: 65px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        z-index: var(--z-dropdown);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 18px;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }
    
    .product-card {
        border-radius: var(--radius-md);
    }
    
    .product-image {
        height: 130px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
        min-height: auto;
    }
    
    .product-description {
        min-height: auto;
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .btn-add-to-cart,
    .btn-view-details {
        padding: 8px;
        font-size: 0.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero,
    .categories,
    .products,
    .about {
        padding: 40px 0;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}

/* Safe areas for notched devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }
    
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ==================== UTILITY CLASSES ==================== */
.highlight {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
[file content end]