/* ============================================
   Product Details Page Redesign - Noon.com Style
   ============================================ */

/* Universal Overflow Prevention - Scoped to Product Details */
.product-details-wrapper * {
    box-sizing: border-box;
}

.product-details-wrapper .container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ============================================
   1. Two-Column Grid Layout
   ============================================ */
.product-details-wrapper {
    background: #ffffff;
    padding: 20px 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 58% 40%;
    gap: 30px;
    margin-bottom: 40px;
    max-width: 100%;
    overflow: hidden;
}

.product-image-column {
    position: relative;
    min-width: 0;
    overflow: visible;
}

.product-info-column {
    position: relative;
    min-width: 0;
    overflow: visible;
}

/* ============================================
   Breadcrumb Navigation Redesign
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    background: #f9fafb;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    list-style: none;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: #2563eb;
    background: #e0f2fe;
}

.breadcrumb-item.active {
    color: #1a365d;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #cbd5e0;
    font-weight: 400;
}

.breadcrumb-item:first-child a {
    padding-left: 0;
}

/* ============================================
   2. Vertical Thumbnail Gallery
   ============================================ */
.image-gallery-vertical {
    display: flex;
    flex-direction: row;
    gap: 15px;
    height: 550px;
}

.thumbnails-vertical {
    display: flex;
    flex-direction: column;
    width: 80px;
    overflow-y: auto;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.thumbnails-vertical::-webkit-scrollbar {
    width: 6px;
}

.thumbnails-vertical::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.thumbnails-vertical::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.thumbnails-vertical::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.thumbnail-item:hover {
    border-color: #f8e404;
    box-shadow: 0 2px 8px rgba(248, 228, 4, 0.3);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #f8e404;
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(248, 228, 4, 0.5);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.main-image-display {
    flex: 1;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button i {
    color: #ffffff;
    font-size: 32px;
    margin-left: 5px;
}

/* ============================================
   3. Sticky Add-to-Cart Bar
   ============================================ */
.sticky-cart-bar {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1030;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 0;
    border-top: 3px solid #f8e404;
}

.sticky-cart-bar.visible {
    bottom: 0;
}

.sticky-cart-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.sticky-product-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-product-info {
    flex: 1;
    min-width: 0;
}

.sticky-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.sticky-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
}

.sticky-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8e404;
    color: #1a365d;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sticky-qty-btn:hover {
    background: #e6d203;
    transform: scale(1.05);
}

.sticky-qty-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
}

.sticky-actions {
    display: flex;
    gap: 12px;
}

.sticky-add-cart-btn,
.sticky-buy-now-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sticky-add-cart-btn {
    background: #f8e404;
    color: #1a365d;
}

.sticky-add-cart-btn:hover {
    background: #e6d203;
    box-shadow: 0 4px 12px rgba(248, 228, 4, 0.4);
}

.sticky-buy-now-btn {
    background: #1a365d;
    color: #ffffff;
}

.sticky-buy-now-btn:hover {
    background: #0f1f3d;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.4);
}

/* ============================================
   4. Product Info Section Styling
   ============================================ */
.product-title-section {
    margin-bottom: 20px;
}

.product-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
    line-height: 1.3;
    margin-bottom: 12px;
}

.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-model-code {
    font-size: 14px;
    color: #64748b;
}

.meta-divider {
    width: 2px;
    height: 16px;
    background: #e2e8f0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-display:hover {
    border-color: #f8e404;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rating-star {
    color: #f8e404;
    font-size: 16px;
}

.rating-value {
    font-weight: 600;
    color: #1a365d;
}

.rating-count {
    color: #64748b;
    font-size: 14px;
}

.stock-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #065f46;
}

.stock-badge.out-stock {
    background: #fee2e2;
    color: #991b1b;
}

.stock-badge.limited-stock {
    background: #fef3c7;
    color: #92400e;
}

/* ============================================
   4. Price Section - Redesigned with Clear Hierarchy
   ============================================ */
.price-section-redesigned {
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.price-container-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.price-container-modern:hover {
    border-color: #f8e404;
    box-shadow: 0 6px 20px rgba(248, 228, 4, 0.15);
}

/* ============================================
   Main Price Row
   ============================================ */
.price-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.current-price-display {
    flex: 1;
    min-width: 0;
}

.final-price {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #1a365d !important;
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    display: block;
}

/* Discount Badge */
.discount-badge-large {
    flex-shrink: 0;
}

.discount-percent,
.discount-amount {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    animation: pulse-discount 2.5s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes pulse-discount {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
    }
}

/* ============================================
   Original Price Row
   ============================================ */
.original-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.was-price-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.was-label-text {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-transform: capitalize;
}

.original-price-striked {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
    text-decoration-thickness: 2.5px;
    text-decoration-color: #ef4444;
}

.savings-badge {
    flex-shrink: 0;
}

.savings-amount {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #6ee7b7;
}

/* ============================================
   Price Features Row
   ============================================ */
.price-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.price-feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.price-feature-badge.guaranteed {
    color: #1e40af;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.price-feature-badge.guaranteed i {
    color: #2563eb;
    font-size: 16px;
}

.price-feature-badge.min-order {
    color: #92400e;
    background: #fed7aa;
    border: 1px solid #fdba74;
}

.price-feature-badge.min-order i {
    color: #c2410c;
    font-size: 16px;
}

/* ============================================
   RTL Support for Price Section (Arabic)
   ============================================ */
[dir="rtl"] .price-main-row {
    direction: rtl;
}

[dir="rtl"] .original-price-row {
    direction: rtl;
}

[dir="rtl"] .price-features-row {
    direction: rtl;
}

[dir="rtl"] .was-price-group {
    flex-direction: row-reverse;
}

[dir="rtl"] .savings-badge {
    text-align: right;
}

[dir="rtl"] .price-feature-badge {
    flex-direction: row-reverse;
}

/* Legacy Price Section (keep for backward compatibility) */
.price-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a365d;
}

.discount-badge {
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================
   5. Delivery Info Section
   ============================================ */
.delivery-info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
}

.delivery-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.delivery-icon-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 10px;
}

.delivery-icon-badge img {
    max-width: 45px;
    max-height: 45px;
}

.delivery-details h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 5px 0;
}

.delivery-details p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.delivery-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feature-icon {
    color: #059669;
    font-size: 20px;
}

.feature-text {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

/* ============================================
   6. Variations Section (Color/Size)
   ============================================ */
.variations-section {
    margin-bottom: 25px;
}

.variation-group {
    margin-bottom: 20px;
}

.variation-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-guide-link {
    font-size: 13px;
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
}

.size-guide-link:hover {
    color: #2563eb;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-option input[type="radio"]:checked + .color-swatch {
    border-color: #f8e404;
    box-shadow: 0 0 0 2px rgba(248, 228, 4, 0.3);
}

.color-swatch i {
    color: #ffffff;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option input[type="radio"]:checked + .color-swatch i {
    opacity: 1;
}

/* ============================================
   Modern Color Selection with Images
   ============================================ */
.selected-color-name {
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.color-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-option-modern {
    position: relative;
    cursor: pointer;
}

.color-radio-modern {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.color-image-label {
    display: block;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.color-image-label:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--selected-color, #f8e404);
}

/* Product Image in Color Option */
.color-product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.color-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    padding: 8px;
}

.color-image-label:hover .color-product-image img {
    transform: scale(1.05);
    padding: 4px;
}

/* Custom image badge for colors with specific images */
.custom-image-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Highlight colors with custom images */
.color-product-image.has-custom-image {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.color-product-image.default-image {
    border-color: #e5e7eb;
}

/* Color Indicator Bar at Bottom */
.color-indicator-bar {
    height: 8px;
    width: 100%;
    position: relative;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-image-label:hover .color-indicator-bar {
    height: 24px;
}

.color-name-tag {
    font-size: 10px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.color-image-label:hover .color-name-tag {
    opacity: 1;
}

/* Check Mark for Selected Color */
.color-check-mark {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-check-mark i {
    color: #10b981;
    font-size: 16px;
}

/* Active State */
.color-option-modern.active .color-image-label,
.color-radio-modern:checked + .color-image-label {
    border-color: var(--selected-color, #f8e404);
    border-width: 4px;
    box-shadow: 0 0 0 2px rgba(248, 228, 4, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.color-option-modern.active .color-check-mark,
.color-radio-modern:checked + .color-image-label .color-check-mark {
    opacity: 1;
    transform: scale(1);
}

.color-option-modern.active .color-indicator-bar,
.color-radio-modern:checked + .color-image-label .color-indicator-bar {
    height: 24px;
}

.color-option-modern.active .color-name-tag,
.color-radio-modern:checked + .color-image-label .color-name-tag {
    opacity: 1;
}

/* Pulse Animation on Active */
@keyframes pulse-border {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(248, 228, 4, 0.3),
            0 8px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(248, 228, 4, 0.5),
            0 8px 20px rgba(0, 0, 0, 0.15);
    }
}

.color-option-modern.active .color-image-label {
    animation: pulse-border 2s ease-in-out infinite;
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s ease;
    background: #ffffff;
}

.size-option input[type="radio"]:checked + .size-label {
    border-color: #f8e404;
    background: #fffbeb;
    color: #1a365d;
}

.size-label:hover {
    border-color: #f8e404;
}

/* Quantity Selector */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 12px;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 15px;
    background: #ffffff;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8e404;
    color: #1a365d;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #e6d203;
    transform: scale(1.05);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
}

/* ============================================
   7. Action Buttons Section
   ============================================ */
.action-buttons-section {
    margin-bottom: 25px;
}

.primary-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 56px;
}

.add-to-cart-btn {
    background: #f8e404 !important;
    color: #1a365d !important;
}

.add-to-cart-btn:hover {
    background: #e6d203 !important;
    box-shadow: 0 4px 16px rgba(248, 228, 4, 0.4);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.buy-now-btn {
    background: #1a365d;
    color: #ffffff;
    height: 56px;
}

.buy-now-btn:hover {
    background: #0f1f3d;
    box-shadow: 0 4px 16px rgba(26, 54, 93, 0.4);
    transform: translateY(-2px);
}

.secondary-actions {
    display: flex;
    gap: 10px;
}

.wishlist-btn,
.compare-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #334155;
}

.wishlist-btn:hover,
.compare-btn:hover {
    border-color: #f8e404;
    background: #fffbeb;
}

.wishlist-btn.active {
    border-color: #dc2626;
    color: #dc2626;
}

/* ============================================
   8. Tabbed Content Section
   ============================================ */
.product-tabs-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-item {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-item:hover {
    color: #1a365d;
    background: #f9fafb;
}

.tab-item.active {
    color: #1a365d;
    border-bottom-color: #f8e404;
    background: #fffbeb;
}

.tab-content-wrapper {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content-wrapper.active {
    display: block;
}

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

/* ============================================
   9. Specifications Table
   ============================================ */
.specifications-section {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.spec-category {
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.spec-category-header {
    padding: 15px 20px;
    background: #1a365d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.spec-category-header:hover {
    background: #0f1f3d;
}

.spec-category-header i {
    transition: transform 0.3s ease;
}

.spec-category.collapsed .spec-category-header i {
    transform: rotate(-90deg);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

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

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

.specs-table td {
    padding: 15px 20px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #1a365d;
    width: 35%;
}

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

/* ============================================
   10. Reviews Section
   ============================================ */
.reviews-section {
    background: #ffffff;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 30px;
}

[data-theme="dark"] .reviews-summary {
    background: var(--dark-bg-secondary);
}

[data-theme="dark"] .overall-rating-box {
    background: var(--dark-bg-primary);
}

[data-theme="dark"] .overall-rating-number {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .overall-rating-stars {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .filter-btn {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .filter-btn:hover {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .filter-btn.active {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .sort-select {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .sort-select:hover {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .sort-select.active {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-reply {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
    margin-bottom: 10px;
}

[data-theme="dark"] .reply-header {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .reply-content {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .reply-textarea {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .reply-textarea:focus {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .reply-form-actions {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .reply-form-actions .btn-sm {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .cancel-reply-btn {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .cancel-reply-btn:hover {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-card {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-card:hover {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-header {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-action-btn {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-action-btn:hover {
    background: var(--dark-bg-secondary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .review-action-btn.active {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .overall-rating-box {
    background: var(--dark-bg-primary);
    color: var(--dark-text-primary);
}

[data-theme="dark"] .overall-rating-number {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .overall-rating-stars {
    color: var(--dark-text-primary);
}

.overall-rating-box {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.overall-rating-number {
    font-size: 56px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.overall-rating-stars {
    font-size: 24px;
    color: #f8e404;
    margin-bottom: 10px;
}

.overall-rating-count {
    font-size: 14px;
    color: #64748b;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-stars-label {
    min-width: 60px;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #f8e404;
    transition: width 0.5s ease;
}

.rating-count {
    min-width: 50px;
    text-align: right;
    font-size: 14px;
    color: #64748b;
}

.reviews-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #f8e404;
    background: #fffbeb;
}

.filter-btn.active {
    border-color: #f8e404;
    background: #f8e404;
    color: #1a365d;
}

.reviews-sort {
    margin-left: auto;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8e404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a365d;
    font-size: 18px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 3px;
}

.review-date {
    font-size: 13px;
    color: #64748b;
}

.review-rating {
    display: flex;
    gap: 3px;
    color: #f8e404;
}

.review-content {
    margin-bottom: 15px;
}

.review-text {
    color: #334155;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    transition: all 0.3s ease;
}

.review-action-btn:hover {
    border-color: #cbd5e0;
    background: #e2e8f0;
}

/* Review Reply Styles */
.review-reply {
    background: #f8f9fa;
    border-left: 3px solid #4caf50;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 8px;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.reply-header i {
    color: #4caf50;
}

.reply-author {
    font-weight: 600;
    color: #2d3748;
}

.reply-date {
    color: #718096;
    font-size: 12px;
    margin-left: auto;
}

.reply-content {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

/* Reply Form Styles */
.reply-form-container {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.reply-textarea {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
}

.reply-textarea:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reply-form-actions .btn-sm {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.cancel-reply-btn {
    background: #e2e8f0 !important;
    border: none;
    color: #4a5568 !important;
}

.cancel-reply-btn:hover {
    background: #cbd5e0 !important;
}

/* ============================================
   11. Overview Tab Content
   ============================================ */
.overview-section {
    background: #ffffff;
}

.overview-highlights {
    margin-bottom: 30px;
}

.highlights-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
}

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

.highlights-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
}

.highlights-list li:last-child {
    border-bottom: none;
}

.highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #059669;
    font-weight: 700;
    font-size: 18px;
}

.product-description {
    padding: 25px;
    background: #f9fafb;
    color: #334155;
    line-height: 1.8;
}

/* ============================================
   12. Seller Info Card
   ============================================ */
.seller-info-card {
    position: sticky;
    top: 20px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.seller-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.seller-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-details {
    flex: 1;
    min-width: 0;
}

.seller-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.seller-rating i {
    color: #f8e404;
}

.seller-rating-value {
    font-weight: 600;
    color: #1a365d;
}

.seller-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
}

.visit-store-btn {
    width: 100%;
    padding: 14px;
    background: #f8e404;
    color: #1a365d;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visit-store-btn:hover {
    background: #e6d203;
    box-shadow: 0 4px 12px rgba(248, 228, 4, 0.4);
}

/* ============================================
   13. Related Products Section
   ============================================ */
.related-products-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

/* Add margin between last section and footer */
.related-products-section:last-of-type {
    margin-bottom: 80px;
    padding-bottom: 40px;
}

/* Ensure main container has proper bottom spacing */
.product-details-container {
    padding-bottom: 60px;
}

/* Additional spacing for the main section */
.product-details-main {
    margin-bottom: 40px;
}

/* Responsive spacing adjustments */
@media (max-width: 768px) {
    .related-products-section:last-of-type {
        margin-bottom: 60px;
        padding-bottom: 30px;
    }

    .product-details-container {
        padding-bottom: 40px;
    }

    .product-details-main {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .related-products-section:last-of-type {
        margin-bottom: 50px;
        padding-bottom: 25px;
    }

    .product-details-container {
        padding-bottom: 30px;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #2563eb;
    gap: 10px;
}

/* ============================================
   Custom Products Slider (No Owl Carousel)
   ============================================ */
.custom-slider-wrapper {
    position: relative;
    padding: 0 50px;
}

.custom-products-slider {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-item {
    flex: 0 0 auto;
    width: calc((100% - 75px) / 6); /* 6 items per view on desktop */
    padding: 10px;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
    background: #f8e404;
    border-color: #f8e404;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(248, 228, 4, 0.3);
}

.slider-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.slider-nav-btn i {
    font-size: 16px;
    color: #1a365d;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Touch/Drag Support */
.slider-track.dragging {
    transition: none;
    cursor: grabbing;
}

.slider-track:not(.dragging) {
    cursor: grab;
}

/* Responsive Breakpoints */
@media (max-width: 1399px) {
    .slider-item {
        width: calc((100% - 60px) / 5); /* 5 items */
    }
}

@media (max-width: 1199px) {
    .slider-item {
        width: calc((100% - 45px) / 4); /* 4 items */
    }
}

@media (max-width: 991px) {
    .slider-item {
        width: calc((100% - 30px) / 3); /* 3 items */
    }

    .custom-slider-wrapper {
        padding: 0 40px;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .slider-item {
        width: calc((100% - 15px) / 2); /* 2 items */
    }

    .slider-track {
        gap: 10px;
    }

    .custom-slider-wrapper {
        padding: 0 35px;
    }

    .slider-nav-btn {
        width: 35px;
        height: 35px;
    }

    .slider-nav-btn i {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .custom-slider-wrapper {
        padding: 0 30px;
    }

    .slider-nav-btn {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   14. Size Guide Modal
   ============================================ */
.size-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1040;
    align-items: center;
    justify-content: center;
}

.size-guide-modal.active {
    display: flex;
}

.size-guide-content {
    background: #ffffff;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.size-guide-header {
    padding: 20px 25px;
    background: #1a365d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.size-guide-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.size-guide-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.size-guide-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.size-guide-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.size-chart-table th,
.size-chart-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.size-chart-table th {
    background: #f9fafb;
    font-weight: 700;
    color: #1a365d;
}

.size-chart-table tbody tr:hover {
    background: #f9fafb;
}

/* ============================================
   15. Responsive Design
   ============================================ */

/* Large Tablet and Below (1200px) */
@media (max-width: 1200px) {
    .product-details-grid {
        grid-template-columns: 55% 43%;
        gap: 25px;
    }

    .product-main-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .final-price {
        font-size: 40px !important;
    }
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .seller-info-card {
        position: relative;
        top: 0;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Image Gallery Adjustments */
    .image-gallery-vertical {
        height: 500px;
    }

    .main-image-display {
        min-height: 450px;
    }

    /* Product Info */
    .product-main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    /* Quantity Selector */
    .quantity-wrapper {
        max-width: 160px;
    }

    /* Action Buttons */
    .secondary-actions {
        justify-content: space-between;
        gap: 12px;
    }

    .action-btn {
        padding: 12px;
        min-width: 48px;
    }
}

/* Mobile (<768px) */
@media (max-width: 768px) {
    /* Container Spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .product-details-wrapper {
        padding: 15px 0;
    }

    /* Breadcrumb */
    .breadcrumb {
        padding: 10px 12px;
        margin-bottom: 15px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-radius: 8px;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    }

    .breadcrumb::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }

    .breadcrumb-item {
        font-size: 12px;
        flex-shrink: 0;
    }

    .breadcrumb-item a {
        padding: 3px 6px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 6px;
        font-size: 12px;
    }

    /* Image Gallery */
    .image-gallery-vertical {
        flex-direction: column-reverse;
        height: auto;
        gap: 12px;
    }

    .thumbnails-vertical {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        gap: 8px;
        padding-bottom: 5px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e0 #f7fafc;
    }

    .thumbnails-vertical::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .main-image-display {
        min-height: 350px;
        height: 350px;
        border-radius: 12px;
    }

    .main-image-display img {
        object-fit: contain;
    }

    /* Zoom Badge - Hide on Mobile */
    .zoom-badge {
        display: none;
    }

    /* Video Badge */
    .video-badge {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Typography */
    .product-main-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .current-price {
        font-size: 22px;
    }

    /* Rating Section */
    .rating-badge {
        font-size: 13px;
        padding: 6px 10px;
    }

    .rating-stars {
        gap: 3px;
    }

    .rating-stars i {
        font-size: 14px;
    }

    /* Price Section Redesigned - Mobile */
    .price-container-modern {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .price-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .current-price-display {
        width: 100%;
    }

    .final-price {
        font-size: 32px !important;
    }

    .discount-percent,
    .discount-amount {
        font-size: 20px;
        padding: 8px 16px;
    }

    .original-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
    }

    .was-price-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    .was-label-text {
        font-size: 13px;
    }

    .original-price-striked {
        font-size: 18px !important;
    }

    .savings-badge {
        width: 100%;
    }

    .savings-amount {
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    .price-features-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .price-feature-badge {
        width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }

    /* Modern Color Selection - Mobile */
    .color-options-modern {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .color-product-image img {
        padding: 5px;
    }

    .color-indicator-bar {
        height: 5px;
    }

    .color-check-mark {
        width: 22px;
        height: 22px;
        top: 5px;
        right: 5px;
    }

    .color-check-mark i {
        font-size: 12px;
    }

    /* Variant Selection */
    .variant-options {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .variant-option-box {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Quantity and Actions Section */
    .quantity-actions-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .quantity-wrapper {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .qty-btn,
    .qty-input {
        height: 48px;
        font-size: 16px;
    }

    .qty-btn {
        width: 48px;
    }

    .qty-input {
        width: 60px;
    }

    /* Sticky Bar */
    .sticky-cart-bar {
        padding: 12px 15px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    }

    .sticky-cart-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sticky-product-info {
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    .sticky-product-title {
        font-size: 14px;
    }

    .sticky-product-price {
        font-size: 18px;
    }

    .sticky-actions {
        flex: 1 1 100%;
        gap: 10px;
    }

    .sticky-add-cart-btn,
    .sticky-buy-now-btn {
        flex: 1;
        padding: 12px 14px;
        font-size: 14px;
        min-height: 48px;
    }

    /* Primary Actions */
    .primary-actions {
        flex-direction: column;
        gap: 10px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        height: 54px;
        font-size: 16px;
        font-weight: 600;
    }

    .add-to-cart-btn {
        background: #f8e404 !important;
        color: #1a365d !important;
    }

    /* Secondary Actions */
    .secondary-actions {
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .action-btn {
        min-width: 48px;
        height: 48px;
        padding: 12px;
        border-radius: 10px;
    }

    .action-btn i {
        font-size: 18px;
    }

    /* Tabs */
    .product-tabs-nav {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
    }

    .product-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        padding: 12px 18px;
        font-size: 14px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Tab Content */
    .tab-content-wrapper {
        padding: 20px 15px;
    }

    /* Rich Content */
    .rich-editor-html-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .rich-editor-html-content img {
        max-width: 100%;
        height: auto;
    }

    /* Delivery Section */
    .delivery-info-section {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .delivery-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .delivery-feature {
        padding: 12px;
    }

    .delivery-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Seller Card */
    .seller-info-card {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .seller-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .seller-stat {
        padding: 10px;
    }

    /* Reviews Section */
    .reviews-summary {
        padding: 16px;
    }

    .review-item {
        padding: 16px;
        margin-bottom: 12px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }

    .reviewer-name {
        font-size: 14px;
    }

    /* Section Title */
    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Frequently Bought Together - Mobile */
    .frequently-bought-together-section {
        margin-top: 20px;
        padding: 16px;
        border-radius: 12px;
    }

    .fbt-section-header {
        margin-bottom: 16px;
    }

    .fbt-section-title {
        font-size: 18px;
    }

    .fbt-carousel {
        gap: 10px;
        padding: 10px 5px;
    }

    .fbt-product-card {
        min-width: 140px;
        padding: 10px;
    }

    .fbt-product-image {
        height: 120px;
    }

    .fbt-product-name {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .fbt-product-price {
        font-size: 14px;
    }

    .fbt-bundle-action {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }

    .fbt-bundle-details {
        width: 100%;
        text-align: center;
    }

    .fbt-bundle-price {
        font-size: 22px;
    }

    .fbt-buy-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Small Mobile (<480px) */
@media (max-width: 480px) {
    /* Tighter Spacing */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-details-grid {
        gap: 15px;
    }

    .product-details-wrapper {
        padding: 12px 0;
    }

    /* Cards and Sections */
    .price-section,
    .delivery-info-section,
    .seller-info-card {
        padding: 14px;
        border-radius: 10px;
    }

    .price-container-modern {
        padding: 14px;
    }

    /* Image Gallery */
    .main-image-display {
        min-height: 300px;
        height: 300px;
    }

    .thumbnail-item {
        width: 55px;
        height: 55px;
    }

    /* Typography */
    .product-main-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .final-price {
        font-size: 28px !important;
    }

    .discount-percent,
    .discount-amount {
        font-size: 18px;
        padding: 6px 14px;
    }

    /* Tabs */
    .tab-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tab-content-wrapper {
        padding: 16px 12px;
    }

    /* Section Titles */
    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .fbt-section-title {
        font-size: 16px;
    }

    /* Buttons */
    .add-to-cart-btn,
    .buy-now-btn {
        height: 50px;
        font-size: 15px;
    }

    .action-btn {
        min-width: 44px;
        height: 44px;
    }

    /* Color Options */
    .color-options-modern {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 8px;
    }

    /* Variant Options */
    .variant-options {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .variant-option-box {
        padding: 8px 6px;
        font-size: 12px;
    }

    /* Quantity Selector */
    .qty-btn,
    .qty-input {
        height: 44px;
        font-size: 15px;
    }

    .qty-btn {
        width: 44px;
    }

    .qty-input {
        width: 55px;
    }

    /* FBT Section */
    .fbt-product-card {
        min-width: 130px;
        padding: 8px;
    }

    .fbt-product-image {
        height: 110px;
    }

    .fbt-product-name {
        font-size: 12px;
    }

    .fbt-product-price {
        font-size: 13px;
    }

    .fbt-bundle-price {
        font-size: 20px;
    }

    .fbt-buy-button {
        padding: 10px 16px;
        font-size: 14px;
    }

    /* Sticky Bar */
    .sticky-cart-bar {
        padding: 10px 12px;
    }

    .sticky-product-title {
        font-size: 13px;
    }

    .sticky-product-price {
        font-size: 16px;
    }

    .sticky-add-cart-btn,
    .sticky-buy-now-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Delivery Features */
    .delivery-feature {
        padding: 10px;
    }

    .delivery-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .delivery-feature-title {
        font-size: 13px;
    }

    .delivery-feature-desc {
        font-size: 12px;
    }

    /* Reviews */
    .review-item {
        padding: 14px;
    }

    .reviewer-avatar {
        width: 36px;
        height: 36px;
    }

    .reviewer-name {
        font-size: 13px;
    }

    .review-text {
        font-size: 13px;
    }
}

/* ============================================
   16. Utility Classes
   ============================================ */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.text-center {
    text-align: center !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Print Styles */
@media print {
    .sticky-cart-bar,
    .secondary-actions,
    .product-tabs-nav,
    .reviews-filters {
        display: none !important;
    }
}
