/* ==========================================================================
   DESIGN TOKENS & RESET — THÈME BLANC/NOIR PROFESSIONNEL
   ========================================================================== */
:root {
    /* Backgrounds — blanc pur, gris léger pour les sections alternées */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --bg-card: #ffffff;

    /* Textes — noir profond sur blanc */
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;

    /* Accent principal — rouge Caréco officiel */
    --color-primary: #C8102E;
    --color-primary-hover: #a50d25;
    --color-primary-glow: rgba(200, 16, 46, 0.12);

    /* Vert pour badges/statuts positifs */
    --color-green: #009933;
    --color-green-hover: #007a28;

    /* Alias couleur rouge (compat ancien code) */
    --color-red: #C8102E;
    --color-red-hover: #a50d25;
    --color-red-glow: rgba(200, 16, 46, 0.15);

    --color-yellow: #f59e0b;
    --color-blue: #2563eb;

    /* Bordures — gris discrets */
    --border-color: #e0e0e0;
    --border-color-hover: #C8102E;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-title: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Ombres légères sur fond blanc */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 16px rgba(200, 16, 46, 0.18);
    --shadow-glow-red: 0 0 16px rgba(200, 16, 46, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f5f5f5;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f5f5f5;
}
::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8102E;
}

/* ==========================================================================
   LAYOUTS & CONTAINER
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.section {
    padding: 80px 0;
}

.section-title-wrap {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 8px;
}

/* Grid helper */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Utilities */
.w-100 { width: 100%; }
.green-text { color: var(--color-primary); }
.red-text { color: var(--color-red); }
.text-center { text-align: center; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-green { background-color: rgba(16, 185, 129, 0.15); color: var(--color-primary); }
.badge-red { background-color: rgba(239, 68, 68, 0.15); color: var(--color-red); }
.badge-yellow { background-color: rgba(245, 158, 11, 0.15); color: var(--color-yellow); }

/* ==========================================================================
   BUTTONS & INPUTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: skewX(-8deg); /* Premium automotive sporty skew */
    transition: var(--transition-normal);
}

.btn > * {
    display: inline-block;
    transform: skewX(8deg); /* Unskew text/icons inside */
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: skewX(-8deg) translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary-glow);
    color: var(--color-primary);
    border-color: var(--color-primary-hover);
    transform: skewX(-8deg) translateY(-2px);
}

.btn-danger {
    background-color: var(--color-red);
    color: white;
}
.btn-danger:hover {
    background-color: var(--color-red-hover);
    box-shadow: var(--shadow-glow-red);
    transform: skewX(-8deg) translateY(-2px);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.15);
    background-color: #ffffff;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.top-bar {
    background-color: #111111;
    border-bottom: 1px solid #222222;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #cccccc;
}

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

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-text svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.main-header {
    background-color: #ffffff;
    border-bottom: 3px solid var(--color-primary);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-accent {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 5px;
    margin-left: 2px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444444;
    padding: 8px 12px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--color-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    background: #fff;
}
.admin-nav-link::after {
    display: none;
}
.admin-nav-link:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    color: #111111;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-fast);
}

.cart-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: #ffffff;
    border-bottom: 2px solid var(--color-primary);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
}

/* ==========================================================================
   VIEWS - HOME PAGE
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 100px 0 140px;
    background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(20,20,20,0.70) 50%, rgba(0,0,0,0.88) 100%), 
                url('https://images.unsplash.com/photo-1617814076367-b759c7d7e738?auto=format&fit=crop&q=80&w=1920') no-repeat center center/cover;
    border-bottom: 3px solid var(--color-primary);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 16, 46, 0.18);
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(200, 16, 46, 0.4);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Floating Advanced Search Panel */
.search-wrapper {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.search-panel {
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.search-panel-title {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.search-btn-col {
    display: flex;
    align-items: flex-end;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(200, 16, 46, 0.12);
    background: #fff5f6;
}

.category-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.category-card:hover .category-icon-wrap {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.category-card h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Card Component */
.product-card {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.12);
}

.product-image-box {
    aspect-ratio: 4/3;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.product-info-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-vehicle-ref {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
}

.compatibility-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 16px;
    background-color: var(--bg-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.compatibility-tag svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
}

.product-buy-btn {
    background-color: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    color: #111111;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.product-buy-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* Recent Vehicles Grid (Incoming donor cars) */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vehicle-card {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.vehicle-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.10);
}

.vehicle-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.vehicle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.vehicle-card:hover .vehicle-img img {
    transform: scale(1.06);
}

.vehicle-info {
    padding: 24px;
}

.vehicle-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.vehicle-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.vehicle-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-detail-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

/* Testimonials Slider/Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #ffffff;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.10);
}

.testimonial-quote {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-meta h5 {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
}

.user-meta p {
    font-size: 0.75rem;
    color: var(--color-primary);
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: var(--color-yellow);
    margin-top: 4px;
}

.rating-stars svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ==========================================================================
   VIEWS - SHOP PAGE
   ========================================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filter-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.shop-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.shop-sort-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-sort-wrap select {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
}

.ref-search-bar {
    margin-bottom: 24px;
}

/* ==========================================================================
   VIEWS - PRODUCT DETAILS
   ========================================================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 40px;
}

.product-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-wrap {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

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

.thumbs-strip {
    display: flex;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: var(--bg-card);
}

.thumb-item.active {
    border-color: var(--color-primary);
}

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

.product-info-panel {
    display: flex;
    flex-direction: column;
}

.product-title-wrap h1 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-meta-strip {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.product-detail-price {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.product-summary-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-item span:first-child {
    color: var(--text-secondary);
}

.accordion-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.accordion-header {
    background-color: var(--bg-card);
    padding: 16px 24px;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-content {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: none;
}

.accordion-content.active {
    display: block;
}

.compatibility-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compatibility-table th, .compatibility-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.compatibility-table th {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   VIEWS - CHECKOUT PAGE
   ========================================================================== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

.checkout-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.checkout-step-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-tab-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.payment-tab-btn svg {
    width: 20px;
    height: 20px;
}

.payment-tab-btn.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary-glow);
    color: var(--color-primary);
}

.payment-form-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.payment-form-panel.active {
    display: block;
}

/* Animated Credit Card */
.credit-card-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1.58/1;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
    color: #0b0f19;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
}

.card-chip {
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    border-radius: 4px;
    margin-top: 10px;
}

.card-number-view {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 2px;
    word-spacing: 4px;
    margin: 16px 0 8px;
}

.card-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.card-holder-name {
    font-weight: 600;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bank RIB Display style */
.bank-rib-box {
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color-hover);
    border-radius: var(--radius-md);
    padding: 20px;
}

.rib-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.rib-field:last-child {
    border-bottom: none;
}

.rib-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rib-value {
    font-family: monospace;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
}

/* Order Summary Box */
.summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.summary-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.summary-items-list {
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-prod-item {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.summary-prod-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.summary-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-prod-details {
    flex-grow: 1;
}

.summary-prod-title {
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.summary-row-total {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 12px;
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
}

/* Premium Checkout CTA Button */
.btn-checkout-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 18px 32px;
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #021a0a;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: skewX(0deg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 15px rgba(16, 185, 129, 0.35),
        0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: checkoutPulse 2.5s ease-in-out infinite;
}

.btn-checkout-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    z-index: -1;
    transition: left 0.6s ease;
}

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

.btn-checkout-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(16, 185, 129, 0.5),
        0 0 40px rgba(16, 185, 129, 0.25),
        inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    animation: none;
}

.btn-checkout-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-checkout-cta .btn-checkout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    padding: 4px;
}

.btn-checkout-cta .btn-checkout-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes checkoutPulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(16, 185, 129, 0.35),
            0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(16, 185, 129, 0.45),
            0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/* Checkout secure badge */
.checkout-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.checkout-secure-badge svg {
    width: 12px;
    height: 12px;
    color: var(--color-primary);
}

/* ==========================================================================
   VIEWS - ADMIN DASHBOARD
   ========================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.admin-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.admin-nav-item:hover, .admin-nav-item.active {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-val {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 4px 0;
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    background-color: rgba(22, 29, 46, 0.5);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.action-btn.btn-delete:hover {
    color: var(--color-red);
    border-color: var(--color-red);
}

/* Chart block styling */
.chart-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.chart-svg-wrap {
    width: 100%;
    height: 200px;
    position: relative;
}

/* Modal styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   GLOBAL COMPONENTS (Cart Drawer, WhatsApp, Toasts)
   ========================================================================== */
/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: none;
}

.cart-drawer-overlay.active {
    display: block;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

.cart-drawer.active {
    right: 0;
}

.cart-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
}

.cart-drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-qty-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.cart-item-remove:hover {
    color: var(--color-red);
}

.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-tax-notice {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Floating WhatsApp Widget */
.whatsapp-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    z-index: 2;
    animation: pulseGlow 1.8s infinite;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 20px;
    height: 20px;
}

.whatsapp-chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-card);
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.whatsapp-chat-window.active {
    display: flex;
}

.chat-header {
    background-color: #075e54;
    padding: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #25d366;
    border-radius: 50%;
    border: 1.5px solid #075e54;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.chat-header-info p {
    font-size: 0.75rem;
    opacity: 0.8;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
}

.chat-body {
    background-color: #e5ddd5;
    padding: 16px;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.chat-msg.received {
    background-color: white;
    color: #303030;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-time {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.chat-footer {
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.whatsapp-chat-send {
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: var(--radius-md);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #111111;
}

.toast.toast-error {
    border-left-color: var(--color-red);
}

.toast.toast-warning {
    border-left-color: var(--color-yellow);
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #111111;
    border-top: 3px solid var(--color-primary);
    padding: 80px 0 24px;
    color: #aaaaaa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.footer-col h4 {
    font-family: var(--font-title);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

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

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.contact-info-list li svg {
    color: var(--color-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 24px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.payment-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-logos svg {
    width: 24px;
    height: 24px;
}

.payment-badge {
    background-color: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.7rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
}

/* ==========================================================================
   NEW HOMEPAGE DESIGN SYSTEM (LIGHT MODE HOME)
   ========================================================================== */
.home-light-wrapper {
    background-color: #ffffff;
    color: #1e293b;
    font-family: var(--font-sans);
}

.trustpilot-ribbon {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    color: #334155;
    font-size: 0.85rem;
}

.trustpilot-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-logo {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00b67a;
}

.tp-star-icon {
    fill: #00b67a;
    color: #00b67a;
    width: 16px;
    height: 16px;
}

.tp-stars {
    display: flex;
    gap: 2px;
    color: #00b67a;
}

.tp-stars svg {
    width: 16px;
    height: 16px;
}

.tp-stars svg.filled {
    fill: #00b67a;
}

.tp-stars svg.filled-half {
    fill: #00b67a;
    opacity: 0.6;
}

.tp-rating-text {
    color: #475569;
}

.home-hero {
    padding: 80px 0;
    background: radial-gradient(circle at 90% 10%, rgba(0, 153, 51, 0.04) 0%, transparent 60%);
    overflow: hidden;
}

.hero-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.trust-badge-red {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(200, 16, 46, 0.06);
    border: 1px solid rgba(200, 16, 46, 0.15);
    color: #C8102E;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title-main {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title-main span {
    color: #009933;
}

.hero-text-sub {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-home {
    background-color: #009933;
    color: #ffffff;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 153, 51, 0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-home:hover {
    background-color: #00802b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 51, 0.3);
}

.btn-whatsapp-home {
    background-color: #25d366;
    color: #ffffff;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp-home:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.hero-right-visual {
    position: relative;
}

.hero-img-box {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 4px solid #ffffff;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.hero-img-box:hover {
    transform: rotate(0deg) scale(1.02);
}

.visual-decor-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 153, 51, 0.08);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* Plate Search Section */
.plate-search-section {
    padding: 30px 0;
}

.plate-search-container {
    background-color: #1e293b;
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: var(--radius-xl);
    padding: 32px 48px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plate-info h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plate-info p {
    font-size: 0.95rem;
    color: #94a3b8;
}

.plate-form-flex {
    display: flex;
    align-items: center;
    gap: 16px;
}

.plate-input-wrapper {
    display: flex;
    background-color: #f8fafc;
    border: 3px solid #000000;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 52px;
    width: 220px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plate-blue-left, .plate-blue-right {
    background-color: #003399;
    color: #ffffff;
    width: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: var(--font-sans);
    line-height: 1;
}

.plate-input-field {
    flex-grow: 1;
    border: none;
    background: none;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: monospace;
    width: 100%;
}

.plate-input-field:focus {
    outline: none;
}

.btn-primary-home-skew {
    background-color: #009933;
    color: #ffffff;
    height: 52px;
    padding: 0 32px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 153, 51, 0.25);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-home-skew:hover {
    background-color: #00802b;
    transform: translateY(-2px);
}

/* Stats Counter Section */
.stats-counter-section {
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 40px 0;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-card-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: #009933;
    line-height: 1;
    font-family: var(--font-title);
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

/* Brand Section */
.home-brands-section {
    padding: 80px 0;
}

.home-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.home-section-header h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.home-section-header p {
    font-size: 1rem;
    color: #64748b;
}

.brands-logo-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.brand-logo-card {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.brand-logo-card:hover {
    background-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #009933;
}

.brand-avatar-text {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(0, 153, 51, 0.08);
    color: #009933;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
}

.brand-name-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
}

.brands-footer-btn {
    text-align: center;
    margin-top: 40px;
}

.btn-secondary-home {
    background: transparent;
    border: 2px solid #009933;
    color: #009933;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-secondary-home:hover {
    background-color: rgba(0, 153, 51, 0.05);
    transform: translateY(-2px);
}

/* Category Pills Grid */
.home-cats-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cats-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-pill-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-pill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    border-color: #009933;
}

.cat-pill-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: rgba(0, 153, 51, 0.08);
    color: #009933;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-pill-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cat-pill-details span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Featured Products Home */
.home-products-section {
    padding: 80px 0;
}

.featured-products-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prod-card-light {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    display: flex;
    flex-direction: column;
}

.prod-card-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 153, 51, 0.2);
}

.prod-badge-state {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #C8102E;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.prod-image-wrapper {
    height: 200px;
    background-color: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.prod-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prod-card-light:hover .prod-image-wrapper img {
    transform: scale(1.05);
}

.prod-details-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-ref-code {
    font-size: 0.75rem;
    font-family: monospace;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

.prod-title-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 3rem;
}

.prod-title-link a:hover {
    color: #009933;
}

.prod-compat-car {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f8fafc;
    padding: 8px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.prod-compat-car svg {
    width: 14px;
    height: 14px;
    color: #64748b;
}

.prod-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.prod-price-text {
    font-size: 1.45rem;
    font-weight: 900;
    color: #009933;
    font-family: var(--font-title);
}

.ttc-small {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: normal;
}

.prod-cart-btn-trigger {
    background-color: #C8102E;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.prod-cart-btn-trigger:hover {
    background-color: #a00d25;
    transform: translateY(-1px);
}

/* Brand Guides Section */
.guides-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.guides-pills-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-pill-item {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s;
}

.guide-pill-item:hover {
    border-color: #009933;
    color: #009933;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.03);
}

/* Trustpilot Testimonials */
.trustpilot-testimonials {
    padding: 80px 0;
}

.testimonials-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card-light {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.t-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.t-stars .star-fill {
    fill: #00b67a;
    color: #00b67a;
    width: 16px;
    height: 16px;
}

.t-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 18px;
}

.t-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1e293b;
    display: block;
}

/* Press Row */
.press-section-row {
    padding: 32px 0;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.press-grid-items {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.press-text-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
}

.press-logo-text {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 900;
    color: #64748b;
    opacity: 0.65;
}

/* Help banner */
.home-help-banner {
    padding: 50px 0;
    background-color: #009933;
    color: #ffffff;
}

.help-flex-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.help-details-col h2 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.help-details-col p {
    font-size: 1rem;
    opacity: 0.9;
}

.help-action-col {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-secondary-home-phone {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-home-phone:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-whatsapp-home-large {
    background-color: #25d366;
    color: #ffffff;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp-home-large:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-btn-col {
        grid-column: span 3;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        display: none;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* New home grids */
    .brands-logo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cats-pills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-products-grid-custom {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Base Overrides */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        position: relative;
    }
    .container {
        padding: 0 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .section {
        padding: 40px 0 !important;
    }
    .section-title {
        font-size: 1.6rem !important;
    }
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    .section-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Top Bar hiding to save space */
    .top-bar {
        display: none !important;
    }

    /* Header & Mobile Menu */
    .main-header {
        height: 60px !important;
    }
    :root {
        --header-height: 60px !important;
    }
    .logo-accent {
        font-size: 1.3rem !important;
    }
    .logo-sub {
        font-size: 0.6rem !important;
        letter-spacing: 3px !important;
    }
    .nav-menu {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    .lang-dropdown-wrapper {
        margin-right: 8px !important;
    }
    .lang-dropdown-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
    }

    /* Mobile Nav Panel (Slide-down Fullscreen Overlay) */
    .mobile-nav {
        display: none;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        background: rgba(10, 15, 26, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 2px solid #009933 !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        gap: 16px !important;
        z-index: 199 !important;
        overflow-y: auto !important;
        animation: fadeIn 0.25s ease forwards !important;
    }
    .mobile-nav-link {
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        padding: 14px 16px !important;
        border-radius: var(--radius-md) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        transition: var(--transition-fast) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-transform: uppercase !important;
    }
    .mobile-nav-link:hover, .mobile-nav-link.active {
        background: rgba(0, 153, 51, 0.1) !important;
        border-color: #009933 !important;
        color: #009933 !important;
    }

    /* Redesigned Light Hero */
    .home-hero {
        padding: 40px 0 !important;
    }
    .hero-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }
    .trust-badge-red {
        justify-content: center;
    }
    .hero-title-main {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    .hero-text-sub {
        font-size: 0.95rem !important;
        margin-bottom: 24px !important;
    }
    .hero-action-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .hero-action-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .hero-right-visual {
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-img-box {
        transform: none !important;
    }

    /* Plate Search Mobile */
    .plate-search-container {
        flex-direction: column !important;
        padding: 24px 20px !important;
        text-align: center;
        gap: 20px !important;
    }
    .plate-form-flex {
        flex-direction: column !important;
        width: 100% !important;
        gap: 14px !important;
    }
    .plate-input-wrapper {
        width: 240px !important;
    }
    .btn-primary-home-skew {
        width: 240px !important;
        justify-content: center;
    }

    /* Stats Grid Mobile */
    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .stat-number {
        font-size: 2rem !important;
    }
    .stat-label {
        font-size: 0.8rem !important;
    }

    /* Brands & Cats Grids Mobile */
    .brands-logo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
    .cats-pills-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .cat-pill-card {
        padding: 14px 16px !important;
    }

    /* Featured Products Grid Custom */
    .featured-products-grid-custom {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .prod-card-light {
        border-radius: var(--radius-lg) !important;
    }
    .prod-image-wrapper {
        height: 140px !important;
    }
    .prod-details-wrapper {
        padding: 12px !important;
    }
    .prod-title-link {
        font-size: 0.9rem !important;
        min-height: 2.4rem !important;
        margin-bottom: 8px !important;
    }
    .prod-compat-car {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
        margin-bottom: 12px !important;
    }
    .prod-footer-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 8px !important;
    }
    .prod-price-text {
        font-size: 1.15rem !important;
        text-align: center !important;
    }
    .prod-cart-btn-trigger {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px !important;
        font-size: 0.75rem !important;
    }

    /* Testimonials Mobile */
    .testimonials-cards-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Help Banner Mobile */
    .help-flex-box {
        flex-direction: column !important;
        text-align: center;
        gap: 20px !important;
    }
    .help-action-col {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    .btn-secondary-home-phone, .btn-whatsapp-home-large {
        width: 100% !important;
        justify-content: center;
    }

    /* Legacy Search Panel */
    .search-wrapper {
        margin-top: -20px !important;
    }
    .search-panel {
        padding: 20px 16px !important;
    }
    .search-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .search-btn-col {
        grid-column: span 1 !important;
    }
    .search-btn-col .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Legacy Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .category-card {
        padding: 20px 12px !important;
    }

    /* Legacy Product Grids */
    #featured-products-grid, 
    #shop-products-grid,
    .product-detail-layout + div .grid-3,
    .grid-3:has(.product-card),
    .grid-4:has(.product-card) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .product-info-box {
        padding: 12px !important;
    }
    .product-card-title {
        font-size: 0.9rem !important;
        height: auto !important;
        min-height: 2.4rem !important;
        margin-bottom: 8px !important;
    }
    .compatibility-tag {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
        margin-bottom: 12px !important;
    }
    .product-card-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding-top: 8px !important;
    }
    .product-price {
        font-size: 1.1rem !important;
        text-align: center !important;
        display: block !important;
    }
    .product-buy-btn {
        width: 100% !important;
        height: 38px !important;
        border-radius: var(--radius-md) !important;
        background-color: #009933 !important;
        border-color: #009933 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Vehicles & Testimonials (Legacy) */
    .vehicles-grid, .testimonial-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Shop View Layout */
    .shop-layout {
        grid-template-columns: 1fr !important;
    }
    .filter-sidebar {
        display: none !important;
    }
    .shop-content-header {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    /* Product Detail View */
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .product-title-wrap h1 {
        font-size: 1.4rem !important;
    }
    .product-detail-price {
        font-size: 1.6rem !important;
    }
    .product-meta-strip {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .thumbs-strip {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .thumb-item {
        width: 60px !important;
        height: 45px !important;
    }

    /* Checkout View */
    .checkout-layout {
        grid-template-columns: 1fr !important;
    }
    .checkout-card {
        padding: 20px 16px !important;
    }
    .payment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .checkout-steps {
        gap: 4px !important;
    }
    .step-label {
        font-size: 0.65rem !important;
    }
    .rib-fields-grid {
        grid-template-columns: 1fr !important;
    }
    .rib-fields-grid .full-width {
        grid-column: span 1 !important;
    }
    .credit-card-preview {
        max-width: 100% !important;
    }
    .summary-card {
        position: static !important;
    }
    .success-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .success-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Cart Drawer */
    .cart-drawer {
        width: 100% !important;
    }
    .cart-drawer-header, .cart-drawer-footer {
        padding: 16px !important;
    }
    .cart-drawer-content {
        padding: 16px !important;
    }
    .cart-item {
        padding: 12px 0 !important;
        gap: 12px !important;
    }
    .cart-item-img {
        width: 60px !important;
        height: 60px !important;
    }

    /* Admin View */
    .admin-layout {
        grid-template-columns: 1fr !important;
    }
    .admin-sidebar {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 10px !important;
        gap: 8px !important;
        background-color: var(--bg-card);
        border-radius: var(--radius-md) !important;
        margin-bottom: 20px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .admin-nav-item {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .admin-table {
        font-size: 0.8rem !important;
    }
    .admin-table th, .admin-table td {
        padding: 10px 12px !important;
    }
    .modal-box {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
    }
    .modal-body {
        padding: 16px !important;
        max-height: 80vh !important;
    }
    .modal-header, .modal-footer {
        padding: 12px 16px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .main-footer {
        padding: 40px 0 20px !important;
    }
    .footer-bottom-content {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }

    /* Floating WhatsApp Widget */
    .whatsapp-btn span {
        display: none !important;
    }
    .whatsapp-btn {
        padding: 12px !important;
        border-radius: 50% !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .whatsapp-floating {
        bottom: 16px !important;
        right: 16px !important;
    }
    .whatsapp-chat-window {
        width: calc(100vw - 32px) !important;
        max-width: 360px !important;
        right: 0 !important;
        bottom: 60px !important;
    }

    /* Toasts */
    .toast {
        min-width: auto !important;
        width: calc(100vw - 32px) !important;
    }
    .toast-container {
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
    }

    /* Legal Sections */
    .legal-container {
        grid-template-columns: 1fr !important;
    }
    .legal-nav {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        position: static !important;
        padding: 10px !important;
        gap: 8px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .legal-content {
        padding: 20px 16px !important;
    }
    .legal-title {
        font-size: 1.4rem !important;
    }

    /* Delivery Tracking */
    .tracking-info-grid {
        grid-template-columns: 1fr !important;
    }
    .timeline-steps-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .timeline-step {
        flex-direction: row !important;
        width: 100% !important;
        text-align: left !important;
        gap: 16px !important;
    }
    .timeline-bar-bg, .timeline-bar-progress {
        display: none !important;
    }
    .timeline-dot {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title-main {
        font-size: 1.6rem !important;
    }
    .hero-section {
        padding: 40px 0 !important;
    }
    
    /* Force grids to single column on very small phones if columns squished */
    .brands-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .featured-products-grid-custom,
    #featured-products-grid, 
    #shop-products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .prod-image-wrapper {
        height: 180px !important;
    }
    .prod-footer-row {
        flex-direction: row !important;
        align-items: center !important;
    }
    .prod-price-text {
        text-align: left !important;
    }
    .prod-cart-btn-trigger {
        width: auto !important;
        padding: 8px 16px !important;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .payment-grid {
        grid-template-columns: 1fr !important;
    }
    .search-panel-title {
        font-size: 1rem !important;
    }
    .step-label {
        display: none !important;
    }
    .step-line {
        transform: translateY(0) !important;
    }
}

/* ==========================================================================
   LOGIN VIEW STYLES
   ========================================================================== */
.login-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 60px 20px;
    overflow: hidden;
    /* Carbon fiber background pattern */
    background: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 80%),
        linear-gradient(45deg, #030508 25%, transparent 25%), 
        linear-gradient(-45deg, #030508 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #030508 75%), 
        linear-gradient(-45deg, transparent 75%, #030508 75%);
    background-size: 100% 100%, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
    background-color: #06080d;
}

.login-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    filter: blur(20px);
}

.login-card {
    position: relative;
    z-index: 2;
    background: rgba(12, 17, 27, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(16, 185, 129, 0.08);
    border-top: 4px solid var(--color-primary);
    animation: loginFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.login-error-alert {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--color-red);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.login-error-alert svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.forgot-password-link {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.input-icon-wrapper .form-control {
    padding-left: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.login-card.shake {
    animation: shake 0.4s ease;
}

/* ==========================================================================
   TRACKING & TIMELINE STYLES
   ========================================================================== */
.tracking-search-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.tracking-details-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.timeline-container-wrapper {
    position: relative;
    padding: 20px 0;
    margin: 40px 0;
}

.timeline-bar-bg {
    position: absolute;
    top: 30px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: var(--bg-tertiary);
    z-index: 1;
    border-radius: 2px;
}

.timeline-bar-progress {
    position: absolute;
    top: 30px;
    left: 5%;
    height: 4px;
    background-color: var(--color-primary);
    z-index: 2;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-steps-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.timeline-step.completed .timeline-dot {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #0b0f19;
}

.timeline-step.active .timeline-dot {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: dotPulse 1.5s infinite;
}

.timeline-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label {
    color: var(--text-primary);
}

@keyframes dotPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-lbl svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

.info-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.history-log-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.history-log-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.history-log-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.history-log-row:last-child {
    margin-bottom: 0;
}

.log-dot-line {
    position: relative;
    flex-shrink: 0;
}

.log-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color-hover);
    border: 2px solid var(--bg-card);
    position: absolute;
    left: -20px;
    top: 5px;
    z-index: 2;
}

.history-log-row:first-child .log-dot {
    background-color: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
}

.log-details {
    flex-grow: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

/* ==========================================================================
   LEGAL PAGES STYLES
   ========================================================================== */
.legal-page {
    padding-top: 40px;
}

.legal-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.legal-nav a {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.legal-nav a:hover, .legal-nav a.active {
    background-color: var(--bg-secondary);
    color: var(--color-primary);
}

.legal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.legal-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-last-update {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.legal-card-flat {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.legal-card-flat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-card-flat h3 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.legal-card-flat p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-card-flat ul {
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.alert-box {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-box.green {
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #cbd5e0;
}

.alert-box.green svg {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.support-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.support-contact-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.support-contact-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.support-contact-item svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-contact-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-contact-item strong {
    font-size: 0.9rem;
}

.support-contact-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Note: Mobile overrides for legal and tracking sections have been merged into the unified responsive breakpoints block above. */

/* ==========================================================================
   LANGUAGE SELECTOR
   ========================================================================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 100;
    margin-right: 15px;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    text-transform: uppercase;
}

.lang-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.lang-dropdown-wrapper.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-dropdown-wrapper.active .lang-dropdown-list {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(200, 16, 46, 0.15);
    color: var(--color-red);
    font-weight: 600;
}

/* ==========================================================================
   RTL LAYOUT SUPPORT (ARABIC)
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    unicode-bidi: embed;
}

html[dir="rtl"] .logo {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .nav-menu {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
}

html[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown-wrapper {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .lang-dropdown-list {
    right: auto;
    left: 0;
}

html[dir="rtl"] .search-grid {
    direction: rtl;
}

html[dir="rtl"] .search-btn-col {
    grid-column: span 1;
}

html[dir="rtl"] .grid-3, 
html[dir="rtl"] .category-grid,
html[dir="rtl"] .vehicles-grid,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .checkout-grid {
    direction: rtl;
}

html[dir="rtl"] .main-footer {
    text-align: right;
}

html[dir="rtl"] .whatsapp-floating {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .whatsapp-chat-window {
    left: 0;
    right: auto;
}

html[dir="rtl"] .chat-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .close-chat-btn {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .cart-drawer {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

html[dir="rtl"] .cart-drawer.active {
    transform: translateX(0);
}

html[dir="rtl"] .cart-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .cart-item-details {
    text-align: right;
    margin-left: 0;
    margin-right: 15px;
}

html[dir="rtl"] .delete-cart-item {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .checkout-container {
    direction: rtl;
}

html[dir="rtl"] .shipping-carrier-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .shipping-carrier-price {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .toast-container {
    left: 20px;
    right: auto;
}

/* ==========================================================================
   PREMIUM RED CHECKOUT CTA & EFFECTS (Cart Drawer & Checkout Views)
   ========================================================================== */
.premium-checkout-cta {
    position: relative;
    background: linear-gradient(135deg, #C8102E 0%, #a00d25 100%) !important;
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    font-family: var(--font-title);
    padding: 20px 28px !important;
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: 
        0 6px 20px rgba(200, 16, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-transform: uppercase;
}

.premium-checkout-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 14px 32px rgba(200, 16, 46, 0.6),
        0 0 25px rgba(200, 16, 46, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(135deg, #e01b3c 0%, #C8102E 100%) !important;
}

.premium-checkout-cta:active {
    transform: translateY(-1px) scale(1.0);
    box-shadow: 
        0 8px 18px rgba(200, 16, 46, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Radiant glow animation on checkout btn */
.premium-checkout-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 55%
    );
    transform: rotate(-45deg);
    transition: none;
    opacity: 0;
    pointer-events: none;
}

.premium-checkout-cta:hover::after {
    animation: shineEffect 1.5s infinite ease-in-out;
    opacity: 1;
}

@keyframes shineEffect {
    0% {
        left: -100%;
        top: -100%;
    }
    100% {
        left: 100%;
        top: 100%;
    }
}

.premium-checkout-cta .btn-arrow-icon {
    transition: transform 0.3s ease;
}

.premium-checkout-cta:hover .btn-arrow-icon {
    transform: translateX(4px);
}

html[dir="rtl"] .premium-checkout-cta:hover .btn-arrow-icon {
    transform: translateX(-4px);
}

/* ==========================================================================
   PHASE 6 - PREMIUM CHECKOUT, TRACKING MODAL, DRAG-DROP UPLOADS & INSURANCE
   ========================================================================== */

/* Green Checkout CTA Button */
.premium-green-cta {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 
        0 6px 20px rgba(34, 197, 94, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-green-cta:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 14px 32px rgba(34, 197, 94, 0.6),
        0 0 25px rgba(34, 197, 94, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%) !important;
}

.premium-green-cta:active {
    transform: translateY(-1px) scale(1.0);
    box-shadow: 
        0 8px 18px rgba(34, 197, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Bank RIB Premium Box */
.bank-rib-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}

.bank-rib-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ssl-badge-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.rib-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.rib-fields-grid .full-width {
    grid-column: span 2;
}

.rib-field-premium {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rib-label-premium {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.rib-value-premium {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rib-value-premium.mono {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.rib-field-premium .copy-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rib-field-premium .copy-btn:hover {
    opacity: 1;
}

/* Payment Badges & States */
.payment-badge-recommended {
    font-size: 0.65rem;
    font-weight: bold;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.payment-badge-unavailable {
    font-size: 0.65rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.payment-tab-btn.unavailable {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.payment-tab-btn.unavailable:hover {
    border-color: var(--border-color) !important;
    background: var(--bg-secondary) !important;
}

.payment-unavailable-block {
    text-align: center;
    padding: 30px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.01);
}

/* Checkout Progress Steps */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.checkout-step.active .step-circle {
    border-color: var(--color-primary);
    background: var(--color-primary-glow);
    color: var(--color-primary);
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.checkout-step.active .step-label {
    color: var(--text-primary);
}

.step-line {
    height: 2px;
    background: var(--border-color);
    flex-grow: 1;
    margin: 0 10px;
    transform: translateY(-13px);
}

/* Checkout Trust Reminder Box */
.checkout-warranty-reminder {
    background: rgba(34, 197, 94, 0.02);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.checkout-warranty-reminder i {
    color: #22c55e;
    flex-shrink: 0;
}

/* Success Screen Premium Styling */
.success-header-block {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.success-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.success-order-id {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
}

.success-status-band {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.success-status-band.pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.success-summary-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
}

.virement-instructions-box {
    background: rgba(255, 251, 235, 0.01);
    border: 1px solid #fbbf24;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
}

.virement-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.virement-detail:last-child {
    border-bottom: none;
}

.virement-detail.motif {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid #f59e0b;
    padding: 10px 12px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    color: #f59e0b;
    margin-top: 10px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
}

.btn-whatsapp:hover {
    background: #20ba5a !important;
    border-color: #20ba5a !important;
}

.btn-ghost {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: var(--border-color-hover) !important;
}

.total-amount-big {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-title);
}

/* Drag & Drop Upload Zone */
.drag-drop-zone:hover {
    background-color: rgba(255,255,255,0.02);
    border-color: var(--color-primary) !important;
}

/* Insurance Badge Styling */
.badge-blue {
    background-color: rgba(37, 99, 235, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
}

/* ==========================================================================
   UTILITY ANIMATIONS
   ========================================================================== */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}
