:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --header-height: 80px;
    --promo-height: 40px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    padding-top: calc(var(--header-height) + var(--promo-height));
}
.promo-banner {
    background: linear-gradient(90deg, #1e3a8a, #4f46e5, #7c3aed);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    height: var(--promo-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    white-space: nowrap;
    overflow: hidden;
}
.promo-marquee { display: inline-block; white-space: nowrap; will-change: transform; }
.promo-vertical { display: none; height: var(--promo-height); overflow: hidden; }
.promo-vertical-inner { display: flex; flex-direction: column; transform: translateY(0); transition: transform 0.6s ease; }
.promo-item { display: flex; align-items: center; justify-content: center; height: var(--promo-height); padding: 0 1rem; font-weight: 700; }
@media (min-width: 1200px) {
    .promo-banner { height: 46px; }
    .promo-banner .promo-content { display: none; }
    .promo-vertical { display: block; height: 46px; }
    .promo-item { height: 46px; font-size: 1.25rem; letter-spacing: 0.3px; font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
}
.site-header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: var(--header-height);
    position: fixed;
    top: var(--promo-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}
body.scrolled .site-header { transform: translateY(calc(-1 * var(--promo-height))); }
body.scrolled { padding-top: var(--header-height); }
.header-container {
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 768px) {
    .header-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
    #menu-btn { justify-self: start; }
    .logo { justify-self: center; }
    .header-icons { justify-self: end; }
}
.logo img { height: 45px; width: auto; }
.main-navbar { display: flex; gap: 0.5rem; }
.main-navbar a {
    color: var(--gray-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.main-navbar a:not(.active):hover { color: var(--dark-color); background-color: var(--light-color); }
.main-navbar a.active:hover { color: var(--gray-color) !important; background-color: var(--light-color); }
.header-icons { display: flex; align-items: center; gap: 1.5rem; }
.header-icons .icon-link, .header-icons .icon-btn {
    color: var(--dark-color); font-size: 1.6rem; position: relative;
    text-decoration: none;
    background: none; border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.header-icons .icon-link:hover, .header-icons .icon-btn:hover { color: var(--primary-color); }
.badge {
    position: absolute; top: -8px; right: -10px; background: var(--primary-color);
    color: white; border-radius: 50%; width: 20px; height: 20px;
    font-size: 0.75rem; display: flex; align-items: center;
    justify-content: center; font-weight: bold; border: 2px solid white;
}
#menu-btn { display: none; }
.profile-dropdown { 
    position: absolute; 
    top: calc(100% + 15px); 
    right: 0; 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    padding: 1rem; 
    width: 280px; 
    z-index: 1002; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.3s ease; 
}
.profile-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown p { margin-bottom: 1rem; font-weight: 600; text-align: center; color: var(--dark-color); }
.profile-dropdown .btn { display: block; width: 100%; padding: 0.75rem; margin: 0.5rem 0; border-radius: 8px; font-weight: 600; text-align: center; text-decoration: none; border: none; cursor: pointer; transition: background-color 0.2s ease; }
.profile-dropdown .btn-primary { background: var(--primary-color); color: white; }
.profile-dropdown .btn-primary:hover { background: var(--primary-dark); }
.profile-dropdown .btn-danger { background: #ef4444; color: white; }
.profile-dropdown .btn-danger:hover { background: #dc2626; }
.search-container { position: relative; }
.search-form { display: flex; align-items: center; gap: 0.5rem; }
.search-container .search-input { display: none; }
.search-container:focus-within .search-input { display: inline-block; }
.search-input {
    padding: 0.6rem 1.2rem; 
    border: 1px solid var(--border-color); 
    border-radius: 20px; 
    font-size: 0.9rem; 
    width: 200px; 
    outline: none; 
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.search-input:focus { border-color: var(--primary-color); width: 250px; }
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1003;
    display: none;
}
.search-result-item { padding: 1rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--dark-color); transition: background-color 0.2s ease; }
.search-result-item:hover { background-color: var(--light-color); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.search-result-info { flex: 1; }
.search-result-name { font-weight: 600; margin-bottom: 0.25rem; }
.search-result-price { color: var(--primary-color); font-weight: 700; }
.search-result-category { color: var(--gray-color); font-size: 0.8rem; }
.search-result-stock { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; font-weight: 600; }
.search-result-stock.in-stock { background-color: #d1fae5; color: #065f46; }
.search-result-stock.coming-soon { background-color: #fef3c7; color: #92400e; }
.search-result-stock.out-of-stock { background-color: #fee2e2; color: #991b1b; }
.no-results, .loading-results { padding: 2rem 1rem; text-align: center; color: var(--gray-color); }
@media (max-width: 768px) {
    .site-header { top: var(--promo-height); height: var(--header-height); }
    body.scrolled .site-header { transform: translateY(0); }
    body.scrolled { padding-top: calc(var(--header-height) + var(--promo-height)); }
    .header-container { padding: 0 12px; }
    .header-icons { margin-left: auto; justify-content: flex-end; }
    .header-icons .icon-link, .header-icons .icon-btn { margin: 0; }
    #user-btn { margin-right: 0; }
    .profile-dropdown { right: 0; left: auto; }
    .main-navbar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1100;
        gap: 1rem;
    }
    .main-navbar.active { left: 0; }
    .main-navbar a { width: 100%; padding: 1rem 0; font-size: 1.2rem; border-bottom: 1px solid var(--border-color); color: var(--gray-color); }
    .main-navbar a::after { display: none !important; }
    .main-navbar .nav-account-wrap { margin-top: auto; width: 100%; border-top: 1px solid var(--border-color); padding-top: 1rem; }
    .main-navbar .nav-account-link { width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 1rem 0; font-size: 1.2rem; color: var(--gray-color); background: none; border: 0; cursor: pointer; font-weight: 700; font-family: inherit; }
    .main-navbar .nav-account-link i { width: 20px; text-align: center; }
    .main-navbar .nav-account-dropdown { width: 100%; padding: 0 0 0.25rem; display: flex; flex-direction: column; gap: 0.8rem; }
    .main-navbar .nav-account-dropdown p { margin: 0; color: var(--dark-color); font-weight: 700; }
    .main-navbar .nav-account-dropdown .btn { width: 100%; }
    #menu-btn { display: block; }
    .logo img { height: 40px; }
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-method-icon {
    height: 14px;
    width: auto;
    object-fit: contain;
    display: block;
}

.payment-logos {
    grid-column: 1 / -1;
    margin: 0.4rem 0 0.8rem;
}

.payment-logos-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.payment-logos-icon {
    height: 14px;
    width: auto;
    object-fit: contain;
    display: block;
}
    .header-icons { gap: 1rem; margin-right: 0; }
    #menu-btn { margin-left: 0; }
    .header-icons .icon-link, .header-icons .icon-btn { font-size: 1.4rem; }
    .badge { width: 18px; height: 18px; font-size: 0.7rem; }
    .search-input { width: 150px !important; }
    .search-input:focus { width: 180px !important; }
    .search-results { left: 15px; right: 15px; }
    .site-header #searchForm.search-form { position: relative; flex-wrap: nowrap; }
    .site-header .search-container { position: relative; }
    .site-header .search-container:focus-within #searchInput.search-input {
        width: 180px !important;
        display: block !important;
        padding-right: 2.8rem;
    }
    .site-header .search-container:focus-within #searchToggleBtn.icon-btn {
        position: absolute !important;
        right: 0.15rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
    }
}
@media (min-width: 769px) {
    .main-navbar a.active { color: white; background-color: var(--primary-color); }
    .main-navbar a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px;
    }
}

.product-card { transition: box-shadow 0.25s ease, transform 0.2s ease; }
.product-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: translateY(-2px); }
.product-card .product-image img { transition: transform 0.25s ease; }
.product-card:hover .product-image img { transform: scale(1.03); }

.page-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    margin: 0 0 0.5rem 0;
}

.attribute-options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.attribute-option { display: inline-flex; align-items: center; justify-content: center; padding: 0.4rem 0.75rem; border: 2px solid var(--border-color); border-radius: 10px; font-weight: 600; cursor: pointer; margin: 0.2rem; user-select: none; transition: all 0.2s ease; }
.attribute-option.selected { border-color: var(--primary-color); background-color: #eef2ff; color: var(--primary-dark); }
.attribute-option.disabled { opacity: 0.45; filter: grayscale(100%); cursor: not-allowed; }

.pagination a.pagination-link { display: inline-block; padding: 0.5rem 0.8rem; border-radius: 8px; text-decoration: none; color: var(--dark-color); border: 1px solid transparent; transition: all 0.2s ease; }
.pagination a.pagination-link:hover { background-color: var(--light-color); }
.pagination a.pagination-link.active { background-color: var(--primary-color); color: #fff; }
.pagination a.pagination-link:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79,70,229,0.25); }
.pagination .pagination-btn { display:inline-flex; align-items:center; gap:0.4rem; padding:0.5rem 0.8rem; border-radius:8px; color:var(--dark-color); text-decoration:none; border:1px solid var(--border-color); background:#fff; transition:all 0.2s ease; }
.pagination .pagination-btn:hover { border-color:var(--primary-color); background:#f8fafc; }
.pagination .pagination-btn.disabled { opacity:0.6; cursor:not-allowed; }
.pagination .pagination-btn:focus { outline:none; box-shadow:0 0 0 3px rgba(79,70,229,0.25); }

.reset-filters-toolbar-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; color: var(--primary-color); font-weight: 700; text-decoration: none; transition: all 0.2s ease; }
.reset-filters-toolbar-btn:hover { border-color: var(--primary-color); background: #f8fafc; }

.product-badge { display:inline-flex; align-items:center; justify-content:center; padding: 4px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2px; }
.promo-badge { background:#ef4444; color:#fff; }
.product-card .promo-badge { font-size: clamp(0.85rem, 2.4vw, 1.05rem); padding: 4px 10px; }
.similar-product-card .promo-badge { font-size: clamp(0.85rem, 2.8vw, 1.1rem); padding: 4px 10px; }
.variant-badge { background:#0ea5e9; color:#fff; }
.low-stock-badge { background:#f59e0b; color:#fff; }
.stock-badge { display:inline-flex; align-items:center; gap: 6px; padding: 4px 8px; border-radius: 10px; font-weight:700; font-size:0.75rem; }
.stock-badge.in-stock { background:#dcfce7; color:#065f46; }
.stock-badge.low-stock { background:#fef3c7; color:#92400e; }
.stock-badge.out-of-stock { background:#fee2e2; color:#991b1b; }
.condition-badge { display:inline-flex; align-items:center; gap:6px; padding: 4px 8px; border-radius: 10px; background:#f3f4f6; color:#111827; font-weight:700; font-size:0.75rem; }
.btn-primary:focus { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.35); }
.view-options-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,0.35); }
.view-options-btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.55rem 0.85rem; border-radius:12px; background:#fff; color:var(--primary-color); text-decoration:none; font-weight:700; border:1px dashed var(--primary-color); transition:all 0.2s ease; }
.view-options-btn:hover { background:#f8fafc; border-style:solid; }
.view-options-btn i { font-size:0.95em; }
.variants-info { display:inline-flex; align-items:center; gap:0.4rem; padding:4px 8px; border-radius:10px; font-weight:700; font-size:0.75rem; }
.btn-primary { display:inline-flex; align-items:center; gap:0.5rem; padding:0.8rem 1rem; border-radius:10px; background:var(--primary-color); color:#fff; text-decoration:none; font-weight:700; transition:all 0.2s ease; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-primary:focus { outline:none; box-shadow:0 0 0 3px rgba(79,70,229,0.35); }
.btn-secondary { display:inline-flex; align-items:center; gap:0.5rem; padding:0.8rem 1rem; border-radius:10px; background:#fff; color:var(--primary-color); text-decoration:none; font-weight:700; border:1px solid var(--border-color); transition:all 0.2s ease; }
.btn-secondary:hover { border-color:var(--primary-color); background:#f8fafc; }
.btn-secondary:focus { outline:none; box-shadow:0 0 0 3px rgba(79,70,229,0.25); }
.visual-category-content span, .visual-category-content .category-count { display:inline-flex; align-items:center; }
.visual-category-content .category-count { margin-left: 8px; margin-top:4px; font-weight:700; font-size: 0.9rem; }
.product-image.loading { position: relative; overflow: hidden; }
.product-image.loading::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%); animation: shimmer 1.2s infinite; }
.product-image.loading img { opacity: 0; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.product-brand { display:inline-flex; align-items:center; justify-content:center; padding: 4px 10px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; font-size: 0.85rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin: 0.2rem auto 0.6rem; width: auto; }
.etat-badge { display:inline-flex; align-items:center; justify-content:center; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2px; text-transform: uppercase; width:auto; white-space:nowrap; box-sizing:border-box; }
.etat-badge.etat-new { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.etat-badge.etat-used { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.etat-badge.etat-refurb { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }
.economy-badge { display:inline-flex; align-items:center; padding: 3px 8px; border-radius: 999px; background: #fff7ed; color: #9a3412; font-size: 0.78rem; border: 1px solid #fed7aa; margin-left: 6px; }
.skip-link { position:absolute; top:-40px; left:10px; background:#4f46e5; color:#fff; padding:8px 12px; border-radius:8px; z-index:1200; transition: top 0.2s ease; }
.skip-link:focus { top:10px; outline:none; box-shadow:0 0 0 3px rgba(79,70,229,0.35); }
.icon-btn:focus, .action-btn:focus, .view-options-btn:focus, .reset-filters-toolbar-btn:focus { outline:none; box-shadow:0 0 0 3px rgba(79,70,229,0.35); }
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select { border: 1px solid var(--border-color); border-radius: 0.6rem; padding: 0.8rem; font-family: 'Inter', sans-serif; }
.form-control:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="number"]:focus, select:focus { border-color: var(--primary-color) !important; box-shadow: 0 0 0 3px rgba(79,70,229,0.25); outline: none; }
.cart-total-container { background:#fff; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,0.06); padding:1rem; }
.cart-total-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--border-color); padding-bottom:0.75rem; margin-bottom:0.75rem; }
.cart-total-header h3 { margin:0; font-size:1.25rem; font-weight:800; letter-spacing:0.2px; color:var(--dark-color); }
.cart-total-amount { font-size:1.25rem; font-weight:800; color:#111827; }
.cart-total-buttons { display:flex; gap:0.6rem; flex-wrap:wrap; }
.cart-total-btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.8rem 1rem; border-radius:10px; text-decoration:none; font-weight:700; border:1px solid var(--border-color); background:#fff; color:var(--dark-color); transition:all 0.2s ease; }
.cart-total-btn:hover { border-color:var(--primary-color); background:#f8fafc; }
.cart-total-btn.checkout-btn { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
.cart-total-btn.checkout-btn:hover { background:var(--primary-dark); }
.cart-total-btn.disabled { opacity:0.7; cursor:not-allowed; }

/* Specific cart actions for readable hover states */
.cart-total-btn.continue-shopping-btn { color: var(--primary-color); }
.cart-total-btn.continue-shopping-btn:hover { color: var(--primary-dark); background:#eef2ff; border-color: var(--primary-color); }
.cart-total-btn.delete-all-btn { color: #991b1b; border-color: #fecaca; }
.cart-total-btn.delete-all-btn:hover { color: #7f1d1d; background:#fee2e2; border-color:#fca5a5; }
.
.specs-title, .similar-products-title, .reviews-title { font-weight:800; color:#111827; margin: 0 0 1rem 0; }
.reviews-section { margin-top: 2rem; }
.reviews-list { display: grid; gap: 1rem; }
.show-more-btn { display:inline-flex; align-items:center; gap:0.4rem; border:1px solid var(--border-color); border-radius:10px; padding:0.6rem 0.9rem; background:#fff; color:var(--dark-color); font-weight:700; }
.show-more-btn:hover { border-color: var(--primary-color); background:#f8fafc; }
.slide-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 30%, rgba(0,0,0,0.35) 100%); pointer-events:none; }
.reassurance-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reassurance-item { display:flex; align-items:center; gap:12px; padding:12px 16px; background:#fff; border-radius:12px; box-shadow:0 1px 6px rgba(0,0,0,0.06); }
.reassurance-item i { color: var(--primary-color); font-size: 1.4rem; }
@media (max-width: 768px) {
  .reassurance-grid { grid-template-columns: 1fr; }
}
