/* 1. GLOBAL RESET & TYPOGRAPHY */
:root {
    --text-color: #111;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --accent-color: #000000; /* Classic black for luxury feel */
    --gray-text: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; /* Makes text look sharper on Mac */
}

/* 2. HEADER STYLING */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    position: sticky; /* Keeps header at top when scrolling */
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Cart Button */
.cart-btn {
    background: none;
    border: 2px solid #000;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: #000;
    color: #fff;
}

/* 3. PRODUCT GRID LAYOUT */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    /* Auto-fit creates as many columns as fit (min 280px wide) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* 4. PRODUCT CARD DESIGN */
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden; /* Keeps image inside rounded corners */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Soft shadow */
}

/* Image Control (Crucial for consistent grid) */
.image-wrapper {
    height: 300px; /* Force all image boxes to be same height */
    width: 100%;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures whole shoe is visible */
    mix-blend-mode: multiply; /* TRICK: Makes white image backgrounds transparent-ish */
}

/* Card Text */
.card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

/* 5. BUTTON STYLING */
.btn-primary {
    display: inline-block;
    text-decoration: none;
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto; /* Pushes button to bottom of card */
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #333;
}

/* 6. FOOTER */
footer {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    margin-top: 60px;
}