/* ============================================
   RH GAMER - ULTRA RESPONSIVE & TURBO FAST CSS
   100% Mobile/Tablet/Desktop Optimized
   ============================================ */

:root {
    --primary-color: #2874f0;
    --secondary-color: #ff9f00;
    --success-color: #388e3c;
    --danger-color: #e53935;
    --dark-color: #212121;
    --light-color: #f1f3f6;
    --border-color: #e0e0e0;
    --site-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --page-bg: #f1f3f6;
    --page-text: #212121;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --card-text: #111827;
    --input-bg: #ffffff;
    --input-text: #111827;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.18);
    --surface-border: rgba(15, 23, 42, 0.08);
}

html.theme-dark {
    --page-bg: #0b1220;
    --page-text: #e5e7eb;
    --header-bg: #0f172a;
    --card-bg: #0f172a;
    --card-text: #e5e7eb;
    --border-color: rgba(255, 255, 255, 0.12);
    --input-bg: #111827;
    --input-text: #e5e7eb;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.55);
    --surface-border: rgba(255, 255, 255, 0.12);
}

/* PERFORMANCE: GPU Acceleration & Smooth Rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* PERFORMANCE: Optimized Font Loading */
body {
    font-family: var(--site-font-family), 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--page-bg, #f1f3f6);
    color: var(--page-text, #212121);
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeSpeed;
}

/* Modern surface styling */
.card,
.product-card,
.category-card {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover,
.product-card:hover,
.category-card:hover {
    box-shadow: var(--shadow-md);
}

.modal-content,
.quick-cart-sidebar,
.categories-dropdown,
.mobile-sidebar {
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-lg);
}

.categories-dropdown {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.search-wrapper {
    box-shadow: var(--shadow-xs);
}

.desktop-mainbar-inner {
    box-shadow: var(--shadow-lg);
}

html.theme-dark .navbar,
html.theme-dark .modern-header:not(.modern-header--home),
html.theme-dark .header-top,
html.theme-dark .header-bottom {
    background-color: var(--header-bg) !important;
}

html.theme-dark .modern-header--home {
    background: transparent !important;
}

.site-logo--dark {
    display: none;
}

html.theme-dark .site-logo--light {
    display: none;
}

html.theme-dark .site-logo--dark {
    display: block;
}

html.theme-dark .card,
html.theme-dark .product-card,
html.theme-dark .thankyou-container .card,
html.theme-dark .modal-content {
    background: var(--card-bg) !important;
    color: var(--card-text) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

html.theme-dark .category-card,
html.theme-dark .category-item,
html.theme-dark .categories-dropdown {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

html.theme-dark .category-name,
html.theme-dark .category-dropdown-item {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .category-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.theme-dark .product-image-wrapper,
html.theme-dark .product-image-container {
    background: radial-gradient(140% 120% at 30% 20%, rgba(255, 255, 255, 0.06) 0%, var(--card-bg) 58%, var(--page-bg) 100%);
    border-color: rgba(255, 255, 255, 0.10);
}

html.theme-dark .product-title {
    color: rgba(203, 213, 225, 0.95) !important;
}

html.theme-dark .product-info {
    background: rgba(15, 23, 42, 0.92) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

html.theme-dark .price-original {
    color: rgba(255, 255, 255, 0.55) !important;
}

html.theme-dark .nav-link,
html.theme-dark .navbar .nav-link,
html.theme-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
}

html.theme-dark .nav-link:hover,
html.theme-dark .navbar .nav-link:hover,
html.theme-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.98) !important;
}

html.theme-dark .main-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

html.theme-dark .main-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

html.theme-dark .action-item {
    color: rgba(255, 255, 255, 0.85);
}

html.theme-dark .action-item:hover {
    color: rgba(255, 255, 255, 0.98);
}

html.theme-dark .language-selector {
    color: rgba(255, 255, 255, 0.72);
}

html.theme-dark .form-control,
html.theme-dark .form-select,
html.theme-dark input,
html.theme-dark textarea {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
}

html.theme-dark select,
html.theme-dark select option {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
}

html.theme-dark .dropdown-menu {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: var(--shadow-lg);
}

html.theme-dark .dropdown-item,
html.theme-dark .dropdown-header {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .dropdown-item:hover,
html.theme-dark .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.98) !important;
}

html.theme-dark .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .text-dark {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .text-muted {
    color: rgba(255, 255, 255, 0.62) !important;
}

html.theme-dark .card-title,
html.theme-dark #filters-sidebar h5,
html.theme-dark #filters-sidebar h6,
html.theme-dark .form-label {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .form-check-label {
    color: rgba(255, 255, 255, 0.88) !important;
}

html.theme-dark .list-group-item {
    background-color: var(--input-bg) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.96) !important;
}

html.theme-dark .list-group-item.active {
    background-color: rgba(40, 116, 240, 0.25) !important;
    border-color: rgba(40, 116, 240, 0.45) !important;
    color: rgba(255, 255, 255, 0.98) !important;
}

html.theme-dark .btn-outline-dark {
    color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html.theme-dark .btn-outline-dark:hover {
    background-color: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.98) !important;
}

html.theme-dark #productDetailsColumn {
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark #productDetailsColumn > h1 {
    color: rgba(226, 232, 240, 0.96) !important;
}

html.theme-dark .quick-cart-content {
    color: rgba(255, 255, 255, 0.88);
}

html.theme-dark .cart-summary {
    background: rgba(17, 24, 39, 0.85);
    border-top-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .cart-total {
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .qty-btn {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .qty-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

html.theme-dark .qty-display {
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .btn-view-cart {
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.20);
}

html.theme-dark .btn-view-cart:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.98);
}

html.theme-dark .cart-item-remove,
html.theme-dark .cart-close-btn {
    color: rgba(255, 255, 255, 0.85) !important;
}

html.theme-dark .cart-item-remove:hover,
html.theme-dark .cart-close-btn:hover {
    color: rgba(255, 255, 255, 0.98) !important;
}

html.theme-dark .breadcrumb a {
    color: rgba(255, 255, 255, 0.82) !important;
}

html.theme-dark .breadcrumb .breadcrumb-item.active a,
html.theme-dark .breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.60) !important;
}

html.theme-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45) !important;
}

html.theme-dark .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.72) !important;
    border-color: transparent !important;
}

html.theme-dark .nav-tabs .nav-link.active {
    background-color: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.14) rgba(255, 255, 255, 0.14) transparent !important;
}

html.theme-dark .tab-content {
    background: rgba(15, 23, 42, 0.80);
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.88);
}

/* Product Tabs Capsule Design */
.product-tabs-container {
    margin-top: 3rem;
}

.product-nav-pills {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 6px;
    display: inline-flex;
    width: auto;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    justify-content: flex-start;
}

.product-nav-pills .nav-item {
    margin: 0;
}

.product-nav-pills .nav-link {
    border-radius: 8px;
    padding: 10px 24px;
    margin: 0 2px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-nav-pills .nav-link:hover {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    position: relative;
    z-index: 1;
}

.product-nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    border-radius: 6px;
    z-index: -1;
}

.product-nav-pills .nav-link i {
    font-size: 0.9rem;
}

/* Dark mode for product tabs */
html.theme-dark .product-nav-pills {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .product-nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

html.theme-dark .product-nav-pills .nav-link:hover {
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html.theme-dark .product-nav-pills .nav-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

/* Tab Content Styling */
.product-tab-content {
    margin-top: 2rem;
}

.description-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.7;
    font-size: 1rem;
}

html.theme-dark .description-content {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Reviews Section */
.reviews-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html.theme-dark .reviews-section {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.review-item {
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

html.theme-dark .review-item {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

.review-summary {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    height: fit-content;
}

html.theme-dark .review-summary {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.rating-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

html.theme-dark .rating-bar {
    background: rgba(255, 255, 255, 0.1);
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-label {
    font-size: 0.875rem;
    min-width: 60px;
    color: #64748b;
}

html.theme-dark .rating-label {
    color: rgba(255, 255, 255, 0.7);
}

.rating-count {
    font-size: 0.875rem;
    min-width: 30px;
    text-align: right;
    color: #64748b;
}
html.theme-dark .rating-count {
    color: rgba(255, 255, 255, 0.7);
}

/* Recommendations Section */
.recommendations-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.recommended-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.recommended-product-item {
    min-width: 0;
}

html.theme-dark .recommendations-section {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .recommendations-section .product-card:hover {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-nav-pills {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        width: 100%;
    }
    
    .review-item {
        padding: 1rem;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }

    .recommended-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 991.98px) {
    .recommended-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--header-text);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

html.theme-dark .theme-toggle-btn {
    color: #e5e7eb;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn--mobile {
    margin-left: auto;
    width: 34px;
    height: 34px;
}

.site-preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 243, 246, 0.98);
    z-index: 99999;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-preloader__spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-color);
    animation: sitePreloaderSpin 0.8s linear infinite;
}

@keyframes sitePreloaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* PERFORMANCE: Lazy Load Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    content-visibility: auto;
}

/* PERFORMANCE: Reduce Layout Shifts */
img, video, iframe {
    aspect-ratio: attr(width) / attr(height);
}

/* ============================================
   GLOBAL RESPONSIVE UTILITIES
   ============================================ */

/* Container Responsive */
.container, .container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Flex Utilities */
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Text Utilities */
.text-center { text-align: center !important; }
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spacing Responsive */
.p-responsive { padding: clamp(0.5rem, 2vw, 1.5rem) !important; }
.m-responsive { margin: clamp(0.5rem, 2vw, 1.5rem) !important; }

/* Global Section Spacing */
section {
    margin-block: clamp(2rem, 4vw, 4rem);
}

/* Navbar Styling */
.navbar {
    background-color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    color: #212121 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Carousel */
.hero-slide {
    min-height: 300px;
    padding: 2rem 0;
}

.carousel-item img {
    object-fit: cover;
}

/* Category Cards */
.category-card {
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--primary-color) !important;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.product-image-wrapper {
    overflow: hidden;
    position: relative;
    background: radial-gradient(140% 120% at 30% 20%, #ffffff 0%, #f7f9ff 55%, #eef3ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container {
    overflow: hidden;
    position: relative;
    background: radial-gradient(140% 120% at 30% 20%, #ffffff 0%, #f7f9ff 55%, #eef3ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.product-image-wrapper img,
.product-image-container .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.16));
    transition: transform 0.25s ease, filter 0.25s ease;
}

.product-card:hover .product-image-wrapper img,
.product-card:hover .product-image-container .product-image {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.20));
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    color: #2d3436;
    font-family: "Bebas Neue", var(--site-font-family), 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 50px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #0984e3;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212121;
    line-height: 1.4;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Single product page title */
#productDetailsColumn > h1 {
    font-family: "BBH Bartle", var(--site-font-family), 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Promotional Banners */
.promo-banner {
    min-height: 150px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.promo-banner:hover {
    transform: scale(1.02);
}

.promo-dark {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    background: radial-gradient(120% 120% at 30% 20%, #2a2a2a 0%, #111 55%, #050505 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    min-height: 170px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.promo-dark:hover {
    color: #fff;
    transform: translateY(-2px);
}

.promo-dark-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 52%;
    max-width: 52%;
}

.promo-dark-eyebrow {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-bottom: 8px;
}

.promo-dark-title {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-dark-title2 {
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-dark-subtitle {
    font-size: 11px;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.promo-dark-price {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.promo-dark-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-dark-cta--color {
    border: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.promo-dark:hover .promo-dark-cta {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}

.promo-dark:hover .promo-dark-cta--color {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.promo-dark:active .promo-dark-cta--color {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.promo-dark-media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 48%;
    position: relative;
}

.promo-dark-media img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
    transform: translateX(8px);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.promo-dark:hover .promo-dark-media img {
    transform: translateX(8px) scale(1.04);
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55));
}

.promo-dark:active .promo-dark-media img {
    transform: translateX(8px) scale(1.02);
}

.latest-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
    border-radius: 16px;
    padding: 26px 28px;
    overflow: hidden;
    min-height: 170px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.latest-cta-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.10);
}

.latest-cta-banner:hover .latest-cta-media img {
    transform: translateX(4px) scale(1.02);
}

.latest-cta-content {
    flex: 1 1 56%;
    min-width: 0;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.latest-cta-label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.60);
    margin: 0;
}

.latest-cta-title {
    font-size: clamp(18px, 2.6vw, 32px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #0b1220;
    margin: 0;
    max-width: 520px;
    text-transform: none;
    word-break: break-word;
    text-wrap: balance;
    margin-top: 0;
}

.latest-cta-title strong,
.latest-cta-title b {
    font-weight: 900;
}

.latest-cta-title .is-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.latest-cta-title-break {
    display: block;
    height: 6px;
}

.latest-cta-highlight {
    font-size: clamp(16px, 2.1vw, 22px);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.latest-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.55);
    box-shadow:
        0 12px 26px rgba(37, 99, 235, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.latest-cta-btn:hover {
    filter: brightness(1.03);
    color: #fff;
    box-shadow:
        0 16px 32px rgba(37, 99, 235, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

.latest-cta-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.latest-cta-media {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.latest-cta-media img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(15, 23, 42, 0.18));
    transform: translateX(0);
    transition: transform 0.25s ease, filter 0.25s ease;
}

@media (max-width: 576px) {
    .promo-dark {
        flex-direction: row;
        align-items: center;
        padding: 18px;
        min-height: 170px;
    }

    .latest-cta-banner {
        padding: 18px;
        gap: 16px;
        min-height: 150px;
    }

    .latest-cta-media {
        flex: 0 0 46%;
        justify-content: flex-end;
    }

    .latest-cta-media img {
        max-width: 240px;
    }
}

@media (max-width: 576px) {
    .promo-dark-media {
        flex: 0 0 44%;
        justify-content: flex-end;
    }

    .promo-dark-content {
        flex: 1 1 56%;
        max-width: 56%;
    }

    .promo-dark-media img {
        max-width: 200px;
        transform: translateX(6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-dark-media img {
        transition: none;
    }
    .promo-dark:hover .promo-dark-media img,
    .promo-dark:active .promo-dark-media img {
        transform: none;
    }
}

/* Buttons */
.is-home .btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    line-height: 1.1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.is-home .btn.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 999px;
}

.is-home .btn:hover {
    transform: translateY(-1px);
}

.is-home .btn:active {
    transform: translateY(0px) scale(0.99);
}

.is-home .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #2563eb 45%, #06b6d4 100%);
    border: 0;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.is-home .btn-primary:hover {
    filter: brightness(1.02);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.32);
}

.is-home .btn-outline-primary {
    border-width: 2px;
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.04);
}

.is-home .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.65);
    color: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.is-home .btn-warning {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(234, 179, 8, 0.18);
}

.is-home .btn-warning:hover {
    filter: brightness(1.02);
    box-shadow: 0 16px 32px rgba(234, 179, 8, 0.24);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #1e5bc6;
    border-color: #1e5bc6;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cart Badge */
.cart-count {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Footer */
footer {
    background-color: #172337;
    color: #fff;
}

footer a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff !important;
}

/* Utilities */
.bg-light {
    background-color: #f1f3f6 !important;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
}

.rounded {
    border-radius: 8px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 250px;
        text-align: center;
    }
    
    .hero-slide img {
        margin-top: 1rem;
        max-height: 200px;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    .product-image-container {
        height: 180px;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
}

/* TABLET LANDSCAPE (1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col-lg-3, .col-lg-4, .col-lg-6 {
        padding: 0 10px;
    }
}

/* TABLET PORTRAIT (768px) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    p { font-size: 0.9rem; }
    
    /* Containers */
    .container, .container-fluid {
        padding: 0 12px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Forms */
    .form-control, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.625rem 0.875rem;
    }
    
    /* Grid */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    /* Product Grid */
    .product-card {
        margin-bottom: 1rem;
    }
    
    /* Hide on mobile */
    .d-tablet-none {
        display: none !important;
    }
}

/* MOBILE LARGE (576px) */
@media (max-width: 576px) {
    /* Typography */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.35rem !important; }
    h3 { font-size: 1.15rem !important; }
    
    /* Containers */
    .container, .container-fluid {
        padding: 0 10px;
    }
    
    /* Cards */
    .card-body {
        padding: 0.875rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        border-radius: 6px !important;
    }
    
    /* Forms */
    .form-group, .mb-3 {
        margin-bottom: 0.875rem !important;
    }
    
    /* Flex layouts */
    .d-flex.flex-mobile-column {
        flex-direction: column !important;
    }
    
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
    
    /* Product Grid - 2 columns */
    .product-grid .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 5px;
    }
    
    /* Hide on mobile */
    .d-mobile-none {
        display: none !important;
    }
    
    /* Show on mobile */
    .d-mobile-block {
        display: block !important;
    }
}

/* MOBILE SMALL (480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.35rem !important; }
    h2 { font-size: 1.2rem !important; }
    
    /* Containers */
    .container, .container-fluid {
        padding: 0 8px;
    }
    
    /* Cards */
    .card {
        border-radius: 10px !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Tables */
    .table {
        font-size: 0.75rem;
    }
    
    .table td, .table th {
        padding: 0.5rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Product Cards */
    .product-image-container {
        height: 140px;
    }
    
    .product-card .card-body {
        padding: 0.5rem;
    }
    
    /* Price */
    .price {
        font-size: 0.9rem;
    }
}

/* MOBILE EXTRA SMALL (360px) */
@media (max-width: 360px) {
    h1 { font-size: 1.2rem !important; }
    h2 { font-size: 1.1rem !important; }
    
    .container, .container-fluid {
        padding: 0 6px;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .product-image-container {
        height: 120px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU Acceleration for animations */
.card, .btn, .product-card, .category-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Touch-friendly targets */
@media (pointer: coarse) {
    .btn, .nav-link, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   LOADING & SKELETON STATES
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Lazy Loading Styles */
.product-image-lazy-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-lazy-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.product-lazy-loader {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.product-image.lazy-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image.loaded {
    opacity: 1;
}

.product-lazy-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.skeleton-image {
    height: 200px;
    border-radius: 8px;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.modern-header {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 992px) {
    .modern-header--home {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        background: transparent;
    }
}

.desktop-topbar {
    background: transparent;
    padding: 8px 0;
    font-size: 12px;
    color: #000;
}

.desktop-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.desktop-topbar-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.desktop-topbar-left i {
    color: #111;
}

.desktop-topbar-right {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.desktop-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-topbar-link.is-text {
    cursor: default;
}

.desktop-topbar-link:hover {
    color: #000;
}

.desktop-topbar-sep {
    width: 1px;
    height: 14px;
    background: rgba(0,0,0,0.15);
}

.desktop-mainbar {
    padding-bottom: 14px;
}

.desktop-mainbar-inner {
    background: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.desktop-brand img {
    height: 50px;
    width: auto;
    max-width: 220px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 6px;
    flex: 1;
}

.desktop-nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 10px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-icon-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.desktop-icon-btn:active {
    transform: scale(0.98);
}

.desktop-cart {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.desktop-cart:hover {
    opacity: 0.92;
    color: #fff;
}

.desktop-cart-total {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.01em;
}

.header-top {
    background: #fff;
}

html.theme-dark .header-top,
html.theme-dark .header-bottom {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .desktop-topbar,
html.theme-dark .desktop-topbar-link {
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .desktop-topbar-left i,
html.theme-dark .desktop-topbar-link i {
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .desktop-topbar-sep {
    background: rgba(255, 255, 255, 0.18);
}

.logo-link {
    display: block;
}

.search-wrapper {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid #000;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
}

html.theme-dark .search-wrapper {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.90);
}

html.theme-dark .search-category,
html.theme-dark .search-input {
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
}

html.theme-dark .search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

html.theme-dark .search-button {
    background: var(--primary-color);
}

html.theme-dark .search-button i {
    color: #fff;
}

html.theme-dark .mobile-sidebar {
    background: var(--page-bg) !important;
}

html.theme-dark .mobile-sidebar-header {
    background: var(--header-bg) !important;
}

html.theme-dark .mobile-menu-item,
html.theme-dark .mobile-submenu-item {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .mobile-menu-divider {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .quick-cart-sidebar {
    background: var(--card-bg) !important;
}

html.theme-dark .quick-cart-header {
    background: var(--header-bg) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .cart-close-btn {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .bg-white {
    background-color: var(--card-bg) !important;
}

html.theme-dark .bg-light {
    background-color: var(--page-bg) !important;
}

.search-category {
    border: none;
    padding: 12px 20px;
    background: #fff;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    min-width: 150px;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-button {
    background: #000;
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 2px;
    transition: background 0.3s;
}

.search-button:hover {
    background: #333;
}

.user-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    transition: color 0.3s;
}

.action-item:hover {
    color: #000;
}

.action-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.header-bottom {
    padding: 12px 0;
    background: #fff;
}

.all-categories-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 30px;
}

.all-categories-btn:hover {
    background: #f8f8f8;
}

.categories-dropdown-wrapper {
    position: relative;
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #2d3436;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.categories-dropdown.active {
    display: block;
}

.category-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.category-dropdown-item:last-child {
    border-bottom: none;
}

.category-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-left: 25px;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav .nav-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav .nav-link:hover {
    color: #000;
}

.language-selector {
    font-size: 13px;
    color: #666;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:active {
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

.mobile-icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    padding: 6px 8px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s;
    vertical-align: middle;
}

.mobile-icon-btn:hover {
    color: #000;
}

.mobile-icon-btn i {
    display: block;
}

.mobile-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0px;
    flex-wrap: nowrap;
}

.mobile-cart-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #000;
    color: #fff;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-sidebar-content {
    padding: 0;
}

.mobile-menu-section {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.mobile-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    margin: 10px 0;
}

.mobile-menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.mobile-submenu {
    display: none;
    background: #000;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu-item {
    display: block;
    padding: 12px 20px 12px 40px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.mobile-submenu-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding-left: 45px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-container {
    width: 90%;
    max-width: 500px;
    position: relative;
}

.mobile-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
}

.mobile-search-form-overlay {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
}

.mobile-search-input-overlay {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.mobile-search-submit-overlay {
    background: #000;
    border: none;
    color: #fff;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
}

/* Quick Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.quick-cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 9998;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.quick-cart-sidebar.active {
    right: 0;
}

.quick-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.quick-cart-header h5 {
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.quick-cart-content {
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 3px;
    font-size: 14px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.cart-item-remove:hover {
    color: #ff0000;
}

.cart-item-addons {
    margin: 4px 0;
}

.addon-header {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 3px;
}

.addon-list small {
    font-size: 12px;
    line-height: 1.3;
    color: #999999;
    display: block;
    margin-bottom: 1px;
}

.addon-list small:before {
    content: '-';
    font-size: 12px;
    margin-right: 6px;
    color: #999999;
}

.cart-item-price .sale-price {
    color: #dc3545;
    font-weight: 600;
    font-size: 15px;
}

.cart-item-price .regular-price {
    color: #6c757d;
    margin-left: 0;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.cart-summary {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: #f9f9f9;
    position: sticky;
    bottom: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.cart-buttons {
    display: flex;
    gap: 10px;
}

.btn-checkout {
    flex: 1;
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-checkout:hover {
    background: #dd0000;
}

.btn-view-cart {
    flex: 1;
    background: #fff;
    color: #333;
    border: 2px solid #333;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-view-cart:hover {
    background: #333;
    color: #fff;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

@media (max-width: 991px) {
    .mobile-actions-wrapper {
        min-height: 44px;
    }
    
    .mobile-icon-btn {
        flex-shrink: 0;
        min-width: 38px;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header-top .logo-link img {
        height: 46px;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .user-actions {
        gap: 8px;
        align-items: center;
    }
    
    .action-item {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }
    
    .action-item span {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .language-selector {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        z-index: 100;
    }
    
    .mobile-icon-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .search-category {
        min-width: 100px;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .categories-dropdown {
        width: 100vw;
        left: -15px;
    }
}

@media (max-width: 480px) {
    .quick-cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* Product Animation */
@keyframes productJump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.product-image-animated {
    animation: productJump 2s ease-in-out infinite;
}

.product-image-animated:hover {
    animation-play-state: paused;
}

/* Categories Section */
.categories-section {
    position: relative;
}

.categories-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 15px 0;
}

.cat-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #333;
}

.cat-slider-arrow:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.cat-slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cat-slider-prev {
    left: 250px;
}

.cat-slider-next {
    right: 250px;
}

@media (max-width: 768px) {
    .cat-slider-arrow {
        display: flex;
        width: 38px;
        height: 38px;
        background: rgba(255,255,255,0.92);
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    .cat-slider-prev {
        left: 10px;
    }

    .cat-slider-next {
        right: 10px;
    }
}

.categories-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 100px) / 6);
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    overscroll-behavior-x: contain;
    cursor: default;
    user-select: none;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.categories-slider.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.category-item:hover {
    transform: translateY(-8px);
}

.category-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.category-circle i {
    font-size: 2.5rem;
}

.category-circle.has-image {
    padding: 0;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item:hover .category-circle {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transform: scale(1.08);
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item:hover .category-name {
    color: #667eea;
}

@media (max-width: 768px) {
    .categories-slider {
        grid-auto-columns: calc((100% - 16px) / 2);
        gap: 16px;
    }
    
    .category-circle {
        width: 100px;
        height: 100px;
    }
    
    .category-circle i {
        font-size: 2rem;
    }
    
    .category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .category-name {
        font-size: 13px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .category-circle {
        width: 90px;
        height: 90px;
    }
    
    .category-circle i {
        font-size: 1.8rem;
    }
    
    .category-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .category-name {
        font-size: 12px;
        max-width: 90px;
    }
}

/* ============================================
   THANKYOU PAGE STYLES
   ============================================ */

.thankyou-container {
    min-height: 100vh;
    padding: 2rem 1rem;
}

@media (max-width: 768px) {
    .thankyou-container {
        padding: 1rem;
    }
    .thankyou-header {
        padding: 2rem 1.5rem !important;
    }
    .thankyou-body {
        padding: 1.5rem 1rem !important;
    }
    .success-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }
    .thankyou-header h1 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    /* Stack the title and price in product item */
    .product-item .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .product-item .d-flex.justify-content-between .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .detail-row > div:last-child {
        width: 100%;
        text-align: left;
    }
    .weight-info .row > div {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

.thankyou-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.thankyou-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

/* ============================================
   Dark Mode Overrides (Restored)
   ============================================ */

/* Weight Info Dark Mode Fix */
html.theme-dark .thankyou-card .weight-info {
    background-color: rgba(255, 140, 0, 0.1) !important;
    border: 1px solid rgba(255, 140, 0, 0.2) !important;
}

html.theme-dark .thankyou-card .weight-info h6,
html.theme-dark .thankyou-card .weight-info p {
    color: #ffb74d !important;
}

/* Mobile Icons Dark Mode Fix */
html.theme-dark .mobile-menu-btn,
html.theme-dark .mobile-icon-btn,
html.theme-dark .mobile-cart-btn,
html.theme-dark button.mobile-menu-btn,
html.theme-dark button.mobile-icon-btn,
html.theme-dark a.mobile-icon-btn,
html.theme-dark .mobile-menu-btn i,
html.theme-dark .mobile-icon-btn i,
html.theme-dark .mobile-cart-btn i {
    color: #ffffff !important;
}

/* Thank You Page Buttons Dark Mode */
html.theme-dark .thankyou-card .btn-outline-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.theme-dark .thankyou-card .btn-outline-secondary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* MDB Button Color Override */
:root {
    --mdb-btn-color: #285192;
}

/* ============================================
   Product Price Responsive Fixes
   ============================================ */
.price-original, 
.price-final {
    white-space: nowrap !important;
    display: block !important;
    width: fit-content;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 576px) {
    .price-original {
        font-size: 0.8rem !important;
        margin-bottom: 2px;
    }
    
    .price-final {
        font-size: 1rem !important;
        font-weight: 700;
    }
    
    .product-price-wrapper {
        width: auto;
        flex: 1;
    }

    .product-info {
        padding: 12px 8px !important;
    }
    
    .product-footer {
        gap: 4px !important;
    }
    
    .product-actions {
        gap: 4px !important;
    }
    
    .btn-wishlist, .btn-add-cart {
        width: 32px !important;
        height: 32px !important;
    }
    
    .btn-wishlist i, .btn-add-cart i {
        font-size: 12px !important;
    }
}

/* ============================================
   Style 2 Product Card (Clean White)
   ============================================ */
.product-card.style-2 {
    background: #fff;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Normal padding */
}

.product-card.style-2:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card.style-2 .product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    z-index: 2;
    position: relative;
}

.product-card.style-2 .product-category {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-card.style-2 .btn-wishlist-icon {
    background: none;
    border: none;
    color: #333;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card.style-2 .btn-wishlist-icon:hover {
    color: #ff4757;
}

.product-card.style-2 .product-image-container {
    height: 180px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card.style-2 .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transition: all 0.3s ease;
}

.product-card.style-2 .product-info {
    padding: 0;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align bottom */
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
    background: #fff; /* Ensure it covers anything behind if needed */
}

.product-card.style-2 .product-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    min-height: auto;
    line-height: 1.4;
    font-family: var(--site-font-family), sans-serif;
}

.product-card.style-2 .product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.product-card.style-2 .price-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-card.style-2 .price-final {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.product-card.style-2 .btn-add-cart-full {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: #0d6efd;
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
    z-index: 3;
}

/* Hover Effects */
.product-card.style-2:hover .btn-add-cart-full {
    transform: translateY(0);
}

.product-card.style-2:hover .product-info {
    transform: translateY(-45px); /* Move up to make room for button */
}

.product-card.style-2:hover .product-image-container {
    transform: translateY(-10px); /* Move image up slightly */
    /* height: 160px; optional: shrink height */
}

.product-card.style-2:hover .product-image {
    transform: scale(0.95); /* Shrink image slightly */
}

/* Dark Mode Support */
html.theme-dark .product-card.style-2 {
    background: #1e1e1e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

html.theme-dark .product-card.style-2 .product-category {
    color: #aaa;
}

html.theme-dark .product-card.style-2 .btn-wishlist-icon {
    color: #ddd;
}

html.theme-dark .product-card.style-2 .product-title {
    color: #fff;
}

html.theme-dark .product-card.style-2 .price-final {
    color: #fff;
}

html.theme-dark .product-card.style-2 .product-info {
    background: #1e1e1e;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .product-card.style-2 {
        padding: 10px;
        padding-bottom: 10px;
    }
    
    .product-card.style-2 .product-image-container {
        height: 140px;
    }
    
    .product-card.style-2 .product-title {
        font-size: 13px;
    }
    
    .product-card.style-2 .product-price-wrapper {
        flex-direction: column !important; /* Force stack on mobile */
        align-items: flex-start !important;
    }
    
    .product-card.style-2 .price-final {
        font-size: 14px !important;
    }
    
    .product-card.style-2:hover .product-info {
        transform: translateY(-40px);
    }
    
    .product-card.style-2 .btn-add-cart-full {
        height: 40px;
    }
}

.thankyou-body {
    padding: 2rem;
}

.order-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.product-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
}

.thankyou-container .thankyou-product-image {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.addon-badge {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin: 0.125rem;
    display: inline-block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.total-row {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #166534;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.weight-info {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0 6px 6px 0;
    margin: 1rem 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print, .sidebar, .top-navbar, header, footer, .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   DARK MODE OVERRIDES & FIXES
   ============================================ */

/* Thank You Page Dark Mode */
html.theme-dark .thankyou-card {
    background: var(--card-bg);
    color: var(--card-text);
    border: 1px solid var(--border-color);
}

.next-steps-section {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    color: #111827;
}

html.theme-dark .next-steps-section {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

html.theme-dark .order-section {
    background: var(--card-bg) !important;
    color: var(--card-text) !important;
    border: 1px solid var(--border-color);
}

html.theme-dark .product-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--card-text);
}

html.theme-dark .detail-row {
    border-bottom-color: var(--border-color);
}

html.theme-dark .total-row {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

html.theme-dark .weight-info {
    background: rgba(245, 158, 11, 0.1) !important;
    border-left-color: #f59e0b;
    color: #e5e7eb !important;
}

html.theme-dark .weight-info strong {
    color: #fbbf24 !important;
}

/* Thank You Page Buttons Dark Mode */
html.theme-dark .thankyou-card .btn-outline-secondary {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.theme-dark .thankyou-card .btn-outline-secondary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Mobile Header Icons Dark Mode */
html.theme-dark .mobile-menu-btn,
html.theme-dark .mobile-icon-btn,
html.theme-dark .mobile-cart-btn,
html.theme-dark .mobile-menu-btn i,
html.theme-dark .mobile-icon-btn i,
html.theme-dark .mobile-cart-btn i {
    color: #f3f4f6 !important;
}

html.theme-dark .mobile-menu-btn:active,
html.theme-dark .mobile-icon-btn:active {
    background: rgba(255,255,255,0.1);
}

html.theme-dark .payment-method {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

html.theme-dark .addon-badge {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
}

/* Ajax Cart Dark Mode Fixes */
html.theme-dark .cart-item-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .cart-item-price {
    color: rgba(255, 255, 255, 0.92) !important;
}

html.theme-dark .cart-item {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .qty-btn {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
}

html.theme-dark .qty-btn:hover {
    background: rgba(255, 255, 255, 0.20) !important;
}

html.theme-dark .qty-display {
    color: #fff !important;
}

html.theme-dark .addon-header {
    color: rgba(255, 255, 255, 0.85) !important;
}

html.theme-dark .cart-summary {
    background: var(--card-bg) !important;
    border-top-color: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
}

html.theme-dark .cart-total {
    color: #fff !important;
}

html.theme-dark .cart-item-weight .text-muted,
html.theme-dark .addon-list small,
html.theme-dark .addon-list small:before {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.theme-dark .btn-view-cart {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.theme-dark .btn-view-cart:hover {
    background: #fff !important;
    color: #000 !important;
}

html.theme-dark .cart-empty p {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.theme-dark .cart-empty i {
    color: rgba(255, 255, 255, 0.2) !important;
}