
:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F5F5F5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E0E0E0;
    --accent: #000000;
    --hover-bg: #F0F0F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #000000;
    border-bottom: 1px solid #4f0202;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 0;
    min-height: 60px;
    gap: 15px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.logo {
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.logo img {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.logo:hover {
    opacity: 0.7;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    position: relative;
    z-index: 10;
}

.search-toggle:hover {
    opacity: 0.6;
}

.search-toggle:active {
    transform: scale(0.95);
}

.search-toggle svg {
    stroke: white;
}

/* Search Bar */
.search-bar-container {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    z-index: 998;
}

.search-bar-container.active {
    display: block; /* Shown when active */
}

.search-form {
    display: flex;
    max-width: 600px;
    align-items: center;
    background: #FFF;
    border: 1px solid #D3D4D5;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    width: 100%;
    background: #fff;
}

.search-submit {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.search-submit:hover {
    opacity: 0.6;
}

.search-submit svg {
    pointer-events: none;
}

/* Main Navigation */
.main-nav {
    background: #000000;
    border-bottom: 1px solid #EBEDEE;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 12px 0;
}

.nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    border-bottom-color: #8B4513;
}

.nav-link:active {
    background: #F7F7F7;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Side Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #FFF;
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #EBEDEE;
}

.mobile-menu-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2000;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-close:active {
    opacity: 0.5;
}

.mobile-menu-close svg {
    pointer-events: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #F7F7F7;
    transition: background 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: #F7F7F7;
}

.nav-icon {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    position: relative;
}

.nav-icon:hover {
    opacity: 0.6;
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Main Navigation */
.main-nav {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    transition: color 0.3s;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #000;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    gap: 15px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-bg);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: white;
}

/* Product Grid */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background-color: var(--primary-bg);
    transition: transform 0.3s;
    cursor: pointer;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--secondary-bg);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card-link:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 18px;
    font-weight: 700;
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Product Detail Page */
.product-detail {
    padding: 0;
    margin: 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 600px;
    background-color: #F5F5F5;
    overflow: hidden;
    border-radius: 4px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    background-color: #F5F5F5;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.thumbnail:hover {
    border-color: #000;
}

.thumbnail.active {
    border-color: #000;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 20px 0;
}

.product-details h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #000;
}

.product-sku {
    font-size: 12px;
    color: #767677;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #EBEDEE;
}

.product-price-detail .price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.product-price-detail .price-old {
    font-size: 18px;
    color: #767677;
    text-decoration: line-through;
}

.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: #000;
    margin-bottom: 30px;
}

/* Quantity Selector - Adidas Style */

@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-image {
        height: 400px;
    }

    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }

    .thumbnail {
        height: 70px;
    }
}

/* Cart Page */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 15px;
    padding: 20px 0;
}

.cart-item-image {
    width: 100px;
    height: 100px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 15px;
        padding: 20px 0;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
        grid-row: 1 / 3;
    }

    .cart-item-remove {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        justify-self: end;
    }
}
