/* Modern Product Details Page - Refined Design */

/* Reset and Base */
* {
    box-sizing: border-box;
}

/* Main Container */
.product-details-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-details-container {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: flex-start;
}

/* Left Side - Image */
.product-image-section {
    flex: 1;
    position: relative;
}

.product-image-container {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* New Badge */
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Right Side - Details */
.product-info-section {
    flex: 1;
}

/* Product Title */
.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

/* Rating - Number with more weight */
.product-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-count {
    color: #000000;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Info Tags - Smaller, Bolder */
.product-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 18px;
    font-size: 0.9rem;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-tag-label {
    font-weight: 700;
    color: #000000;
}

.info-tag-value {
    font-weight: 700;
    color: #000000;
}

/* Product Details Section - Icon Grid Layout */
.product-details-section {
    margin-bottom: 25px;
    padding: 25px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.product-details-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 20px;
    height: 20px;
    color: #000000;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-weight: 700;
    color: #000000;
    font-size: 0.85rem;
    margin-bottom: 2px;
    display: block;
}

.detail-value {
    color: #495057;
    font-size: 0.9rem;
}

/* Hide default list styling */
.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Tips/Notes Section */
.tips-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
}

.tips-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-section h4 svg {
    width: 20px;
    height: 20px;
    color: #ffc107;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #495057;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item svg {
    width: 16px;
    height: 16px;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Add to Cart Button - Solid green */
.add-to-cart-btn {
    width: 100%;
    padding: 14px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
    text-decoration: none;
    margin-bottom: 20px;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
    color: white;
    text-decoration: none;
}

.add-to-cart-btn svg {
    width: 20px;
    height: 20px;
}

/* Collapsible Description */
.collapsible-section {
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
}

.collapsible-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.collapsible-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.collapsible-icon.active {
    transform: rotate(45deg);
}

.collapsible-icon svg {
    width: 16px;
    height: 16px;
    color: #000000;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.active {
    max-height: 500px;
    padding-bottom: 20px;
}

.collapsible-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}

/* Related Products Section */
.related-products-section {
    padding: 60px 0;
    background: white;
}

.related-products-section .section-header {
    margin-bottom: 40px;
    text-align: center;
}

.related-products-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
}

.related-products-section .section-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-details-container {
        flex-direction: column;
        gap: 40px;
    }

    .product-title {
        font-size: 1.9rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-details-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-info-tags {
        gap: 6px;
    }

    .info-tag {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .add-to-cart-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .product-details-container {
        gap: 30px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-badge {
        top: 15px;
        left: 15px;
        font-size: 0.75rem;
        padding: 5px 12px;
    }
}