/* ===============================
   PRODUCT ENHANCEMENTS - CLEANED
   No duplications, focused on product pages
================================ */

/* ===============================
   BREADCRUMB STYLES
================================ */

.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* ===============================
   PRODUCT DETAIL IMAGE
================================ */

.product-image-large {
    max-width: 100%;
    max-height: 500px;
    width: 100%;
    object-fit: contain;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

/* ===============================
   INFO CARDS (HSN, MOQ, Origin)
================================ */

.info-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color, #0d6efd);
    display: block;
    margin-bottom: 0.5rem;
}

.info-card small {
    font-size: 0.85rem;
    color: var(--text-light, #666666);
    display: block;
    margin-bottom: 0.25rem;
}

.info-card strong {
    font-size: 1.1rem;
    color: var(--dark-color, #212529);
    font-weight: 600;
}

/* ===============================
   FEATURE LIST
================================ */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark, #333333);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color, #198754);
    font-weight: bold;
    font-size: 1.3rem;
    top: 0.6rem;
}

/* ===============================
   SECTION HEADERS
================================ */

.product-detail-section h4 {
    font-weight: 600;
    color: var(--dark-color, #212529);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-detail-section h4 i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* ===============================
   SPECIFICATIONS TABLE
================================ */

.product-detail-section .table {
    margin-bottom: 0;
    border-radius: 8px;
    overflow: hidden;
}

.product-detail-section .table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 40%;
    color: var(--dark-color, #212529);
    padding: 0.75rem;
}

.product-detail-section .table td {
    background: white;
    padding: 0.75rem;
    color: var(--text-dark, #333333);
}

.product-detail-section .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* ===============================
   ACTION BUTTONS
================================ */

.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-lg i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-success:hover {
    background-color: #157347;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color, #6c757d);
    color: white;
}

/* ===============================
   BACK TO CATEGORY BUTTON
================================ */

#backToCategoryBtn,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#backToCategoryBtn i,
.btn-back i {
    transition: transform 0.3s ease;
}

#backToCategoryBtn:hover i,
.btn-back:hover i {
    transform: translateX(-3px);
}

/* ===============================
   PRODUCT DESCRIPTION
================================ */

.product-description {
    line-height: 1.8;
    color: var(--text-dark, #333333);
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description h4,
.product-description h5 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color, #212529);
}

/* ===============================
   STICKY PRODUCT IMAGE (Desktop)
================================ */

@media (min-width: 992px) {
    .product-detail-image-container {
        position: sticky;
        top: 100px;
    }
}

/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {
    .product-image-large {
        max-height: 350px !important;
        padding: 15px !important;
    }

    .info-card {
        margin-bottom: 0.75rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }

    .feature-list li {
        font-size: 0.95rem;
        padding: 0.6rem 0 0.6rem 1.75rem;
    }
}

@media (max-width: 480px) {
    .product-image-large {
        max-height: 300px !important;
        padding: 10px !important;
    }

    .info-card {
        padding: 1rem;
    }
}

/* ===============================
   LOADING STATE
================================ */

.product-image img[src=""],
.product-image-large[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===============================
   PRINT STYLES
================================ */

@media print {
    .navbar,
    .whatsapp-float,
    .footer,
    .btn,
    .product-actions {
        display: none !important;
    }

    .page-header {
        background: none;
        color: black;
        padding: 20px 0;
    }

    .product-image-large {
        max-height: 400px;
        page-break-inside: avoid;
    }
}

/* ===============================
   ACCESSIBILITY
================================ */

.product-card:focus,
.btn:focus {
    outline: 2px solid var(--primary-color, #0d6efd);
    outline-offset: 2px;
}

/* ===============================
   ANIMATION
================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* ===============================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-image img,
    .info-card,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}