@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #e53935;
    --primary-light: #ff3d3d;
    --primary-dark: #b71c1c;

    --background-dark: #000;
    --background-medium: #111;
    --background-light: #1a1a1a;

    --text-light: #f5f5f7;
    --text-muted: #bbb;

    --font-base: 'Poppins', sans-serif;
    --font-heading: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--background-medium);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: var(--background-dark);
    box-shadow: 0 3px 12px rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header img {
    width: 100px;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    color: var(--text-light);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
    max-width: 1400px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 20px;
}

.product-images {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.secondary-images-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    order: 1;
}

.product-images .main-image {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    order: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-images .main-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-images .secondary-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-images .secondary-image:hover {
    opacity: 0.8;
    transform: translateX(3px);
    border-color: #e2e8f0;
}

.product-images .secondary-image.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(229,57,53,0.2);
    transform: translateX(3px);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-info h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
}

.product-info p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    text-align: justify;
}

.product-info h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-top: 2rem;
}

.product-info ul {
    list-style: none;
    margin: 0 0 2rem 1rem;
}

.product-info ul li {
    margin-bottom: 0.8rem;
    color: #64748b;
    position: relative;
    padding-left: 2rem;
}

.product-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info label {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    margin-top: 2rem;
    display: block;
}

.product-info input[type="number"] {
    width: 80px;
    padding: 0.8rem;
    margin: 1rem 0 2rem 0;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    font-size: 1.1rem;
}

.product-info input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
    background: white;
}

.product-info .add-to-cart {
    padding: 1.2rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-info .add-to-cart:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.related-products {
    padding: 3rem 8%;
    background: var(--background-light);
    border-radius: 16px;
    margin-top: 3rem;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.related-products .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-products .product-card {
    background: #fff;
    color: #333;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.related-products .product-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.related-products img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover img {
    transform: scale(1.05);
}

.related-products h3 {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    color: var(--primary-dark);
}

.related-products .price {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.related-products .add-to-cart {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem 1rem;
    padding: 0.8rem 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.related-products .add-to-cart:hover {
    background: var(--primary-light);
}

footer {
    background: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-container p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}
@media (max-width: 1024px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .related-products .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .secondary-images-grid {
        order: 2;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .product-images .main-image {
        order: 1;
        height: 350px;
    }
    
    .product-images .secondary-image {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .product-info h1 {
        text-align: center;
        font-size: 2rem;
    }

    .product-info .add-to-cart {
        width: 100%;
        padding: 1rem;
    }

    .related-products .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .product-images .secondary-image {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    
    .product-images .main-image {
        height: 280px;
    }

    .related-products .product-grid {
        grid-template-columns: 1fr;
    }

    .related-products h2 {
        font-size: 1.5rem;
    }

    .related-products h3,
    .related-products .price,
    .related-products .add-to-cart {
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
        footer {
        padding: 2rem 1rem;
    }
    .social-links {
        gap: 1.2rem;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 2%;
    }
    nav ul {
        gap: 1.5rem;
    }
       .social-links {
        gap: 1.2rem;
    }
}