/* ================================
   Al-Mahmoud V2 — Mobile-First Redesign
   Clean, Modern, Conversion-Focused
   Uses original site color palette
   ================================ */

/* ===== V2 CSS Variables (matching original site) ===== */
:root {
    --v2-primary: #4A7C59;
    --v2-primary-light: #5A9A6E;
    --v2-primary-dark: #3A6249;
    --v2-accent: #E8B931;
    --v2-accent-dark: #D0A528;
    --v2-secondary: #2C3E50;
    --v2-dark: #1a1a1a;
    --v2-dark-overlay: rgba(26, 26, 26, 0.85);
    --v2-white: #ffffff;
    --v2-off-white: #F5F5F0;
    --v2-cream: #EDEDEA;
    --v2-bg: #E8E8E0;
    --v2-text: #333333;
    --v2-text-light: #666666;
    --v2-green-wa: #25D366;
    --v2-green-wa-dark: #128C7E;
    --v2-red-badge: #e74c3c;
    --v2-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --v2-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --v2-radius: 12px;
    --v2-radius-sm: 8px;
}

/* ===== WhatsApp Top Bar ===== */
.wa-topbar {
    background: linear-gradient(135deg, var(--v2-primary-dark) 0%, var(--v2-primary) 100%);
    padding: 9px 15px;
    text-align: center;
    position: relative;
    z-index: 1000;
}

.wa-topbar a {
    color: var(--v2-white);
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.wa-topbar a:hover {
    opacity: 0.9;
}

.wa-topbar .wa-icon {
    width: 28px;
    height: 28px;
    background: var(--v2-white);
    color: var(--v2-green-wa);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== V2 Header — Clean & Centered ===== */
.v2-header {
    background: var(--v2-white);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.v2-header .header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
}

.v2-header .logo-center {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.v2-header .logo-center img {
    max-height: 55px;
    max-width: 100%;
    min-width: 0;
    width: auto;
}

.v2-header .menu-toggle-v2 {
    order: 3;
    flex: 0 0 auto;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--v2-text);
    cursor: pointer;
    padding: 8px;
}

.v2-header .nav-actions-v2 {
    order: 1;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.v2-header .nav-actions-v2 button,
.v2-header .nav-actions-v2 a {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--v2-text);
    cursor: pointer;
    padding: 5px;
    position: relative;
}

/* ===== Currency / country utility row (own line — never competes with the logo) ===== */
.v2-header-utility-row {
    display: flex;
    justify-content: center;
    padding: 8px 15px 0;
}

.currency-flag {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.currency-flag[data-currency="EGP"] {
    background: linear-gradient(to bottom, #ce1126 0 34%, #fff 34% 67%, #1a1a1a 67% 100%);
}

.currency-flag[data-currency="SAR"] {
    background: #006c35;
}

.currency-flag[data-currency="USD"] {
    background: radial-gradient(circle at 32% 32%, #8fd0ee, #1c6fa8 70%);
}

.v2-header-utility-row .currency-switch-wrap {
    position: relative;
}

.v2-header-utility-row .currency-switch-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 25px;
    background: var(--v2-off-white);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

[dir="rtl"] .v2-header-utility-row .currency-switch-trigger {
    padding: 5px 5px 5px 12px;
}

.v2-header-utility-row .currency-switch-trigger:hover {
    box-shadow: 0 0 0 2px var(--v2-primary);
}

.v2-header-utility-row .currency-switch-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
}

.v2-header-utility-row .currency-switch-caret {
    font-size: 10px;
    color: var(--v2-text-light);
    transition: transform 0.2s;
}

.v2-header-utility-row .currency-switch-wrap.open .currency-switch-caret {
    transform: rotate(180deg);
}

.v2-header-utility-row .currency-switch-trigger:focus-visible {
    outline: 2px solid var(--v2-primary);
    outline-offset: 2px;
}

.v2-header-utility-row .currency-switch-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 170px;
    background: var(--v2-white);
    border-radius: 12px;
    box-shadow: var(--v2-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 20;
}

.v2-header-utility-row .currency-switch-wrap.open .currency-switch-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.v2-header-utility-row .currency-switch-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--v2-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.v2-header-utility-row .currency-switch-option:hover {
    background: var(--v2-off-white);
}

.v2-header-utility-row .currency-switch-option.is-active {
    background: rgba(74, 124, 89, 0.12);
    color: var(--v2-primary);
}

.v2-header .cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--v2-red-badge);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Desktop nav hidden on mobile */
.v2-header .v2-nav-menu {
    display: none;
}

@media (min-width: 992px) {
    .v2-header .v2-nav-menu {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .v2-header .v2-nav-menu a {
        font-size: 15px;
        font-weight: 600;
        color: var(--v2-text);
        transition: color 0.3s;
    }

    .v2-header .v2-nav-menu a:hover,
    .v2-header .v2-nav-menu a.active {
        color: var(--v2-primary);
    }

    .v2-header .menu-toggle-v2 {
        display: none;
    }

    .v2-header .header-inner {
        justify-content: space-between;
        max-width: 1320px;
        margin: 0 auto;
    }

    .v2-header .logo-center,
    .v2-header .nav-actions-v2 {
        order: 0;
        flex: 0 0 auto;
    }

    .v2-header-utility-row {
        padding-top: 6px;
    }
}

/* ===== V2 Hero Banner ===== */
.v2-hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--v2-secondary);
}

.v2-hero-banner .hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 180px;
    overflow: hidden;
}

.v2-hero-banner .hero-image-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.v2-hero-banner .hero-image-wrapper .hero-video-iframe,
.v2-hero-banner .hero-image-wrapper .hero-video-bg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border: none;
}

.v2-hero-banner .hero-image-wrapper.has-video {
    max-height: 180px;
}

.v2-hero-banner .hero-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.v2-hero-banner .hero-overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.v2-hero-banner .hero-overlay-content .hero-cta-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.v2-hero-banner .hero-overlay-content .hero-cta-primary {
    background: var(--v2-primary);
    color: var(--v2-white);
}

.v2-hero-banner .hero-overlay-content .hero-cta-primary:hover {
    background: var(--v2-primary-dark);
}

.v2-hero-banner .hero-overlay-content .hero-cta-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--v2-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.v2-hero-banner .hero-overlay-content .hero-cta-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

.v2-hero-banner .hero-strip {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-light) 100%);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.v2-hero-banner .hero-strip .strip-logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.v2-hero-banner .hero-strip .strip-text {
    margin: 0;
    color: var(--v2-white);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .v2-hero-banner .hero-image-wrapper {
        max-height: 260px;
    }

    .v2-hero-banner .hero-image-wrapper img {
        height: 260px;
    }

    .v2-hero-banner .hero-image-wrapper .hero-video-iframe,
    .v2-hero-banner .hero-image-wrapper .hero-video-bg {
        height: 260px;
    }

    .v2-hero-banner .hero-image-wrapper.has-video {
        max-height: 260px;
    }

    .v2-hero-banner .hero-strip .strip-text {
        font-size: 17px;
    }

    .v2-hero-banner .hero-strip .strip-logo img {
        height: 35px;
    }

    .v2-hero-banner .hero-overlay-content .hero-cta-btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .v2-hero-banner .hero-image-wrapper {
        max-height: 320px;
    }

    .v2-hero-banner .hero-image-wrapper img {
        height: 320px;
    }

    .v2-hero-banner .hero-image-wrapper .hero-video-iframe,
    .v2-hero-banner .hero-image-wrapper .hero-video-bg {
        height: 320px;
    }

    .v2-hero-banner .hero-image-wrapper.has-video {
        max-height: 320px;
    }

    .v2-hero-banner .hero-strip .strip-text {
        font-size: 20px;
    }

    .v2-hero-banner .hero-strip {
        padding: 12px 20px;
    }
}

/* ===== V2 Products Section ===== */
.v2-products-section {
    padding: 35px 0 30px;
    background: var(--v2-bg);
}

.v2-section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 15px;
}

.v2-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--v2-text);
    margin-bottom: 8px;
}

.v2-section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--v2-primary);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.v2-section-header p {
    font-size: 14px;
    color: var(--v2-text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Category Filter Pills */
.v2-category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 15px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.v2-category-filters::-webkit-scrollbar {
    display: none;
}

.v2-filter-pill {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid var(--v2-primary);
    color: var(--v2-primary-dark);
    background: var(--v2-white);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.v2-filter-pill.active,
.v2-filter-pill:hover {
    background: var(--v2-primary);
    color: var(--v2-white);
    border-color: var(--v2-primary);
}

/* Products Grid */
.v2-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
}

@media (min-width: 576px) {
    .v2-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .v2-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .v2-products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* V2 Product Card */
.v2-product-card {
    background: #EAF3EC;
    border-radius: var(--v2-radius);
    overflow: hidden;
    box-shadow: var(--v2-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid #D2E4D6;
}

.v2-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg);
}

.v2-product-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: var(--v2-red-badge);
    color: var(--v2-white);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

[dir="ltr"] .v2-product-card .card-badge {
    right: auto;
    left: 10px;
}

.v2-product-card .card-image {
    position: relative;
    padding: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid #E5EDE7;
}

.v2-product-card .card-image::after {
    content: none;
}

.v2-product-card .card-image img,
.v2-product-card .card-image picture img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
    mix-blend-mode: multiply;
    filter: none;
}

.v2-product-card .card-image picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-product-card .card-image picture img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 575px) {
    .v2-product-card .card-image {
        padding: 0;
        aspect-ratio: 1 / 1;
        background: #ffffff;
    }

    .v2-product-card .card-image img,
    .v2-product-card .card-image picture img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        mix-blend-mode: normal;
    }

    .v2-product-card .card-image picture {
        width: 100%;
        height: 100%;
    }

    .v2-product-card .card-body {
        padding: 10px 8px 12px;
    }

    .v2-product-card .card-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .v2-product-card .price-current {
        font-size: 15px;
    }

    .v2-product-card .price-currency,
    .v2-product-card .price-old {
        font-size: 11px;
    }

    .v2-product-card .card-category {
        font-size: 11px;
    }

    .v2-product-card .btn-cart {
        padding: 8px 10px;
        font-size: 12px;
    }

    .v2-product-card .btn-detail {
        padding: 8px 10px;
        font-size: 12px;
    }

    .v2-product-card .card-actions {
        gap: 6px;
    }

    /* Compact variants on mobile: single line with ellipsis */
    .v2-product-card .card-variants {
        margin-top: 6px;
        gap: 4px;
        max-height: 110px;
        overflow-y: auto;
    }

    .v2-product-card .card-variant-item {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 6px;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .v2-product-card .card-variant-name {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }

    .v2-product-card .card-variant-price {
        font-size: 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .v2-product-card .card-image {
        padding: 8px;
    }

    .v2-product-card .card-image img,
    .v2-product-card .card-image picture img {
        width: 90%;
        height: 90%;
        max-width: 90%;
        max-height: 90%;
    }
}

.v2-product-card:hover .card-image img,
.v2-product-card:hover .card-image picture img {
    transform: scale(1.05);
}

/* Accent top border on card */
.v2-product-card .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--v2-primary), transparent);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.v2-product-card .card-body {
    padding: 14px 14px 16px;
    text-align: center;
    background: #EAF3EC;
}

.v2-product-card .card-category {
    font-size: 11px;
    color: var(--v2-primary);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.v2-product-card .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-product-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.v2-product-card .card-title a:hover {
    color: var(--v2-primary);
}

.v2-product-card .card-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-product-card .price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--v2-text);
}

.v2-product-card .price-currency {
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-text-light);
}

.v2-product-card .price-old {
    font-size: 12px;
    color: var(--v2-text-light);
    text-decoration: line-through;
}

/* Product Variant Cards on Homepage */
.v2-product-card .card-variants {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.v2-product-card .card-variant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ffffff, #F0F7F2);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    border: 1px solid #CDE0D2;
    transition: all 0.2s ease;
}

.v2-product-card .card-variant-item:hover {
    border-color: var(--v2-primary);
    background: linear-gradient(135deg, #F0F7F2, #DCEBE0);
}

.v2-product-card .card-variant-name {
    color: var(--v2-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.v2-product-card .card-variant-name i {
    color: var(--v2-primary);
    font-size: 9px;
}

.v2-product-card .card-variant-price {
    color: var(--v2-primary);
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.v2-product-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.v2-product-card .btn-cart {
    flex: 1;
    padding: 8px 12px;
    background: var(--v2-primary);
    color: var(--v2-white);
    border: none;
    border-radius: var(--v2-radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.v2-product-card .btn-cart:hover {
    background: var(--v2-primary-dark);
}

.v2-product-card .btn-detail {
    padding: 8px 12px;
    background: #ffffff;
    color: var(--v2-text);
    border: 1px solid #CDE0D2;
    border-radius: var(--v2-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-product-card .btn-detail:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.v2-product-card .btn-detail-full {
    flex: 1;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    background: var(--v2-primary);
    color: var(--v2-white);
    border-color: var(--v2-primary);
}

.v2-product-card .btn-detail-full:hover {
    background: var(--v2-primary-dark);
    border-color: var(--v2-primary-dark);
    color: var(--v2-white);
}

/* View All CTA */
.v2-view-all {
    text-align: center;
    margin-top: 30px;
    padding: 0 15px;
}

.v2-view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--v2-primary);
    color: var(--v2-white);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.v2-view-all a:hover {
    background: var(--v2-primary-dark);
    transform: translateY(-2px);
}

/* ===== V2 Features Strip ===== */
.v2-features-strip {
    background: var(--v2-white);
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.v2-features-strip .features-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.v2-features-strip .features-scroll::-webkit-scrollbar {
    display: none;
}

.v2-features-strip .feature-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-left: 1px solid #eee;
    min-width: max-content;
}

[dir="ltr"] .v2-features-strip .feature-item {
    border-left: none;
    border-right: 1px solid #eee;
}

.v2-features-strip .feature-item:first-child {
    border: none;
}

.v2-features-strip .feature-item i {
    font-size: 20px;
    color: var(--v2-primary);
}

.v2-features-strip .feature-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--v2-text);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .v2-features-strip .features-scroll {
        justify-content: center;
    }
}

/* ===== V2 Section Common ===== */
.v2-section {
    padding: 40px 0;
}

.v2-section.bg-white {
    background: var(--v2-white);
}

.v2-section.bg-cream {
    background: var(--v2-cream);
}

.v2-section.bg-dark {
    background: var(--v2-dark);
    color: var(--v2-white);
}

/* ===== V2 Testimonials ===== */
.v2-testimonials {
    padding: 40px 0;
    background: var(--v2-white);
}

.v2-testimonial-card {
    background: var(--v2-off-white);
    border-radius: var(--v2-radius);
    padding: 18px 16px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.v2-testimonial-card .rating {
    color: var(--v2-primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.v2-testimonial-card .review-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--v2-text);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.v2-testimonial-card .author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.v2-testimonial-card .author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.v2-testimonial-card .author-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-text);
}

.v2-testimonial-card .author-info span {
    font-size: 12px;
    color: var(--v2-text-light);
}

.v2-testimonial-card .google-verify-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #4285F4;
    font-size: 14px;
    flex-shrink: 0;
    margin-inline-start: auto;
    transition: all 0.25s ease;
}

.v2-testimonial-card .google-verify-link:hover {
    background: #4285F4;
    border-color: #4285F4;
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 575px) {
    .v2-testimonials {
        padding: 28px 0;
    }

    .v2-testimonial-card {
        padding: 14px 12px;
    }

    .v2-testimonial-card .review-text {
        font-size: 12.5px;
        -webkit-line-clamp: 2;
    }

    .v2-testimonial-card .author img {
        width: 36px;
        height: 36px;
    }

    .v2-testimonial-card .author-info h3 {
        font-size: 13px;
    }

    .v2-testimonial-card .author-info span {
        font-size: 11px;
    }
}

/* ===== V2 Partners ===== */
.v2-partners {
    padding: 30px 0;
    background: var(--v2-off-white);
    overflow: hidden;
}

.v2-partners .partners-track {
    display: flex;
    gap: 40px;
    animation: v2-scroll 25s linear infinite;
}

.v2-partners .partner-logo img {
    height: 50px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.v2-partners .partner-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes v2-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===== V2 Why Us ===== */
.v2-why-us {
    padding: 40px 0;
    background: var(--v2-white);
}

.v2-why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .v2-why-us-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .v2-why-us-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.v2-why-card {
    text-align: center;
    padding: 25px 15px;
    background: var(--v2-off-white);
    border-radius: var(--v2-radius);
    transition: transform 0.3s;
}

.v2-why-card:hover {
    transform: translateY(-4px);
}

.v2-why-card i {
    font-size: 28px;
    color: var(--v2-primary);
    margin-bottom: 12px;
    display: block;
}

.v2-why-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 5px;
}

.v2-why-card p {
    font-size: 12px;
    color: var(--v2-text-light);
    line-height: 1.6;
}

/* ===== V2 Trust / Stats ===== */
.v2-trust-section {
    padding: 35px 0;
    background: var(--v2-dark);
    color: var(--v2-white);
}

.v2-trust-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 0 15px;
}

.v2-trust-stat {
    text-align: center;
    min-width: 100px;
}

.v2-trust-stat .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--v2-primary);
    display: block;
}

.v2-trust-stat .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ===== V2 Categories ===== */
.v2-categories-section {
    padding: 40px 0;
    background: var(--v2-off-white);
}

.v2-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .v2-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.v2-cat-card {
    background: var(--v2-white);
    border-radius: var(--v2-radius);
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--v2-shadow);
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.v2-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg);
}

.v2-cat-card i {
    font-size: 30px;
    color: var(--v2-primary);
    margin-bottom: 10px;
    display: block;
}

.v2-cat-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 4px;
}

.v2-cat-card .count {
    font-size: 12px;
    color: var(--v2-text-light);
}

/* ===== V2 Categories Marquee (moving strip, above products) ===== */
.v2-cat-marquee-section {
    padding: 20px 0;
    background: var(--v2-off-white);
    overflow: hidden;
    /* Must also be LTR (not just the track inside it): in RTL a wider-than-
       container block is anchored to the container's right edge with
       overflow bleeding to the left, so the resting (translateX(0)) frame
       starts mid-card instead of at a clean card edge. Forcing LTR here
       anchors the track's left edge to the section's left edge, matching
       the English layout exactly. */
    direction: ltr;
}

.cat-marquee-track {
    display: flex;
    /* Force LTR box-model/flex math regardless of page locale. The
       seamless-loop animation below is physical-axis (translateX), so the
       track's internal layout must always resolve left-to-right the same
       way in Arabic (dir="rtl" on <html>) as it does in English — otherwise
       the flex items mirror their order/edges under RTL and the loop
       point no longer lines up, showing a blank gap. */
    direction: ltr;
    width: max-content;
    --marquee-copies: 4;
    animation: v2-cat-scroll 30s linear infinite;
}

.v2-cat-marquee-section:hover .cat-marquee-track {
    animation-play-state: paused;
}

@keyframes v2-cat-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Track renders --marquee-copies identical copies of the category
           list back-to-back (see categories-marquee.blade.php) so
           translating by exactly one copy's share (1 / copies) lands the
           next copy in the exact start position — a perfect seamless loop
           with no jump/gap. Spacing between cards is done via each card's
           own margin (not flex `gap`) so this math stays exact regardless
           of how many categories exist. */
        transform: translateX(calc(-100% / var(--marquee-copies)));
    }
}

.cat-marquee-card {
    flex-shrink: 0;
    width: 130px;
    margin-inline-end: 16px;
    background: var(--v2-white);
    border-radius: var(--v2-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--v2-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cat-marquee-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg);
}

.cat-marquee-card:first-child {
    background: var(--v2-accent);
}

.cat-marquee-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-white);
    padding: 12px;
    margin: 8px;
    border-radius: var(--v2-radius-sm);
}

.cat-marquee-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cat-marquee-icon i {
    font-size: 36px;
    color: var(--v2-primary);
}

.cat-marquee-label {
    display: block;
    text-align: center;
    padding: 0 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-text);
}

@media (min-width: 768px) {
    .cat-marquee-card {
        width: 160px;
    }

    .cat-marquee-icon {
        height: 130px;
    }

    .cat-marquee-label {
        font-size: 14px;
    }
}

/* ===== Bottom WhatsApp CTA ===== */
.v2-wa-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    pointer-events: none;
}

.v2-wa-bottom a {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--v2-green-wa);
    color: var(--v2-white);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    max-width: 400px;
    margin: 0 auto;
}

.v2-wa-bottom a:hover {
    background: var(--v2-green-wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.v2-wa-bottom a i {
    font-size: 22px;
}

/* Add bottom padding to body for fixed CTA */
body.has-wa-bottom {
    padding-bottom: 75px;
}

/* ===== V2 After Sales ===== */
.v2-after-sales {
    padding: 40px 0;
    background: var(--v2-cream);
}

.v2-aftersales-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .v2-aftersales-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.v2-aftersales-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--v2-white);
    padding: 20px;
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
}

.v2-aftersales-item i {
    font-size: 24px;
    color: var(--v2-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.v2-aftersales-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 4px;
}

.v2-aftersales-item p {
    font-size: 13px;
    color: var(--v2-text-light);
    line-height: 1.6;
}

/* ===== V2 CTA Section ===== */
.v2-cta-section {
    padding: 50px 15px;
    background: linear-gradient(135deg, var(--v2-primary-dark) 0%, var(--v2-primary) 50%, var(--v2-primary-light) 100%);
    text-align: center;
}

.v2-cta-section h2 {
    color: var(--v2-white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.v2-cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 20px;
}

.v2-cta-section .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.v2-cta-section .btn-cta {
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.v2-cta-section .btn-cta-primary {
    background: var(--v2-white);
    color: var(--v2-primary-dark);
}

.v2-cta-section .btn-cta-primary:hover {
    background: var(--v2-off-white);
    transform: translateY(-2px);
}

.v2-cta-section .btn-cta-outline {
    background: transparent;
    color: var(--v2-white);
    border: 2px solid var(--v2-white);
}

.v2-cta-section .btn-cta-outline:hover {
    background: var(--v2-white);
    color: var(--v2-primary-dark);
}

/* ===== V2 Services Grid ===== */
.v2-services {
    padding: 40px 0;
    background: var(--v2-white);
}

.v2-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .v2-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .v2-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.v2-service-card {
    background: var(--v2-off-white);
    border-radius: var(--v2-radius);
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.v2-service-card:hover {
    border-color: var(--v2-primary);
    transform: translateY(-4px);
    box-shadow: var(--v2-shadow-lg);
}

.v2-service-card.featured {
    border-color: var(--v2-primary);
    background: linear-gradient(135deg, var(--v2-off-white) 0%, rgba(74, 124, 89, 0.05) 100%);
}

.v2-service-card i.service-icon {
    font-size: 32px;
    color: var(--v2-primary);
    margin-bottom: 12px;
}

.v2-service-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--v2-text);
    margin-bottom: 8px;
}

.v2-service-card p {
    font-size: 13px;
    color: var(--v2-text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.v2-service-card .service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: start;
}

.v2-service-card .service-features li {
    font-size: 13px;
    color: var(--v2-text);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-service-card .service-features li i {
    color: var(--v2-primary);
    font-size: 12px;
}

.v2-service-card .service-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--v2-primary-dark);
    border: 1.5px solid var(--v2-primary);
    transition: all 0.3s;
    background: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.v2-service-card .service-btn:hover {
    background: var(--v2-primary);
    color: var(--v2-white);
}

/* ===== V2 Video Section ===== */
.v2-video-section {
    position: relative;
    padding: 60px 0;
    background: var(--v2-dark);
    text-align: center;
    overflow: hidden;
}

.v2-video-section .video-content {
    position: relative;
    z-index: 2;
}

.v2-video-section h2 {
    color: var(--v2-white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.v2-video-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 25px;
}

.v2-video-section .play-btn {
    width: 70px;
    height: 70px;
    background: var(--v2-primary);
    color: var(--v2-white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v2-video-section .play-btn:hover {
    background: var(--v2-primary-dark);
    transform: scale(1.1);
}

/* ===== Hide original elements when v2 is active ===== */
body.v2-design .header,
body.v2-design .whatsapp-btn,
body.v2-design .back-to-top {
    display: none !important;
}

/* ===== Dark Mode Overrides for V2 ===== */
[data-theme="dark"] .wa-topbar {
    background: linear-gradient(135deg, #3A6249 0%, #4A7C59 100%);
}

[data-theme="dark"] .v2-header {
    background: #1e1e2e;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .v2-header .menu-toggle-v2,
[data-theme="dark"] .v2-header .nav-actions-v2 button,
[data-theme="dark"] .v2-header .nav-actions-v2 a {
    color: #e0e0e0;
}

[data-theme="dark"] .v2-header-utility-row .currency-switch-trigger {
    background: #2a2a3e;
}

[data-theme="dark"] .currency-flag {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .v2-header-utility-row .currency-switch-label,
[data-theme="dark"] .v2-header-utility-row .currency-switch-option {
    color: #e0e0e0;
}

[data-theme="dark"] .v2-header-utility-row .currency-switch-menu {
    background: #2a2a3e;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .v2-header-utility-row .currency-switch-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .v2-header-utility-row .currency-switch-option.is-active {
    background: rgba(90, 154, 110, 0.25);
    color: var(--v2-primary-light);
}

[data-theme="dark"] .v2-products-section,
[data-theme="dark"] .v2-section.bg-cream {
    background: #1a1a2e;
}

[data-theme="dark"] .v2-section-header h2,
[data-theme="dark"] .v2-product-card .card-title,
[data-theme="dark"] .v2-product-card .price-current {
    color: #e0e0e0;
}

[data-theme="dark"] .v2-product-card {
    background: #222240;
    border-color: #2d2d4a;
}

[data-theme="dark"] .v2-product-card .card-image {
    /* Keep white so product images (which have white backgrounds + mix-blend multiply)
       remain fully visible in dark mode. */
    background: #ffffff;
    border-bottom-color: #2d2d4a;
}

[data-theme="dark"] .v2-product-card .card-body {
    background: #222240;
}

[data-theme="dark"] .v2-product-card .card-category {
    color: #7fc090;
}

[data-theme="dark"] .v2-product-card .price-currency,
[data-theme="dark"] .v2-product-card .price-old {
    color: #a0a0b8;
}

[data-theme="dark"] .v2-product-card .card-variant-item {
    background: linear-gradient(135deg, #2a2a4a, #25254a);
    border-color: #3a3a5a;
}

[data-theme="dark"] .v2-product-card .card-variant-item:hover {
    background: linear-gradient(135deg, #2f2f55, #2a2a55);
    border-color: var(--v2-primary);
}

[data-theme="dark"] .v2-product-card .card-variant-name {
    color: #d0d0e0;
}

[data-theme="dark"] .v2-product-card .card-variant-name i,
[data-theme="dark"] .v2-product-card .card-variant-price {
    color: #7fc090;
}

[data-theme="dark"] .v2-product-card .btn-detail {
    background: #2a2a4a;
    color: #d0d0e0;
    border-color: #3a3a5a;
}

[data-theme="dark"] .v2-product-card .btn-detail:hover {
    background: var(--v2-primary);
    color: #fff;
    border-color: var(--v2-primary);
}

[data-theme="dark"] .v2-why-card,
[data-theme="dark"] .v2-cat-card,
[data-theme="dark"] .v2-aftersales-item,
[data-theme="dark"] .v2-testimonial-card,
[data-theme="dark"] .v2-service-card {
    background: #222240;
}

[data-theme="dark"] .v2-features-strip {
    background: #1e1e2e;
    border-color: #333;
}

[data-theme="dark"] .v2-features-strip .feature-item {
    border-color: #333;
}

[data-theme="dark"] .v2-features-strip .feature-item span,
[data-theme="dark"] .v2-why-card h3,
[data-theme="dark"] .v2-cat-card h3,
[data-theme="dark"] .v2-aftersales-item h3,
[data-theme="dark"] .v2-service-card h3 {
    color: #e0e0e0;
}

/* ===== Print: hide v2 floating elements ===== */
@media print {

    .wa-topbar,
    .v2-wa-bottom {
        display: none !important;
    }
}