/*
Theme Name: VParfums
Theme URI: https://vparfums.ma/
Author: VParfums
Author URI: https://vparfums.ma/
Description: Thème WooCommerce COD optimisé pour le marché marocain. Inclut checkout one-page, intégration Google Sheets, support RTL arabe, et toutes les options COD avancées. Inspiré du modèle ovex.ma.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vparfums
Tags: woocommerce, cod, cash-on-delivery, morocco, rtl-language-support, one-page-checkout, custom-colors, custom-logo
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* ============================================================
   1. CSS VARIABLES (theme colors)
   ============================================================ */
:root {
    color-scheme: light only;
    --vp-primary: #000000;       /* pure black */
    --vp-primary-dark: #000000;
    --vp-primary-light: #f5f5f5;
    --vp-accent: #000000;
    --vp-dark: #000000;
    --vp-text: #111111;
    --vp-muted: #666666;
    --vp-bg: #ffffff;
    --vp-bg-soft: #f7f7f7;
    --vp-border: #e5e5e5;
    --vp-success: #000000;
    --vp-radius: 8px;
    --vp-shadow: 0 4px 14px rgba(0,0,0,.08);
    --vp-shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --vp-font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --vp-font-heading: 'Playfair Display', Georgia, serif;
}

/* ============================================================
   2. BASE
   ============================================================ */

/* ── HARD OVERFLOW KILL — nothing ever wider than screen ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

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

html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    background: #ffffff;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
    font-family: var(--vp-font);
    color: var(--vp-text);
    background: var(--vp-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* WordPress admin bar offset — only when logged in */
body.admin-bar { padding-top: 0 !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *:not(.vp-announcement-track), *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vp-font-heading);
    color: var(--vp-dark);
    margin: 0 0 .6em;
    line-height: 1.25;
}

a { color: var(--vp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vp-primary-dark); }

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

.vp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.vp-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--vp-primary);
    color: #fff;
    border: none;
    border-radius: var(--vp-radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.vp-btn:hover { background: var(--vp-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--vp-shadow); }
.vp-btn-block { display: block; width: 100%; }
.vp-btn-lg { padding: 18px 36px; font-size: 17px; }
.vp-btn-outline { background: transparent; color: var(--vp-primary); border: 2px solid var(--vp-primary); }
.vp-btn-outline:hover { background: var(--vp-primary); color: #fff; }

/* ============================================================
   3. ANNOUNCEMENT BAR (scrolling)
   ============================================================ */
.vp-announcement {
    background: var(--vp-dark);
    color: #fff;
    overflow: hidden !important;
    width: 100%;
    max-width: 100vw;
    padding: 10px 0;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}
.vp-announcement-track {
    display: flex;
    gap: 50px;
    animation: vp-scroll 60s linear infinite;
    white-space: nowrap;
    width: max-content;
    will-change: transform;
}
.vp-announcement-item { display: inline-flex; align-items: center; gap: 50px; flex-shrink: 0; }
.vp-announcement-item::after { content: "✦"; color: rgba(255,255,255,.65); }
@keyframes vp-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   4. HEADER
   ============================================================ */
.vp-header {
    background: #fff;
    border-bottom: 1px solid var(--vp-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}
.vp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 30px;
}
.vp-logo {
    font-family: var(--vp-font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--vp-primary);
    letter-spacing: 2px;
    flex-shrink: 0;
}
.vp-logo a { color: inherit; }
.vp-logo img { max-height: 50px; width: auto; }

.vp-nav { display: flex; gap: 30px; align-items: center; }
.vp-nav a {
    color: var(--vp-text);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
}
.vp-nav a::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--vp-primary);
    transition: width .3s ease;
}
.vp-nav a:hover::after { width: 100%; }

.vp-header-actions { display: flex; gap: 15px; align-items: center; }
.vp-header-actions a {
    color: var(--vp-text);
    font-size: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    transition: all .2s;
}
.vp-header-actions a:hover { background: var(--vp-primary-light); color: var(--vp-primary); }
.vp-cart-count {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--vp-primary);
    color: #fff;
    font-size: 11px;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.vp-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--vp-text);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}
.vp-mobile-toggle:hover,
.vp-mobile-toggle:focus { background: var(--vp-bg-soft); outline: none; }

/* Overlay behind mobile menu */
.vp-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vp-nav-overlay.active { display: block; opacity: 1; }
body.vp-menu-open { overflow: hidden; }

/* ============================================================
   5. HERO / SLIDER
   ============================================================ */
.vp-hero {
    background: linear-gradient(135deg, var(--vp-bg-soft) 0%, var(--vp-bg) 100%);
    padding: 60px 0;
    overflow: hidden;
}
.vp-hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.vp-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--vp-dark);
    margin-bottom: 20px;
}
.vp-hero h1 span { color: var(--vp-primary); }
.vp-hero p {
    font-size: 18px;
    color: var(--vp-muted);
    margin-bottom: 30px;
    max-width: 480px;
}
.vp-hero-image {
    text-align: center;
    position: relative;
}
.vp-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(114,47,55,.1) 0%, transparent 70%);
    z-index: -1;
}

/* ============================================================
   6. SECTION TITLES
   ============================================================ */
.vp-section { padding: 70px 0; }
.vp-section-title {
    text-align: center;
    margin-bottom: 50px;
}
.vp-section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.vp-section-title h2::after {
    content: "";
    position: absolute;
    bottom: -12px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--vp-primary);
}
.vp-section-title p { color: var(--vp-muted); margin-top: 20px; }

/* ============================================================
   7. CATEGORY GRID
   ============================================================ */
.vp-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.vp-category-card {
    position: relative;
    border-radius: var(--vp-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--vp-bg-soft);
    transition: transform .3s, box-shadow .3s;
}
.vp-category-card:hover { transform: translateY(-5px); box-shadow: var(--vp-shadow-lg); }
.vp-category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vp-category-card:hover img { transform: scale(1.05); }
.vp-category-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
    padding: 25px 20px 20px;
    color: #fff;
}
.vp-category-card h3 {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

/* ============================================================
   8. PRODUCT GRID
   ============================================================ */
.vp-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.vp-product {
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    overflow: hidden;
    transition: all .3s;
    position: relative;
}
.vp-product:hover { box-shadow: var(--vp-shadow-lg); transform: translateY(-4px); border-color: transparent; }
.vp-product-image {
    aspect-ratio: 1 / 1;
    background: var(--vp-bg-soft);
    overflow: hidden;
    position: relative;
}
.vp-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vp-product:hover .vp-product-image img { transform: scale(1.08); }
.vp-product-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--vp-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}
.vp-product-info { padding: 20px; }
.vp-product-title {
    font-family: var(--vp-font);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vp-text);
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-product-rating {
    color: var(--vp-accent);
    font-size: 13px;
    margin-bottom: 8px;
}
.vp-product-rating span { color: var(--vp-muted); margin-left: 5px; }
.vp-product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}
.vp-price-current { color: var(--vp-primary); font-weight: 700; font-size: 18px; }
.vp-price-old { color: var(--vp-muted); text-decoration: line-through; font-size: 14px; }
.vp-product .vp-btn { width: 100%; padding: 10px; font-size: 13px; }

/* ============================================================
   9. SINGLE PRODUCT + CHECKOUT (ONE PAGE)
   ============================================================ */
.vp-single-product {
    padding: 40px 0 80px;
}
.vp-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.vp-product-gallery {
    border-radius: var(--vp-radius);
    overflow: hidden;
    background: var(--vp-bg-soft);
}
.vp-product-gallery img { width: 100%; }

.vp-product-details h1 {
    font-size: 28px;
    margin-bottom: 15px;
}
.vp-product-details .vp-product-rating { font-size: 16px; margin-bottom: 15px; }
.vp-product-details .vp-product-price { margin-bottom: 25px; }
.vp-product-details .vp-price-current { font-size: 28px; }
.vp-product-details .vp-price-old { font-size: 18px; }

.vp-save-badge {
    display: inline-block;
    background: var(--vp-success);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
}

.vp-product-description {
    background: var(--vp-bg-soft);
    padding: 20px;
    border-radius: var(--vp-radius);
    margin-bottom: 25px;
    color: var(--vp-text);
}

/* COD form */
.vp-cod-form {
    background: #fafafa;
    border: 2px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 30px;
    margin-top: 30px;
}
.vp-cod-form h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--vp-dark);
}
.vp-cod-form .vp-form-subtitle {
    color: var(--vp-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.vp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--vp-border);
}
.vp-summary-row:last-child {
    border-bottom: none;
    border-top: 2px solid var(--vp-dark);
    padding-top: 15px;
    margin-top: 8px;
    font-weight: 700;
    font-size: 18px;
}

.vp-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.vp-qty-control button {
    background: #fff;
    border: none;
    width: 40px; height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: background .2s;
}
.vp-qty-control button:hover { background: var(--vp-primary-light); color: var(--vp-primary); }
.vp-qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--vp-border);
    border-right: 1px solid var(--vp-border);
    height: 40px;
    font-size: 16px;
    font-weight: 600;
}

/* Form fields */
.vp-form-group { margin-bottom: 16px; }
.vp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--vp-text);
}
.vp-form-group label .required { color: var(--vp-primary); }
.vp-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--vp-border);
    border-radius: var(--vp-radius);
    font-size: 15px;
    font-family: inherit;
    transition: all .2s;
    background: #fff;
}
.vp-form-control:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(114,47,55,.12);
}
.vp-form-control.error { border-color: #dc2626; background: #fef2f2; }
.vp-form-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.vp-form-control.error + .vp-form-error { display: block; }

.vp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Delivery option (radio card) */
.vp-delivery-options { margin-bottom: 20px; }
.vp-delivery-option {
    border: 2px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: all .2s;
    margin-bottom: 10px;
}
.vp-delivery-option:hover { border-color: var(--vp-primary); }
.vp-delivery-option input { accent-color: var(--vp-primary); width: 18px; height: 18px; }
.vp-delivery-option.active { border-color: var(--vp-primary); background: var(--vp-primary-light); }
.vp-delivery-option-label { flex: 1; font-weight: 500; }
.vp-delivery-option-price { color: var(--vp-success); font-weight: 700; }

/* Order tracking footer */
.vp-order-progress {
    display: flex;
    justify-content: space-between;
    padding: 25px;
    background: #fafafa;
    border-radius: var(--vp-radius);
    margin-top: 25px;
    position: relative;
}
.vp-order-progress::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 15%; right: 15%;
    height: 2px;
    background: var(--vp-border);
    z-index: 0;
}
.vp-progress-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.vp-progress-icon {
    width: 40px; height: 40px;
    background: #fff;
    border: 2px solid var(--vp-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    color: var(--vp-muted);
}
.vp-progress-step.active .vp-progress-icon {
    background: var(--vp-primary);
    border-color: var(--vp-primary);
    color: #fff;
}
.vp-progress-step small {
    display: block;
    color: var(--vp-muted);
    font-size: 11px;
}
.vp-progress-step strong { font-size: 13px; }

/* ============================================================
   10. TESTIMONIALS
   ============================================================ */
.vp-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.vp-testimonial {
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 20px;
}
.vp-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.vp-testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--vp-primary-light);
    color: var(--vp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.vp-testimonial-name { font-weight: 600; font-size: 14px; }
.vp-testimonial-time { color: var(--vp-muted); font-size: 12px; }
.vp-testimonial p { margin: 0; font-size: 14px; color: var(--vp-text); }

/* ============================================================
   11. TRUST BADGES
   ============================================================ */
.vp-trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.vp-trust-badge-icon {
    width: 70px; height: 70px;
    background: var(--vp-primary-light);
    color: var(--vp-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}
.vp-trust-badge h4 {
    font-family: var(--vp-font);
    font-size: 15px;
    color: var(--vp-text);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.vp-footer {
    background: var(--vp-dark);
    color: #ccc;
    padding: 60px 0 0;
    margin-top: 0;
}
.vp-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.vp-footer h4 {
    color: #fff;
    font-family: var(--vp-font);
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.vp-footer ul { list-style: none; padding: 0; margin: 0; }
.vp-footer ul li { margin-bottom: 10px; }
.vp-footer a { color: #ccc; font-size: 14px; }
.vp-footer a:hover { color: var(--vp-primary); }
.vp-footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

.vp-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.vp-social a {
    width: 40px; height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s;
}
.vp-social a:hover { background: var(--vp-primary); color: #fff; }

/* ============================================================
   13. WHATSAPP FLOATING BUTTON
   ============================================================ */
.vp-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px; height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37,211,102,.5);
    z-index: 999;
    animation: vp-pulse 2s infinite;
}
.vp-whatsapp:hover { color: #fff; transform: scale(1.1); }
@keyframes vp-pulse {
    0% { box-shadow: 0 5px 20px rgba(37,211,102,.5); }
    50% { box-shadow: 0 5px 30px rgba(37,211,102,.8); }
    100% { box-shadow: 0 5px 20px rgba(37,211,102,.5); }
}

/* ============================================================
   14. RESPONSIVE — Mobile-first design
   ============================================================ */

/* GLOBAL OVERFLOW GUARD — nothing ever wider than viewport */
*,
*::before,
*::after {
    max-width: 100%;
}
img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}
/* WooCommerce gallery images must never overflow */
.woocommerce-product-gallery,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .flex-control-thumbs,
.wp-post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

/* Tablet (≤ 992px) */
@media (max-width: 992px) {
    .vp-container { padding: 0 16px; }
    .vp-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    /* Image FIRST on mobile */
    .vp-hero-image { order: -1; }
    .vp-hero-image img { max-height: 320px; width: auto; max-width: 100%; margin: 0 auto; }
    .vp-hero p { margin-left: auto; margin-right: auto; }
    .vp-single-grid { grid-template-columns: 1fr; gap: 30px; }
    .vp-categories { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .vp-products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .vp-testimonials, .vp-trust-badges { grid-template-columns: repeat(2, 1fr); }
    .vp-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .vp-section { padding: 50px 0; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .vp-container { padding: 0 14px; }

    /* Header */
    .vp-header-inner { padding: 14px 0; gap: 10px; }
    .vp-logo { font-size: 22px; letter-spacing: 1px; }
    .vp-logo img { max-height: 38px; }
    .vp-nav { display: none; }
    .vp-mobile-toggle { display: inline-flex; }

    /* Mobile nav as SIDE DRAWER */
    .vp-nav.active {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 70px 24px 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,.15);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        animation: vp-slide-in 0.3s ease;
    }
    @keyframes vp-slide-in {
        from { transform: translateX(100%); }
        to   { transform: translateX(0); }
    }
    .vp-nav.active a {
        padding: 14px 0;
        border-bottom: 1px solid var(--vp-border);
        font-size: 15px;
        color: var(--vp-text);
    }
    .vp-nav.active a:last-child { border-bottom: none; }
    .vp-nav.active a::after { display: none; }

    /* Move toggle to right, raise above drawer */
    .vp-header-actions { gap: 6px; position: relative; z-index: 1000; }
    .vp-mobile-toggle { position: relative; z-index: 1000; }

    /* Announcement bar smaller */
    .vp-announcement { font-size: 11px; padding: 8px 0; letter-spacing: 1px; }

    /* Hero */
    .vp-hero { padding: 30px 0; }
    .vp-hero h1 { font-size: clamp(26px, 7vw, 36px); }
    .vp-hero p { font-size: 15px; }
    .vp-btn-lg { padding: 14px 24px; font-size: 14px; }

    /* Sections */
    .vp-section { padding: 35px 0; }
    .vp-section-title { margin-bottom: 30px; }
    .vp-section-title h2 { font-size: clamp(22px, 6vw, 28px); }

    /* Products: 2 columns */
    .vp-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .vp-product-info { padding: 12px; }
    .vp-product-title { font-size: 13px; min-height: 36px; }
    .vp-price-current { font-size: 16px; }
    .vp-product .vp-btn { padding: 8px; font-size: 12px; }

    /* Categories: 2 cols */
    .vp-categories { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
    .vp-category-card-content { padding: 15px 12px 12px; }
    .vp-category-card h3 { font-size: 15px; }

    /* Trust badges 2x2 */
    .vp-trust-badges { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .vp-trust-badge-icon { width: 54px; height: 54px; font-size: 22px; }
    .vp-trust-badge h4 { font-size: 13px; }

    /* Testimonials stack */
    .vp-testimonials { grid-template-columns: 1fr; }

    /* Footer */
    .vp-footer { padding: 40px 0 0; margin-top: 0; }
    .vp-footer-grid { grid-template-columns: 1fr; gap: 25px; margin-bottom: 30px; }
    .vp-footer h4 { font-size: 14px; margin-bottom: 12px; }

    /* Single product */
    .vp-single-product { padding: 20px 0 60px; }
    .vp-product-details h1 { font-size: 22px; }
    .vp-product-details .vp-price-current { font-size: 24px; }
    .vp-product-details .vp-price-old { font-size: 16px; }

    /* COD form */
    .vp-cod-form { padding: 20px 16px; }
    .vp-cod-form h3 { font-size: 17px; }
    .vp-form-row { grid-template-columns: 1fr; gap: 0; }
    .vp-form-control { padding: 12px 14px; font-size: 16px; /* 16px prevents iOS zoom-on-focus */ }
    .vp-form-group label { font-size: 13px; }
    .vp-summary-row { font-size: 14px; }
    .vp-summary-row:last-child { font-size: 16px; }

    /* Order tracking smaller */
    .vp-order-progress { padding: 18px 10px; }
    .vp-order-progress strong { font-size: 11px; }
    .vp-order-progress small { font-size: 9px; }
    .vp-progress-icon { width: 32px; height: 32px; font-size: 13px; }

    /* Submit button */
    .vp-btn-block { padding: 16px; font-size: 14px; letter-spacing: 0.3px; }

    /* WhatsApp button slightly smaller and lower */
    .vp-whatsapp { width: 52px; height: 52px; font-size: 26px; bottom: 18px; right: 18px; }

    /* Urgency toast smaller on mobile */
    .vp-urgency-toast { max-width: 220px; padding: 10px 12px; bottom: 90px; left: 14px; }
    .vp-urgency-toast-inner { font-size: 12px; gap: 8px; }
    .vp-urgency-icon { font-size: 18px; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .vp-logo { font-size: 20px; }
    .vp-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vp-product-image { aspect-ratio: 1 / 1; }
    .vp-hero h1 { font-size: clamp(24px, 8vw, 30px); }
    .vp-section { padding: 30px 0; }
    .vp-cod-form { padding: 16px 14px; margin-top: 20px; }
    .vp-cod-form h3 { font-size: 16px; }
    .vp-product-details h1 { font-size: 20px; }
}

/* ============================================================
   15. RTL SUPPORT (Arabic)
   ============================================================ */
body.rtl { direction: rtl; text-align: right; }
body.rtl .vp-section-title h2::after { left: auto; right: 50%; transform: translateX(50%); }
body.rtl .vp-whatsapp { right: auto; left: 25px; }
body.rtl .vp-cart-count { right: auto; left: -2px; }

/* ============================================================
   16. WOOCOMMERCE OVERRIDES — kill all purple, force B&W
   ============================================================ */

/* WooCommerce default purple/pink → kill them all */
.woocommerce-message,
.woocommerce-info {
    border-radius: var(--vp-radius);
    border-top-color: #000 !important;
    background: #f7f7f7 !important;
    color: #111 !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: #000 !important; }
.woocommerce-error {
    border-radius: var(--vp-radius);
    border-top-color: #c0392b !important;
}

/* Archive / shop page layout */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    font-size: 14px;
    color: var(--vp-muted);
    margin-bottom: 20px;
}
.woocommerce .woocommerce-ordering select {
    padding: 10px 14px;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* Page title (e.g. "Parfums Unisexe") */
.woocommerce .woocommerce-products-header,
.woocommerce-page .woocommerce-products-header {
    margin-bottom: 30px;
}
.woocommerce .woocommerce-products-header__title,
.woocommerce-page .woocommerce-products-header__title,
.woocommerce h1.page-title {
    font-family: var(--vp-font-heading);
    color: #111 !important;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--vp-muted);
    margin-bottom: 20px;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    overflow: hidden !important;
}
.woocommerce-breadcrumb a {
    color: var(--vp-muted) !important;
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover { color: #000 !important; }

/* Product cards on archive */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    overflow: hidden;
    transition: all .3s;
    position: relative;
    text-align: center;
}
.woocommerce ul.products li.product:hover {
    box-shadow: var(--vp-shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.woocommerce ul.products li.product a {
    text-decoration: none !important;
    color: inherit !important;
}
.woocommerce ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--vp-bg-soft);
    margin: 0 !important;
    padding: 10px;
    transition: transform .5s;
}
.woocommerce ul.products li.product:hover img { transform: scale(1.05); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 14px 12px 6px !important;
    font-family: var(--vp-font) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-height: 50px;
}

.woocommerce ul.products li.product .price {
    color: #000 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    padding: 0 12px !important;
    display: block;
}
.woocommerce ul.products li.product .price del {
    color: var(--vp-muted) !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    margin-right: 6px;
    opacity: 1 !important;
}
.woocommerce ul.products li.product .price ins {
    background: transparent !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.woocommerce ul.products li.product .price .amount {
    color: inherit !important;
}

/* "Sale!" badge - turn from purple to black */
.woocommerce span.onsale,
.woocommerce-page span.onsale,
ul.products li.product .onsale {
    background: #000 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    margin: 0 !important;
    position: absolute;
    z-index: 2;
}

/* "Add to cart" → restyled, will redirect to product via JS */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    background: #000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    width: 100%;
    display: block;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background: #333 !important;
    color: #fff !important;
}
/* Hide "View cart" message after click */
.woocommerce ul.products li.product .added_to_cart { display: none !important; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: none;
    margin: 30px 0;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: 1px solid var(--vp-border);
    margin: 0 3px;
    border-radius: 4px;
    overflow: hidden;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 10px 16px !important;
    color: #111 !important;
    background: #fff !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #000 !important;
    color: #fff !important;
}

/* My account / forms — make B&W */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    border: 1.5px solid var(--vp-border) !important;
    border-radius: var(--vp-radius) !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #000 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08) !important;
    outline: none !important;
}

/* All WC buttons → B&W */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #content input.button {
    background: #000 !important;
    color: #fff !important;
    border-radius: var(--vp-radius) !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none !important;
    transition: background 0.2s;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: #333 !important; color: #fff !important; }

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: #000 !important;
    color: #fff !important;
}

/* Star ratings */
.woocommerce p.stars a,
.woocommerce .star-rating span::before,
.star-rating::before { color: #000 !important; }

/* Make WC archive container play nice with our header */
.woocommerce-page #content,
.woocommerce-page .site-main,
.woocommerce-notices-wrapper,
.woocommerce > .woocommerce-notices-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}
/* WC default <div class="woocommerce"> wrapper that wraps archive content */
body.archive .woocommerce,
body.post-type-archive-product .woocommerce,
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Strip WC inline column classes that conflict */
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
.woocommerce ul.products.columns-6 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 992px) {
    .woocommerce ul.products.columns-1,
    .woocommerce ul.products.columns-2,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .woocommerce ul.products.columns-1,
    .woocommerce ul.products.columns-2,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Single product page WC defaults */
.woocommerce div.product .woocommerce-product-rating .star-rating { color: #000 !important; }

/* === MOBILE WC OVERRIDES === */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px;
    }
}
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        padding: 10px 8px 4px !important;
        min-height: 40px;
    }
    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
        padding: 0 8px !important;
        margin-bottom: 8px !important;
    }
    .woocommerce ul.products li.product .price del { font-size: 11px !important; }
    .woocommerce ul.products li.product .button {
        padding: 11px 8px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
    }
    .woocommerce span.onsale {
        font-size: 10px !important;
        padding: 3px 8px !important;
        top: 8px !important;
        left: 8px !important;
    }
    body.archive .woocommerce,
    body.post-type-archive-product .woocommerce,
    body.tax-product_cat .woocommerce { padding: 20px 14px; }
    .woocommerce-breadcrumb { font-size: 12px; margin-bottom: 14px; }
    .woocommerce .woocommerce-result-count {
        font-size: 13px;
        float: none !important;
        display: block;
        margin-bottom: 10px;
    }
    .woocommerce .woocommerce-ordering {
        float: none !important;
        margin-bottom: 20px;
        display: block;
    }
    .woocommerce .woocommerce-ordering select {
        width: 100%;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .woocommerce ul.products { gap: 10px; }
    .woocommerce ul.products li.product img { padding: 6px; }
}

/* ============================================================
   17. FORCE LIGHT MODE — Block any dark mode override
   ============================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --vp-primary: #000000 !important;
        --vp-primary-dark: #000000 !important;
        --vp-primary-light: #f5f5f5 !important;
        --vp-text: #111111 !important;
        --vp-muted: #666666 !important;
        --vp-bg: #ffffff !important;
        --vp-bg-soft: #f7f7f7 !important;
        --vp-border: #e5e5e5 !important;
    }
    body { background: #ffffff !important; color: #111111 !important; }
}
html, body { background: #ffffff !important; color: #111111 !important; }

/* ============================================================
   18. PAGE / SINGLE / ARCHIVE CONTENT
   ============================================================ */
.vp-page-content {
    padding: 50px 0 70px;
    min-height: 50vh;
}
.vp-page-title {
    font-family: var(--vp-font-heading);
    font-size: clamp(28px, 5vw, 46px);
    color: #111;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--vp-border);
}
.vp-page-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--vp-text);
    max-width: 780px;
}
.vp-page-body h2,
.vp-page-body h3 { margin-top: 40px; }
.vp-page-body p { margin-bottom: 20px; }
.vp-page-body a { color: #000; text-decoration: underline; }
.vp-archive-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--vp-border);
}
.vp-archive-item h2 { font-size: 20px; margin-bottom: 10px; }
.vp-archive-item h2 a { color: #111; }
.vp-archive-item h2 a:hover { text-decoration: underline; }

/* Hide any leftover sidebar output */
#secondary,
.widget-area,
aside.widget-area,
#sidebar,
.sidebar {
    display: none !important;
}

/* Ensure main content is always 100% wide — no float remnants */
#primary,
.site-main,
main.site-main {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .vp-page-content { padding: 30px 0 50px; }
    .vp-page-body { font-size: 15px; }
}

/* ============================================================
   19. LANGUAGE SWITCHER — circular flag button
   ============================================================ */
.vp-lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: #fff;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.vp-lang-switcher:hover {
    border-color: #000;
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    color: inherit;
}
.vp-lang-flag-circle {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Clip emoji flag into the circle */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

/* Mobile — slightly smaller */
@media (max-width: 768px) {
    .vp-lang-switcher {
        width: 36px;
        height: 36px;
    }
    .vp-lang-flag-circle { font-size: 21px; width: 32px; height: 32px; }
}

/* ============================================================
   20. WOOCOMMERCE GALLERY — block inline overflow (all languages)
   ============================================================ */
/* These selectors target elements where WC FlexSlider sets inline width via JS.
   We use !important + high specificity to always win. */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery .flexslider,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .slides,
.woocommerce-product-gallery .slides > li,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img,
.wp-post-image,
.attachment-woocommerce_single,
.attachment-shop_single {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.woocommerce-product-gallery,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .flexslider {
    overflow: hidden !important;
    width: 100% !important;
}
.woocommerce-product-gallery__image img,
.wp-post-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}
/* Thumbnails row */
.woocommerce-product-gallery .flex-control-thumbs {
    max-width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
    max-width: 25% !important;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    max-width: 100% !important;
}

/* Zoom icon that appears outside bounds */
/* WooCommerce gallery zoom trigger — small icon, top-right corner */
.woocommerce-product-gallery__trigger {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 9 !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.15) !important;
    overflow: hidden !important;
}
.woocommerce-product-gallery__trigger img,
.woocommerce-product-gallery__trigger::before {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    font-size: 16px !important;
}
/* RTL: move to left */
body[dir="rtl"] .woocommerce-product-gallery__trigger {
    right: auto !important;
    left: 10px !important;
}
/* Mobile: even smaller */
@media (max-width: 768px) {
    .woocommerce-product-gallery__trigger {
        width: 30px !important;
        height: 30px !important;
        top: 6px !important;
        right: 6px !important;
    }
    .woocommerce-product-gallery__trigger img,
    .woocommerce-product-gallery__trigger::before {
        width: 14px !important;
        height: 14px !important;
        font-size: 13px !important;
    }
    body[dir="rtl"] .woocommerce-product-gallery__trigger {
        right: auto !important;
        left: 6px !important;
    }
}

/* Make single product grid responsive from 992px down (not just 768px) */
@media (max-width: 992px) {
    .vp-single-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .vp-single-product { padding: 20px 0 50px; }
}

/* ============================================================
   21. ADD TO CART BUTTON + DIVIDER (single product page)
   ============================================================ */
.vp-atc-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.vp-atc-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--vp-border);
    border-radius: var(--vp-radius);
    overflow: hidden;
    flex-shrink: 0;
}
.vp-atc-qty-btn {
    background: #fff;
    border: none;
    width: 38px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--vp-text);
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
.vp-atc-qty-btn:hover { background: var(--vp-bg-soft); }
#vp-atc-qty {
    width: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--vp-border);
    border-right: 1.5px solid var(--vp-border);
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    background: #fff;
}
#vp-add-to-cart-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    border-width: 2px;
}
#vp-add-to-cart-btn:hover {
    background: #000 !important;
    color: #fff !important;
}

/* Add to cart feedback message */
.vp-atc-msg {
    padding: 10px 16px;
    border-radius: var(--vp-radius);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}
.vp-atc-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.vp-atc-msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* OR divider */
.vp-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--vp-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.vp-or-divider::before,
.vp-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vp-border);
}

/* Cart icon in header */
.vp-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--vp-border);
    color: var(--vp-text);
    font-size: 17px;
    transition: border-color .2s, background .2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.vp-cart-icon:hover { border-color: #000; background: var(--vp-bg-soft); color: #000; }
.vp-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

/* ============================================================
   22. CART PAGE
   ============================================================ */
.vp-cart-page { padding: 40px 0 80px; }

.vp-cart-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* Cart table */
.vp-cart-table { margin-bottom: 20px; }
.vp-cart-row {
    display: grid;
    grid-template-columns: 72px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--vp-border);
}
.vp-cart-img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--vp-bg-soft);
    flex-shrink: 0;
}
.vp-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.vp-cart-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-muted);
    font-size: 24px;
}
.vp-cart-name  { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.vp-cart-price { color: var(--vp-muted); font-size: 13px; margin-bottom: 10px; }
.vp-cart-qty-row {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--vp-border);
    border-radius: 6px;
    overflow: hidden;
}
.vp-cq-btn {
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
}
.vp-cq-btn:hover { background: var(--vp-bg-soft); }
.vp-cq-num {
    width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--vp-border);
    border-right: 1px solid var(--vp-border);
    padding: 0 4px;
}
.vp-cart-line-total { font-weight: 700; font-size: 15px; white-space: nowrap; }
.vp-cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vp-muted);
    font-size: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
}
.vp-cart-remove:hover { background: #fef2f2; color: #dc2626; }

.vp-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--vp-muted);
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
}
.vp-continue-shopping:hover { color: #000; }

/* Cart summary box */
.vp-cart-summary {
    background: var(--vp-bg-soft);
    border-radius: var(--vp-radius);
    padding: 24px;
    margin-bottom: 24px;
}
.vp-cart-summary h3 {
    font-size: 17px;
    margin-bottom: 16px;
    font-family: var(--vp-font);
}

/* Free shipping progress bar */
.vp-free-shipping-bar { margin-top: 16px; }
.vp-free-bar-track {
    height: 6px;
    background: var(--vp-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.vp-free-bar-fill {
    height: 100%;
    background: #000;
    border-radius: 3px;
    transition: width .4s ease;
}
.vp-free-shipping-bar p { font-size: 13px; color: var(--vp-muted); margin: 0; }

/* Cart COD form */
.vp-cart-cod-form { border-radius: var(--vp-radius); border: 2px solid var(--vp-border); padding: 24px; background: #fff; }
.vp-cart-cod-form h3 { font-family: var(--vp-font); font-size: 16px; margin-bottom: 20px; }

/* Empty cart */
.vp-empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: var(--vp-muted);
}
.vp-empty-cart i { font-size: 64px; margin-bottom: 20px; display: block; opacity: .3; }
.vp-empty-cart h2 { color: var(--vp-text); margin-bottom: 12px; }
.vp-empty-cart p  { margin-bottom: 28px; }

/* RTL cart adjustments */
body[dir="rtl"] .vp-continue-shopping { flex-direction: row-reverse; }
body[dir="rtl"] .vp-continue-shopping .fa-arrow-left::before { content: "\f061"; } /* arrow-right */
body[dir="rtl"] .vp-cart-count { right: auto; left: -5px; }
body[dir="rtl"] .vp-or-divider { direction: rtl; }

/* ── Responsive cart ── */
@media (max-width: 900px) {
    .vp-cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .vp-cart-page { padding: 24px 0 60px; }
    .vp-atc-wrap { flex-direction: column; align-items: stretch; }
    .vp-atc-qty { justify-content: center; }
    #vp-add-to-cart-btn { width: 100%; }
    .vp-cart-icon { width: 36px; height: 36px; font-size: 16px; }
    .vp-cart-row { grid-template-columns: 60px 1fr auto auto; gap: 10px; }
    .vp-cart-img { width: 60px; height: 60px; }
    .vp-cart-name { font-size: 13px; }
    .vp-cart-line-total { font-size: 13px; }
}

/* ============================================================
   23. LIVE SEARCH OVERLAY
   ============================================================ */
.vp-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--vp-border);
    background: #fff;
    color: var(--vp-text);
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    -webkit-tap-highlight-color: transparent;
}
.vp-search-btn:hover { border-color: #000; background: var(--vp-bg-soft); }

.vp-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.vp-search-overlay.open { opacity: 1; pointer-events: auto; }
.vp-search-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    transform: translateY(-16px);
    transition: transform .3s ease;
    overflow: hidden;
}
.vp-search-overlay.open .vp-search-box { transform: translateY(0); }
.vp-search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--vp-border);
}
.vp-search-input-row .fa-search { color: var(--vp-muted); font-size: 16px; }
#vp-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 17px;
    font-family: inherit;
    background: transparent;
}
#vp-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vp-muted);
    font-size: 18px;
    width: 34px; height: 34px;
    border-radius: 50%;
    transition: background .2s;
}
#vp-search-close:hover { background: var(--vp-bg-soft); color: #000; }
.vp-search-results { max-height: 420px; overflow-y: auto; }
.vp-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--vp-text);
    border-bottom: 1px solid var(--vp-bg-soft);
    transition: background .15s;
}
.vp-search-item:hover { background: var(--vp-bg-soft); }
.vp-search-item img,
.vp-search-noimg {
    width: 52px; height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--vp-bg-soft);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vp-muted);
}
.vp-search-item-info { flex: 1; min-width: 0; }
.vp-search-item-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vp-search-item-price { font-size: 13px; color: #000; font-weight: 700; margin-top: 2px; }
.vp-search-item-price del { color: var(--vp-muted); font-weight: 400; margin-left: 6px; }
.vp-search-item .fa-chevron-right { color: var(--vp-border); font-size: 12px; }
.vp-search-loading, .vp-search-empty {
    padding: 40px;
    text-align: center;
    color: var(--vp-muted);
}

/* ============================================================
   24. WISHLIST
   ============================================================ */
.vp-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.vp-title-row h1 { flex: 1; }
.vp-wishlist-btn {
    background: #fff;
    border: 1.5px solid var(--vp-border);
    border-radius: 50%;
    width: 44px; height: 44px;
    cursor: pointer;
    font-size: 18px;
    color: var(--vp-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.vp-wishlist-btn:hover { border-color: #e11d48; color: #e11d48; }
.vp-wishlist-btn.active { border-color: #e11d48; color: #e11d48; background: #fff1f2; }
@keyframes vp-heart-pop { 0%{transform:scale(1)} 50%{transform:scale(1.35)} 100%{transform:scale(1)} }
.vp-heart-pop i { animation: vp-heart-pop .4s ease; }

/* ============================================================
   25. ORDER TRACKING PAGE
   ============================================================ */
.vp-track-wrap { max-width: 620px; margin: 0 auto; }
.vp-track-form p { margin-bottom: 14px; color: var(--vp-muted); }
.vp-track-input-row { display: flex; gap: 10px; }
.vp-track-input-row .vp-form-control { flex: 1; }
.vp-track-input-row .vp-btn { flex-shrink: 0; padding: 12px 28px; }
.vp-track-empty { text-align: center; color: var(--vp-muted); padding: 30px; }
.vp-track-card {
    border: 1.5px solid var(--vp-border);
    border-radius: 12px;
    padding: 22px;
    margin-top: 20px;
}
.vp-track-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}
.vp-track-head span { color: var(--vp-muted); font-size: 13px; }
.vp-track-items { font-size: 14px; color: var(--vp-text); margin-bottom: 14px; }
.vp-track-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: var(--vp-bg-soft);
    margin-bottom: 20px;
}
.vp-track-status.status-completed { background: #f0fdf4; color: #166534; }
.vp-track-status.status-processing,
.vp-track-status.status-confirmed  { background: #eff6ff; color: #1e40af; }
.vp-track-status.status-out-for-delivery { background: #fff7ed; color: #c2410c; }
.vp-track-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.vp-track-progress::before {
    content: '';
    position: absolute;
    top: 14px; left: 12%; right: 12%;
    height: 2px;
    background: var(--vp-border);
}
.vp-track-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.vp-track-step i {
    width: 30px; height: 30px;
    background: #fff;
    border: 2px solid var(--vp-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--vp-muted);
    margin-bottom: 6px;
}
.vp-track-step.done i { background: #000; border-color: #000; color: #fff; }
.vp-track-step span { display: block; font-size: 11px; color: var(--vp-muted); }
.vp-track-step.done span { color: #000; font-weight: 600; }

/* ============================================================
   26. COUNTDOWN BAR
   ============================================================ */
.vp-countdown-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #000;
    color: #fff;
    padding: 12px 44px 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    z-index: 997;
    font-weight: 600;
}
.vp-countdown-timer {
    background: #fff;
    color: #000;
    padding: 3px 12px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 1px;
}
.vp-countdown-close {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}
.vp-countdown-close:hover { color: #fff; }

/* ============================================================
   27. BACK TO TOP
   ============================================================ */
.vp-back-top {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 44px; height: 44px;
    background: #fff;
    color: #000;
    border: 1.5px solid var(--vp-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
    z-index: 996;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: all .3s ease;
    -webkit-tap-highlight-color: transparent;
}
.vp-back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.vp-back-top:hover { background: #000; color: #fff; border-color: #000; }
body[dir="rtl"] .vp-back-top { right: auto; left: 25px; }

/* ============================================================
   28. STICKY MOBILE BUY BAR
   ============================================================ */
.vp-sticky-buy {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--vp-border);
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    z-index: 995;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.vp-sticky-buy.show { transform: translateY(0); }
.vp-sticky-price { font-size: 18px; font-weight: 700; color: #000; }
.vp-sticky-btn { padding: 12px 28px !important; font-size: 14px !important; flex-shrink: 0; }
@media (max-width: 768px) {
    .vp-sticky-buy { display: flex; }
    .vp-back-top { bottom: 150px; right: 18px; width: 40px; height: 40px; }
    body[dir="rtl"] .vp-back-top { right: auto; left: 18px; }
    .vp-countdown-bar { font-size: 12px; padding: 10px 40px 10px 12px; }
    .vp-search-overlay { padding: 20px 12px; }
    .vp-track-input-row { flex-direction: column; }
}

/* RTL for new features */
body[dir="rtl"] .vp-search-item { flex-direction: row-reverse; text-align: right; }
body[dir="rtl"] .vp-search-item .fa-chevron-right::before { content: "\f053"; }
body[dir="rtl"] .vp-search-input-row { flex-direction: row-reverse; }
body[dir="rtl"] #vp-search-input { text-align: right; direction: rtl; }
body[dir="rtl"] .vp-track-head { flex-direction: row-reverse; }
body[dir="rtl"] .vp-title-row { flex-direction: row-reverse; }
body[dir="rtl"] .vp-sticky-buy { flex-direction: row-reverse; }

/* ============================================================
   29. IMAGE VISIBILITY GUARANTEE + MOBILE SPACING
   ============================================================ */
/* Product + category images: always visible, never collapsed */
.woocommerce ul.products li.product img,
.vp-product-img,
.vp-category-card img,
.vp-cart-img img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 40px;
}
/* If WP outputs srcset with missing sizes, the src still renders */
.woocommerce ul.products li.product img[src=""],
.vp-category-card img[src=""] { display: none !important; }

/* Category card image sizing (keep original 1:1 ratio, ensure link is block) */
.vp-category-card {
    display: block;
}
.vp-category-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ── MOBILE: comfortable side spacing everywhere ── */
@media (max-width: 768px) {
    /* Global container: guaranteed side padding */
    .vp-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Categories section: extra breathing room */
    .vp-categories {
        padding-left: 4px;
        padding-right: 4px;
        gap: 12px !important;
    }
    .vp-category-card { border-radius: 10px; }
    .vp-category-card-content h3 { font-size: 14px; }

    /* Product grids: consistent gaps, never touching edges */
    .vp-products,
    .woocommerce ul.products {
        gap: 12px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce ul.products li.product {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Sections: consistent vertical rhythm */
    .vp-section { padding: 36px 0 !important; }
    .vp-section-title { margin-bottom: 24px !important; padding: 0 8px; }
    .vp-section-title h2 { font-size: 24px !important; }
    .vp-section-title p  { font-size: 13px !important; }

    /* Hero side padding */
    .vp-hero-inner { padding-left: 4px; padding-right: 4px; }

    /* Testimonials side space */
    .vp-testimonials { gap: 12px !important; }
    .vp-testimonial  { padding: 18px 16px !important; }

    /* Trust badges spacing */
    .vp-trust-badges { gap: 14px !important; padding: 0 4px; }

    /* Footer padding */
    .vp-footer { padding: 36px 0 90px !important; }
    .vp-footer-grid { gap: 26px !important; }

    /* Single product page side padding */
    .vp-single-product .vp-container { padding-left: 14px !important; padding-right: 14px !important; }

    /* Cart page */
    .vp-cart-page .vp-container { padding-left: 14px !important; padding-right: 14px !important; }
}

@media (max-width: 480px) {
    .vp-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    /* Categories: keep 2 columns with proper gap on small phones */
    .vp-categories {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .vp-products,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .vp-section-title h2 { font-size: 21px !important; }
}

/* ============================================================
   30. HERO BACKGROUND IMAGE MODE
   ============================================================ */
.vp-hero-bg {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 480px;
    display: flex;
    align-items: center;
}
/* Dark overlay for text readability */
.vp-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%);
    z-index: 1;
}
.vp-hero-bg .vp-container { position: relative; z-index: 2; }
.vp-hero-inner-bg { grid-template-columns: 1fr !important; max-width: 640px; }
.vp-hero-bg h1 { color: #fff !important; }
.vp-hero-bg p  { color: rgba(255,255,255,.9) !important; }
/* White button on dark background */
.vp-btn-hero-bg {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}
.vp-btn-hero-bg:hover {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}
@media (max-width: 768px) {
    .vp-hero-bg { min-height: 380px; padding: 50px 0 !important; }
    .vp-hero-bg::before {
        background: linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.5) 100%);
    }
    .vp-hero-bg h1 { font-size: clamp(26px, 8vw, 34px) !important; }
}

/* ============================================================
   31. ANNOUNCEMENT MARQUEE FIX
   The universal `* { max-width:100% }` rule was clamping the
   track (width: max-content) and freezing the animation.
   ============================================================ */
.vp-announcement-track {
    max-width: none !important;
    width: max-content !important;
}
/* RTL: reverse the scroll direction so it reads naturally */
body[dir="rtl"] .vp-announcement-track {
    animation-direction: reverse;
}

/* ============================================================
   32. CATEGORY / SHOP ARCHIVE PAGES — mobile spacing
   ============================================================ */
.vp-archive-products,
.woocommerce-page .vp-container,
.post-type-archive-product .vp-container,
.tax-product_cat .vp-container {
    box-sizing: border-box;
}
@media (max-width: 768px) {
    /* Side space on both sides */
    .tax-product_cat .vp-container,
    .post-type-archive-product .vp-container,
    .woocommerce-page .vp-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Bottom space so products don't stick to the footer */
    .tax-product_cat main,
    .tax-product_cat .vp-archive,
    .post-type-archive-product main,
    .post-type-archive-product .vp-archive,
    .woocommerce-page main {
        padding-bottom: 50px !important;
    }
    .tax-product_cat ul.products,
    .post-type-archive-product ul.products {
        margin-bottom: 30px !important;
    }
    /* Page title + result count breathing room */
    .woocommerce-products-header { padding: 6px 4px 0; }
    .woocommerce-result-count,
    .woocommerce-ordering { margin: 0 4px 14px; }
}
@media (max-width: 480px) {
    .tax-product_cat .vp-container,
    .post-type-archive-product .vp-container,
    .woocommerce-page .vp-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* ============================================================
   33. SVG FLAG in language switcher (Windows-safe)
   ============================================================ */
.vp-lang-flag-circle svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* ============================================================
   34. SHOP ARCHIVE LAYOUT + CENTERING GUARANTEES
   ============================================================ */
/* Container: centering can never be overridden */
.vp-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Shop/category pages */
.vp-shop-archive { padding: 24px 0 70px; }
.vp-shop-archive .vp-page-title { margin: 6px 0 20px; }
.vp-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.vp-shop-toolbar .woocommerce-result-count { margin: 0 !important; color: var(--vp-muted); font-size: 14px; }
.vp-shop-toolbar .woocommerce-ordering { margin: 0 !important; }
.vp-shop-toolbar select {
    padding: 9px 14px;
    border: 1.5px solid var(--vp-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}

/* Kill WooCommerce core floats that break our grid layout
   (WC CSS floats div.images / div.summary at ~48% width) */
.vp-single-product .woocommerce-product-gallery,
.vp-single-product div.images,
.woocommerce div.product div.images,
.woocommerce #content div.product div.images {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}
.vp-single-grid::after { content: ''; display: table; clear: both; }

/* Mobile shop archive */
@media (max-width: 768px) {
    .vp-shop-archive { padding: 14px 0 50px; }
    .vp-shop-toolbar { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
    .vp-shop-toolbar select { width: 100%; }
    .vp-shop-archive .vp-page-title { font-size: 26px; margin: 4px 0 14px; }
}

/* ============================================================
   35. CUSTOM PRODUCT GALLERY — main image + horizontal thumbs
   ============================================================ */
.vp-gallery {
    position: relative;
    width: 100%;
}
.vp-gallery-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}
body[dir="rtl"] .vp-gallery-sale { left: auto; right: 12px; }

.vp-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--vp-radius);
    overflow: hidden;
    background: var(--vp-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-gallery-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: opacity .2s ease;
    display: block;
}

/* Horizontal thumbnails strip */
.vp-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.vp-gallery-thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid var(--vp-border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--vp-bg-soft);
    transition: border-color .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
}
.vp-gallery-thumb:hover  { border-color: #999; }
.vp-gallery-thumb.active { border-color: #000; }
.vp-gallery-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .vp-gallery-thumb { width: 64px; height: 64px; border-radius: 8px; }
    .vp-gallery-thumbs { gap: 8px; margin-top: 10px; }
}

/* RTL: thumbs flow right→left */
body[dir="rtl"] .vp-gallery-thumbs { direction: rtl; }

/* ============================================================
   36. PRODUCT SIZE BADGE (Contenance)
   ============================================================ */
.vp-size-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--vp-bg-soft);
    border: 1.5px solid var(--vp-border);
    color: var(--vp-text);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin: 4px 0 12px;
}
.vp-size-badge i { font-size: 12px; color: var(--vp-muted); }

/* On product cards */
.vp-size-loop {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--vp-muted);
    margin-top: 2px;
    letter-spacing: .5px;
}
body[dir="rtl"] .vp-size-badge { flex-direction: row-reverse; }

/* ============================================================
   37. SIZE SELECTOR PILLS (multi-tailles avec prix)
   ============================================================ */
.vp-sizes-select { margin: 6px 0 18px; }
.vp-sizes-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    color: var(--vp-text);
}
.vp-sizes-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vp-size-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 96px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid var(--vp-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}
.vp-size-pill:hover  { border-color: #999; }
.vp-size-pill.active {
    border-color: #000;
    background: var(--vp-bg-soft);
    transform: scale(1.02);
}
.vp-size-pill-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--vp-text);
}
.vp-size-pill-price {
    font-size: 13px;
    color: var(--vp-muted);
    font-weight: 600;
}
.vp-size-pill.active .vp-size-pill-price { color: #000; }

/* Cart line size */
.vp-cart-size {
    font-size: 12px;
    color: var(--vp-muted);
    margin: 2px 0 4px;
}
.vp-cart-size i { font-size: 11px; }

@media (max-width: 768px) {
    .vp-size-pill { min-width: 84px; padding: 9px 14px; }
    .vp-sizes-pills { gap: 8px; }
}
body[dir="rtl"] .vp-sizes-pills { direction: rtl; }

/* ============================================================
   38. OUT OF STOCK + BEST-SELLER
   ============================================================ */
/* Cards must clip absolute badges */
.woocommerce ul.products li.product { position: relative; }

/* Best-Seller badge — top right */
.vp-bestseller-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
    white-space: nowrap;
}
body[dir="rtl"] .vp-bestseller-badge { right: auto; left: 12px; }

/* Out of stock badge — centered over the image */
.vp-oos-badge {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    background: rgba(255,255,255,.95);
    color: #000;
    border: 2px solid #000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Grey out sold-out cards */
li.product.vp-out-of-stock img { filter: grayscale(1); opacity: .55; }
li.product.vp-out-of-stock .vp-buy-loop-btn,
li.product.vp-out-of-stock .button {
    background: #eee !important;
    color: #999 !important;
    pointer-events: none;
    border-color: #eee !important;
}

/* Single product OOS notice */
.vp-oos-notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--vp-bg-soft);
    border: 2px dashed var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 22px 20px;
    margin: 10px 0 20px;
}
.vp-oos-notice i { font-size: 30px; color: var(--vp-muted); flex-shrink: 0; margin-top: 2px; }
.vp-oos-notice strong { display: block; font-size: 16px; margin-bottom: 4px; }
.vp-oos-notice p { color: var(--vp-muted); font-size: 14px; margin: 0; }
body[dir="rtl"] .vp-oos-notice { flex-direction: row-reverse; text-align: right; }

@media (max-width: 768px) {
    .vp-bestseller-badge { font-size: 9px; padding: 4px 8px; top: 8px; right: 8px; }
    .vp-oos-badge { font-size: 10px; padding: 6px 10px; }
}

/* ============================================================
   39. CUSTOMER REVIEWS
   ============================================================ */
.vp-reviews-section { background: var(--vp-bg-soft); }
.vp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}
.vp-review-card {
    background: #fff;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 20px;
}
.vp-review-stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; margin-bottom: 8px; }
.vp-review-text  { font-size: 14px; line-height: 1.65; margin-bottom: 12px; }
.vp-review-photo { display: inline-block; margin-bottom: 12px; }
.vp-review-photo img {
    width: 92px; height: 92px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--vp-border);
    transition: transform .2s;
}
.vp-review-photo:hover img { transform: scale(1.05); }
.vp-review-author { font-size: 13px; color: var(--vp-muted); }
.vp-review-author strong { color: var(--vp-text); }
.vp-review-verified {
    display: inline-block;
    margin-left: 8px;
    color: #166534;
    font-weight: 600;
    font-size: 12px;
}

/* Review form */
.vp-review-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 26px 24px;
}
.vp-review-form-wrap h3 { margin-bottom: 16px; font-family: var(--vp-font); font-size: 17px; }
.vp-review-stars-input { margin-bottom: 14px; }
.vp-review-stars-input button {
    background: none; border: none; font-size: 30px; cursor: pointer;
    color: #ddd; padding: 0 3px; transition: color .15s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.vp-review-stars-input button.on { color: #f5a623; }
.vp-review-stars-input button:hover { transform: scale(1.15); }
.vp-review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.vp-review-form-wrap textarea { margin-bottom: 12px; }
.vp-review-photo-label {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    border: 1.5px dashed var(--vp-border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--vp-muted);
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color .2s;
}
.vp-review-photo-label:hover { border-color: #000; color: #000; }

.vp-rating-link { margin-left: 10px; font-size: 13px; color: var(--vp-muted); text-decoration: underline; }
.vp-rating-link:hover { color: #000; }

@media (max-width: 768px) {
    .vp-reviews-grid { grid-template-columns: 1fr; gap: 12px; }
    .vp-review-form-row { grid-template-columns: 1fr; }
    .vp-review-form-wrap { padding: 20px 16px; }
}
body[dir="rtl"] .vp-review-card { text-align: right; }
body[dir="rtl"] .vp-review-verified { margin-left: 0; margin-right: 8px; }

/* ============================================================
   40. FRAGRANCE WIDGETS (accords + quand le porter)
   ============================================================ */
.vp-fragrance-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 4px 0 20px;
}
.vp-accords-box,
.vp-seasons-box {
    background: #fff;
    border: 1.5px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 16px;
}
.vp-frag-title {
    font-family: var(--vp-font);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--vp-muted);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-frag-title i { color: #f5a623; }

/* Accords bars */
.vp-accords-bars { display: flex; flex-direction: column; gap: 5px; }
.vp-accord-bar {
    min-width: 40%;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Seasons */
.vp-seasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
}
.vp-season {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.vp-season i { font-size: 20px; color: #9aa3ab; }
.vp-season-label { font-size: 12px; color: var(--vp-text); font-weight: 600; }
.vp-season-track {
    width: 100%;
    height: 6px;
    background: #eef0f2;
    border-radius: 3px;
    overflow: hidden;
}
.vp-season-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
}

/* Mobile: stack the two boxes */
@media (max-width: 992px) {
    .vp-fragrance-widgets { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 768px) {
    .vp-seasons-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
    .vp-accord-bar { font-size: 12px; padding: 5px 10px; }
}

/* RTL */
body[dir="rtl"] .vp-frag-title { flex-direction: row-reverse; }
body[dir="rtl"] .vp-accords-bars { align-items: flex-end; }
