/* =====================================================
   AUTO-SCROLLABLE PRODUCT CAROUSEL — NEUMORPHIC DESIGN
   ===================================================== */


/* ─── Layout ────────────────────────────────────────── */

.scroller-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    padding: 2rem;
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroller-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    border-radius: 24px 24px 0 0;
}

.scroller-container:hover {
    transform: translateY(-2px);
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.06),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.scroller-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    box-shadow:
        inset 2px 2px 8px rgba(0, 0, 0, 0.02),
        inset -2px -2px 8px rgba(255, 255, 255, 0.8);
}

.scroller-track {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    will-change: scroll-position;
}

.scroller-track::-webkit-scrollbar {
    display: none;
}

.scroller-item {
    flex: 0 0 auto;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.scroller-item:hover {
    transform: scale(1.02);
    z-index: 2;
}


/* ─── Controls ──────────────────────────────────────── */

.scroller-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroller-container:hover .scroller-controls {
    opacity: 1;
}

.scroller-controls .scroller-prev {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}

.scroller-controls .scroller-next {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: all;
}

.scroller-controls .scroller-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.scroller-btn {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: all;
    margin: 0 0.75rem;
    box-shadow:
        0 8px 16px rgba(59, 130, 246, 0.1),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    font-size: 1.2rem;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.scroller-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
    transition: left 0.6s ease;
}

.scroller-btn:hover::before {
    left: 100%;
}

.scroller-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.3),
        0 6px 12px rgba(59, 130, 246, 0.15),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
}

.scroller-btn:active  { transform: scale(0.95); }
.scroller-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }


/* ─── Indicators & Progress ─────────────────────────── */

.scroller-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.scroller-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroller-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.scroller-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
}


/* ─── Product Card ──────────────────────────────────── */

.scroller-product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 1px 1px 0 rgba(255, 255, 255, 0.9),
        inset -1px -1px 0 rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(8px);
}

.scroller-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroller-product-card:hover::before {
    opacity: 1;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 200% 50%; }
}

.scroller-product-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 1px 1px 0 rgba(255, 255, 255, 0.95),
        inset -1px -1px 0 rgba(0, 0, 0, 0.02);
    border-color: rgba(255, 255, 255, 0.9);
}


/* ─── Product Image ─────────────────────────────────── */

.scroller-product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(145deg, #f8fafc, #ffffff);
}

.scroller-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1.05);
}

.scroller-product-card:hover .scroller-product-image img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

.scroller-product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    backdrop-filter: blur(5px);
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
}

.scroller-product-card:hover .scroller-product-overlay {
    opacity: 1;
    transform: translateY(0);
}


/* ─── Product Actions Overlay ───────────────────────── */
/*     Single authoritative definition — was repeated 5x */

/* Simple Clean Button Design */
.scroller-product-actions {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    padding: 1rem !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 2 !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.scroller-product-card:hover .scroller-product-actions {
opacity: 1 !important;
transform: translateY(0) !important;
}

.scroller-product-actions .btn {
    height: 40px !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.scroller-product-actions .btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
transition: left 0.6s ease;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.scroller-product-actions .btn:hover::before {
    left: 100%;
}

.scroller-wishlist-btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #ef4444 !important;
    font-size: 1rem !important;
}

.scroller-add-to-cart {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    max-width: 160px !important;
    background: #ffffff !important;
    color: #1a1f2e !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.scroller-product-actions .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.scroller-wishlist-btn:hover {
    background: #ef4444 !important;
    color: white !important;
}

.scroller-add-to-cart:hover {
    background: #1a1f2e !important;
    color: white !important;
}

.scroller-wishlist-btn:hover {
    background: linear-gradient(145deg, #ef4444, #dc2626) !important;
    border-color: #ef4444 !important;
    color: white !important;
    box-shadow:
        0 8px 24px rgba(239, 68, 68, 0.4),
        0 4px 12px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
}

.scroller-add-to-cart:hover {
    background: linear-gradient(145deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    color: white !important;
    box-shadow:
        0 8px 24px rgba(16, 185, 129, 0.4),
        0 4px 12px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-3px) scale(1.05) !important;
}


/* ─── Icon Rendering ────────────────────────────────── */
/*     Single authoritative definition — was repeated 4x */

/* Use simple text icons with proper display - handle both Font Awesome and Bootstrap */
.scroller-product-actions .btn i {
    display: inline-block !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    color: inherit !important;
    font-family: sans-serif !important;
    font-style: normal !important;
}

/* Handle Font Awesome icons */
.scroller-wishlist-btn i.fas::before {
    content: "♥" !important; /* Heart symbol */
    color: inherit !important;
}

.scroller-add-to-cart i.fas::before {
    content: "🛒" !important; /* Shopping cart emoji */
    color: inherit !important;
}

/* Handle Bootstrap icons if they appear */
.scroller-wishlist-btn i.bi::before {
    content: "♥" !important; /* Heart symbol */
    color: inherit !important;
}

.scroller-add-to-cart i.bi::before {
    content: "🛒" !important; /* Shopping cart emoji */
    color: inherit !important;
}

/* Fallback for any i element */
.scroller-wishlist-btn i::before {
    content: "♥" !important; /* Heart symbol */
    color: inherit !important;
}

.scroller-add-to-cart i::before {
    content: "🛒" !important; /* Shopping cart emoji */
    color: inherit !important;
}

.scroller-add-to-cart span {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Ensure span is visible on hover too */
.scroller-add-to-cart:hover span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
}

/* Always add text as fallback - more reliable approach */
.scroller-add-to-cart::after {
    content: "ADD TO CART" !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 8px !important;
}

/* Hide the CSS text if span exists */
.scroller-add-to-cart span:not(:empty) ~ ::after {
    display: none !important;
}


/* Dark Mode Title Centering and Readability */
.text-center.mb-5 {
    text-align: center !important;
}

.text-center.mb-5 .neumorphic-title.related-title {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.text-center.mb-5 .neumorphic-title.related-title i {
    color: #ef4444 !important;
}

.text-center.mb-5 .lead.text-muted {
    color: #d1d5db !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* DARK MODE PRODUCT INFO FIX - MAXIMUM SPECIFICITY */
html body .product-info.neumorphic-card,
body html .product-info.neumorphic-card,
div.col-lg-6 .product-info.neumorphic-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1f2e !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px 24px !important;
    padding: 1.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
}

html body .product-title,
body html .product-title,
div.col-lg-6 .product-title {
    color: #1a1f2e !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

html body .product-meta .text-muted,
body html .product-meta .text-muted,
div.col-lg-6 .product-meta .text-muted {
    color: #6b7280 !important;
    text-shadow: none !important;
}

html body .product-rating .text-muted,
body html .product-rating .text-muted,
div.col-lg-6 .product-rating .text-muted {
    color: #6b7280 !important;
    text-shadow: none !important;
}

/* DARK MODE PRICE SECTION - MAXIMUM SPECIFICITY */
html body .product-price-section .current-price,
body html .product-price-section .current-price,
div.col-lg-6 .product-price-section .current-price {
    color: #1a1f2e !important;
    text-shadow: none !important;
    font-weight: 700 !important;
}

html body .stock-info .badge.neumorphic-badge.bg-success,
body html .stock-info .badge.neumorphic-badge.bg-success,
div.col-lg-6 .stock-info .badge.neumorphic-badge.bg-success {
    background: #10b981 !important;
    color: white !important;
    text-shadow: none !important;
}

html body .stock-info .text-success,
body html .stock-info .text-success,
div.col-lg-6 .stock-info .text-success {
    color: #10b981 !important;
    text-shadow: none !important;
}

html body .neumorphic-divider,
body html .neumorphic-divider,
div.col-lg-6 .neumorphic-divider {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* PRODUCT HEADER - MAXIMUM SPECIFICITY */
html body .product-header,
body html .product-header,
div.col-lg-6 .product-header {
    margin-bottom: 1rem !important;
}

/* PRODUCT ACTIONS CONTAINER - MAXIMUM SPECIFICITY */
html body .product-actions,
body html .product-actions,
div.col-lg-6 .product-actions,
[style*="max-width: 500px"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0 auto 30px auto !important;
    max-width: 500px !important;
    width: 100% !important;
}

/* DARK MODE LABELS - MAXIMUM SPECIFICITY */
html body .product-info label[style*="color: #374151"],
body html .product-info label[style*="color: #374151"],
div.col-lg-6 .product-info label[style*="color: #374151"] {
    color: #1a1f2e !important;
    font-weight: 600 !important;
}

/* DARK MODE INPUTS - MAXIMUM SPECIFICITY */
html body .product-info input[style*="color: #374151"],
body html .product-info input[style*="color: #374151"],
div.col-lg-6 .product-info input[style*="color: #374151"] {
    color: #1a1f2e !important;
    background: #ffffff !important;
}

html body .product-info select[style*="color: #374151"],
body html .product-info select[style*="color: #374151"],
div.col-lg-6 .product-info select[style*="color: #374151"] {
    color: #1a1f2e !important;
    background: #ffffff !important;
}

/* INLINE STYLE OVERRIDE - FORCE DARK MODE - ALL ELEMENTS */
div[style*="color: #374151"] {
    color: #1a1f2e !important;
}

div[style*="background: #f9fafb"] {
    background: #ffffff !important;
}

div[style*="color: #6b7280"] {
    color: #1a1f2e !important;
}

button[style*="color: #6b7280"] {
    color: #1a1f2e !important;
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

button[style*="color: #6b7280"]:hover {
    background: #f3f4f6 !important;
    color: #1a1f2e !important;
}

input[style*="color: #374151"] {
    color: #1a1f2e !important;
    background: #ffffff !important;
}

select[style*="color: #374151"] {
    color: #1a1f2e !important;
    background: #ffffff !important;
}

span[style*="color: #6b7280"] {
    color: #1a1f2e !important;
}

/* PRODUCT CARD SPECIFIC - ALL CARDS */
.col-lg-6 .product-info.neumorphic-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1f2e !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px 24px !important;
    padding: 1.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
}

.col-lg-6 .product-title {
    color: #1a1f2e !important;
    text-shadow: none !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.col-lg-6 .product-meta .text-muted {
    color: #6b7280 !important;
    text-shadow: none !important;
}

.col-lg-6 .product-rating .text-muted {
    color: #6b7280 !important;
    text-shadow: none !important;
}
.col-lg-6 .stock-info .badge.neumorphic-badge.bg-success {
    background: #10b981 !important;
    color: white !important;
    text-shadow: none !important;
}

.col-lg-6 .stock-info .text-success {
    color: #10b981 !important;
    text-shadow: none !important;
}

.col-lg-6 .neumorphic-divider {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.col-lg-6 .product-header {
    margin-bottom: 1rem !important;
}

/* INLINE STYLE CONTAINER OVERRIDE */
div[style*="max-width: 500px"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    margin: 0 auto 30px auto !important;
    max-width: 500px !important;
    width: 100% !important;
}

/* Dark Mode Scroller Actions */
.scroller-product-actions {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(15px) !important;
}

.scroller-wishlist-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.scroller-add-to-cart {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1f2e !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.scroller-wishlist-btn:hover {
    background: #ef4444 !important;
    color: white !important;
}

.scroller-add-to-cart:hover {
    background: #1a1f2e !important;
    color: white !important;
}

/* ─── Product Info ──────────────────────────────────── */

.scroller-product-info {
    padding: 1.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 0 0 24px 24px;
    position: relative;
}

.scroller-product-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.scroller-product-title {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
    letter-spacing: normal !important;
    transition: all 0.3s ease !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.scroller-product-title a {
    color: #000000 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative;
    display: inline-block;
    font-weight: inherit !important;
    font-size: inherit !important;
}

.scroller-product-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.scroller-product-title a:hover {
    color: #3b82f6 !important;
    transform: translateX(4px) !important;
}

.scroller-product-title a:hover::after {
    width: 100%;
}

.scroller-product-description {
    color: #000000 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    flex: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    opacity: 1 !important;
    background: transparent !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative;
    text-shadow: none !important;
}

.scroller-product-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 1.2em;
    background: transparent;
    pointer-events: none;
}

.scroller-product-card:hover .scroller-product-description {
    opacity: 1 !important;
    color: #1e293b !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(139, 92, 246, 0.02)) !important;
    transform: translateY(-1px) !important;
}


/* ─── Rating Stars ──────────────────────────────────── */
/*     Single authoritative definition — was repeated 5x */

.scroller-rating-stars {
    display: flex !important;
    align-items: center !important;
    gap: 0.15rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9)) !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.scroller-rating-stars:hover {
    transform: translateY(-1px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

.scroller-rating-stars .rating-star,
.scroller-rating-stars .rating-star i {
    color: #fbbf24 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    padding: 2px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.3) !important;
}

.scroller-rating-stars .rating-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.scroller-rating-stars .rating-star:hover::before {
    width: 24px;
    height: 24px;
}

.scroller-rating-stars .rating-star:hover,
.scroller-rating-stars .rating-star:hover i {
    color: #f59e0b !important;
    transform: scale(1.3) rotate(15deg) !important;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.6) !important;
}

.scroller-rating-stars .rating-star.filled,
.scroller-rating-stars .rating-star.filled i {
    color: #f59e0b !important;
    text-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

.scroller-rating-stars .rating-count {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-left: 0.5rem !important;
    background: rgba(59, 130, 246, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
}

.scroller-rating-stars:hover .rating-count { 
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
    transform: scale(1.05) !important;
}


/* ─── Enhanced Category Badges ──────────────────────── */

.scroller-product-meta .badge {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(5px) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative;
    overflow: hidden;
}

.scroller-product-meta .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.scroller-product-meta .badge:hover::before {
    left: 100%;
}

.scroller-product-meta .badge:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.scroller-product-meta .badge.badge-primary { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)) !important; 
    color: #1d4ed8 !important; 
    border-color: rgba(59, 130, 246, 0.3) !important;
}
.scroller-product-meta .badge.badge-sale     { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)) !important;  
    color: #dc2626 !important; 
    border-color: rgba(239, 68, 68, 0.3) !important;  
}
.scroller-product-meta .badge.badge-hot      { 
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05)) !important; 
    color: #ea580c !important; 
    border-color: rgba(249, 115, 22, 0.3) !important; 
}
.scroller-product-meta .badge.badge-trending { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05)) !important; 
    color: #9333ea !important; 
    border-color: rgba(168, 85, 247, 0.3) !important; 
}
.scroller-product-meta .badge.badge-featured { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05)) !important; 
    color: #d97706 !important; 
    border-color: rgba(251, 191, 36, 0.3) !important; 
}
.scroller-product-meta .badge.badge-top-rated{ 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05)) !important;  
    color: #16a34a !important; 
    border-color: rgba(34, 197, 94, 0.3) !important;  
}
.scroller-product-meta .badge.badge-popular  { 
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05)) !important; 
    color: #db2777 !important; 
    border-color: rgba(236, 72, 153, 0.3) !important; 
}


/* ─── Animated Product Badges ───────────────────────── */

.scroller-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.scroller-product-badge .badge {
    font-size: 0.7rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.scroller-product-badge .badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.scroller-product-badge .badge:hover::before {
    left: 100%;
}

.badge-new       { 
    background: linear-gradient(135deg, #667eea, #764ba2) !important; 
    color: white !important; 
    animation: badgeSparkle 2s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-hot       { 
    background: linear-gradient(135deg, #f093fb, #f5576c) !important; 
    color: white !important; 
    animation: badgeFire 1.2s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-trending  { 
    background: linear-gradient(135deg, #4facfe, #00f2fe) !important; 
    color: white !important; 
    animation: badgeTrend 2.5s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-featured  { 
    background: linear-gradient(135deg, #fa709a, #fee140) !important; 
    color: white !important; 
    animation: badgeGlow 2.2s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-top-rated { 
    background: linear-gradient(135deg, #30cfd0, #330867) !important; 
    color: white !important; 
    animation: badgeAward 2.8s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-popular   { 
    background: linear-gradient(135deg, #a8edea, #fed6e3) !important; 
    color: #333 !important;   
    animation: badgePopular 2.3s infinite; 
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.badge-sale      { 
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important; 
    color: white !important; 
    animation: badgeSale 2s infinite; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-available { 
    background: linear-gradient(135deg, #84fab0, #8fd3f4) !important; 
    color: #333 !important;   
    animation: badgeAvailable 3.5s infinite; 
    border-color: rgba(255, 255, 255, 0.6) !important;
}
.badge-success   { 
    background: linear-gradient(135deg, #11998e, #38ef7d) !important; 
    color: white !important; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-danger    { 
    background: linear-gradient(135deg, #eb3349, #f45c43) !important; 
    color: white !important; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}
.badge-primary   { 
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important; 
    color: white !important; 
    border-color: rgba(255, 255, 255, 0.4) !important;
}

@keyframes badgeSparkle  { 
    0%,100% { 
        transform: scale(1) rotate(0deg);   
        box-shadow: 0 0 15px rgba(102,126,234,0.6), 0 0 25px rgba(102,126,234,0.3); 
    } 
    25% { transform: scale(1.05) rotate(1deg); } 
    50% { 
        transform: scale(1.08) rotate(2deg); 
        box-shadow: 0 0 25px rgba(102,126,234,0.8), 0 0 35px rgba(102,126,234,0.4); 
    } 
    75% { transform: scale(1.05) rotate(1deg); }
}
@keyframes badgeFire     { 
    0%,100% { 
        transform: scale(1) rotate(0deg);   
        box-shadow: 0 0 15px rgba(245,87,108,0.6); 
    } 
    25% { transform: scale(1.03) rotate(-1deg); } 
    50% { 
        transform: scale(1.08) rotate(1deg); 
        box-shadow: 0 0 30px rgba(240,147,251,0.8), 0 0 40px rgba(245,87,108,0.4); 
    } 
    75% { transform: scale(1.03) rotate(-1deg); }
}
@keyframes badgeTrend    { 
    0%,100% { 
        transform: translateY(0) rotate(0deg);  
        box-shadow: 0 0 15px rgba(79,172,254,0.5); 
    } 
    25% { transform: translateY(-1px) rotate(0.5deg); } 
    50% { 
        transform: translateY(-3px) rotate(1deg); 
        box-shadow: 0 0 25px rgba(79,172,254,0.7); 
    } 
    75% { transform: translateY(-1px) rotate(0.5deg); }
}
@keyframes badgeGlow     { 
    0%,100% { 
        transform: scale(1) rotate(0deg);  
        box-shadow: 0 0 15px rgba(250,112,154,0.6), 0 0 25px rgba(254,225,64,0.3); 
    } 
    25% { transform: scale(1.02) rotate(0.5deg); } 
    50% { 
        transform: scale(1.05) rotate(1deg); 
        box-shadow: 0 0 35px rgba(254,225,64,0.8), 0 0 45px rgba(250,112,154,0.4); 
    } 
    75% { transform: scale(1.02) rotate(0.5deg); }
}
@keyframes badgeAward    { 
    0%,100% { 
        transform: rotate(0deg) scale(1);    
        box-shadow: 0 0 15px rgba(48,207,208,0.6), 0 0 25px rgba(51,8,103,0.3); 
    } 
    25% { transform: rotate(2deg) scale(1.02); } 
    50% { 
        transform: rotate(-2deg) scale(1.05); 
        box-shadow: 0 0 30px rgba(48,207,208,0.8), 0 0 40px rgba(51,8,103,0.4); 
    } 
    75% { transform: rotate(1deg) scale(1.02); }
}
@keyframes badgePopular  { 
    0%,100% { 
        opacity: 0.9; 
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 15px rgba(168,237,234,0.5), 0 0 25px rgba(254,214,227,0.3); 
    } 
    25% { opacity: 0.95; transform: scale(1.02) rotate(0.5deg); } 
    50% { 
        opacity: 1;   
        transform: scale(1.06) rotate(1deg);
        box-shadow: 0 0 25px rgba(168,237,234,0.7), 0 0 35px rgba(254,214,227,0.4); 
    } 
    75% { opacity: 0.95; transform: scale(1.02) rotate(0.5deg); }
}
@keyframes badgeSale     { 
    0%,100% { 
        transform: scale(1) rotate(0deg);    
        box-shadow: 0 0 15px rgba(255,107,107,0.6), 0 0 25px rgba(238,90,36,0.3); 
    } 
    25% { transform: scale(1.04) rotate(-1deg); } 
    50% { 
        transform: scale(1.12) rotate(1deg); 
        box-shadow: 0 0 30px rgba(255,107,107,0.8), 0 0 40px rgba(238,90,36,0.4); 
    } 
    75% { transform: scale(1.04) rotate(-1deg); }
}
@keyframes badgeAvailable{ 
    0%,100% { 
        opacity: 0.8; 
        box-shadow: 0 0 15px rgba(132,250,176,0.5), 0 0 25px rgba(143,211,244,0.3); 
    } 
    25% { opacity: 0.9; } 
    50% { 
        opacity: 1; 
        box-shadow: 0 0 25px rgba(132,250,176,0.7), 0 0 35px rgba(143,211,244,0.4); 
    } 
    75% { opacity: 0.9; }
}


/* ─── Price ─────────────────────────────────────────── */

.scroller-product-price {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin-top: auto !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* FIX: was defined twice with conflicting values.
   Using solid colors to prevent blurring. */
.scroller-price-value {
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    text-shadow: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.scroller-product-card:hover .scroller-price-value {
    transform: scale(1.05);
    color: #3b82f6 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.scroller-price-old {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

.scroller-product-price .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-weight: 500;
}


/* ─── Dark Mode ─────────────────────────────────────── */
/*     Two full duplicate blocks collapsed into one      */

[data-theme="dark"] .scroller-container,
.dark-mode .scroller-container,
body.dark .scroller-container {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .scroller-wrapper,
.dark-mode .scroller-wrapper,
body.dark .scroller-wrapper {
    background: #1e293b !important;
}

[data-theme="dark"] .scroller-btn,
.dark-mode .scroller-btn,
body.dark .scroller-btn {
    background: #334155 !important;
    color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .scroller-product-card,
.dark-mode .scroller-product-card,
body.dark .scroller-product-card {
    background: linear-gradient(145deg, #1e293b, #334155);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.01),
        inset 1px 1px 2px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .scroller-product-info,
.dark-mode .scroller-product-info,
body.dark .scroller-product-info {
    background: linear-gradient(145deg, #1e293b, #334155);
}

[data-theme="dark"] .scroller-product-title,
.dark-mode .scroller-product-title,
body.dark .scroller-product-title {
    color: #ffffff !important;
}

[data-theme="dark"] .scroller-product-title a,
.dark-mode .scroller-product-title a,
body.dark .scroller-product-title a {
    color: #ffffff !important;
}

[data-theme="dark"] .scroller-product-title a:hover,
.dark-mode .scroller-product-title a:hover,
body.dark .scroller-product-title a:hover {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .scroller-product-description,
.dark-mode .scroller-product-description,
body.dark .scroller-product-description {
    color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .scroller-product-meta .badge,
.dark-mode .scroller-product-meta .badge,
body.dark .scroller-product-meta .badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="dark"] .scroller-rating-stars .rating-star,
.dark-mode .scroller-rating-stars .rating-star,
body.dark .scroller-rating-stars .rating-star {
    color: rgba(255, 193, 7, 0.6) !important;
}

[data-theme="dark"] .scroller-rating-stars .rating-star.filled,
.dark-mode .scroller-rating-stars .rating-star.filled,
body.dark .scroller-rating-stars .rating-star.filled {
    color: rgba(255, 193, 7, 1) !important;
}

[data-theme="dark"] .scroller-rating-stars i,
.dark-mode .scroller-rating-stars i,
body.dark .scroller-rating-stars i {
    color: rgba(255, 193, 7, 1) !important;
}

[data-theme="dark"] .scroller-rating-stars .rating-count,
.dark-mode .scroller-rating-stars .rating-count,
body.dark .scroller-rating-stars .rating-count {
    color: rgba(255, 255, 255, 0.8) !important;
}

[data-theme="dark"] .scroller-price-value,
.dark-mode .scroller-price-value,
body.dark .scroller-price-value {
    color: #ffffff !important;
}

[data-theme="dark"] .scroller-price-old,
.dark-mode .scroller-price-old,
body.dark .scroller-price-old {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .scroller-wishlist-btn:hover,
.dark-mode .scroller-wishlist-btn:hover,
body.dark .scroller-wishlist-btn:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow:
        0 8px 16px rgba(239, 68, 68, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .scroller-add-to-cart:hover,
.dark-mode .scroller-add-to-cart:hover,
body.dark .scroller-add-to-cart:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    box-shadow:
        0 8px 16px rgba(16, 185, 129, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;
}

/* Media query removed to prevent conflicts with data-theme attributes */


/* ─── Enhanced Main Product Page Styling ─────────────────────────────────── */

.product-gallery {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-gallery:hover {
    transform: translateY(-2px);
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.06),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.main-product-image {
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.main-product-image:hover {
transform: scale(1.02) !important;
box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15) !important;
}

.product-info {
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
border-radius: 24px;
padding: 2.5rem;
box-shadow:
    0 20px 40px rgba(59, 130, 246, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.04),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(0, 0, 0, 0.02);
border: 1px solid rgba(59, 130, 246, 0.1);
backdrop-filter: blur(8px);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-info:hover {
transform: translateY(-2px);
box-shadow:
    0 25px 50px rgba(59, 130, 246, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.06),
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.product-title {
    font-size: 2rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #1a1f2e, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.product-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.stock-badge {
    padding: 0.5rem 1rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.stock-badge.in-stock {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    animation: badgePulse 2s infinite;
}

.stock-badge.out-stock {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.badge-new, .badge-sale {
    padding: 0.4rem 0.8rem !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.badge-new {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    animation: badgeSparkle 2s infinite;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    animation: badgeSale 2s infinite;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), 0 0 20px rgba(16, 185, 129, 0.2); 
    } 
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.3); 
    }
}

.product-rating {
    margin-bottom: 1.5rem !important;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.rating-stars .bi-star-fill {
    color: #fbbf24 !important;
    font-size: 1.2rem !important;
    text-shadow: 0 2px 8px rgba(251, 191, 36, 0.3) !important;
    transition: all 0.3s ease !important;
}

.rating-stars .bi-star {
    color: #e5e7eb !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease !important;
}

.rating-stars .bi-star-fill:hover {
    transform: scale(1.2) rotate(15deg) !important;
    color: #f59e0b !important;
    text-shadow: 0 2px 12px rgba(245, 158, 11, 0.5) !important;
}

.current-price {
    font-size: 2rem !important;
    font-weight: 900 !important;
    background:linear-gradient(135deg, #49baaf, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
    transition: all 0.3s ease !important;
}

.product-price-section:hover .current-price {
    transform: scale(1.05) !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    font-size: 1.2rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-weight: 500 !important;
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    margin-left: 0.75rem !important;
    animation: badgeSale 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.size-option {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    color: #1a1f2e !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.size-option:hover {
    transform: translateY(-2px) scale(1.05) !important;
    background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.size-option.selected {
    background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4) !important;
}

.action-btn.primary-btn {
    background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
    border: none !important;
    color: white !important;
    font-weight: 800 !important;
    padding: 1rem 2rem !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.action-btn.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.action-btn.primary-btn:hover::before {
    left: 100%;
}

.action-btn.primary-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    background: linear-gradient(145deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4) !important;
}

.action-btn.secondary-btn {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border: 2px solid rgba(59, 130, 246, 0.2) !important;
    color: #3b82f6 !important;
    font-weight: 700 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.action-btn.secondary-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    background: linear-gradient(145deg, #3b82f6, #2563eb) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

/* ─── Related Products Section Title ──────────────────────────────────── */

.related-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #1a1f2e, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 2px;
    animation: gradientFlow 3s ease-in-out infinite;
}



@media (max-width: 768px) {
    .scroller-item { width: 240px; min-width: 240px; max-width: 240px; }
    .scroller-product-image { height: 150px; }
    .scroller-product-info  { padding: 0.75rem; }
    .scroller-product-title { font-size: 0.9rem; }
    .scroller-product-description { font-size: 0.8rem; display: -webkit-box; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .scroller-product-actions .btn { height: 36px !important; font-size: 0.8rem !important; padding: 0 12px !important; }
    .scroller-price-value { font-size: 0.9rem; }
    .scroller-btn { width: 38px; height: 38px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .scroller-container { padding: 1rem; }
    .scroller-item { width: 200px; min-width: 200px; max-width: 200px; }
    .scroller-product-image { height: 120px; }
    .scroller-product-info  { padding: 0.5rem; }
    .scroller-product-title { font-size: 0.8rem; }
    .scroller-product-description { font-size: 0.65rem; }
    .scroller-product-actions .btn { height: 32px !important; font-size: 0.7rem !important; padding: 0 10px !important; }
    .scroller-price-value { font-size: 0.85rem; }
    .scroller-btn { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* ─── Feature Cards ─────────────────────────────────────── */

.feature-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow:
        0 15px 30px rgba(59, 130, 246, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1f2e;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1f2e, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ─── Brand Showcase ───────────────────────────────────── */

.brand-showcase {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    box-shadow:
        0 15px 30px rgba(59, 130, 246, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.brand-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
    background-size: 200% 100%;
    animation: gradientFlow 4s ease-in-out infinite;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #49baaf, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.brand-logos {
    gap: 3rem;
}

.brand-logo-item {
    font-size: 1.5rem;
    font-weight: 900;
    color: #94a3b8;
    padding: 1rem 2rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.brand-logo-item:hover {
    transform: translateY(-4px) scale(1.05);
    color: #3b82f6;
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    box-shadow:
        0 12px 24px rgba(59, 130, 246, 0.2),
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.03);
}

/* ─── Additional Content Section ────────────────────────── */

.additional-content-section {
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.additional-content-section::before {
    content: '';
    position: absolute;
    top: 0;
}

/* ===================================
   AGGRESSIVE TEXT VISIBILITY FIXES
   =================================== */

/* Force maximum contrast for scroller text */
.scroller-product-title,
.scroller-product-title * {
    color: #000000 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}

.scroller-product-description,
.scroller-product-description * {
    color: #000000 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}

.scroller-price-value,
.scroller-price-value * {
    color: #000000 !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: none !important;
    filter: none !important;
}

/* Dark mode overrides */
[data-theme="dark"] .scroller-product-title,
[data-theme="dark"] .scroller-product-title * {
    color: #ffffff !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    filter: none !important;
}

[data-theme="dark"] .scroller-product-description,
[data-theme="dark"] .scroller-product-description * {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) !important;
    filter: none !important;
}

[data-theme="dark"] .scroller-price-value,
[data-theme="dark"] .scroller-price-value * {
    color: #ffffff !important;
    font-weight: 900 !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    filter: none !important;
}