/* ========================================
   Product Details Enhanced Styles
   ======================================== */

/* Enhanced Pricing Display */
.product-pricing-enhanced {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.price-main {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    line-height: 1.2;
}

.price-mrp {
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-savings {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.price-savings-amount {
    display: block;
    color: #28a745;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.trust-badge i {
    font-size: 1.1rem;
    color: #28a745;
}

.trust-badge.badge-authentic i {
    color: #28a745;
}

.trust-badge.badge-secure i {
    color: #007bff;
}

.trust-badge.badge-returns i {
    color: #ffc107;
}

.trust-badge.badge-delivery i {
    color: #17a2b8;
}

/* Product Highlights */
.product-highlights {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.product-highlights h6 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.product-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-highlights li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Delivery Information Enhanced */
.delivery-info-enhanced {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.delivery-info-enhanced h6 {
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.delivery-estimate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0d47a1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.delivery-estimate i {
    color: #2196f3;
    font-size: 1.2rem;
}

.delivery-details {
    font-size: 0.9rem;
    color: #424242;
    margin-top: 0.5rem;
}

/* Product Specifications Table */
.product-specs {
    margin: 2rem 0;
}

.product-specs h5 {
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.specs-table tr:nth-child(even) {
    background: #f8f9fa;
}

.specs-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 35%;
    background: #f8f9fa;
}

.specs-table td:last-child {
    color: #212529;
}

/* Image Zoom Effect */
.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
}

.main-image-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.main-image-container:hover img {
    transform: scale(1.1);
}

.image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.image-zoom-overlay.active {
    display: flex;
}

.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Sticky Add to Cart Bar (Mobile) */
.sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    border-top: 2px solid #ffc107;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sticky-cart-bar.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-cart-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

.sticky-cart-btn {
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Enhanced Buttons */
.btn-add-cart-enhanced {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
}

.btn-add-cart-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffca28 0%, #ffa726 100%);
}

.btn-whatsapp-enhanced {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #2fe074 0%, #14a085 100%);
    color: white;
}

/* Collapsible Sections */
.collapsible-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.collapsible-header {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    user-select: none;
}

.collapsible-header:hover {
    background: #e9ecef;
}

.collapsible-header h6 {
    margin: 0;
    font-weight: 700;
    color: #212529;
}

.collapsible-icon {
    transition: transform 0.3s ease;
    color: #6c757d;
}

.collapsible-section.active .collapsible-icon {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.active .collapsible-content {
    max-height: 1000px;
}

.collapsible-body {
    padding: 1.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .price-main {
        font-size: 1.5rem;
    }

    .price-mrp {
        font-size: 1rem;
    }

    .price-savings {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .product-highlights li {
        font-size: 0.9rem;
    }

    .specs-table td {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .specs-table td:first-child {
        width: 40%;
    }

    .btn-add-cart-enhanced,
    .btn-whatsapp-enhanced {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Accessibility */
.trust-badge:focus,
.collapsible-header:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .sticky-cart-bar,
    .btn-add-cart-enhanced,
    .btn-whatsapp-enhanced {
        display: none !important;
    }
}