/*
 * Rasheed Group (رشيد جروب) - Main Stylesheet (RTL Arabic)
 * Material Design 3 Aesthetics, Spacious Layout & Modern Arabic Typography
 */

/* Local @font-face rules for Readex Pro & IBM Plex Sans Arabic */
@font-face {
    font-family: 'Readex Pro';
    src: url('../fonts/Readex_Pro/ReadexPro-VariableFont_HEXP,wght.ttf') format('truetype-variations'),
        url('../fonts/Readex_Pro/static/ReadexPro-Regular.ttf') format('truetype');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #00aeef;
    --primary-hover: #0098d3;
    --primary-dark: #0e76bc;
    --primary-light: #e0f4fc;
    --secondary: #0c2340;
    --secondary-light: #16365c;
    --accent: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-main: #ffffff;
    --surface: #ffffff;
    --surface-variant: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: rgba(14, 118, 188, 0.09);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px -2px rgba(12, 35, 64, 0.07), 0 2px 6px -1px rgba(12, 35, 64, 0.04);
    --shadow-lg: 0 14px 28px -4px rgba(12, 35, 64, 0.09), 0 6px 12px -2px rgba(12, 35, 64, 0.04);
    --shadow-hover: 0 20px 35px -5px rgba(0, 174, 239, 0.18), 0 8px 16px -4px rgba(14, 118, 188, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Product Placeholder styling (Logo grayscale 80% opacity) */
img.product-placeholder-img,
img[src*="product-placeholder"] {
    filter: grayscale(100%) !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

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

body {
    font-family: 'Readex Pro', 'IBM Plex Sans Arabic', 'Almarai', system-ui, -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.btn,
.nav-link,
.pane-title {
    font-family: 'Readex Pro', 'IBM Plex Sans Arabic', 'Almarai', sans-serif;
    letter-spacing: -0.4px;
}

/* Spacious Container Setup */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 1360px;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 767.98px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* Section Padding */
.products-section {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}

@media (max-width: 767.98px) {
    .products-section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }
}

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

a:hover {
    color: var(--primary);
}

/* Material Header & Topbar */
.top-bar {
    background-color: var(--secondary);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #cbd5e1;
}

.top-bar a:hover {
    color: var(--primary);
}

.main-header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Water Ripple Canvas Layer in Header / Hero */
.water-effect-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c2340 0%, #0e76bc 60%, #00aeef 100%);
}

#water-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
}

.water-content {
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 700;
    color: var(--secondary) !important;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark) !important;
    background-color: var(--primary-light);
}

.badge-cart {
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    position: absolute;
    top: -5px;
    left: -5px;
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 5rem;
    color: #ffffff;
    position: relative;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-title span {
    color: #38bdf8;
    background: linear-gradient(120deg, #ffffff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.6);
}

.btn-outline-custom {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    background-color: #ffffff;
    color: var(--secondary);
}

/* Feature Cards / Stat Cards */
.feature-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =======================================================
   DISTINCT PRODUCT CARDS:
   A) Water Treatment Product Card
   B) Air Conditioner Product Card
   ======================================================= */

/* =======================================================
   Section 6: Google Material Design 3 (M3) Unified Product Cards
   Clean Solid Surfaces, Crisp #e2e8f0 Outline, Natural Elevation
   ======================================================= */

.card-water-treatment,
.card-air-conditioner,
.card-dispenser-cooler,
.m3-product-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.22s cubic-bezier(0.2, 0, 0, 1), border-color 0.22s ease !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.card-water-treatment::before,
.card-air-conditioner::before,
.card-dispenser-cooler::before,
.m3-product-card::before {
    display: none !important;
}

.card-water-treatment:hover,
.card-air-conditioner:hover,
.card-dispenser-cooler:hover,
.m3-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(14, 118, 188, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border-color: #0e76bc !important;
}

.card-water-image-wrapper,
.card-ac-image-wrapper,
.card-dispenser-image-wrapper {
    position: relative;
    padding: 1.25rem;
    background: #f8fafc !important;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
}

.card-water-image-wrapper img,
.card-ac-image-wrapper img,
.card-dispenser-image-wrapper img {
    max-height: 175px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card-water-treatment:hover .card-water-image-wrapper img,
.card-air-conditioner:hover .card-ac-image-wrapper img,
.card-dispenser-cooler:hover .card-dispenser-image-wrapper img,
.m3-product-card:hover img {
    transform: scale(1.04);
}

.water-badge-stages,
.ac-badge-capacity,
.dispenser-badge-taps {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background-color: #0e76bc !important;
    color: #ffffff !important;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(14, 118, 188, 0.2);
}

.ac-badge-inverter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0e76bc;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Discount & Status Badges */
.badge-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--danger);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Card Body & Details */
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--secondary);
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.price-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
}

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

.installment-chip {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px dashed #fde68a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Brand Mini Card under Product */
.brand-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.brand-mini-card img {
    height: 18px;
    max-width: 50px;
    object-fit: contain;
}

/* Product Card Actions (Miraco-Grade High-End Interactive Buttons) */
.card-actions,
.card-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    width: 100%;
}

.btn-card-cart,
.btn-add-cart {
    flex: 1 1 auto;
    background: linear-gradient(135deg, #00aeef 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 9999px !important;
    border: 1px solid #00aeef !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.35) !important;
    transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    text-decoration: none !important;
    cursor: pointer;
    min-height: 40px;
}

.btn-card-cart:hover,
.btn-add-cart:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0098d3 100%) !important;
    border-color: #00aeef !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 174, 239, 0.48) !important;
}

.btn-card-cart *,
.btn-add-cart * {
    color: #ffffff !important;
}

.btn-card-icon,
.btn-quick-wa {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #00205b !important;
    border: 1.5px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    font-size: 0.95rem;
}

.btn-card-icon:hover {
    background: #00aeef !important;
    color: #ffffff !important;
    border-color: #00aeef !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3) !important;
}

.btn-card-icon:hover * {
    color: #ffffff !important;
}

.btn-card-wa,
.btn-quick-wa {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}

.btn-card-wa:hover,
.btn-quick-wa:hover {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

.btn-card-wa:hover *,
.btn-quick-wa:hover * {
    color: #ffffff !important;
}

/* Compare Floating Bar */
.compare-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1050;
    transition: var(--transition);
}

/* Footer */
.site-footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: 4.5rem 0 1.5rem;
    border-top: 4px solid var(--primary);
}

.footer-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Footer Accordion Folding on Mobile */
.footer-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.footer-col-arrow {
    display: none;
    color: var(--primary);
    font-size: 0.9rem;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
}

@media (min-width: 768px) {
    .footer-col-header {
        cursor: default;
        pointer-events: none;
    }

    .footer-collapse-content {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 767.98px) {
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 4px;
        margin-bottom: 4px;
    }

    .footer-col:last-of-type {
        border-bottom: none;
    }

    .footer-col-header {
        cursor: pointer;
        padding: 12px 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .footer-col-header .footer-title {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

    .footer-col-header .footer-title::after {
        display: none !important;
    }

    .footer-col-arrow {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
    }

    .footer-col-header[aria-expanded="true"] .footer-col-arrow {
        transform: rotate(180deg);
        background: rgba(0, 174, 239, 0.2);
        color: #38bdf8;
    }

    .footer-collapse-content {
        padding-top: 6px;
        padding-bottom: 12px;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

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

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Footer Quick Services Bar (حجز خدمة ، تفعيل الضمان ، تتبع شحنتك - متناسقة وأنيقة) */
.footer-quick-services-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quick-services-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.quick-service-pill {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.quick-service-pill i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.quick-service-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-service-pill.btn-booking {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    border: 1px solid #b45309;
}

.quick-service-pill.btn-booking:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.quick-service-pill.btn-warranty {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.quick-service-pill.btn-warranty i {
    color: #fbbf24;
}

.quick-service-pill.btn-warranty:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.quick-service-pill.btn-tracking {
    background: rgba(0, 174, 239, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(0, 174, 239, 0.35);
}

.quick-service-pill.btn-tracking:hover {
    background: linear-gradient(135deg, #00aeef, #0e76bc);
    color: #ffffff;
    border-color: #00aeef;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.4);
}

@media (max-width: 480px) {
    .footer-quick-services-bar {
        gap: 5px;
    }

    .quick-service-pill {
        padding: 6px 4px;
        font-size: 0.74rem;
        gap: 4px;
    }

    .quick-service-pill i {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .footer-quick-services-bar {
        gap: 12px;
        max-width: 640px;
    }

    .quick-service-pill {
        padding: 9px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

/* Toast Notifications Container */
#toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 18px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 4px solid var(--primary);
    animation: toastIn 0.3s ease forwards;
}

.custom-toast.toast-success {
    border-color: var(--success);
}

.custom-toast.toast-error {
    border-color: var(--danger);
}

.custom-toast.toast-warning {
    border-color: var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live Search Modal/Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1030;
    display: none;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

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

.search-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
}

/* Tables for installment & specifications */
.specs-table th {
    background-color: #f1f5f9;
    width: 35%;
    font-weight: 700;
}

/* Unified Floating Contact Action Button (FAB) & Modal */
.rasheed-floating-contact-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 62px;
    height: 62px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #0e76bc 0%, #00aeef 50%, #25d366 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
    z-index: 1040;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    padding: 0;
}

.rasheed-floating-contact-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

.fab-icon-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-icon-phone,
.fab-icon-wa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-icon-phone {
    font-size: 1.4rem;
    animation: fabTogglePhone 4s infinite ease-in-out;
}

.fab-icon-wa {
    font-size: 1.6rem;
    color: #ffffff;
    animation: fabToggleWa 4s infinite ease-in-out;
}

@keyframes fabTogglePhone {

    0%,
    42% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }

    48%,
    92% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
        visibility: hidden;
    }

    98%,
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }
}

@keyframes fabToggleWa {

    0%,
    42% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
        visibility: hidden;
    }

    48%,
    92% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }

    98%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
        visibility: hidden;
    }
}

.fab-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.7);
    pointer-events: none;
    animation: fabRingPulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.fab-pulse-ring.ring-2 {
    animation-delay: 1.5s;
    border-color: rgba(0, 174, 239, 0.7);
}

@keyframes fabRingPulse {
    0% {
        width: 62px;
        height: 62px;
        opacity: 0.9;
    }

    100% {
        width: 115px;
        height: 115px;
        opacity: 0;
    }
}

.fab-hover-tooltip {
    position: absolute;
    right: 74px;
    background: rgba(12, 35, 64, 0.92);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rasheed-floating-contact-btn:hover .fab-hover-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.contact-number-card {
    transition: all 0.25s ease;
    border: 1px solid #e2e8f0;
}

.contact-number-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8 !important;
    box-shadow: 0 10px 25px rgba(0, 174, 239, 0.12) !important;
}

.contact-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.action-call-btn:hover {
    background-color: #0e76bc !important;
    color: #ffffff !important;
    border-color: #0e76bc !important;
}

.action-wa-btn:hover {
    background-color: #1ebc59 !important;
    border-color: #1ebc59 !important;
}

/* ==========================================================================
   AC Brands Horizontal Showcase Carousel
   ========================================================================== */
.ac-brands-section {
    background: linear-gradient(180deg, #f8fafc 0%, #edf6fc 50%, #f8fafc 100%);
    border-top: 1px solid rgba(14, 118, 188, 0.08);
    border-bottom: 1px solid rgba(14, 118, 188, 0.08);
    position: relative;
    overflow: hidden;
}

.ac-brand-header-badge {
    background: rgba(0, 174, 239, 0.1);
    color: #0e76bc;
    border: 1px solid rgba(0, 174, 239, 0.2);
}

.ac-carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(14, 118, 188, 0.18);
    color: #0c2340;
    box-shadow: 0 4px 12px rgba(12, 35, 64, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.ac-carousel-btn:hover:not(:disabled) {
    background: #00aeef;
    color: #ffffff;
    border-color: #00aeef;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.35);
}

.ac-carousel-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.95);
}

.ac-carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}

.ac-brands-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 4px 20px 4px;
    position: relative;
}

.ac-brands-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.ac-brand-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    min-width: 0;
}

@media (max-width: 991px) {
    .ac-brand-slide {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
}

@media (max-width: 639px) {
    .ac-brand-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Circular Brand Card Structure */
.circle-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 12px 8px;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
}

.circle-brand-pod {
    position: relative;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    animation: circleBreathing 6s ease-in-out infinite alternate;
}

.circle-brand-pod::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00aeef, #38bdf8, #0e76bc, #00aeef);
    opacity: 0.45;
    animation: orbitRingSpin 8s linear infinite;
    transition: opacity 0.35s ease, filter 0.35s ease;
    filter: blur(1px);
    z-index: 1;
}

@keyframes orbitRingSpin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes circleBreathing {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-4px);
    }
}

.circle-brand-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f4faff 65%, #e1f1fc 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 10px 25px rgba(12, 35, 64, 0.1), inset 0 2px 8px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2;
    overflow: hidden;
    transition: all 0.35s ease;
}

.circle-brand-logo {
    max-width: 95px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.circle-verified-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    border: 2px solid #ffffff;
    z-index: 4;
    transition: transform 0.3s ease;
}

.circle-brand-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0c2340;
    margin: 0 0 4px 0;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.circle-brand-slogan {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0284c7;
    background: rgba(0, 174, 239, 0.09);
    border: 1px solid rgba(0, 174, 239, 0.18);
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
}

.circle-brand-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00aeef;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
    opacity: 0.85;
}

.circle-brand-item:hover .circle-brand-pod {
    transform: translateY(-8px) scale(1.06);
    animation-play-state: paused;
}

.circle-brand-item:hover .circle-brand-pod::before {
    opacity: 0.95;
    filter: blur(3px);
    inset: -8px;
    animation-duration: 4s;
}

.circle-brand-item:hover .circle-brand-disc {
    box-shadow: 0 16px 35px rgba(0, 174, 239, 0.3), inset 0 2px 10px rgba(255, 255, 255, 1);
    border-color: rgba(56, 189, 248, 0.5);
}

.circle-brand-item:hover .circle-brand-logo {
    transform: scale(1.14);
}

.circle-brand-item:hover .circle-brand-name {
    color: #00aeef;
}

/* Dots */
.ac-carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.ac-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-carousel-dot.active {
    width: 32px;
    background: linear-gradient(90deg, #00aeef, #0e76bc);
}

/* =======================================================
   Mobile & Responsive Enhancements for Product Cards & Home
   ======================================================= */
/* =======================================================
   Single Product Detail Page: Modern Glass Cards & Foldable Accordions
   ======================================================= */
.product-detail-container {
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

/* Gallery & Media Card */
.product-gallery-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-gallery-preview {
    position: relative;
    min-height: 480px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 1.75rem;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.product-gallery-preview img {
    max-height: 440px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-thumb-pill {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 4px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    object-fit: cover;
}

.product-thumb-pill:hover,
.product-thumb-pill.active {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
    transform: translateY(-2px);
}

/* Purchase Details Card */
.product-purchase-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-price-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid rgba(0, 174, 239, 0.25);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* Trust Strip in Purchase Card */
.product-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.product-trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}

.product-trust-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 174, 239, 0.1);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Foldable Cards (Accordion Cards & Tables in Cards) */
.product-fold-container {
    margin-top: 3rem;
}

.product-fold-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-fold-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.product-fold-card.is-open {
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 10px 28px rgba(0, 174, 239, 0.08);
}

.product-fold-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    user-select: none;
    transition: background 0.2s ease;
}

.product-fold-header:hover {
    background: #f8fafc;
}

.product-fold-card.is-open .product-fold-header {
    background: #fdfefe;
    border-bottom: 1px solid #f1f5f9;
}

.product-fold-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-fold-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.product-fold-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.2rem;
}

.product-fold-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
}

.product-fold-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fold-status-chip {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    background: rgba(0, 174, 239, 0.08);
    color: #0284c7;
    border: 1px solid rgba(0, 174, 239, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-fold-card.is-open .fold-status-chip {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.product-fold-chevron {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s, color 0.25s;
}

.product-fold-card.is-open .product-fold-chevron {
    transform: rotate(180deg);
    background: rgba(0, 174, 239, 0.15);
    color: #0284c7;
}

.product-fold-body {
    display: none;
    padding: 1.5rem;
    animation: foldSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-fold-card.is-open .product-fold-body {
    display: block;
}

@keyframes foldSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dedicated Product Description Card Box */
.product-desc-box {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    line-height: 1.9;
    color: #334155;
    font-size: 1.02rem;
}

.product-desc-highlight {
    background: rgba(0, 174, 239, 0.08);
    border-right: 4px solid #00aeef;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #0e76bc;
    font-weight: 600;
}

.product-features-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.product-feature-bullet {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1e293b;
}

.product-feature-bullet i {
    color: #10b981;
    font-size: 1rem;
}

/* Tables inside Cards (MD3 Specs Table) */
.product-specs-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.product-specs-table tr:nth-child(even) td,
.product-specs-table tr:nth-child(even) th {
    background-color: #f8fafc;
}

.product-specs-table th {
    width: 32%;
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.product-specs-table td {
    padding: 1rem 1.25rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td {
    border-bottom: none;
}

/* Installment Plans Table Inside Card */
.installment-plans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #fed7aa;
}

.installment-plans-table thead th {
    background: #fff7ed;
    color: #c2410c;
    font-weight: 800;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #fed7aa;
    text-align: center;
    font-size: 0.9rem;
}

.installment-plans-table tbody td {
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 1px solid #fed7aa;
    font-size: 0.92rem;
}

.installment-plans-table tbody tr:last-child td {
    border-bottom: none;
}

.installment-monthly-pill {
    background: #ecfdf5;
    color: #047857;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
    display: inline-block;
}

/* Sticky Mobile Purchase Bar */
.sticky-mobile-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -6px 25px rgba(15, 23, 42, 0.12);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 1rem;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-mobile-buy-bar.show {
    transform: translateY(0);
}

@media (min-width: 992px) {
    .sticky-mobile-buy-bar {
        display: none !important;
    }
}

@media (max-width: 576px) {

    .card-water-treatment,
    .card-air-conditioner {
        border-radius: 18px;
    }

    .card-water-image-wrapper,
    .card-ac-image-wrapper {
        min-height: 180px;
        padding: 0.9rem;
    }

    .card-water-image-wrapper img,
    .card-ac-image-wrapper img {
        max-height: 155px;
    }

    .card-product-title {
        font-size: 0.95rem;
        line-height: 1.35;
        height: 2.7em;
    }

    .price-current {
        font-size: 1.2rem;
    }

    .btn-card-cart {
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
    }

    .btn-card-icon {
        width: 34px;
        height: 34px;
    }

    .product-gallery-preview {
        min-height: 290px;
    }

    .product-gallery-preview img {
        max-height: 260px;
    }

    .product-purchase-card {
        padding: 1.25rem;
    }

    .product-fold-header {
        padding: 1rem 1.15rem;
    }

    .product-fold-title {
        font-size: 1.02rem;
    }

    .product-fold-body {
        padding: 1.15rem;
    }

    .product-specs-table th {
        width: 40%;
        padding: 0.75rem 0.85rem;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   Product Enhancements: Gifts, Warranty Banners & Spare Parts
   ========================================================================== */

/* 1. Gift Ribbons & Badges on Product Cards */
.card-gift-ribbon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    margin-bottom: 6px;
    width: fit-content;
}

.badge-spare-part {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 2. Free Gifts Showcase Box on Single Product View */
.product-gifts-showcase {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #f59e0b;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1);
    position: relative;
    overflow: hidden;
}

.gifts-showcase-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gifts-icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #f59e0b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.gifts-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.gift-showcase-item {
    background: #ffffff;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.gift-showcase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.15);
}

.gift-showcase-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    padding: 4px;
    flex-shrink: 0;
}

.gift-showcase-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0c2340;
    margin-bottom: 2px;
}

/* 3. Official Warranty Verification Banner */
.product-warranty-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #38bdf8 !important;
    border-radius: 14px;
    transition: box-shadow 0.2s ease;
}

.product-warranty-banner:hover {
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.12);
}

.btn-warranty-action {
    background: #00aeef;
    color: #ffffff !important;
    border: none;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-warranty-action:hover {
    background: #0c2340;
    transform: translateY(-1px);
}

/* 4. Spare Part Notice */
.product-spare-notice {
    background: #f8fafc;
    border-right: 4px solid #64748b;
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Comprehensive Modern Button Design System (Storewide High Contrast & WOW)
   ========================================================================== */
.btn {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.btn.d-none {
    display: none !important;
}

@media (min-width: 576px) {
    .btn.d-none.d-sm-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 768px) {
    .btn.d-none.d-md-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 992px) {
    .btn.d-lg-none {
        display: none !important;
    }

    .btn.d-none.d-lg-inline-flex {
        display: inline-flex !important;
    }
}

@media (min-width: 1200px) {
    .btn.d-none.d-xl-inline-flex {
        display: inline-flex !important;
    }
}

.btn:active {
    transform: scale(0.98) !important;
}

.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.35) !important;
}

.btn.rounded-pill {
    border-radius: 999px !important;
    padding-left: 1.35rem !important;
    padding-right: 1.35rem !important;
}

/* 1. Primary & Action Buttons (Unified Hero Section Gradient) */
.btn-primary,
.btn.btn-primary,
.btn-primary-custom,
button.btn-primary,
a.btn-primary,
.btn-success,
.btn.btn-success,
button.btn-success,
a.btn-success,
.btn-card-cart,
.btn-add-cart,
.btn-submit,
input[type="submit"] {
    background: linear-gradient(135deg, #00aeef 0%, #0284c7 100%) !important;
    border: 1px solid #00aeef !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.35) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-card-cart:hover,
.btn-add-cart:hover,
.btn-submit:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0098d3 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(0, 174, 239, 0.48) !important;
}

.btn-primary *,
.btn-primary i,
.btn-primary-custom *,
.btn-primary-custom i,
.btn-success *,
.btn-success i,
.btn-card-cart *,
.btn-card-cart i,
.btn-add-cart *,
.btn-add-cart i {
    color: #ffffff !important;
}

/* 2. Outline Buttons (Unified Hero Border & Hover Gradient) */
.btn-outline-primary,
.btn.btn-outline-primary,
.btn-outline-custom,
.btn-outline-success,
.btn.btn-outline-success {
    background-color: transparent !important;
    border: 2px solid #00aeef !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.12) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-custom:hover,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background: linear-gradient(135deg, #00aeef 0%, #0284c7 100%) !important;
    border-color: #00aeef !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.4) !important;
}

.btn-outline-primary:hover *,
.btn-outline-primary:hover i,
.btn-outline-custom:hover *,
.btn-outline-success:hover *,
.btn-outline-success:hover i {
    color: #ffffff !important;
}

/* 5. Danger Buttons */
.btn-danger,
.btn.btn-danger,
button.btn-danger,
a.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35) !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.48) !important;
}

.btn-danger *,
.btn-danger i {
    color: #ffffff !important;
}

/* 6. Outline Danger */
.btn-outline-danger,
.btn.btn-outline-danger {
    background-color: transparent !important;
    border: 2px solid #ef4444 !important;
    color: #dc2626 !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12) !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4) !important;
}

.btn-outline-danger:hover *,
.btn-outline-danger:hover i {
    color: #ffffff !important;
}

/* 7. Warning Buttons */
.btn-warning,
.btn.btn-warning,
button.btn-warning,
a.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: 1px solid #f59e0b !important;
    color: #0c2340 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border-color: #d97706 !important;
    color: #0c2340 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.48) !important;
}

.btn-warning *,
.btn-warning i {
    color: #0c2340 !important;
}

/* 8. Light Buttons (Crisp Card-Like with Clean Navy Text) */
.btn-light,
.btn.btn-light {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0c2340 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0284c7 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* 9. Dark Buttons */
.btn-dark,
.btn.btn-dark {
    background: linear-gradient(135deg, #0c2340 0%, #1e293b 100%) !important;
    border: 1px solid #0c2340 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(12, 35, 64, 0.35) !important;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(12, 35, 64, 0.48) !important;
}

.btn-dark *,
.btn-dark i {
    color: #ffffff !important;
}

/* 10. Secondary Buttons */
.btn-secondary,
.btn.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    border: 1px solid #64748b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25) !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.btn-secondary *,
.btn-secondary i {
    color: #ffffff !important;
}

/* 11. WhatsApp Action Buttons */
.whatsapp-action-btn,
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45) !important;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.whatsapp-action-btn:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6) !important;
    color: #ffffff !important;
}

.whatsapp-action-btn *,
.btn-whatsapp * {
    color: #ffffff !important;
}

/* 12. Warranty Registration Button */
.btn-warranty-action {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
    transition: all 0.22s ease !important;
}

.btn-warranty-action:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0c2340 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.48) !important;
}

/* 13. High-End Full-Width Smart Booking Card ("كارت الحجز والخدمات المنزلية") */
.home-visa-booking-section {
    background: #f8fafc;
    position: relative;
    padding: 3rem 0;
    scroll-margin-top: 80px;
    border-bottom: 1px solid #eef2f6;
}

/* ==========================================================================
   Home Instant Service & Booking Card (خدمة منزلية فورية بجميع المحافظات)
   Refined Anti-Slop, High-End Responsive, GSAP-Driven Micro-Interactions
   ========================================================================== */
.home-booking-section,
.home-visa-booking-section {
    background: #f8fafc;
    position: relative;
    padding: 2.5rem 0;
    scroll-margin-top: 80px;
    border-bottom: 1px solid #eef2f6;
}

/* Master Card Container */
.instant-service-card,
.visa-booking-card {
    background: #0a1220 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 40px -8px rgba(10, 18, 32, 0.28) !important;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.instant-service-inner,
.visa-card-inner {
    position: relative;
    z-index: 2;
    padding: 2rem 2.25rem !important;
}

@media (max-width: 991.98px) {
    .instant-service-inner,
    .visa-card-inner {
        padding: 1.5rem 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .instant-service-card,
    .visa-booking-card {
        border-radius: 16px !important;
    }
    .instant-service-inner,
    .visa-card-inner {
        padding: 1.15rem 0.95rem !important;
    }
}

/* Eyebrow & Badges */
.service-eyebrow-tag,
.visa-badge-governorates {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 5px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.service-trust-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}

.trust-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}

/* Typography */
.service-headline,
.visa-card-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.45rem !important;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.service-subtext,
.visa-card-subtitle {
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .service-headline,
    .visa-card-title {
        font-size: 1.2rem !important;
    }
    .service-subtext,
    .visa-card-subtitle {
        font-size: 0.8rem !important;
    }
}

/* Segmented Device Selector */
.segmented-control-track {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    gap: 4px;
    width: 100%;
}

.segmented-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
    position: relative;
    user-select: none;
}

.segmented-tab.active {
    color: #0a1220;
    font-weight: 800;
}

.segmented-glider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 4px;
    width: calc(50% - 6px);
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 1;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease;
}

/* Adaptive Service Options */
.service-options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-option-pill,
.visa-service-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
    min-height: 38px;
}

.service-option-pill:hover,
.visa-service-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.service-option-pill.active,
.visa-service-pill.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}

/* Form Fields & Labels */
.service-field-label,
.visa-form-label,
.visa-step-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    margin-bottom: 5px !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-field-label i,
.visa-form-label i,
.visa-step-label i {
    color: #38bdf8 !important;
    font-size: 0.82rem;
}

.service-input,
.visa-form-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    height: 44px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

@media (max-width: 575.98px) {
    .service-input,
    .visa-form-input {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
        height: 42px !important;
        padding: 0.45rem 0.75rem !important;
    }
}

.service-input:focus,
.visa-form-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
    outline: none !important;
}

/* Time Slot Segmented Buttons */
.time-slot-btn,
.visa-time-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 10px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .time-slot-btn,
    .visa-time-slot {
        height: 42px;
        font-size: 0.78rem;
        padding: 4px 6px;
    }
}

.time-slot-btn:hover,
.visa-time-slot:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.time-slot-btn.active,
.visa-time-slot.active {
    background: #ffffff !important;
    color: #0a1220 !important;
    border-color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* Action Submit Button */
.btn-service-submit,
.btn-visa-submit {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 1.5rem !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    height: 46px !important;
}

.btn-service-submit:hover:not(:disabled),
.btn-visa-submit:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45) !important;
    color: #ffffff !important;
}

.btn-service-submit:disabled,
.btn-visa-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Trust Footer */
.service-trust-footer {
    font-size: 0.78rem;
    line-height: 1.5;
}

.trust-item {
    display: inline-flex;
    align-items: center;
}

.trust-divider {
    color: rgba(255, 255, 255, 0.25);
}

/* Success Card */
.service-success-box,
.visa-success-box {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.success-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ==========================================================================
   Header Search & Global Utilities
   ========================================================================== */
.pointer-events-none {
    pointer-events: none !important;
}

.opacity-05 {
    opacity: 0.05 !important;
}

.opacity-10 {
    opacity: 0.10 !important;
}

.opacity-15 {
    opacity: 0.15 !important;
}

.opacity-20 {
    opacity: 0.20 !important;
}

.max-w-500 {
    max-width: 500px !important;
    width: 100%;
}

.max-w-750 {
    max-width: 750px !important;
    width: 100%;
}

.max-w-800 {
    max-width: 800px !important;
    width: 100%;
}

.max-w-900 {
    max-width: 900px !important;
    width: 100%;
}

.max-w-1000 {
    max-width: 1000px !important;
    width: 100%;
}

.text-emerald-400 {
    color: #34d399 !important;
}

.shadow-2xs {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.shadow-xs {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.header-search-container {
    position: relative;
    width: 100%;
}

.header-search-container #main-search-input {
    height: 42px;
    font-size: 0.9rem;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.header-search-container #main-search-input:focus {
    background: #ffffff;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

/* ==========================================================================
   Smart AC Calculator - High-End Engineering Aesthetic
   ========================================================================== */
.ac-hero-banner {
    background: linear-gradient(135deg, #06182c 0%, #0c2c52 50%, #0077b6 100%);
    position: relative;
    overflow: hidden;
}

.ac-hero-ambient-bg {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    color: #ffffff;
}

.ac-hero-ambient-right {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    color: #ffffff;
}

.ac-hero-badge {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.35);
    backdrop-filter: blur(8px);
}

.ac-hero-title {
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.ac-hero-feature-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 6px 16px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.ac-hero-feature-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Step 1: Mode Select Cards */
.mode-select-card {
    background: #ffffff;
    border: 2px solid #e9eef5 !important;
    border-radius: 18px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mode-select-card:hover {
    transform: translateY(-4px);
    border-color: #00aeef !important;
    box-shadow: 0 12px 28px -6px rgba(0, 174, 239, 0.18);
}

.mode-select-card.active {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    border-color: #00aeef !important;
    border-width: 2px !important;
    box-shadow: 0 12px 28px -4px rgba(0, 174, 239, 0.25);
}

.mode-select-card .mode-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #0e76bc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.mode-select-card.active .mode-icon-box {
    background: linear-gradient(135deg, #0e76bc 0%, #00aeef 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.35);
}

.mode-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 9999px;
    font-weight: 700;
}

/* Option Segmented Pills */
.option-pill-group .btn {
    border: 1.5px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.option-pill-group .btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.option-pill-group .btn.active {
    background: linear-gradient(135deg, #0e76bc 0%, #00aeef 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Live Thermostat Result Box */
.live-result-box {
    background: linear-gradient(145deg, #081e3a 0%, #0d2e54 60%, #0077b6 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(7, 25, 47, 0.4);
}

.live-result-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.live-result-hp-glow {
    font-family: 'Almarai', 'Readex Pro', sans-serif;
    text-shadow: 0 0 25px rgba(255, 193, 7, 0.4);
}

.live-result-btu-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 6px 18px;
    border-radius: 9999px;
}

/* Room Dimension Inputs */
.room-dim-input {
    font-size: 1.35rem;
    font-weight: 700;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
}

.room-dim-input:focus {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

/* Preset Space Chips */
.preset-space-btn {
    border: 1.5px solid #cbd5e1;
    color: #334155;
    background: #ffffff;
    font-weight: 600;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.preset-space-btn:hover {
    background: #f0f9ff;
    border-color: #00aeef;
    color: #00aeef;
    transform: translateY(-2px);
}

/* Space Items in Apartment / Villa */
.added-space-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.added-space-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Report KPI Cards */
.report-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.report-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #00aeef;
}

/* Grand Villa & Project Command Dashboards */
.villa-grand-summary-card,
.project-grand-dashboard {
    background: linear-gradient(145deg, #07192f 0%, #0c2d58 55%, #0077b6 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 42px -10px rgba(7, 25, 47, 0.5);
    position: relative;
    overflow: hidden;
}

.villa-grand-summary-card::before,
.project-grand-dashboard::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.project-kpi-tile {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px 12px;
    transition: all 0.25s ease;
}

.project-kpi-tile:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ==========================================================================
   Storefront Dynamic Product Specifications & Feature Cards
   ========================================================================== */
.product-specs-showcase {
    position: relative;
    width: 100%;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

@media (max-width: 576px) {
    .product-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.spec-feature-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.spec-feature-card:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.spec-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.spec-feature-card:hover .spec-card-icon {
    transform: scale(1.1);
}

.spec-card-content {
    min-width: 0;
    flex-grow: 1;
}

.spec-card-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.spec-card-value {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0c2340;
    line-height: 1.3;
    word-break: break-word;
}

/* Filter Stages Table */
.filter-stages-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.filter-stages-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.filter-stages-table thead th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.filter-stages-table tbody td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.filter-stages-table tbody tr:last-child td {
    border-bottom: none;
}

.filter-stages-table tbody tr:hover td {
    background: #f8fafc;
}

.stage-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    margin-left: 8px;
}

/* Compact Specification Micro-Chips for Product Cards */
.card-specs-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 8px 0;
    min-height: 26px;
}

.card-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.card-spec-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.card-spec-chip i {
    font-size: 0.7rem;
    color: #0284c7;
}

.card-spec-chip.chip-inverter {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.25);
}

.card-spec-chip.chip-inverter i {
    color: #d97706;
}

.card-spec-chip.chip-ro {
    background: rgba(14, 118, 188, 0.1);
    color: #0e76bc;
    border-color: rgba(14, 118, 188, 0.25);
}

.card-spec-chip.chip-ro i {
    color: #0e76bc;
}

/* ========================================================
   Material Design 3 Article & Content System for Products
   ======================================================== */
.mat-embeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mat-embeds-grid .rasheed-dynamic-embed-card {
    margin: 0 !important;
}

/* Material Hero Intro Card */
.mat-article-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.05);
    position: relative;
    overflow: hidden;
}

.mat-article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0284c7 0%, #00aeef 100%);
}

.mat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.mat-hero-content p {
    margin-bottom: 0.6rem;
    color: #334155;
    line-height: 1.8;
}

.mat-hero-content p:last-child {
    margin-bottom: 0;
}

.mat-hero-content strong {
    color: #0f172a;
    font-weight: 700;
}

/* Material Section Wrapper */
.mat-article-section {
    margin-bottom: 1.75rem;
}

.mat-section-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.mat-sec-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mat-sec-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.mat-sec-sub {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.mat-sec-lead-text {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.75;
}

/* Material Features Grid */
.mat-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.mat-feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mat-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 174, 239, 0.4);
    box-shadow: 0 10px 24px rgba(0, 174, 239, 0.09);
}

.mat-feat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.mat-feat-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mat-feat-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(0, 174, 239, 0.1);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mat-feat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0;
    line-height: 1.35;
}

.mat-feat-body {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    flex-grow: 1;
}

.mat-feat-body p {
    margin-bottom: 0;
}

/* Material Content Cards (Why Choose, Warranty, etc.) */
.mat-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.mat-card-body {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.85;
}

.mat-card-body p:last-child {
    margin-bottom: 0;
}

/* Material FAQ Accordion */
.mat-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mat-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.mat-faq-card.is-open {
    border-color: #f59e0b;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.08);
}

.mat-faq-header {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
    background: #ffffff;
    transition: background 0.2s;
}

.mat-faq-header:hover {
    background: #fffbeb;
}

.mat-faq-q {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.mat-faq-q-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.mat-faq-q-text {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.mat-faq-chevron {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.mat-faq-card.is-open .mat-faq-chevron {
    transform: rotate(180deg);
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.mat-faq-answer {
    display: none;
    padding: 0 1.25rem 1.15rem 1.25rem;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.75;
}

.mat-faq-card.is-open .mat-faq-answer {
    display: block;
    animation: foldSlideDown 0.25s ease;
}

.mat-faq-answer p {
    margin-bottom: 0;
}

/* Material CTA Section */
.mat-cta-card {
    background: linear-gradient(135deg, #071526 0%, #0e76bc 100%);
    border-radius: 18px;
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(14, 118, 188, 0.2);
    text-align: center;
}

.mat-cta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fde047;
    margin-bottom: 1rem;
}

.mat-cta-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.mat-cta-text {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 1.5rem auto;
}

.mat-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ========================================================
   Mobile Phone Responsiveness & Enhancements
   ======================================================== */
@media (max-width: 768px) {

    /* Breadcrumb horizontal scroll on mobile */
    .breadcrumb {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .product-fold-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .product-fold-controls .d-flex {
        width: 100%;
        justify-content: flex-end;
    }

    .product-fold-header {
        padding: 0.9rem 1rem;
    }

    .product-fold-icon-badge {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .product-fold-title {
        font-size: 1rem;
        line-height: 1.35;
    }

    .product-fold-subtitle {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fold-status-chip {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }

    .product-fold-chevron {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .product-fold-body {
        padding: 1rem;
    }

    .product-desc-box {
        padding: 1rem;
        font-size: 0.94rem;
    }

    .mat-features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mat-feature-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .mat-feat-title {
        font-size: 0.98rem;
    }

    .mat-feat-body {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .mat-section-header {
        gap: 0.65rem;
    }

    .mat-sec-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .mat-sec-title {
        font-size: 1.1rem;
    }

    .mat-faq-header {
        padding: 0.85rem 1rem;
    }

    .mat-faq-q-text {
        font-size: 0.92rem;
    }

    .mat-faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.88rem;
    }

    .mat-cta-card {
        padding: 1.5rem 1.25rem;
    }

    .mat-cta-title {
        font-size: 1.2rem;
    }

    .mat-cta-text {
        font-size: 0.88rem;
    }

    .mat-cta-btns .btn {
        width: 100%;
        font-size: 0.92rem;
    }

    /* Table adjustments on mobile */
    .product-specs-table th {
        width: 38%;
        padding: 0.75rem 0.6rem;
        font-size: 0.85rem;
    }

    .product-specs-table td {
        padding: 0.75rem 0.6rem;
        font-size: 0.85rem;
    }

    .installment-plans-table thead th {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }

    .installment-plans-table tbody td {
        padding: 0.65rem 0.5rem;
        font-size: 0.82rem;
    }

    /* Complete Mobile Layout Stabilization & Anti-Wobble */
    .row {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }

    .row>* {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    /* Category quick pills horizontal scrolling without page wobble */
    .category-quick-pills {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 6px !important;
        margin-bottom: 1rem !important;
    }

    .category-quick-pills::-webkit-scrollbar {
        display: none;
    }

    .category-quick-pills .badge {
        flex-shrink: 0;
        font-size: 0.78rem !important;
        padding: 0.38rem 0.75rem !important;
    }

    /* Tighten section headings and descriptions */
    .products-section .fs-3 {
        font-size: 1.2rem !important;
        line-height: 1.35 !important;
    }

    .products-section p.text-muted {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
    }

    /* Value Proposition Features Strip */
    .feature-card {
        padding: 0.65rem 0.75rem !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
    }

    .feature-icon-box {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }

    .feature-card .fw-bold {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
    }

    .feature-card .small.text-muted {
        font-size: 0.7rem !important;
        line-height: 1.25 !important;
    }

    /* Mobile Header Icons Alignment */
    .main-header .navbar-brand img {
        max-height: 38px !important;
    }

    .main-header .btn-light.btn-sm {
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .main-header .btn-light.btn-sm i {
        font-size: 0.95rem !important;
    }

    .main-header .btn-outline-secondary.btn-sm {
        padding: 0.22rem 0.55rem !important;
        font-size: 0.74rem !important;
    }

    .main-header #main-search-input {
        font-size: 0.82rem !important;
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    /* AC Brands Section Mobile Tightening */
    .ac-brands-section {
        padding: 1.85rem 0 !important;
    }

    .ac-brands-section .fs-3 {
        font-size: 1.2rem !important;
    }

    .circle-brand-pod {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 8px !important;
    }

    .circle-brand-pod img {
        max-width: 60px !important;
        max-height: 42px !important;
    }

    .circle-brand-name {
        font-size: 0.86rem !important;
    }

    .circle-brand-slogan {
        font-size: 0.68rem !important;
    }

    .circle-brand-tag {
        font-size: 0.64rem !important;
    }

    /* Visa Booking Card Mobile Padding */
    .home-visa-booking-section {
        padding: 1.5rem 0 !important;
    }

    .visa-card-inner {
        padding: 1rem 0.8rem !important;
    }

    .visa-card-title {
        font-size: 1.15rem !important;
    }

    .visa-card-subtitle {
        font-size: 0.76rem !important;
        line-height: 1.35 !important;
    }
}


/* ==========================================================================
   Interactive 3D Playing Cards Deck & Card Swap Component
   Engineered with taste-skill Expo curves & 3D Perspective Physics
   ========================================================================== */
.card-swap-section {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.card-swap-ambient-glow {
    display: none !important;
}

.card-swap-dept-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 5px 8px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 32, 91, 0.04);
}

.card-swap-tab-btn {
    border: 1px solid transparent;
    background: #f8fafc;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: pointer;
}

.card-swap-tab-btn:hover {
    color: var(--accent-color, #0284c7);
    background: #ffffff;
    border-color: #e2e8f0;
}

.card-swap-tab-btn.active {
    background: var(--accent-color, #0284c7) !important;
    border-color: var(--accent-color, #0284c7) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.card-swap-info-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 32, 91, 0.05) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.card-swap-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.card-swap-spec-item {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.card-swap-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-swap-arrow-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: scale(1.05);
}

.card-swap-progress-track {
    width: 80px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.card-swap-progress-bar {
    width: 0%;
    height: 100%;
    background: #0284c7;
    border-radius: 9999px;
    transition: width 0.05s linear;
}

/* 3D Playing Cards Stage */
.card-deck-stage {
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    position: relative;
}

.card-deck-container {
    position: relative;
    width: 320px;
    height: 435px;
    transform-style: preserve-3d;
}

.deck-playing-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02) !important;
    cursor: pointer;
    user-select: none;
    transform-origin: 50% 120%;
    will-change: transform, opacity, z-index;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease;
    overflow: hidden;
}

.deck-playing-card.is-active {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07), 0 0 0 1.5px var(--card-theme) !important;
}

.deck-playing-card.is-swapping-out {
    transform: translate3d(0, -90px, 80px) rotate(-12deg) scale(1.05) !important;
    opacity: 0.5 !important;
    z-index: 20 !important;
}

.deck-card-inner {
    padding: 1.15rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
}

/* Brand Micro-Pill inside Compact Card */
.deck-card-brand-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 65%;
}

.deck-card-brand-pill img {
    height: 18px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
}

.deck-card-brand-pill span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-card-image-box {
    position: relative;
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.deck-card-img {
    max-height: 170px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.07));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.deck-playing-card:hover .deck-card-img {
    transform: scale(1.05) translateY(-3px);
}

.deck-card-title {
    font-size: 0.98rem;
    line-height: 1.4;
    color: #1e293b;
}

/* Dual Actions inside Compact Card */
.deck-card-actions {
    position: relative;
    z-index: 5;
}

.deck-card-actions .btn {
    transition: all 0.2s ease;
}

.deck-card-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.deck-card-actions .btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Taste-Skill Mobile Polish */
@media (max-width: 767.98px) {
    .card-deck-stage {
        min-height: 390px;
    }

    .card-deck-container {
        width: min(295px, 86vw);
        height: 395px;
    }

    .deck-card-image-box {
        height: 160px;
    }

    .deck-card-img {
        max-height: 140px;
    }

    .deck-card-title {
        font-size: 0.92rem;
    }

    .card-swap-specs-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 0.4rem;
    }

    .card-swap-dept-nav {
        width: 100%;
        border-radius: 16px;
        padding: 5px;
        gap: 4px;
    }

    .card-swap-tab-btn {
        flex: 1 1 auto;
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
        text-align: center;
    }

    .card-swap-info-card {
        padding: 1.5rem 1.25rem !important;
    }

    .card-action-row {
        gap: 0.4rem;
    }

    .btn-add-cart {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-quick-wa {
        min-width: 44px;
        min-height: 44px;
    }

    .category-quick-pills {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.4rem;
    }

    .category-quick-pills .badge {
        scroll-snap-align: start;
        white-space: nowrap;
    }
}


/* ==========================================================================
   Homepage Cards - Unified Ultra-Light Delicate Shadows (شادو خفيف جداً)
   ========================================================================== */
.card-air-conditioner,
.card-water-dispenser,
.card-water-purifier,
.card-water-treatment,
.category-card,
.feature-card,
.card-swap-info-card,
.deck-playing-card,
.bestseller-carousel-card,
.brand-mini-card,
.home-visa-booking-card,
.article-card,
.card {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035), 0 1px 2px rgba(15, 23, 42, 0.015) !important;
    border: 1px solid #eef2f6 !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.card-air-conditioner:hover,
.card-water-dispenser:hover,
.card-water-purifier:hover,
.card-water-treatment:hover,
.category-card:hover,
.feature-card:hover,
.bestseller-carousel-card:hover,
.brand-mini-card:hover,
.article-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.deck-playing-card.is-active {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06), 0 0 0 1.5px var(--card-theme) !important;
}

/* ==========================================================================
   Homepage Cards - Unified Ultra-Light Delicate Shadows (شادو خفيف جداً)
   ========================================================================== */
.card-air-conditioner,
.card-water-dispenser,
.card-water-purifier,
.card-water-treatment,
.category-card,
.feature-card,
.card-swap-info-card,
.deck-playing-card,
.bestseller-carousel-card,
.brand-mini-card,
.home-visa-booking-card,
.article-card,
.card {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035), 0 1px 2px rgba(15, 23, 42, 0.015) !important;
    border: 1px solid #eef2f6 !important;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

.card-air-conditioner:hover,
.card-water-dispenser:hover,
.card-water-purifier:hover,
.card-water-treatment:hover,
.category-card:hover,
.feature-card:hover,
.bestseller-carousel-card:hover,
.brand-mini-card:hover,
.article-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
    border-color: #cbd5e1 !important;
}

.deck-playing-card.is-active {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06), 0 0 0 1.5px var(--card-theme) !important;
}