/* ---- CSS VARIABLES ---- */
:root {
    /* Colors */
    --color-primary: #111;
    --color-secondary: #004d9c; /* Columbia Blue */
    --color-accent: #cc0000;
    --color-background: #ffffff;
    --color-surface-light: #f5f5f5;
    --color-surface-dark: #333333;
    --color-text: #222222;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1300px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.12);
}

/* ---- RESET & GLOBAL ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
}

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

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

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

.btn-dark:hover {
    background-color: var(--color-surface-dark);
}

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

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

/* ---- TOP PROMO ---- */
.promo-banner {
    background-color: var(--color-surface-light);
    color: var(--color-text);
    text-align: center;
    padding: var(--spacing-xs);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.promo-banner a {
    text-decoration: underline;
    font-weight: 700;
}

/* ---- HEADER ---- */
.main-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition-fast);
}

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

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-primary);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav .nav-sale {
    color: var(--color-accent);
}
.desktop-nav .nav-sale::after {
    background-color: var(--color-accent);
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-btn {
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.action-btn:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.cart-btn {
    position: relative;
}

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

.mobile-menu-trigger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--color-white);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    z-index: 99;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    padding: 1rem var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-surface-light);
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
    color: var(--color-white);
}

.hero-label {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1rem;
    line-height: 1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 500px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---- CATEGORIES GRID ---- */
.categories {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--color-primary);
}

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

.category-card {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    display: block;
    background-color: #f0f0f0;
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover .category-img {
    transform: scale(1.08); /* Zoom effect */
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    color: var(--color-white);
}

.category-info h3 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ---- TECH BANNER ---- */
.tech-banner {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('fon.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.tech-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* ---- FEATURED PRODUCTS ---- */
.featured-products {
    padding: var(--spacing-xl) var(--spacing-sm);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-md);
}

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

.view-all {
    font-weight: 600;
    text-decoration: underline;
    color: var(--color-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem 1.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    group: product; /* useful for hover state children if supported, else simple hover */
}

.product-image-container {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--color-surface-light);
    margin-bottom: 1rem;
}

.product-image-container:hover .primary-img {
    transform: scale(1.05); /* subtle zoom */
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-white);
    color: var(--color-primary);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.product-badge.sale {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.quick-add-btn {
    position: absolute;
    bottom: -50px; /* hidden initially */
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.9);
    color: var(--color-primary);
    padding: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

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

.product-image-container:hover .quick-add-btn {
    bottom: 0;
}

.product-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.product-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: var(--color-text);
    text-transform: none;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.price-sale {
    color: var(--color-accent);
    margin-right: 8px;
}
.price-original {
    color: var(--color-text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ---- FOOTER ---- */
.main-footer {
    background-color: var(--color-surface-dark);
    color: var(--color-white);
    padding-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-text {
    margin-bottom: 1rem;
    color: #cccccc;
}

.newsletter-form {
    display: flex;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    padding: 12px;
    border: none;
    flex-grow: 1;
    font-family: var(--font-body);
}
.newsletter-form input:focus {
    outline: 2px solid var(--color-secondary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cccccc;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #999999;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ---- MEDIA QUERIES ---- */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-trigger {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
