/**
 * Vendex LTR overrides — loaded only when lang = fr
 *
 * Flips directional properties from RTL (Arabic default) to LTR (French).
 * Uses body.vx-ltr scope so specificity stays manageable.
 *
 * @since 2.1.0
 */

/* ── Global direction ─────────────────────────────────────────── */

body.vx-ltr {
    direction: ltr;
    text-align: left;
}

/* ── Header ───────────────────────────────────────────────────── */

body.vx-ltr .hp-header-main {
    direction: ltr;
}

body.vx-ltr .hp-header-cart {
    order: 3;
}

body.vx-ltr .hp-header-logo {
    order: 1;
}

body.vx-ltr .hp-header-search {
    order: 2;
}

/* Search input — LTR text direction, flip icon & clear button */
body.vx-ltr .hp-header-search-input {
    direction: ltr;
    padding: 18px 28px 18px 50px; /* mirror of RTL padding */
    text-align: left;
}
body.vx-ltr .hp-header-search-icon {
    right: auto;
    left: 15px;
}
body.vx-ltr .hp-header-search-clear {
    left: auto;
    right: 10px;
}

body.vx-ltr .hp-cart-dropdown {
    left: auto;
    right: 0;
}

body.vx-ltr .hp-search-dropdown {
    direction: ltr;
}

/* ── Announcement bar ─────────────────────────────────────────── */

body.vx-ltr .hp-announcement-bar {
    direction: ltr;
}

body.vx-ltr .hp-announcement-track {
    animation-direction: reverse;
}

/* ── Menu bar ─────────────────────────────────────────────────── */

body.vx-ltr .hp-menu-bar ul {
    direction: ltr;
}

/* ── Trust badges ─────────────────────────────────────────────── */

body.vx-ltr .hp-trust-badges {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .hp-trust-badge {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.15);
}

body.vx-ltr .hp-trust-badge:first-child {
    border-left: none;
}

body.vx-ltr .hp-trust-badge:last-child {
    border-left: none;
}

/* ── Footer ───────────────────────────────────────────────────── */

body.vx-ltr .hp-site-footer {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .hp-footer-content {
    direction: ltr;
}

body.vx-ltr .hp-footer-col ul {
    padding-right: 0;
    padding-left: 0;
}

/* ── Mobile nav ───────────────────────────────────────────────── */

body.vx-ltr .hp-mobile-footer-nav {
    direction: ltr;
}

/* ── Product cards ────────────────────────────────────────────── */

body.vx-ltr .hp-product-badge,
body.vx-ltr .vx-product-badge {
    left: auto;
    right: auto;
    left: 8px;
}

body.vx-ltr .hp-product-price,
body.vx-ltr .vx-product-price {
    direction: ltr;
    text-align: left;
}

/* ── Archive / Shop ───────────────────────────────────────────── */

body.vx-ltr .vx-archive {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-cat-bar {
    direction: ltr;
}

body.vx-ltr .vx-archive-toolbar {
    direction: ltr;
}

/* ── Cart page ────────────────────────────────────────────────── */

body.vx-ltr .vx-cart {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-cart-item-remove {
    left: auto;
    right: 8px;
}

/* ── Checkout ─────────────────────────────────────────────────── */

body.vx-ltr .vx-co-layout {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-co-details {
    order: 1;
}

body.vx-ltr .vx-co-review-wrap {
    order: 2;
}

body.vx-ltr .vx-co-form,
body.vx-ltr .vx-co-section,
body.vx-ltr .vx-co-review-box {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-co-form input,
body.vx-ltr .vx-co-form select,
body.vx-ltr .vx-co-form textarea {
    text-align: left;
}

body.vx-ltr .vx-co-form select {
    background-position: right 14px center;
}

/* ── Legal pages (privacy, terms, returns) ────────────────────── */

body.vx-ltr .vx-legal-page {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-legal-page ul li::before {
    right: auto;
    left: 0;
}

body.vx-ltr .vx-legal-page ul li {
    padding-right: 0;
    padding-left: 20px;
}

body.vx-ltr .vx-legal-page blockquote {
    border-right: none;
    border-left: 4px solid #FF6B00;
    padding-right: 0;
    padding-left: 16px;
}

/* ── Contact page ─────────────────────────────────────────────── */

body.vx-ltr .vx-contact-info-card {
    direction: ltr;
    text-align: left;
}

/* ── FAQ page ─────────────────────────────────────────────────── */

body.vx-ltr .vx-faq-item {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vx-faq-question::after {
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: auto;
}

/* ── Hero sections (all pages) ────────────────────────────────── */

body.vx-ltr [class*="hero"] {
    direction: ltr;
    text-align: center; /* heroes are usually centered */
}

/* ── Category slider arrows (flip for LTR) ────────────────────── */

body.vx-ltr #hp-cat-next svg {
    transform: scaleX(-1); /* was left-pointing (RTL next), now right-pointing (LTR next) */
}

body.vx-ltr #hp-cat-prev svg {
    transform: scaleX(-1); /* was right-pointing (RTL prev), now left-pointing (LTR prev) */
}

/* ── Hero slider arrows ───────────────────────────────────────── */

body.vx-ltr .hp-hero-prev svg,
body.vx-ltr .hp-hero-next svg {
    transform: scaleX(-1);
}

/* ── Thank you progress steps ─────────────────────────────────── */

body.vx-ltr .vx-ty-progress {
    direction: ltr;
}

/* ── Tarifs page ──────────────────────────────────────────────── */

body.vx-ltr .vx-tarifs-page {
    direction: ltr;
    text-align: left;
}

/* ── Promotions page ──────────────────────────────────────────── */

body.vx-ltr .vx-promo-page {
    direction: ltr;
    text-align: left;
}

/* ── Tendances page ───────────────────────────────────────────── */

body.vx-ltr .vx-trend-page {
    direction: ltr;
    text-align: left;
}

/* ── Search page ──────────────────────────────────────────────── */

body.vx-ltr .vx-search-page {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .vendex-search-hero {
    direction: ltr;
}

body.vx-ltr .vendex-search-body {
    direction: ltr;
}

body.vx-ltr .vendex-search-card {
    flex-direction: row;
    text-align: left;
}

body.vx-ltr .vendex-search-card__content {
    text-align: left;
}

body.vx-ltr .vendex-search-empty {
    direction: ltr;
}

body.vx-ltr .vendex-search-empty__form {
    flex-direction: row;
}

body.vx-ltr .vendex-search-empty__input {
    direction: ltr;
}

/* ── Blog single ──────────────────────────────────────────────── */

body.vx-ltr .vx-single-post {
    direction: ltr;
    text-align: left;
}

/* ── My account ───────────────────────────────────────────────── */

body.vx-ltr .woocommerce-account {
    direction: ltr;
    text-align: left;
}

/* ── Product page (COD form + gallery + info) ────────────────── */

body.vx-ltr .cpp-product-page {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .cpp-container {
    direction: ltr;
}

body.vx-ltr .cpp-sale-badge {
    right: auto;
    left: 10px;
}

body.vx-ltr .cpp-form-group select {
    background-position: right 14px center;
    padding-left: 14px;
    padding-right: 40px;
}

body.vx-ltr .cpp-detect-btn {
    direction: ltr;
}

body.vx-ltr .cpp-phone-ltr::placeholder {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .cpp-cod-form,
body.vx-ltr .cpp-form-header,
body.vx-ltr .cpp-tabs,
body.vx-ltr .cpp-related {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .cpp-order-summary dt {
    text-align: left;
}

body.vx-ltr .cpp-order-summary dd {
    text-align: right;
}

body.vx-ltr .cpp-offer-price-col {
    text-align: right;
    margin-right: 0;
    margin-left: auto;
}

body.vx-ltr .cpp-sticky-bar {
    direction: ltr;
}

/* ── Order form (COD plugin) ──────────────────────────────────── */

body.vx-ltr #codplugin-checkout {
    direction: ltr;
    text-align: left;
}

/* ── Homepage sections ────────────────────────────────────────── */

body.vx-ltr .hp-section-header {
    direction: ltr;
    text-align: left;
}

body.vx-ltr .hp-categories-header {
    direction: ltr;
}

body.vx-ltr .hp-categories-slider {
    direction: ltr;
}

body.vx-ltr .hp-category-item {
    direction: ltr;
    text-align: center;
}

body.vx-ltr .hp-products-grid,
body.vx-ltr .vx-products-grid {
    direction: ltr;
}

/* ── Empty cart ────────────────────────────────────────────────── */

body.vx-ltr .vx-empty-page {
    direction: ltr;
    text-align: center;
}

/* ── Mobile overrides ────────────────────────────────────────── */

@media (max-width: 768px) {
    body.vx-ltr .hp-header-search-input {
        padding: 12px 15px 12px 40px; /* mirror of RTL mobile padding */
    }
}
