/* ==========================================================================
   Al-Mowridun Solar Energy Supplies - Core Design System & Stylesheet
   Brand Colors: Red (#E31E2D), Purple (#8E7CC3), Sky Blue / Cyan (#3FC1E0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand-red: #E31E2D;
    --brand-purple: #8E7CC3;
    --brand-cyan: #3FC1E0;
    --brand-gradient: linear-gradient(135deg, #E31E2D 0%, #8E7CC3 52%, #3FC1E0 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(227, 30, 45, 0.08) 0%, rgba(142, 124, 195, 0.08) 50%, rgba(63, 193, 224, 0.08) 100%);
    --brand-gradient-hover: linear-gradient(135deg, #c71725 0%, #7d6ab3 52%, #32afd0 100%);
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    
    --border-light: #E2E8F0;
    --border-focus: #8E7CC3;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0284C7;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 18px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.12);
    --shadow-gradient: 0 10px 25px -5px rgba(227, 30, 45, 0.35);
    
    --font-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --container: 1280px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ar);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

html[lang="en"] body {
    font-family: var(--font-en);
}

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

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

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

.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Typography Utilities */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-gradient {
    background: var(--brand-gradient);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(227, 30, 45, 0.25);
    border: none;
}

.btn-gradient:hover {
    box-shadow: var(--shadow-gradient);
    transform: translateY(-2px);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-gradient {
    background: var(--brand-gradient);
    color: #FFFFFF;
}

.badge-wholesale {
    background: rgba(142, 124, 195, 0.15);
    color: #6C54A7;
    border: 1px solid rgba(142, 124, 195, 0.3);
}

.badge-warranty {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-stock {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* 1. Announcement Topbar */
.announcement-bar {
    background: var(--brand-gradient);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    z-index: 50;
}

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

.announcement-text {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.topbar-links a {
    color: rgba(255, 255, 255, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.topbar-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
}

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

/* 2. Main Header */
.main-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 19px;
    line-height: 1.2;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* Large Search Bar */
.header-search {
    flex: 1;
    max-width: 620px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px 6px;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--brand-purple);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(142, 124, 195, 0.15);
}

.search-category-select {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 1px solid var(--border-light);
    outline: none;
    cursor: pointer;
    max-width: 140px;
}

html[lang="en"] .search-category-select {
    border-left: none;
    border-right: 1px solid var(--border-light);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
    color: var(--text-primary);
}

.search-btn {
    background: var(--brand-gradient);
    color: #FFFFFF;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.05);
}

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

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.action-link:hover {
    background: var(--bg-alt);
    color: var(--brand-purple);
}

.action-icon-badge {
    position: relative;
    display: inline-flex;
}

.badge-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

html[lang="en"] .badge-count {
    right: auto;
    left: -8px;
}

/* 3. Navigation Bar */
.nav-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    position: relative;
    z-index: 800;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding: 8px 0;
    overflow: visible;
}

@media (max-width: 991px) {
    .nav-links {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 4px;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-red);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--brand-gradient);
    border-radius: 3px;
}

/* ==========================================================================
   Hero Section (Mockup Design 2 Approved)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    overflow: hidden;
}

.hero-poly-decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.12;
    z-index: 1;
}

.hero-poly-decor.left {
    top: -40px;
    left: -40px;
    width: 320px;
}

.hero-poly-decor.right {
    bottom: -60px;
    right: -40px;
    width: 280px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-red);
    background: rgba(227, 30, 45, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    width: fit-content;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
}

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

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.hero-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.hero-badge-icon {
    width: 22px;
    height: 22px;
    color: var(--brand-purple);
}

/* Triangle / Polygon Image Container (Mockup 2) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-triangle-frame {
    position: relative;
    width: 440px;
    height: 380px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--brand-gradient);
    padding: 5px;
    transition: var(--transition);
}

.hero-triangle-frame:hover {
    transform: scale(1.02);
}

.hero-triangle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 2%, 98% 98%, 2% 98%);
}

.hero-floating-card {
    position: absolute;
    bottom: 20px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
    animation: floatSlow 4s ease-in-out infinite alternate;
}

@keyframes floatSlow {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* ==========================================================================
   Category Icons Row (Mockup 2 Icons Box)
   ========================================================================== */
.categories-section {
    padding: 36px 0;
    background: #FFFFFF;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    background: #FFFFFF;
    border-color: var(--brand-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    transition: var(--transition);
}

.category-card:hover .category-icon-box {
    color: var(--brand-purple);
    transform: scale(1.1);
}

.category-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* ==========================================================================
   Promo Banners (Gradient Dual Cards from Mockup 2)
   ========================================================================== */
.promos-section {
    padding: 24px 0;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.promo-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 160px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.promo-card.red-gradient {
    background: linear-gradient(135deg, #E31E2D 0%, #A3121F 100%);
}

.promo-card.purple-cyan {
    background: linear-gradient(135deg, #8E7CC3 0%, #3FC1E0 100%);
}

.promo-card-content {
    max-width: 65%;
    z-index: 2;
}

.promo-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 8px;
}

.promo-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.promo-desc {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.promo-card-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    transition: var(--transition);
}

.promo-card:hover .promo-card-img {
    transform: scale(1.08) rotate(-3deg);
}

/* ==========================================================================
   Product Cards & Showcase
   ========================================================================== */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

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

html[lang="ar"] .section-title::after {
    left: auto;
    right: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

html[lang="en"] .product-badges {
    right: auto;
    left: 10px;
}

.product-wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

html[lang="en"] .product-wishlist-btn {
    left: auto;
    right: 10px;
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
    color: var(--brand-red);
    border-color: var(--brand-red);
    transform: scale(1.1);
}

.product-img-box {
    background: var(--bg-alt);
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

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

.product-brand {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-purple);
    margin-bottom: 4px;
}

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

.product-specs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.spec-chip {
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

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

.price-main {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.price-wholesale-tag {
    font-size: 11px;
    font-weight: 600;
    color: #6C54A7;
}

.product-add-btn {
    background: var(--brand-gradient);
    color: #FFFFFF;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.product-add-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(227, 30, 45, 0.3);
}

/* ==========================================================================
   Warehouse & Direct Pickup Banner
   ========================================================================== */
.warehouse-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.warehouse-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.warehouse-desc {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 18px;
}

.warehouse-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warehouse-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.warehouse-item-icon {
    color: var(--brand-cyan);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

html[lang="en"] .whatsapp-floating {
    left: auto;
    right: 28px;
}

.whatsapp-floating:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
    color: #FFFFFF;
}

.whatsapp-pulse {
    width: 10px;
    height: 10px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: #0B1120;
    color: #94A3B8;
    margin-top: auto;
    font-size: 14px;
    border-top: 1px solid #1E293B;
}

.footer-top {
    padding: 56px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-title {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 18px;
}

.footer-about {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.footer-col-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
}

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

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 18px 0;
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-badges-row {
        justify-content: center;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-triangle-frame {
        width: 320px;
        height: 280px;
    }
    .promos-grid {
        grid-template-columns: 1fr;
    }
    .warehouse-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .announcement-bar {
        font-size: 11px;
    }
    .hide-sm {
        display: none !important;
    }

    /* Mobile Bottom App Navigation */
    body {
        padding-bottom: 65px;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-light);
        display: flex;
        align-items: center;
        justify-content: space-around;
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        flex: 1;
        height: 100%;
        transition: var(--transition);
    }

    .mobile-nav-item.active, .mobile-nav-item:hover {
        color: var(--brand-red);
    }

    .mobile-nav-item svg {
        transition: var(--transition);
    }

    .mobile-nav-item.active svg {
        stroke: var(--brand-red);
        transform: scale(1.1);
    }

    .whatsapp-floating {
        bottom: 74px !important;
        padding: 8px 14px;
        font-size: 12px;
    }

    /* Tablet and Phone Grid Improvements */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .product-img-box {
        height: 140px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .category-card {
        padding: 12px 8px !important;
    }

    .category-icon-box {
        width: 38px !important;
        height: 38px !important;
    }

    .category-title {
        font-size: 11px !important;
    }

    .hero-triangle-frame {
        width: 260px !important;
        height: 220px !important;
        max-width: 85vw !important;
    }

    .hero-floating-card {
        display: none !important;
    }

    .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .hero-desc {
        font-size: 14px !important;
    }

    .hero-section {
        padding: 24px 0 32px !important;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Tablet screens (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    .categories-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-triangle-frame {
        width: 320px;
        height: 270px;
    }
}

/* Responsive Component Layouts (Catalog, Cart, Checkout, Product Detail) */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: flex-start;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .hide-on-mobile {
        display: none !important;
    }

    .hide-sm {
        display: none !important;
    }

    .mobile-only-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-bar {
        display: block !important;
    }

    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .checkout-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .nav-bar {
        display: none !important;
    }

    .desktop-only-nav {
        display: none !important;
    }

    .hero-poly-decor {
        display: none !important;
    }

    .header-inner {
        gap: 8px !important;
        padding: 8px 0 !important;
    }
    .header-logo img {
        height: 38px !important;
    }
    .logo-title {
        font-size: 15px !important;
    }
    .logo-sub {
        font-size: 10px !important;
    }
    .header-actions {
        gap: 6px !important;
    }
    .action-link {
        padding: 6px 8px !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .hero-badges-row {
        justify-content: center !important;
        gap: 8px !important;
    }
    .hero-badge-pill {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
    }
    .warehouse-banner {
        padding: 22px 16px !important;
        margin: 20px 0 !important;
    }
    .warehouse-title {
        font-size: 19px !important;
    }

    /* Promo Cards on Tablet / Mobile */
    .promos-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .promo-card {
        padding: 18px 20px !important;
        min-height: auto !important;
        align-items: center !important;
    }
    .promo-card-content {
        max-width: 65% !important;
    }
    .promo-card-img {
        width: 95px !important;
        height: 95px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }
    .promo-title {
        font-size: 17px !important;
        margin: 6px 0 !important;
    }
    .promo-desc {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 640px) {
    .announcement-bar {
        font-size: 11px !important;
        padding: 5px 0 !important;
    }
    .announcement-text {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 70vw !important;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .category-card {
        padding: 12px 8px !important;
    }
    .category-title {
        font-size: 12px !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-info {
        padding: 10px !important;
    }
    .product-name {
        font-size: 12px !important;
        height: 32px !important;
        line-height: 1.3 !important;
    }
    .product-img-box {
        height: 125px !important;
        padding: 8px !important;
    }
    .spec-chip {
        font-size: 10px !important;
        padding: 1px 5px !important;
    }
    .price-main {
        font-size: 14px !important;
    }
    .product-add-btn {
        width: 32px !important;
        height: 32px !important;
    }
    .form-row-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .section-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 14px !important;
    }
    .section-title {
        font-size: 18px !important;
    }
}

/* Mobile Drawer Overlay & Sidebar */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;
    background: #FFFFFF;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html[dir="ltr"] .mobile-drawer {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-100%);
}

.mobile-drawer.open {
    transform: translateX(0) !important;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0F172A;
    color: #FFFFFF;
}

.mobile-drawer-nav {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.mobile-drawer-nav li a, .mobile-drawer-nav li button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    background: none;
    border-inline: none;
    border-top: none;
    cursor: pointer;
    font-family: inherit;
    text-align: start;
}

.mobile-drawer-nav li a:hover, .mobile-drawer-nav li a.active {
    background: #FAF5FF;
    color: var(--brand-purple);
}

.mobile-drawer-submenu {
    list-style: none;
    background: #F8FAFC;
    padding: 6px 0;
    margin: 0;
}

.mobile-drawer-submenu li a {
    padding: 9px 28px 9px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px dashed #E2E8F0 !important;
}
