/* Product Detail Section */
.product-detail-section {
    position: relative;
    z-index: 2;
    padding: 7rem 1rem 2rem;
    min-height: 100vh;
}

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Gallery Section */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    width: 100%;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 38, 38, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.gallery-nav.prev {
    left: 1rem;
}

.gallery-nav.next {
    right: 1rem;
}

/* Product Info Mobile/Desktop Toggle */
.product-info-mobile {
    display: block;
    margin-top: 1.5rem;
}

.product-info-desktop {
    display: none;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.product-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.product-status.online {
    color: #10b981;
}

.product-status.offline {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.product-status.offline .status-dot {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Product Description */
.product-description {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.product-description h3 {
    color: #dc2626;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-description h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.product-description p {
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

/* Product Info Section */
.product-info {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.product-price-large {
    font-size: 3rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.product-stock-info {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Variants */
.product-variants {
    margin-bottom: 2rem;
}

.variant-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.variant-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(20, 20, 30, 0.6);
    border: 2px solid rgba(100, 100, 120, 0.3);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-option:hover {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.variant-option.selected {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.variant-info {
    flex: 1;
}

.variant-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.variant-stock {
    font-size: 0.85rem;
    color: #10b981;
}

.variant-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc2626;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 2rem;
}

.quantity-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.quantity-limit {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-btn {
    width: 45px;
    height: 45px;
    background: rgba(220, 38, 38, 0.2);
    border: 2px solid #dc2626;
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

#quantity {
    width: 80px;
    height: 45px;
    text-align: center;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-add-cart,
.btn-buy-now {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.btn-add-cart {
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
}

.btn-add-cart:hover {
    background: #991b1b;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-buy-now {
    background: transparent;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.btn-buy-now:hover {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

/* Responsive */
@media (min-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .product-info-mobile {
        display: none;
    }

    .product-info-desktop {
        display: block;
    }

    .action-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .product-detail-section {
        padding: 8rem 2rem 3rem;
    }

    .product-detail-container {
        gap: 4rem;
    }

    .product-detail-title {
        font-size: 2.5rem;
    }

    .product-price-large {
        font-size: 3.5rem;
    }
}