:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --secondary-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --font-heading: 'Roboto', 'Helvetica Neue', sans-serif;
    --font-body: 'Roboto', 'Helvetica Neue', sans-serif;
    --primary-btn-bg: #000;
    --primary-btn-text: #fff;
    --transition-speed: 0.3s;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #444;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    border-color: var(--primary-btn-bg);
}

.btn-primary:hover {
    background: #333;
    border-color: #333;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #000;
    transition: width var(--transition-speed);
}

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

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 5s ease;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Gap between columns */
    padding: 3rem 0;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 150%;
    /* Taller aspect ratio 2:3 */
    background: #f0f0f0;
    margin-bottom: 1rem;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-info {
    text-align: left;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: none;
    /* Let organic case show */
    letter-spacing: 0.5px;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    font-weight: 500;
    font-size: 1rem;
}

/* Product Details Page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.product-gallery {
    /* Sticky can be applied here if needed */
    position: relative;
}

.main-image {
    width: 100%;
    background: #f9f9f9;
}

.product-info-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-price-lg {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: #333;
}

.description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.variant-selector h4 {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.size-grid,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.size-btn {
    padding: 12px 0;
    width: 80px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.size-btn:hover,
.size-btn.active {
    border-color: black;
    background: black;
    color: white;
}

.color-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.color-btn.active {
    border-color: black;
    background: black;
    color: white;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.5rem;
    background: black;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 2rem;
    display: block;
    text-align: center;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #222;
}

/* Sidebar & Catalog */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
    padding-top: 3rem;
}

.filters h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #000;
    padding-bottom: 1rem;
}

.filter-group h4 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.filter-links a {
    display: block;
    padding: 6px 0;
    color: #333;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.filter-links a.active,
.filter-links a:hover {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 5rem 3rem;
    margin-top: 6rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

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

/* Color Carousel - PDP */
.color-carousel-section {
    margin-bottom: 2rem;
}

.color-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.color-carousel::-webkit-scrollbar {
    height: 6px;
}

.color-carousel::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.color-card {
    flex: 0 0 100px;
    /* Width of each card */
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.color-card.active {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.card-img-wrapper {
    height: 120px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 0.5rem;
    text-align: center;
}

.color-name {
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.color-price {
    font-size: 0.7rem;
    color: #666;
    display: block;
}

/* Variant Selector (Sizes) */
.variant-selector h4 {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ensure no conflict with grid */
.product-info-panel {
    max-width: 100%;
    /* Ensure it takes space */
}