/* Modern Product Details Styling */

.modern-product-details {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 30px 0;
}

/* Product Details Card */
.product-details-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-details-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 2px;
}

.main-product-image {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.main-product-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* Product Badge */
.product-badge-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.detail-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.detail-stock-badge.in-stock {
    background: rgba(16, 185, 129, 0.95);
    color: #ffffff;
}

.detail-stock-badge.out-stock {
    background: rgba(239, 68, 68, 0.95);
    color: #ffffff;
}

.detail-stock-badge i {
    font-size: 14px;
}

/* Product Info Wrapper */
.product-info-wrapper {
    padding: 20px 0;
}

/* Product Title */
.product-detail-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Rating */
.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.product-detail-rating .stars {
    display: flex;
    gap: 3px;
}

.product-detail-rating .stars i {
    color: #fbbf24;
    font-size: 16px;
}

.rating-text {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #ffffff;
}

.price-tag .currency {
    font-size: 1.1rem;
    font-weight: 600;
}

.price-tag .amount {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.stock-info i {
    font-size: 16px;
}

/* Description */
.product-description {
    margin-bottom: 20px;
}

.desc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.desc-content {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 10px;
    border-left: 3px solid #10b981;
}

/* Purchase Button */
.product-actions {
    margin-bottom: 20px;
}

.btn-purchase {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-purchase:active {
    transform: translateY(0);
}

.btn-purchase i {
    font-size: 20px;
}

.btn-purchase.disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-purchase.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Product Features */
.product-features {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: 12px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}

.feature-item i {
    font-size: 24px;
    color: #10b981;
}

.feature-item span {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
}

/* Related Products Section */
.related-products-section {
    margin-top: 40px;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 25px;
}

.section-title-modern {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle-modern {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

/* Tablet Responsiveness (768px) */
@media (max-width: 768px) {
    .modern-product-details {
        padding: 20px 0;
    }

    .product-details-card {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .product-detail-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .main-product-image {
        min-height: 200px;
        padding: 15px;
    }

    .main-product-image img {
        max-height: 220px;
    }

    .price-tag .amount {
        font-size: 1.75rem;
    }

    .price-tag .currency {
        font-size: 1rem;
    }

    .product-price-section {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .product-features {
        flex-direction: column;
        gap: 10px;
    }

    .feature-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .feature-item i {
        font-size: 22px;
    }

    .section-title-modern {
        font-size: 1.5rem;
    }
}

/* Mobile Responsiveness (480px) */
@media (max-width: 480px) {
    .modern-product-details {
        padding: 15px 0;
    }

    .product-details-card {
        padding: 15px 12px;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    }

    .product-detail-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .main-product-image {
        min-height: 160px;
        padding: 12px;
    }

    .main-product-image img {
        max-height: 160px;
    }

    .detail-stock-badge {
        padding: 5px 10px;
        font-size: 10px;
    }

    .detail-stock-badge i {
        font-size: 12px;
    }

    .product-detail-rating .stars i {
        font-size: 14px;
    }

    .rating-text {
        font-size: 11px;
    }

    .product-price-section {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .price-tag .amount {
        font-size: 1.5rem;
    }

    .price-tag .currency {
        font-size: 0.9rem;
    }

    .stock-info {
        padding: 6px 12px;
        font-size: 11px;
    }

    .stock-info i {
        font-size: 14px;
    }

    .desc-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .desc-content {
        font-size: 13px;
        padding: 12px;
        border-radius: 8px;
    }

    .btn-purchase {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 40px;
    }

    .btn-purchase i {
        font-size: 18px;
    }

    .product-features {
        padding: 12px 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .feature-item i {
        font-size: 20px;
    }

    .feature-item span {
        font-size: 10px;
    }

    .section-title-modern {
        font-size: 1.3rem;
    }

    .section-subtitle-modern {
        font-size: 0.85rem;
    }

    .product-badge-wrapper {
        top: 10px;
        right: 10px;
    }

    .product-image-container {
        border-radius: 10px;
    }

    .related-products-section {
        margin-top: 30px;
    }

    .section-header-modern {
        margin-bottom: 20px;
    }
}
