/* Product Page */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.product-gallery {
    position: sticky;
    top: 20px;
    z-index: 1;
}

.gallery-main {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    height: 100px;
    object-fit: cover;
}

.thumb.active, .thumb:hover {
    border-color: var(--accent-color);
}

.product-details {
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.price-discount {
    background: var(--danger);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.product-form {
    margin-bottom: 30px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variant-option {
    flex: 0 0 auto;
    cursor: pointer;
    position: relative;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.variant-option span {
    display: block;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: white;
    transition: all 0.3s;
    min-width: 80px;
    text-align: center;
}

.variant-option span.variant-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.variant-option input[type="radio"]:checked + span {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.variant-option input[type="radio"]:checked + span small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.variant-option:hover span {
    border-color: var(--accent-color);
}

.variant-details {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-info {
    margin: 15px 0;
    font-weight: 500;
}

.in-stock {
    color: var(--success);
}

.out-of-stock {
    color: var(--danger);
}

input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .product-actions {
        flex-direction: row;
        gap: 15px;
    }
}

.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.product-description h2 {
    margin-bottom: 15px;
}

.product-tags {
    margin-top: 20px;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 15px;
    margin: 5px 5px 5px 0;
    border-radius: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: relative;
        top: auto;
    }
    
    .gallery-main img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .product-actions {
        margin-top: 30px;
        gap: 15px;
    }
}
