/* ==========================================================================
   EASY PICK - STYLESHEET (Bilingual FR/AR with RTL Support)
   Modern, Clean, Warm Minimalist & Eye-Friendly Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #D49B38;
    --primary-hover: #BF8726;
    --primary-light: #FDF7EC;
    --primary-dark: #A56F15;
    
    --bg-page: #FBF9F5;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F5F1E9;
    --bg-dark: #191715;
    
    --text-main: #1C1917;
    --text-muted: #78716C;
    --text-light: #A8A29E;
    
    --border-color: #EFEBE4;
    --border-hover: #D6CEBE;
    
    --badge-best: #D49B38;
    --badge-new: #E27838;
    --badge-promo: #E05353;
    --star-gold: #F59E0B;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.04);
    --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.06);
    --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.09);
    
    --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-latin);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    position: relative;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Top Announcement Bar */
.topbar {
    background-color: var(--bg-dark);
    color: #E7E5E4;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-item svg {
    color: var(--primary);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* Header & Navigation */
.site-header {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img {
    height: 54px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-logo:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-item a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

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

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

[dir="rtl"] .nav-item a::after {
    left: auto;
    right: 0;
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

/* Search Bar in Header */
.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-main);
    transition: var(--transition);
}

[dir="rtl"] .search-input {
    padding: 10px 16px 10px 42px;
}

.search-input:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 155, 56, 0.15);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .search-btn {
    right: auto;
    left: 12px;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--primary-light);
}

.search-item img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

.search-item-price {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.cart-badge {
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Banner - Background with Shading & Subtle Border */
.hero-section {
    padding: 24px 0 35px;
}

.hero-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 490px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.14);
    border: 1.5px solid rgba(212, 155, 56, 0.35);
}

/* Shading Overlay (تضليل ناعم يمنح وضوح فائق للنصوص مع إبراز المنتجات) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 14, 12, 0.90) 0%, rgba(16, 14, 12, 0.72) 42%, rgba(16, 14, 12, 0.28) 75%, rgba(16, 14, 12, 0.08) 100%);
}

[dir="rtl"] .hero-overlay {
    background: linear-gradient(270deg, rgba(16, 14, 12, 0.90) 0%, rgba(16, 14, 12, 0.72) 42%, rgba(16, 14, 12, 0.28) 75%, rgba(16, 14, 12, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 55px 65px;
    color: #FFFFFF;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 155, 56, 0.2);
    border: 1.5px solid var(--primary);
    color: #F8D38D;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #E7E5E4;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(212, 155, 56, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 155, 56, 0.45);
}

.btn-dark {
    background-color: var(--bg-dark);
    color: #FFFFFF;
}

.btn-dark:hover {
    background-color: #292524;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.05rem;
}

/* Section Common Header */
.section {
    padding: 45px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-wrap {
    position: relative;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

[dir="rtl"] .section-title::after {
    left: auto;
    right: 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.section-link {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--primary);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: center;
    padding-bottom: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.cat-img-wrap {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: var(--bg-subtle);
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .cat-img-wrap img {
    transform: scale(1.08);
}

.cat-body {
    padding: 14px 12px 4px;
    flex: 1;
}

.cat-icon-badge {
    width: 36px;
    height: 36px;
    margin: -32px auto 8px;
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.cat-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.cat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Products Section & Tabs */
.tabs-nav {
    display: flex;
    gap: 10px;
    list-style: none;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tab-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--text-main);
    color: #FFFFFF;
    border-color: var(--text-main);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.product-thumb {
    position: relative;
    padding-top: 85%;
    overflow: hidden;
    background: var(--bg-subtle);
}

.product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.06);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

[dir="rtl"] .product-badges {
    left: auto;
    right: 10px;
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-bestseller { background-color: var(--badge-best); }
.badge-nouveau { background-color: var(--badge-new); }
.badge-promo { background-color: var(--badge-promo); }

.product-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

[dir="rtl"] .product-quick-actions {
    right: auto;
    left: 10px;
}

.quick-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.stars {
    color: var(--star-gold);
    display: inline-flex;
    gap: 2px;
}

.rating-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.product-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

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

.product-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 4px;
    margin-top: auto;
    margin-bottom: 14px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    unicode-bidi: isolate;
    white-space: nowrap;
}

.price-old {
    font-size: 0.88rem;
    color: var(--text-light);
    text-decoration: line-through;
    unicode-bidi: isolate;
    white-space: nowrap;
}

[dir="rtl"] .price-current,
[dir="rtl"] .price-old,
[dir="rtl"] .summary-total-val,
[dir="rtl"] .summary-subtotal-val,
[dir="rtl"] .summary-shipping-val,
[dir="rtl"] .total-amount {
    direction: ltr !important;
    display: inline-block;
}

.discount-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #B91C1C;
    background: #FEE2E2;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center;
}

.badge-discount,
.discount-badge {
    direction: ltr !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    unicode-bidi: isolate;
}

.rating-count {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: isolate;
}

.product-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-cart {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    padding: 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-buy-fast {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 10px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy-fast:hover {
    background: var(--primary-hover);
}

/* Trust / Value Proposition Section */
.trust-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.trust-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Promo Banner Section */
.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-dark);
    color: #FFFFFF;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    margin: 30px 0;
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/banner-promo.jpg') center/cover;
    opacity: 0.25;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.promo-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.promo-desc {
    color: #D6D3D1;
    font-size: 1rem;
    margin-bottom: 24px;
}

.promo-badge-side {
    position: relative;
    z-index: 2;
    text-align: center;
}

.promo-badge-inner {
    border: 2px dashed rgba(212, 155, 56, 0.6);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    background: rgba(28, 25, 23, 0.6);
    backdrop-filter: blur(8px);
}

.promo-badge-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FFFFFF;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #A8A29E;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-brand img {
    height: 44px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E7E5E4;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

[dir="rtl"] .footer-heading::after {
    left: auto;
    right: 0;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.9rem;
    color: #A8A29E;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 4px;
}

[dir="rtl"] .footer-nav a:hover {
    padding-left: 0;
    padding-right: 4px;
}

.newsletter-form {
    margin-top: 14px;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 0.88rem;
}

.newsletter-btn {
    background: var(--primary);
    border: none;
    color: #FFFFFF;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.42);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 28px;
}

.whatsapp-float:hover {
    background-color: #20BD5A;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
    color: #FFFFFF;
}

.whatsapp-float svg {
    flex-shrink: 0;
}

/* Sticky Mobile Quick Order Bar */
.mobile-quick-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 990;
    border-top: 1px solid var(--border-color);
}

/* Checkout & Order Form Styling */
.checkout-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.form-label .required {
    color: #EF4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #FAF9F6;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    background: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 155, 56, 0.18);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

[dir="rtl"] .form-select {
    background-position: left 14px center;
    padding-right: 16px;
    padding-left: 40px;
}

.delivery-options-grid,
.payment-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.choice-box {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    background: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.choice-box.active,
.choice-box:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.choice-box input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.choice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.choice-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.choice-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 0.95rem;
}

/* Order Summary Box */
.order-summary-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total-row {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.total-amount {
    color: var(--primary);
    font-size: 1.4rem;
}

/* Modal Windows */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex;
}

.modal-dialog {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[dir="rtl"] .toast-container {
    left: auto;
    right: 24px;
}

.toast {
    background: var(--bg-dark);
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastFadeIn 0.3s ease;
    border-left: 4px solid var(--primary);
}

[dir="rtl"] .toast {
    border-left: none;
    border-right: 4px solid var(--primary);
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Product Detail Page Specifics - Modern Algerian E-Commerce Landing */
.product-hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
    align-items: start;
}

.product-gallery-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.product-gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-badges-overlay {
    position: absolute;
    top: 26px;
    left: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

[dir="rtl"] .gallery-badges-overlay {
    left: auto;
    right: 26px;
}

/* Gallery Nav Buttons & Counter */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    opacity: 0.88;
}

.gallery-nav-btn:hover {
    background: #FFFFFF;
    color: var(--primary);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

[dir="rtl"] .gallery-prev {
    left: 14px;
    right: auto;
}

[dir="rtl"] .gallery-next {
    right: 14px;
    left: auto;
}

.gallery-counter-pill {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 4;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

[dir="rtl"] .gallery-counter-pill {
    right: auto;
    left: 14px;
}

/* Gallery Thumbnails Strip */
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 4px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.product-gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2.5px solid #E2E8F0;
    background: #FFFFFF;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 4px);
    transition: transform 0.2s ease;
}

.gallery-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 155, 56, 0.25);
}

@media (max-width: 600px) {
    .gallery-thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
    }
}

.product-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-main);
}

.trust-strip-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Product Buy Box (Right Column) */
.product-buy-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.product-category-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 12px;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.rating-stars {
    color: var(--star-gold);
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.rating-score {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scarcity Box */
.product-scarcity-card {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
}

.scarcity-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #92400E;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.scarcity-bar {
    height: 7px;
    background: #FEEBC8;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.scarcity-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    border-radius: var(--radius-full);
    animation: pulse-bar 2s infinite ease-in-out;
}

@keyframes pulse-bar {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

/* Pricing Card */
.product-pricing-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.price-main-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.price-huge {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.price-strike {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings-pill-huge {
    background: #DC2626;
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Highlights List */
.product-highlights-box {
    margin-bottom: 22px;
}

.highlights-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-main);
    font-weight: 600;
}

.highlights-list li svg {
    color: #16A34A;
    flex-shrink: 0;
}

/* Pack & Customization Selector */
.packs-selector-wrap {
    margin-bottom: 24px;
}

.packs-selector-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pack-card {
    border: 2px solid var(--border-color);
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pack-card:hover {
    border-color: var(--primary);
}

.pack-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 14px rgba(212, 155, 56, 0.2);
}

.pack-card-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pack-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 4px;
    margin-bottom: 4px;
}

.pack-card-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
}

.pack-card-saving {
    font-size: 0.74rem;
    color: #15803D;
    font-weight: 700;
}

/* Action CTA Buttons */
.product-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.btn-order-now-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 28px;
    font-size: 1.12rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, #B88028 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(212, 155, 56, 0.4);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    animation: cta-pulse 2.2s infinite ease-in-out;
}

.btn-order-now-jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 155, 56, 0.55);
    color: #FFFFFF;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(212, 155, 56, 0.4);
    }
    50% {
        box-shadow: 0 8px 28px rgba(212, 155, 56, 0.75);
    }
}

.safe-checkout-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #15803D;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
}

/* Middle Section: Full Product Details Cards */
.product-details-block {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-card-section {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.section-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-card-title svg {
    color: var(--primary);
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.spec-item-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.spec-item-icon {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.spec-item-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

/* Full Description Typography */
.product-description-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-main);
}

/* Why Choose Us 4 Cards Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.why-choose-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.why-choose-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.why-choose-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.why-choose-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Customer Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.review-customer-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
}

.review-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-city-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.review-stars {
    color: var(--star-gold);
    font-size: 0.95rem;
}

.review-comment {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.6;
    font-style: italic;
}

/* ================================================================
   BOTTOM EMBEDDED DIRECT ORDER FORM (نموذج الطلب المباشر أسفل الصفحة)
   ================================================================ */
.bottom-order-section {
    margin-top: 20px;
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.bottom-order-card {
    background: #FFFFFF;
    border: 2.5px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 35px rgba(212, 155, 56, 0.15);
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.bottom-order-card.highlight-focus {
    animation: highlight-glow 1.5s ease-in-out;
}

@keyframes highlight-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 155, 56, 0.7);
    }
    50% {
        box-shadow: 0 0 0 16px rgba(212, 155, 56, 0.2);
    }
    100% {
        box-shadow: 0 10px 35px rgba(212, 155, 56, 0.15);
    }
}

.bottom-order-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #292524 100%);
    color: #FFFFFF;
    padding: 22px 28px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.bottom-order-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 6px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bottom-order-header h2 svg {
    color: var(--primary);
}

.bottom-order-header p {
    font-size: 0.92rem;
    color: #E7E5E4;
    margin: 0;
}

.bottom-order-body {
    padding: 30px;
}

/* Product Mini Strip inside Form */
.form-product-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-light);
    border: 1px solid rgba(212, 155, 56, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.strip-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.strip-product-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.strip-product-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.strip-product-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
}

/* COD Notice Banner */
.cod-only-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.cod-only-icon {
    width: 44px;
    height: 44px;
    background: #DCFCE7;
    color: #15803D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cod-only-info {
    flex: 1;
}

.cod-only-info strong {
    display: block;
    color: #166534;
    font-size: 0.96rem;
    margin-bottom: 2px;
}

.cod-only-info p {
    font-size: 0.85rem;
    color: #15803D;
    line-height: 1.4;
    margin: 0;
}

/* Trust footer under bottom order form button */
.order-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.order-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.order-trust-item svg {
    color: #15803D;
}

/* Quantity Control */
.quantity-control {
    display: inline-flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--border-color);
}

.qty-val {
    width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    background: none;
}

/* Legacy support */
.product-detail-layout {
    display: block;
}

/* Cart Page */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

[dir="rtl"] .cart-table th {
    text-align: right;
}

.cart-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-prod-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-prod-cell img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .container {
        padding: 0 16px;
    }
    .brand-logo img {
        height: 42px;
        max-width: 170px;
    }
    .topbar-left .topbar-item:first-child {
        display: none;
    }
    .topbar-right .topbar-item {
        display: none;
    }
    .topbar-content {
        justify-content: space-between;
    }
    .header-search {
        display: none;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .tabs-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-detail-layout,
    .product-hero-wrap,
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .packs-grid {
        grid-template-columns: 1fr;
    }
    .bottom-order-body {
        padding: 20px 16px;
    }
    .product-buy-box {
        padding: 20px 16px;
    }
    .product-card-section {
        padding: 22px 16px;
    }
    .hero-showcase-card {
        grid-template-columns: 1fr;
        padding: 24px 18px;
        gap: 20px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .promo-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 30px 20px;
    }
    .mobile-quick-bar {
        display: block;
    }
    body {
        padding-bottom: 75px;
    }

    /* Mobile WhatsApp Button:
       - Compact circular button without obstructive wide text pill
       - Elevated cleanly above sticky bottom purchase bars
       - Placed opposite to the Buy Button to prevent any touch collision */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        bottom: 20px;
        right: 16px;
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    }

    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 16px;
    }

    .whatsapp-float .whatsapp-label,
    .whatsapp-float span {
        display: none !important;
    }

    /* On pages with the mobile quick buy bar (product page):
       Elevate above the 66px bar and place opposite the Buy button:
       - In LTR: Buy button is on RIGHT -> WhatsApp is on LEFT at bottom: 82px.
       - In RTL: Buy button is on LEFT -> WhatsApp is on RIGHT at bottom: 82px. */
    body.has-mobile-bar .whatsapp-float,
    body:has(.mobile-quick-bar) .whatsapp-float {
        bottom: 82px !important;
        left: 16px !important;
        right: auto !important;
    }

    [dir="rtl"] body.has-mobile-bar .whatsapp-float,
    [dir="rtl"] body:has(.mobile-quick-bar) .whatsapp-float {
        left: auto !important;
        right: 16px !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }
    .header-inner {
        padding: 10px 0;
        gap: 8px;
    }
    .brand-logo img {
        height: 36px;
        max-width: 135px;
    }
    .cart-icon-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
    .cart-icon-btn span:first-of-type {
        display: none;
    }
    .topbar {
        font-size: 0.78rem;
        padding: 6px 0;
    }
    .section {
        padding: 18px 0;
    }
    .hero-section {
        padding: 8px 0 12px;
    }
    .hero-banner {
        min-height: 165px;
        border-radius: 16px;
    }
    .hero-overlay {
        background: rgba(16, 14, 12, 0.78) !important;
    }
    .hero-content {
        padding: 16px 14px;
        max-width: 100%;
    }
    .hero-pill {
        font-size: 0.7rem;
        padding: 3px 10px;
        margin-bottom: 6px;
        gap: 5px;
    }
    .hero-title {
        font-size: 1.22rem;
        line-height: 1.22;
        margin-bottom: 6px;
    }
    .hero-subtitle {
        display: none;
    }
    .hero-buttons {
        flex-direction: row;
        width: auto;
        gap: 8px;
        margin-top: 4px;
    }
    .hero-buttons .btn {
        width: auto;
        padding: 7px 18px;
        font-size: 0.82rem;
        border-radius: var(--radius-full);
    }
    .hero-buttons .btn-outline {
        display: none;
    }
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding-bottom: 6px;
        gap: 8px;
    }
    .section-title {
        font-size: 1.18rem;
    }
    .section-desc {
        display: none;
    }
    .categories-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    .category-card {
        flex: 0 0 96px;
        max-width: 96px;
        scroll-snap-align: start;
        padding-bottom: 6px;
        border-radius: 12px;
    }
    .cat-img-wrap {
        height: 70px;
    }
    .cat-icon-badge {
        width: 26px;
        height: 26px;
        margin: -20px auto 4px;
    }
    .cat-icon-badge svg {
        width: 13px;
        height: 13px;
    }
    .cat-body {
        padding: 4px 4px 2px;
    }
    .cat-title {
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 700;
    }
    .cat-desc, .category-desc {
        display: none !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card {
        border-radius: 14px;
    }
    .product-details {
        padding: 12px 10px;
    }
    .product-title {
        font-size: 0.86rem;
        line-height: 1.35;
        height: 2.7em;
        overflow: hidden;
        margin-bottom: 6px;
    }
    .product-desc {
        display: none;
    }
    .product-price-row {
        margin-bottom: 10px;
        gap: 6px;
    }
    .price-current {
        font-size: 1.05rem;
    }
    .price-old {
        font-size: 0.8rem;
    }
    .product-buttons {
        display: flex;
        gap: 6px;
    }
    .btn-cart {
        padding: 8px 10px;
        flex: 0 0 auto;
    }
    .btn-cart span {
        display: none;
    }
    .btn-buy-fast {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.82rem;
        justify-content: center;
    }
    .delivery-options-grid,
    .payment-options-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .section-header {
        margin-bottom: 20px;
    }
    .section-title {
        font-size: 1.45rem;
    }
    .modal-dialog {
        max-width: 95vw;
        margin: 10px;
        border-radius: 16px;
    }
    .modal-header {
        padding: 14px 18px;
    }
    .modal-body {
        padding: 16px;
    }
    .form-control, .form-select {
        font-size: 16px !important;
    }
}

@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-details {
        padding: 10px 8px;
    }
    .price-current {
        font-size: 0.98rem;
    }
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2500;
    display: none;
    overflow: hidden;
}

.mobile-drawer-backdrop.show {
    display: block;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 85vw;
    height: 100%;
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

[dir="rtl"] .mobile-drawer-content {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.mobile-drawer-backdrop.show .mobile-drawer-content {
    transform: translateX(0);
}


