/* CSS Design System & Layout for Delivo.com */

:root {
    /* Colors */
    --primary: #ff6f3c;          /* Deep rich orange */
    --primary-hover: #e05322;
    --primary-light: #fff0eb;
    --secondary: #10b981;        /* Emerald green */
    --secondary-hover: #0d9488;
    --secondary-light: #ecfdf5;
    --dark: #0f172a;             /* Dark Slate */
    --dark-muted: #475569;       /* Slate 600 */
    --light: #f8fafc;            /* Slate 50 */
    --border: #e2e8f0;           /* Slate 200 */
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Fonts & Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Structure */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* RTL Font and Tweaks Override */
html[dir="rtl"] {
    --font-sans: 'Tajawal', 'Noto Kufi Arabic', 'Cairo', sans-serif;
    font-family: var(--font-sans);
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html[dir="rtl"] .nav-link,
html[dir="rtl"] .chip,
html[dir="rtl"] .category-label,
html[dir="rtl"] .product-title,
html[dir="rtl"] .product-badge,
html[dir="rtl"] .cart-item-title {
    font-family: 'Tajawal', 'Noto Kufi Arabic', sans-serif;
}

html[dir="rtl"] h1, 
html[dir="rtl"] h2, 
html[dir="rtl"] h3, 
html[dir="rtl"] h4, 
html[dir="rtl"] h5, 
html[dir="rtl"] h6,
html[dir="rtl"] .logo-text,
html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .btn,
html[dir="rtl"] .chip.active {
    font-family: 'Noto Kufi Arabic', 'Tajawal', sans-serif;
    line-height: 1.5;
}

/* Base resets & adjustments */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

scroll-behavior: smooth;

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

button {
    cursor: pointer;
    background: transparent;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #ff9f43);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(255, 111, 60, 0.3);
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    color: var(--dark-muted);
    transition: var(--transition-fast);
    padding: 6px 0;
    position: relative;
}

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

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

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

/* RTL Navigation support */
html[dir="rtl"] .nav-item::after {
    left: auto;
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom buttons */
.btn-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--dark-muted);
    background-color: var(--surface);
    transition: var(--transition-fast);
}

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

.btn-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--dark-muted);
    transition: var(--transition-fast);
}

.btn-icon-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--dark);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-cart:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 111, 60, 0.3);
}

.cart-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
}

.btn-cart:hover .cart-badge {
    background-color: white;
    color: var(--primary);
}

/* Global search expanded bar */
.search-expand-bar {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow);
}

.search-expand-bar.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.search-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.search-inner-icon {
    font-size: 20px;
    color: var(--dark-muted);
}

.search-inner input {
    flex: 1;
    font-size: 16px;
    color: var(--dark);
    background: transparent;
    padding: 12px 0;
}

.btn-close-search {
    font-size: 20px;
    color: var(--dark-muted);
    padding: 8px;
    transition: var(--transition-fast);
}

.btn-close-search:hover {
    color: var(--primary);
    transform: rotate(90deg);
}


/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 70px;
    background: radial-gradient(circle at 80% 20%, #fff7f4 0%, var(--light) 60%);
    overflow: hidden;
}

html[dir="rtl"] .hero-section {
    background: radial-gradient(circle at 20% 20%, #fff7f4 0%, var(--light) 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}

html[dir="rtl"] .hero-content {
    align-items: flex-start;
}

.badge-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 20px;
}

html[dir="rtl"] .hero-title {
    font-size: 46px;
    line-height: 1.35;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--dark-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Hero Search & Address Wrapper */
.hero-search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 10px;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
}

.location-select {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
    padding: 0 16px;
}

.location-select i {
    color: var(--primary);
    font-size: 18px;
}

.divider-v {
    width: 1px;
    height: 30px;
    background-color: var(--border);
}

.search-input-box {
    display: flex;
    align-items: center;
    flex: 1;
    padding-inline-start: 16px;
}

.search-input-box input {
    width: 100%;
    background: transparent;
    font-size: 15px;
    color: var(--dark);
    padding: 10px 0;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 111, 60, 0.25);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 60, 0.35);
}

/* Trust Badges in Hero */
.hero-trust-badges {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-muted);
}

.trust-item i {
    color: var(--secondary);
    font-size: 18px;
}

/* Hero Image Pane */
.hero-image-pane {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-floating-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Quick Categories */
.quick-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: -30px;
    margin-bottom: 70px;
    z-index: 20;
    position: relative;
}

.category-card {
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.food-overlay {
    background: linear-gradient(135deg, rgba(255, 111, 60, 0.95) 0%, rgba(255, 159, 67, 0.9) 100%);
}

.household-overlay {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(20, 184, 166, 0.9) 100%);
}

.category-card-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.category-label {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: white;
    transition: var(--transition-fast);
}

.category-card:hover .btn-text {
    gap: 12px;
}

.category-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.category-card:hover .category-img {
    transform: scale(1.1) rotate(5deg);
}

/* Products Section */
.products-section {
    padding-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--dark-muted);
    font-size: 16px;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--dark-muted);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.chip.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 111, 60, 0.2);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 111, 60, 0.2);
}

.product-image-container {
    background-color: var(--light);
    border-radius: var(--radius-sm);
    height: 190px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
}

.product-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.badge-offer {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 111, 60, 0.2);
}

.product-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.badge-food {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-household {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 12px;
}

.rating-count {
    color: var(--dark-muted);
    font-size: 12px;
    margin-inline-start: 4px;
    font-weight: 400;
}

.product-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
}

.old-price {
    font-size: 13px;
    color: var(--dark-muted);
    text-decoration: line-through;
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Features Highlights Section */
.features-section {
    background-color: var(--dark);
    color: white;
    padding: 70px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 10px;
}

.feature-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-item p {
    color: #94a3b8;
    font-size: 14px;
    max-width: 320px;
    margin: 0 auto;
}

/* Special Offers Promo Section Banner */
.promo-banner-section {
    padding: 70px 24px;
}

.promo-banner {
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.promo-content {
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(255, 111, 60, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.promo-banner h2 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
}

.promo-banner p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 540px;
}

.promo-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.promo-floating-img {
    width: 240px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    animation: float 5s ease-in-out infinite alternate;
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.cart-drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 450px;
    background-color: var(--surface);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

/* Position based on LTR/RTL */
html[dir="ltr"] .cart-drawer {
    right: 0;
    transform: translateX(100%);
}

html[dir="rtl"] .cart-drawer {
    left: 0;
    transform: translateX(-100%);
}

html[dir="ltr"] .cart-drawer.open {
    transform: translateX(0);
}

html[dir="rtl"] .cart-drawer.open {
    transform: translateX(0);
}

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

.cart-drawer-title {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer-title i {
    color: var(--primary);
}

.cart-title-count {
    color: var(--dark-muted);
    font-size: 15px;
    font-weight: 500;
}

.btn-close-drawer {
    font-size: 22px;
    color: var(--dark-muted);
    transition: var(--transition-fast);
    padding: 4px;
}

.btn-close-drawer:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty Cart State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    padding: 20px;
    max-width: 320px;
}

.cart-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--dark-muted);
    margin-bottom: 24px;
}

.cart-empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-empty-state p {
    font-size: 14px;
    color: var(--dark-muted);
    margin-bottom: 24px;
}

/* Active Cart Item styling */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-img-box {
    width: 64px;
    height: 64px;
    background-color: var(--light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-img-box img {
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background-color: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 2px;
}

.btn-qty {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--dark-muted);
    transition: var(--transition-fast);
}

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

.qty-num {
    font-size: 13px;
    font-weight: 700;
    width: 28px;
    text-align: center;
}

.btn-remove-item {
    font-size: 13px;
    color: #e74c3c;
    transition: var(--transition-fast);
}

.btn-remove-item:hover {
    opacity: 0.8;
}

/* Cart Footer Summary */
.cart-drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--light);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--dark-muted);
    margin-bottom: 8px;
}

.summary-val {
    font-weight: 600;
    color: var(--dark);
}

.summary-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.total-line {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 20px;
}

.total-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    justify-content: center;
    padding: 16px;
}

/* Modal Core Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition-smooth);
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    inset-inline-end: 20px;
    font-size: 24px;
    color: var(--dark-muted);
    transition: var(--transition-fast);
    z-index: 10;
}

.btn-close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Product Detail Modal Grid */
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-image-pane {
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-image-pane img {
    max-height: 280px;
    object-fit: contain;
}

.modal-details-pane {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-badge-cat {
    margin-bottom: 12px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-rating-row .stars {
    color: var(--secondary);
    font-weight: 600;
    font-size: 15.5px;
}

.modal-rating-text {
    font-size: 13px;
    color: var(--dark-muted);
}

.modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.modal-old-price {
    font-size: 16px;
    color: var(--dark-muted);
    text-decoration: line-through;
}

.modal-description {
    font-size: 15px;
    color: var(--dark-muted);
    margin-bottom: 24px;
}

.modal-info-bullets {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.info-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-muted);
}

.info-bullet i {
    color: var(--secondary);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.modal-actions .quantity-selector {
    padding: 4px;
}

.modal-actions .btn-qty {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.modal-actions .qty-num {
    width: 36px;
    font-size: 16px;
}

.btn-add-modal {
    flex: 1;
    padding: 14px;
    justify-content: center;
}

/* Success Modal specific styles */
.success-modal-content {
    max-width: 500px;
    padding: 40px;
    text-align: center;
}

.success-icon-animation {
    font-size: 70px;
    color: var(--secondary);
    margin-bottom: 24px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-modal-content p {
    font-size: 15px;
    color: var(--dark-muted);
    margin-bottom: 30px;
}

/* Simulated Tracking */
.sim-tracking {
    margin-bottom: 30px;
    padding: 0 10px;
}

.tracking-track {
    height: 4px;
    background-color: var(--border);
    border-radius: var(--radius-full);
    position: relative;
    margin-bottom: 12px;
}

.tracking-progress-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 25%;
    background-color: var(--secondary);
    border-radius: var(--radius-full);
    transition: width 4s linear;
}

html[dir="rtl"] .tracking-progress-fill {
    left: auto;
    right: 0;
}

.tracking-points {
    display: flex;
    justify-content: space-between;
}

.point {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--dark-muted);
    position: relative;
    width: 60px;
}

.point i {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--border);
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-bottom: 6px;
    transition: var(--transition-fast);
}

.point.active i {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 0 0 4px var(--secondary-light);
}

.point.active {
    color: var(--dark);
}

.btn-close-success {
    width: 100%;
    justify-content: center;
}

/* Footer styling */
.footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding: 80px 0 30px 0;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col .footer-logo {
    margin-bottom: 24px;
    display: inline-flex;
}

.brand-col .logo-text {
    color: white;
}

.footer-desc-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    padding-inline-start: 4px;
}

.footer-link-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* App Download badging */
.app-badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-badge-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1e293b;
    border: 1px solid #334155;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: white;
    width: fit-content;
    transition: var(--transition-fast);
}

.app-badge-btn:hover {
    background-color: #334155;
    border-color: #475569;
}

.store-icon {
    font-size: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-sub {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
}

.store-name {
    font-size: 14px;
    font-weight: 700;
}

/* Newsletter styling */
.newsletter-form {
    display: flex;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 6px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    padding-inline-start: 12px;
}

.newsletter-form input::placeholder {
    color: #64748b;
}

.btn-newsletter {
    padding: 10px 18px;
}

/* Footer bottom */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a:hover {
    color: var(--primary);
}


/* Media Queries for responsive styling */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-search-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    .divider-v {
        width: 100%;
        height: 1px;
    }
    .search-input-box {
        padding-inline-start: 0;
        width: 100%;
    }
    .btn-hero-search {
        width: 100%;
        justify-content: center;
    }
    .hero-trust-badges {
        justify-content: center;
    }
    .hero-image-pane {
        display: none;
    }
    .quick-categories {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .promo-banner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 40px;
    }
    .promo-visual {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    .nav-links {
        display: none; /* Hide desktop nav links */
    }
    .hero-title {
        font-size: 32px;
    }
    html[dir="rtl"] .hero-title {
        font-size: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-image-pane {
        padding: 20px;
    }
    .modal-image-pane img {
        max-height: 180px;
    }
    .modal-details-pane {
        padding: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Payment Badges in Footer */
.payment-methods-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-muted, #64748b);
}

.pay-icons-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.pay-card i {
    font-size: 16px;
}

.pay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.pay-card.visa {
    background: linear-gradient(135deg, #1a1f71 0%, #2b32b2 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #ff5f00 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.mada {
    background: linear-gradient(135deg, #00875a 0%, #00b87c 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.applepay {
    background: #000000;
    color: #ffffff;
    border-color: transparent;
}

.pay-card.stcpay {
    background: linear-gradient(135deg, #4f2d7f 0%, #7b3fb0 100%);
    color: #ffffff;
    border-color: transparent;
}

.pay-card.cod {
    background: linear-gradient(135deg, #ff6f3c 0%, #ff9f43 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Social Media Icons Styling */
.social-links-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.social-icon-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

.social-icon-btn.twitter:hover {
  background: #000000;
  color: #ffffff;
  border-color: #333;
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: transparent;
}

.social-icon-btn.snapchat:hover {
  background: #fffc00;
  color: #000000;
  border-color: transparent;
}

.social-icon-btn.tiktok:hover {
  background: #000000;
  color: #00f2fe;
  border-color: transparent;
}

.social-icon-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: transparent;
}
