/* ========================================
   PRODUCT DETAILS PAGE STYLES
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #F26B1D;
}

.breadcrumb span {
    color: #adb5bd;
}

.breadcrumb .current {
    color: #212529;
    font-weight: 500;
}

/* Product Details Container */
.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Image Section */
.product-image-section {
    position: relative;
}

.main-image-container {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover .main-product-image {
    transform: scale(1.05);
}

/* Stock Badges */
.out-of-stock-badge,
.low-stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

.out-of-stock-badge {
    background-color: #dc3545;
    color: white;
}

.low-stock-badge {
    background-color: #ffc107;
    color: #000;
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-tag {
    display: inline-block;
    width: fit-content;
    padding: 6px 12px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.3;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-price {
    font-size: 36px;
    font-weight: 700;
    color: #F26B1D;
}

.price-unit {
    font-size: 14px;
    color: #6c757d;
}

/* Stock Info */
.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #d1f2eb;
    border-radius: 8px;
    width: fit-content;
}

.stock-icon {
    width: 20px;
    height: 20px;
    stroke: #0f5132;
}

.stock-icon.out {
    stroke: #dc3545;
}

.in-stock {
    color: #0f5132;
    font-weight: 500;
    font-size: 14px;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 500;
    font-size: 14px;
}

.stock-info:has(.out-of-stock) {
    background-color: #f8d7da;
}

/* Product Description */
.product-description-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px 0;
}

.product-description-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

/* Product Specifications */
.product-specs {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 15px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.spec-label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.spec-value {
    color: #212529;
    font-weight: 600;
    font-size: 14px;
}

/* Action Buttons */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.add-to-cart-btn-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #F26B1D;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn-large svg {
    width: 20px;
    height: 20px;
}

.add-to-cart-btn-large:hover {
    background-color: #d85a15;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 107, 29, 0.3);
}

.add-to-cart-btn-large.disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.add-to-cart-btn-large.disabled:hover {
    background-color: #adb5bd;
    transform: none;
    box-shadow: none;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-btn:hover {
    background-color: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Related Products Section */
.related-products-section {
    margin-top: 60px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 30px 0;
    text-align: center;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.related-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-product-category {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.related-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #F26B1D;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-details-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .breadcrumb-content {
        font-size: 12px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 28px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-details-container {
        padding: 20px 15px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 24px;
    }

    .add-to-cart-btn-large,
    .whatsapp-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}