/**
 * Go2Santé Redesign Theme CSS
 * Child Theme for Leo Bedove Parent Theme
 *
 * This stylesheet contains all customizations for the Go2Santé redesign
 * using variables, modern layout patterns, and accessibility features.
 */

/* ========================================
   1. CSS VARIABLES & ROOT STYLES
   ======================================== */

:root {
    --primary-orange: #F7941D;
    --secondary-gray: #3D3D3D;
    --light-gray: #F5F5F5;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --border-light: #EEEEEE;
    --success-green: #27AE60;
    --warning-red: #E74C3C;
    --dark-bg: #2C2C2C;
}

/* NOTE: Global resets removed — handled by Leo Bedove parent theme */
/* Module-specific font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

/* ========================================
   0. HIDE OLD LEO BEDOVE ELEMENTS
   Replace old theme content with our redesign
   ======================================== */

/* ---- HOMEPAGE ONLY: hide old Leo Bedove elements ---- */
/* Use body#index to target ONLY the homepage */

/* Hide ONLY the old header-banner inner content on homepage (replaced by our topbar) */
/* Keep header-top (logo + nav) and header-nav visible! */

/* Hide ALL old Leo Bedove / Ap Page Builder homepage content */
#content.page-home > .ApRow,
#content.page-home > .wrapper,
#content.page-home > .row.box-slider,
#content.page-home > .row.box-products,
#content.page-home > div[class*="icon-banner"],
#content.page-home > div[class*="appagebuilder"],
#content.page-home > div[class*="ApRow"],
#content.page-home > .block.products_block {
    display: none !important;
}

/* Hide old IA chatbot banner ONLY on homepage */
body#index .go2-ai-banner,
body#index .go2-reassurance-bar {
    display: none !important;
}

/* Hide old Leo Bedove page-footer inside #main on homepage */
body#index #main > .page-footer {
    display: none !important;
}

/* Hide the old Leo Bedove "header-banner" inner content on homepage, keep our topbar */
body#index #header .header-banner .container > .inner > *:not(.topbar) {
    display: none !important;
}

/* Make our hero the first visible section */
#content.page-home > .hero {
    display: grid !important;
    margin-top: 0;
}

#content.page-home > .trust-bar {
    display: flex !important;
}

@media (max-width: 968px) {
    #content.page-home > .hero {
        grid-template-columns: 1fr !important;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   2. TOPBAR - TRUST & SERVICES
   ======================================== */

.topbar {
    background: linear-gradient(90deg, #2A2A2A, var(--secondary-gray), #2A2A2A);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-orange);
}

.topbar-content {
    display: flex;
    gap: 20px;
    animation: topbar-scroll 35s linear infinite;
    white-space: nowrap;
}

.topbar:hover .topbar-content {
    animation-play-state: paused;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.topbar-item strong {
    color: var(--primary-orange);
}

.topbar-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.topbar-service strong {
    color: #FFD18C;
}

@keyframes topbar-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========================================
   3. HEADER NAVIGATION
   ======================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    border-bottom: 1px solid var(--border-light);
    gap: 24px;
    flex-wrap: wrap;
    background: white;
}

/* Logo and branding */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 180px;
    text-decoration: none;
    position: relative;
}

.header-logo img {
    height: 64px;
    width: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(247, 148, 29, 0.25));
}

.header-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(247, 148, 29, 0.4));
}

.header-logo .logo-tagline {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
}

.header-logo .logo-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--secondary-gray);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.header-logo .logo-brand .brand-go2 {
    color: var(--primary-orange);
}

.header-logo .logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Responsive logo */
@media (max-width: 768px) {
    .header-logo img {
        height: 50px;
    }
    .header-logo .logo-brand {
        font-size: 18px;
    }
    .header-logo .logo-sub {
        font-size: 9px;
    }
}

/* Search functionality */
.header-search {
    flex: 1;
    min-width: 250px;
    max-width: 520px;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 12px rgba(247, 148, 29, 0.2);
    background: white;
}

.search-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.search-ai-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-orange), #FF6B35);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-ai-badge:hover {
    transform: translateY(-50%) scale(1.05);
}

/* AI Search Dropdown */
.ai-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    z-index: 200;
    display: none;
    overflow: hidden;
    animation: dropdownFadeIn 0.25s ease;
}

.ai-search-dropdown.show {
    display: block;
}

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

.ai-search-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
    border-bottom: 1px solid rgba(247, 148, 29, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-orange);
    font-weight: 600;
}

.ai-search-header .ai-typing {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.ai-search-header .ai-typing span {
    width: 5px;
    height: 5px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: aiDot 1.2s infinite;
}

.ai-search-header .ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-search-header .ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiDot {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.ai-search-section {
    padding: 8px 0;
}

.ai-search-section-title {
    padding: 4px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.ai-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.ai-search-item:hover {
    background: var(--light-gray);
}

.ai-search-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-search-item .item-icon.cat {
    background: var(--light-gray);
}

.ai-search-item .item-icon.prod {
    background: var(--light-gray);
}

.ai-search-item .item-icon.prod img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}

.ai-search-item .item-icon.ai-suggest {
    background: linear-gradient(135deg, #FFF3E0, #FFECD2);
}

.ai-search-item .item-text {
    flex: 1;
}

.ai-search-item .item-text .name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.ai-search-item .item-text .name mark {
    background: rgba(247, 148, 29, 0.2);
    color: var(--text-dark);
    padding: 0 2px;
    border-radius: 2px;
}

.ai-search-item .item-text .meta {
    font-size: 12px;
    color: #999;
    margin-top: 1px;
}

.ai-search-item .item-price {
    font-weight: 700;
    color: var(--primary-orange);
    font-size: 14px;
    white-space: nowrap;
}

.ai-search-item .item-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.ai-search-item .item-tag.promo {
    background: #FDECEA;
    color: var(--warning-red);
}

.ai-search-item .item-tag.recommended {
    background: #FFF3E0;
    color: var(--primary-orange);
}

.ai-search-footer {
    padding: 12px 16px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s;
}

.ai-search-footer:hover {
    background: #EBEBEB;
}

.ai-search-footer strong {
    color: var(--primary-orange);
}

/* AI question in search */
.ai-search-question {
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
    border-top: 1px solid rgba(247, 148, 29, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--secondary-gray);
    line-height: 1.5;
}

.ai-search-question .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.ai-search-question .suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.ai-search-question .chip {
    padding: 4px 10px;
    background: white;
    border: 1px solid rgba(247, 148, 29, 0.2);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--primary-orange);
    font-weight: 500;
}

.ai-search-question .chip:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Header action buttons */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-ai {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.btn-ai:hover {
    background: #E67E1F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3);
}

.accessibility-toggle {
    background: var(--light-gray);
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
}

.accessibility-toggle:hover {
    background: var(--border-light);
}

.accessibility-toggle.active {
    background: var(--primary-orange);
    color: white;
}

.cart-button {
    position: relative;
    background: white;
    border: 2px solid var(--border-light);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    min-height: 56px;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.cart-button:hover {
    border-color: var(--primary-orange);
    background: #FFF8F0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.15);
}

.cart-icon {
    font-size: 22px;
    line-height: 1;
}

.cart-label {
    font-size: 15px;
    color: var(--secondary-gray);
}

.cart-count {
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========================================
   4. DELIVERY PROGRESS BAR
   ======================================== */

.delivery-progress {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.delivery-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), #FF9F1C);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ========================================
   5. CATEGORY NAVIGATION
   ======================================== */

.category-nav {
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-light);
    scroll-behavior: smooth;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 2px;
}

.category-item {
    white-space: nowrap;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--text-muted);
    min-height: 36px;
    display: flex;
    align-items: center;
}

.category-item:hover,
.category-item.active {
    background: var(--light-gray);
    color: var(--primary-orange);
    font-weight: 600;
}

/* ========================================
   6. HERO SECTION
   ======================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 20px;
    align-items: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(247, 148, 29, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(247, 148, 29, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(61, 61, 61, 0.03) 0%, transparent 40%),
        linear-gradient(135deg, #f8f6f3 0%, #faf9f7 30%, #ffffff 60%, #f5f3f0 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cfc7' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content h1 .highlight {
    color: var(--primary-orange);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #E67E1F;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 148, 29, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.hero-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hero-feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-feature p {
    margin: 0;
    font-size: 14px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 245, 0.95) 50%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(247, 148, 29, 0.08);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ========================================
   7. CAROUSEL - COMPANY INFO
   ======================================== */

.company-carousel {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.company-slides {
    position: relative;
    height: 520px;
}

.company-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.company-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Overlay gradient on each slide */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 28px 48px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 55%;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.slide-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.25;
    color: white;
}

.slide-title span {
    color: var(--primary-orange);
}

.slide-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Progress bar and dots */
.carousel-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.carousel-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.25);
    width: 48px;
}

.carousel-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary-orange);
    border-radius: 2px;
    animation: dotProgress 5s linear forwards;
}

@keyframes dotProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Product mosaic for catalog slide */
.slide-catalogue {
    overflow: hidden;
}

.product-mosaic {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
}

.mosaic-item {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

.slide-catalogue:hover .mosaic-item {
    transform: scale(1.03);
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.company-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

.carousel-arrow-left {
    left: 12px;
}

.carousel-arrow-right {
    right: 12px;
}

/* ========================================
   8. TRUST BAR
   ======================================== */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    background: var(--light-gray);
}

.trust-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.trust-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.trust-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   9. PROMO BANNER
   ======================================== */

.promo-banner {
    background: linear-gradient(135deg, var(--primary-orange), #FF9F1C);
    color: white;
    padding: 20px;
    text-align: center;
    margin: 20px;
    border-radius: 12px;
    animation: slideIn 0.5s ease;
}

.promo-banner h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.promo-banner p {
    margin-bottom: 16px;
    font-size: 14px;
}

.promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   10. CATEGORIES GRID
   ======================================== */

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 20px 20px;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 0 20px 40px;
}

.category-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.category-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.15);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 40px;
}

.category-card p {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

/* ========================================
   11. PRODUCTS GRID
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px 40px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 24px rgba(247, 148, 29, 0.15);
    transform: translateY(-4px);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Fix Leo Bedove product thumbnail images on category pages */
.product-miniature .product-image {
    height: auto !important;
    min-height: 180px !important;
    max-height: 280px !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    border-radius: 12px 12px 0 0 !important;
}

.product-miniature .product-image .thumbnail.product-thumbnail {
    width: 100% !important;
    height: auto !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-miniature .product-image .thumbnail.product-thumbnail img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    position: relative !important;
    object-fit: contain !important;
    padding: 10px !important;
}

/* Reduce excessive spacing in product cards */
.product-miniature .product-description {
    padding: 12px 15px !important;
}

.product-miniature .product-price-and-shipping {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* Compact product card actions overlay */
.product-miniature .pro3-btn {
    bottom: 5px !important;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.product-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.product-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-orange);
    margin-bottom: 12px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.product-btn.primary {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.product-btn.primary:hover {
    background: #E67E1F;
    border-color: #E67E1F;
}

/* ========================================
   12. FOOTER
   ======================================== */

footer {
    background: var(--dark-bg);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   13. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

body.accessibility-mode .section-title,
body.accessibility-mode .hero-content h1,
body.accessibility-mode .promo-banner h2 {
    font-weight: 800;
    letter-spacing: 0.5px;
}

body.accessibility-mode .btn-ai,
body.accessibility-mode .btn-primary {
    min-height: 56px;
    padding: 16px 32px;
}

/* ========================================
   14. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .header-search {
        order: 3;
        max-width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .category-nav {
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    .topbar {
        font-size: 11px;
    }

    .topbar-content {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .bundle-card {
        grid-template-columns: 1fr;
    }

    .bundle-actions {
        flex-direction: column;
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .floating-ai {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 16px;
        right: 16px;
    }

    .promo-toast {
        max-width: 90%;
        right: 10px;
        bottom: 80px;
    }
}

/* ========================================
   GLOBAL SITE REDESIGN — ALL PAGES
   Modern styling for header, mega menu,
   product cards, category pages, etc.
   ======================================== */

/* --- HEADER GLOBAL IMPROVEMENTS --- */
#header {
    font-family: 'Inter', sans-serif;
}

#header .header-top {
    border-bottom: 2px solid var(--primary-orange);
}

#header .header-top .header-top-right a,
#header .header-top .header-top-right span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

/* Logo area spacing */
#header .header-top .position-static {
    padding: 10px 0;
}

/* --- MEGA MENU MODERN STYLING --- */
#_desktop_top_menu .top-menu,
.leo-menu-nav .navbar-nav,
#leo_desktop_top_menu .navbar-nav {
    font-family: 'Inter', sans-serif !important;
}

#_desktop_top_menu .top-menu > li > a,
.leo-menu-nav .navbar-nav > li > a,
#leo_desktop_top_menu .navbar-nav > li > a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: color 0.3s ease !important;
    padding: 8px 16px !important;
}

#_desktop_top_menu .top-menu > li > a:hover,
.leo-menu-nav .navbar-nav > li > a:hover,
#leo_desktop_top_menu .navbar-nav > li > a:hover {
    color: var(--primary-orange) !important;
}

/* Dropdown / sub-menu mega styling */
#_desktop_top_menu .top-menu .sub-menu,
.leo-menu-nav .dropdown-menu,
#leo_desktop_top_menu .dropdown-menu {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 20px !important;
    margin-top: 8px !important;
    min-width: 260px !important;
    background: white !important;
    animation: menuFadeIn 0.25s ease !important;
}

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

#_desktop_top_menu .top-menu .sub-menu li > a,
.leo-menu-nav .dropdown-menu li > a,
#leo_desktop_top_menu .dropdown-menu li > a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-dark) !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: block !important;
    text-transform: none !important;
}

#_desktop_top_menu .top-menu .sub-menu li > a:hover,
.leo-menu-nav .dropdown-menu li > a:hover,
#leo_desktop_top_menu .dropdown-menu li > a:hover {
    background: #FFF5E6 !important;
    color: var(--primary-orange) !important;
    padding-left: 22px !important;
}

/* Sub-sub-menu (3rd level) */
.leo-menu-nav .dropdown-menu .dropdown-menu,
#leo_desktop_top_menu .dropdown-menu .dropdown-menu {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    margin-left: 4px !important;
}

/* --- BREADCRUMB STYLING --- */
.breadcrumb {
    font-family: 'Inter', sans-serif !important;
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF5E6 100%) !important;
    border-bottom: 1px solid rgba(247, 148, 29, 0.15) !important;
    padding: 12px 20px !important;
}

.breadcrumb li {
    font-size: 13px !important;
}

.breadcrumb li a {
    color: var(--primary-orange) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.breadcrumb li::after,
.breadcrumb li span.separator {
    color: #ccc !important;
}

/* --- PRODUCT CARDS — CATEGORY PAGES --- */
.product-miniature {
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #F0F0F0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.35s ease !important;
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.product-miniature:hover {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 8px 28px rgba(247, 148, 29, 0.15) !important;
    transform: translateY(-4px) !important;
}

.product-miniature .thumbnail-container {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-miniature .thumbnail-container img {
    transition: transform 0.4s ease !important;
}

.product-miniature:hover .thumbnail-container img {
    transform: scale(1.05) !important;
}

.product-miniature .product-title a {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.product-miniature .product-title a:hover {
    color: var(--primary-orange) !important;
}

.product-miniature .product-price-and-shipping .price {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: var(--primary-orange) !important;
}

.product-miniature .product-price-and-shipping .regular-price {
    font-size: 13px !important;
    color: #999 !important;
    text-decoration: line-through !important;
}

/* Product flags (En stock, Promo, etc.) */
.product-miniature .product-flag {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
}

.product-miniature .product-flag.on-sale,
.product-miniature .product-flag.discount {
    background: var(--warning-red) !important;
    color: white !important;
}

.product-miniature .product-flag.new {
    background: var(--primary-orange) !important;
    color: white !important;
}

.product-miniature .product-flag.online-only {
    background: var(--success-green) !important;
    color: white !important;
}

/* Quick view & action buttons */
.product-miniature .highlighted-informations,
.product-miniature .product-list-actions {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    border-top: 1px solid #F0F0F0 !important;
}

.product-miniature .quick-view,
.product-miniature .btn-product {
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

/* Star ratings */
.product-miniature .star-content .star {
    color: var(--primary-orange) !important;
}

/* --- CATEGORY PAGE LAYOUT --- */
#category #left-column,
#search #left-column {
    font-family: 'Inter', sans-serif !important;
}

/* Category sidebar */
#left-column .block-categories .category-sub-menu li a {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: block !important;
}

#left-column .block-categories .category-sub-menu li a:hover {
    background: #FFF5E6 !important;
    color: var(--primary-orange) !important;
    padding-left: 18px !important;
}

#left-column .block-categories .category-sub-menu li.current a {
    color: var(--primary-orange) !important;
    font-weight: 700 !important;
    background: #FFF5E6 !important;
}

/* Category title */
#category h1,
#js-product-list-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 28px !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
}

/* Sort bar */
.products-sort-order .select-title,
.products-sort-order select {
    font-family: 'Inter', sans-serif !important;
    border-radius: 10px !important;
    border: 1px solid #E0E0E0 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
}

/* Pagination */
.pagination .page-list li a,
.pagination .page-list li span {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    margin: 0 3px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.pagination .page-list li.current a,
.pagination .page-list li.current span {
    background: var(--primary-orange) !important;
    color: white !important;
    border-color: var(--primary-orange) !important;
}

.pagination .page-list li a:hover {
    background: #FFF5E6 !important;
    color: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
}

/* --- PRODUCT PAGE STYLING --- */
#product .product-prices .current-price .price {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: var(--primary-orange) !important;
}

#product h1.product-detail-title,
#product h1[itemprop="name"] {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 26px !important;
    color: var(--text-dark) !important;
    line-height: 1.3 !important;
}

#product .product-description {
    font-family: 'Inter', sans-serif !important;
    line-height: 1.7 !important;
    color: #444 !important;
}

#product .add-to-cart {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    background: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

#product .add-to-cart:hover {
    background: #E8850A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(247, 148, 29, 0.4) !important;
}

/* Product quantity input */
#product .product-quantity .qty input {
    border-radius: 8px !important;
    border: 2px solid #E0E0E0 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* Product availability badge */
#product .product-availability {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

/* Product tabs */
#product .nav-tabs .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s ease !important;
}

#product .nav-tabs .nav-link.active {
    color: var(--primary-orange) !important;
    border-bottom-color: var(--primary-orange) !important;
}

/* --- GLOBAL BUTTONS --- */
.btn-primary,
.btn.btn-primary {
    background: var(--primary-orange) !important;
    border-color: var(--primary-orange) !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: #E8850A !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.3) !important;
}

/* --- FOOTER IMPROVEMENTS --- */
#footer {
    font-family: 'Inter', sans-serif !important;
}

#footer h4,
#footer .h4 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--primary-orange) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
}

#footer a {
    transition: color 0.2s ease, padding-left 0.2s ease !important;
}

#footer a:hover {
    color: var(--primary-orange) !important;
    padding-left: 4px !important;
}

/* --- GLOBAL FORM STYLING --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    border: 1.5px solid #E0E0E0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.15) !important;
    outline: none !important;
}

/* --- SCROLLBAR CUSTOM (webkit) --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange);
}

/* --- RESPONSIVE IMPROVEMENTS --- */
@media (max-width: 768px) {
    .product-miniature {
        border-radius: 12px !important;
    }

    #category h1 {
        font-size: 22px !important;
    }

    #product .add-to-cart {
        width: 100% !important;
        padding: 16px !important;
    }
}
