:root {
    --primary: #111;
    --accent: #FF6B6B;
    --bg: #f5f5f7;
    --gray: #86868b;
    --border: #d2d2d7;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--primary);
    margin: 0;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }

.nav-icons { display: flex; gap: 20px; align-items: center; font-size: 1.2rem; cursor: pointer; }

.cart-icon { position: relative; }
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.product-container {
    max-width: 1200px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.product-gallery {
    padding: 40px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-image img { width: 100%; max-width: 400px; transition: transform 0.3s; }
.main-image img:hover { transform: scale(1.05); }

.thumbnails { display: flex; gap: 10px; margin-top: 20px; }
.thumbnails img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.2s; }
.thumbnails img.active { border-color: var(--primary); opacity: 1; }

.product-details { padding: 40px 60px; display: flex; flex-direction: column; justify-content: center; }

.breadcrumb { color: var(--gray); font-size: 0.9rem; margin-bottom: 10px; }
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 20px; }

.price { font-size: 1.8rem; font-weight: 500; color: var(--accent); margin-bottom: 15px; }

.rating { color: #FFD700; margin-bottom: 30px; font-size: 0.9rem; }
.rating span { color: var(--gray); margin-left: 10px; }

.description { line-height: 1.6; color: var(--gray); margin-bottom: 30px; }

.colors { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.color-select {
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    border: 2px solid transparent; outline: 1px solid #ddd; outline-offset: 3px;
}
.color-select.selected { outline-color: var(--primary); }

.actions { display: flex; gap: 20px; margin-bottom: 40px; }
.quantity { display: flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.quantity button { background: none; border: none; padding: 10px 15px; cursor: pointer; font-size: 1.2rem; }
.quantity input { width: 40px; border: none; text-align: center; font-size: 1rem; font-weight: 600; outline: none; }

.add-to-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}
.add-to-cart:hover { opacity: 0.9; }

.features { border-top: 1px solid #eee; padding-top: 20px; display: flex; gap: 40px; }
.feature-item { display: flex; gap: 15px; align-items: center; color: var(--gray); font-size: 0.9rem; }
.feature-item i { font-size: 1.2rem; color: var(--primary); }

#toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: #333; color: white; padding: 12px 24px; border-radius: 30px;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
#toast.show { opacity: 1; visibility: visible; bottom: 50px; }

@media (max-width: 768px) {
    .product-container { grid-template-columns: 1fr; margin: 0; border-radius: 0; }
    .product-details { padding: 30px; }
}
