:root {
    --primary-red: #c0392b;
    --text-dark: #333;
    --light-gray: #f8f9fa;
    --border: #e0e0e0;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; color: var(--text-dark); }

/* Header & Nav */
.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; border-bottom: 1px solid var(--border);
}
.logo { font-size: 24px; font-weight: bold; letter-spacing: 1px; }
.logo span { color: var(--primary-red); }

.category-nav { background: #fff; border-bottom: 1px solid var(--border); }
.category-nav ul { display: flex; list-style: none; justify-content: center; padding: 10px; margin: 0; }
.category-nav li a { text-decoration: none; color: #555; padding: 0 20px; font-size: 14px; font-weight: 500; }
.category-nav li.sale a { color: var(--primary-red); font-weight: bold; }

/* Layout */
.shop-container { display: flex; padding: 20px 5%; gap: 30px; }
.filters { width: 250px; flex-shrink: 0; }
.filter-group { margin-bottom: 25px; display: flex; flex-direction: column; gap: 8px; }

/* Product Cards with Motion */
.tile-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 20px; width: 100%; 
}

.tile-card {
    border: 1px solid var(--border);
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    position: relative;
    cursor: pointer;
}

.tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tile-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.add-to-cart-btn {
    width: 100%; background: var(--text-dark); color: white;
    border: none; padding: 10px; margin-top: 10px; cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover { background: var(--primary-red); }

/* Cart Sidebar Animation */
.cart-panel {
    position: fixed; right: -350px; top: 0; width: 350px; height: 100%;
    background: white; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 20px; z-index: 1000;
}
.cart-panel.active { right: 0; }