/* ==========================================================================
   TAIBA STATIONERY - STYLES PRINCIPAUX (AR / RTL)
   style_ar.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & RÉINITIALISATION
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #7b1113;
    --primary-hover: #d32f2f; 
    --accent-color: #d99b26;
    --accent-light: #fef3c7;
    --bg-light: #faf8f5;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-muted: #6c757d;
    --border-color: #e2e8f0;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --box-shadow-md: 0 4px 15px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --transition-fast: all 0.25s ease;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    /* Empêche le double-tap zoom et force les gestes standards */
    touch-action: manipulation;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    touch-action: manipulation;
}

em{
    font-style: normal;
}
h2 {
  font-size: 15px !important;
  font-weight: bold !important;
}
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover { color: var(--primary-color); }

.page-title-bar { padding: 20px 0 30px !important; }

.content-section {
    padding: 0px 0 60px;
}

 

/* Carte grise claire arrondie à l'intérieur */
.page-title-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Titre principal */
.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark, #1e293b);
    margin: 0;
}

/* Fil d'Ariane */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 0;
}


.page-breadcrumb a {
    color: var(--primary-color, #7b1113);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.page-breadcrumb .separator {
    color: #cbd5e1;
}

.page-breadcrumb .current {
    color: var(--text-dark, #1e293b);
    font-weight: 600;
}

.page-breadcrumb .separator {
    transform: scaleX(-1);
    display: inline-block;
}
/* --------------------------------------------------------------------------
   2. HEADER
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--box-shadow-sm);
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

/* Recherche & Langue */
.header-center {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 650px;
    margin: 0 20px;
    gap: 15px;
}
.search-container { flex: 1; }

.search-box {
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    transition: var(--transition-fast);
}
.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(123, 17, 19, 0.15);
}
.search-box input[type="text"] {
    flex: 1;
    border: none;
    padding: 10px 18px;
    outline: none;
    font-size: 0.92rem;
    color: var(--text-dark);
}
.search-cat-select {
    border: none;
    border-right: 1px solid var(--border-color);
    border-left: none;
    padding: 10px 12px;
    background: #fff;
    font-size: 0.85rem;
    outline: none;
    color: #555;
    cursor: pointer;
}
.search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 22px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.search-box button:hover { background: var(--primary-hover); }

/* Switcher langue */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: #f1f3f5;
    padding: 3px;
    border-radius: 20px;
}
.lang-btn {
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 15px;
    color: #666;
}
.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-cart-wrapper { position: relative; }

.header-cart-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-light);
    border: 1px solid rgba(217, 155, 38, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    transition: var(--transition-fast);
}
.header-cart-bubble:hover { background: #fcefd4; }

.header-cart-icon-circle {
    position: relative;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.header-cart-count {
    position: absolute;
    top: -8px;
    left: -10px;
    right: auto;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.header-cart-price-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.header-cart-amount {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Compte dropdown */
.account-dropdown {
    position: relative;
    cursor: pointer;
}
.account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.account-info { display: flex; flex-direction: column; }
.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.account-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 200px;
    background: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    padding: 8px 0;
    display: none;
    z-index: 1050;
    border: 1px solid var(--border-color);
}
.account-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mini panier dropdown */
.mini-cart-dropdown {
    position: absolute;
    top: 120%;
    left: 0;
    right: auto;
    width: 340px;
    background: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--border-color);
    display: none;
    z-index: 1100;
    overflow: hidden;
}
.mini-cart-dropdown.active {
    display: block;
    animation: fadeIn 0.25s ease;
}
.mini-cart-header {
    background: var(--accent-color);
    color: #fff;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}
.mini-cart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}
.mini-cart-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
}
.mini-cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.mini-cart-item-img img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.mini-cart-item-info { flex: 1; }
.mini-cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}
.mini-cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.cart-qty-btn.mini {
    background: #f1f3f5;
    border: none;
    width: 22px;
    /*height: 22px;*/
    font-weight: bold;
    cursor: pointer;
}
.cart-qty-input.mini {
    width: 28px;
    text-align: center;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.mini-cart-footer {
    padding: 14px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
}
.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 10px;
}
.mini-cart-btn-view {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}
.mini-cart-btn-view:hover {
    background: var(--primary-hover);
    color: #fff;
}


/* --------------------------------------------------------------------------
   3. NAVIGATION PRINCIPALE
   -------------------------------------------------------------------------- */
.main-nav {
    background: var(--primary-color);
    border-bottom: 3px solid #facc15;
}
.nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
}
.nav-menu > li:hover > a {
    background-color: var(--accent-hover); 
}

/* Sous-menus */
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 220px;
    background: #fff;
    box-shadow: var(--box-shadow-md);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1000;
    border-top: 3px solid var(--accent-color);
}
.nav-menu > li:hover .submenu { display: block; }
.submenu li a {
    display: block;
    padding: 8px 18px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
}
.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-right: 22px;
    padding-left: 0;
}

/* Hamburger */
.btn-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 1.4rem;
    color: var(--accent-color);
    line-height: 1;
    border-radius: 6px;
    transition: var(--transition-fast);
}
.btn-hamburger:hover { background: var(--accent-light); }


/* --------------------------------------------------------------------------
   4. HERO SLIDER
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 30px;
    overflow: hidden;
}
.hero-banner,
.carousel-item {
    height: 450px;
    width: 100%;
}
.hero-banner img,
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-control-prev,
.carousel-control-next {
    width: 38px;
    height: 38px;
    background-color: rgba(33, 37, 41, 0.4);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 5;
}
.carousel-control-prev { right: 20px; left: auto; }
.carousel-control-next { left: 20px; right: auto; }
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--border-color);
    opacity: 1;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 18px;
    height: 18px;
    filter: invert(20%);
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(100%);
}
.carousel-indicators [data-bs-target] {
    background-color: #4a5568;
    height: 4px;
    width: 20px;
    border-radius: 2px;
    opacity: 0.5;
}
.carousel-indicators .active {
    background-color: #1a202c;
    opacity: 1;
    width: 28px;
}


/* --------------------------------------------------------------------------
   5. SECTION ENGAGEMENTS
   -------------------------------------------------------------------------- */
.features-card {
    background: #fff;
    border-radius: 18px;
    padding: 25px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0ece1;
}
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
}
.feature-item:not(:last-child) {
    border-inline-end: 1px solid #eee9dc;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background-color: #f8f4ec;
    color: #7b1113;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.feature-text { text-align: right; }
.feature-text h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.feature-text p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: #8c857b;
}


/* --------------------------------------------------------------------------
   6. SECTION CATÉGORIES — SLIDER SWIPER
   -------------------------------------------------------------------------- */
.categories-section {
    padding: 50px 0 60px;
    background: var(--bg-light);
}

.cat-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

/* Traits latéraux via pseudo-éléments */
.cat-section-title::before,
.cat-section-title::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(to left, transparent, #d0ccc4);
    flex-shrink: 0;
}
.cat-section-title::after {
    background: linear-gradient(to right, transparent, #d0ccc4);
}

.cat-section-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.cat-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-nav-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #d6cfc2;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    box-shadow: var(--box-shadow-sm);
    z-index: 2;
}
.cat-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(123,17,19,0.22);
}
.cat-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.cat-swiper {
    flex: 1;
    overflow: hidden;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ede9e0;
    border-radius: 14px;
    padding: 28px 16px 22px;
    text-align: center;
    text-decoration: none;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    gap: 12px;
    color: inherit;
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
    border-color: #c8c0b4;
    color: inherit;
}

.cat-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f5f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--primary-color);
    transition: background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}
.cat-card:hover .cat-icon-circle {
    background: var(--primary-color);
    color: #fff;
}

.cat-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.cat-discover {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}
.cat-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}
.cat-card:hover .cat-arrow {
    transform: translateX(-3px);
}

/* Bouton nav désactivé */
.cat-btn-disabled {
    opacity: 0.3 !important;
    cursor: default !important;
    pointer-events: none !important;
}


/* --------------------------------------------------------------------------
   7. DRAWER MOBILE
   -------------------------------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1090;
    display: none;
}
.drawer-overlay.active { display: block; }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    left: auto;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--box-shadow-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { right: 0; left: auto; }

.drawer-head {
    background: var(--primary-color);
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}
.drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}
.drawer-section {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px; 
}
.drawer-user-avatar {
    font-size: 2rem;
    color: var(--primary-color);
}
.drawer-account-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.drawer-lang-btns { display: flex; gap: 10px; }
.drawer-lang-btn {
    flex: 1;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}
.drawer-lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.drawer-search-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-search-box input,
.drawer-search-box select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.88rem;
}
.drawer-search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}
.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-menu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px dashed #eee;
}
.drawer-submenu {
    list-style: none;
    padding-right: 15px;
    padding-left: 0;
    display: none;
}
.drawer-submenu.open { display: block; }
.drawer-submenu a {
    font-weight: 400;
    font-size: 0.85rem;
    color: #555;
}


/* --------------------------------------------------------------------------
   SECTION HIGHLIGHTS (3 blocs)
   -------------------------------------------------------------------------- */
.highlights-section {
    padding: 0 0 40px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ede9e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    min-height: 90px;
}

.highlight-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 28px 24px;
    background: #fff;
    flex-direction: row;
    text-align: center;
}

/* Séparateur entre blocs */
.highlight-item:not(:last-child) {
    border-left: 1px solid #ede9e0;
    border-right: none;
}

/* Bloc central — fond bordeaux */
.highlight-item.highlight-featured {
    background: var(--primary-color);
    border-right-color: var(--primary-hover);
}

.highlight-item.highlight-featured .highlight-text {
    color: #fff;
}

.highlight-item.highlight-featured .highlight-icon {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: var(--accent-color);
}

/* Icône */
.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-light);
    border: 2px solid rgba(217,155,38,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Texte */
.highlight-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}


/* --------------------------------------------------------------------------
   NEWSLETTER
   -------------------------------------------------------------------------- */
.newsletter {
    background: var(--bg-light);
    padding: 60px 0;
    border-top: 1px solid #ede9e0;
}

.newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-content {
    flex: 1;
    min-width: 260px;
}

.newsletter-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.newsletter-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
}

.newsletter-input-wrapper {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.newsletter-input-wrapper input[type="email"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.newsletter-input-wrapper input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123,17,19,0.1);
}

.newsletter-input-wrapper input[type="email"].error {
    border-color: #c60013;
}

.newsletter-error-message {
    font-size: 0.8rem;
    padding-right: 12px;
    padding-left: 0;
    min-height: 18px;
}

.newsletter-form button[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.newsletter-form button[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,17,19,0.25);
}

@media (max-width: 768px) {
    .newsletter { padding: 40px 0; }
    .newsletter-wrapper { flex-direction: column; gap: 24px; }
    .newsletter-content h3 { font-size: 1.3rem; }
    .newsletter-form { max-width: 100%; width: 100%; }
}

@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form button[type="submit"] { width: 100%; }
    .newsletter-content h3 { font-size: 1.1rem; }
}


/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.tb-dark-footer {
    background: #1a1a1a;
    color: #c8c4bc;
    padding: 40px 20px;
    margin-top: 0;
}

.tb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid #2e2e2e;
}

/* Logo */
.tb-footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 18px;
    display: block;
}

/* Description */
.tb-footer-about {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #9e9890;
    margin-bottom: 20px;
}

/* Réseaux sociaux */
.tb-social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tb-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #c8c4bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.22s ease;
}

.tb-social-icons a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Titres colonnes */
.tb-footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Menus liens */
.tb-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tb-footer-menu li a {
    font-size: 0.88rem;
    color: #9e9890;
    text-decoration: none;
    transition: color 0.2s ease, padding-right 0.2s ease;
    display: block;
}

.tb-footer-menu li a:hover {
    color: var(--accent-color);
    padding-right: 6px;
    padding-left: 0;
}

/* Contact */
.tb-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tb-footer-contact li {
    font-size: 0.88rem;
    color: #9e9890;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-footer-contact li i {
    color: var(--bg-white);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Barre copyright */
.tb-footer-bottom {
    background: #111;
    padding: 16px 0;
    margin-top: 0;
}

.tb-footer-bottom p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   AFFICHAGE DES PRIX (ARABE / RTL)
   ========================================================================== */

/* 1. Bloc conteneur de prix
   Force l'alignement de droite à gauche avec un alignement sur la ligne de base */
.price-row,
.product-pricing,
.header-cart-amount,
.mini-cart-total,
.current-price-large,
.original-price {
    direction: rtl !important;
    text-align: right;
}

/* 2. Isolation stricte des nombres
   Empêche le moteur d'affichage arabe de découper ou d'inverser les chiffres */
.price-row *,
.product-pricing *,
.current-price-large,
.original-price,
.header-cart-amount,
.mini-cart-total {
    
    unicode-bidi: isolate;
    display: inline-block;
}

/* 3. Positionnement de la devise à GAUCHE du chiffre (ex: دج 1 400,00) */
.current-price-large,
.original-price {
    display: inline-flex !important;
    align-items: baseline;
    gap: 6px;
}

.current-price-large-em,
.current-price-large em,
.current-price-large small,
.current-price-large .devise,
.original-price em,
.original-price small,
.original-price .devise {
    order: -1;
    direction: rtl !important;
    unicode-bidi: isolate;
}

/* 4. Maintien du formatage pour les prix barrés */
.original-price {
    color: #a0aec0;
    text-decoration: line-through;
    font-size: 0.9em;
}

bdi, .price-amount {
    unicode-bidi: isolate;
    direction: ltr;
    display: inline-block;
    font-size: 15px !important;
    font-weight: bold !important;
}