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

/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    --secondary: #64748b;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);
    --radius-sm: 0.5rem;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.06);
    --shadow-primary: 0 10px 25px -5px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.home-page-wrapper {
    padding: 1.5rem 0 3.5rem;
}

/* ==========================================================================
   Top Appbar (Header)
   ========================================================================== */
.appbar-header {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    transition: var(--transition-smooth);
}

.appbar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* Brand */
.appbar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease;
    min-width: 0;
    max-width: 500px;
}

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

.brand-info {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.brand-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 3px;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 37, 99, 235), 0.3);
}

.brand-icon {
    width: 24px;
    height: 24px;
}

.brand-title {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Nav links desktop */
.appbar-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.nav-item .nav-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
}

.nav-item:hover .nav-icon {
    transform: translateY(-1px);
}

.nav-item.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
}

/* Actions & CTA */
.appbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.appbar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.3);
    transition: var(--transition-smooth);
}

.appbar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 37, 99, 235), 0.45);
}

.appbar-cta-btn .cta-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Drawer */
.mobile-nav-drawer {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-top: 1px solid transparent;
}

.mobile-nav-drawer.is-open {
    max-height: 320px;
    padding: 1rem 0 0.5rem;
    border-top-color: var(--border);
}

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
}

.mobile-nav-cta {
    background: var(--primary);
    color: #ffffff !important;
    margin-top: 0.5rem;
    justify-content: center;
}

/* ==========================================================================
   1. Top Banner Section (Exact 1*2 Rectangular Aspect Ratio)
   ========================================================================== */
.hero-banner-section {
    margin-bottom: 2.5rem;
}

/* Full Width & Responsive Aspect Ratio Limiter (2.5:1 Desktop / 1.6:1 Mobile) */
.banner-aspect-limiter {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.app-banner-card {
    width: 100%;
    aspect-ratio: 2.5 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

@media (max-width: 767px) {
    .app-banner-card {
        aspect-ratio: 1.6 / 1;
        border-radius: var(--radius);
    }
}

.app-banner-card:hover {
    box-shadow: 0 25px 45px -10px rgba(15, 23, 42, 0.18);
}

/* AppImage Mode */
.app-banner-image-mode {
    background-color: #0f172a;
}

.banner-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.app-banner-image-mode:hover .banner-media-img {
    transform: scale(1.02);
}

.banner-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

/* Fallback Design Mode */
.app-banner-fallback-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.fallback-banner-decor-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

.circle-1 {
    width: 280px;
    height: 280px;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.35);
    top: -50px;
    right: -30px;
}

.circle-2 {
    width: 220px;
    height: 220px;
    background: rgba(245, 158, 11, 0.2);
    bottom: -40px;
    left: 10%;
}

.fallback-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 720px;
    text-align: right;
    width: 100%;
}

.fallback-banner-logo {
    width: 95px;
    height: 95px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.fallback-banner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fallback-banner-icon {
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.fallback-banner-icon i {
    width: 44px;
    height: 44px;
}

.fallback-banner-text {
    flex: 1;
}

.fallback-welcome-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
    backdrop-filter: blur(6px);
}

.fallback-welcome-pill i {
    width: 14px;
    height: 14px;
    color: #fcd34d;
}

.fallback-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.fallback-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 580px;
}

/* ==========================================================================
   2. Categories Section (1*1 Square Boxes - Horizontal Scrollable Track)
   ========================================================================== */
.categories-section {
    margin-bottom: 3rem;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.section-title-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.title-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.18);
}

.section-heading {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.section-subheading {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Category Navigation Arrows */
.categories-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.cat-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: scale(1.05);
}

.cat-nav-btn i {
    width: 18px;
    height: 18px;
}

/* Horizontal Scroll Wrapper & Track */
.categories-scroll-wrapper {
    position: relative;
    width: 100%;
}

.categories-square-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.1rem;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-rgb, 37, 99, 235), 0.3) transparent;
}

.categories-square-grid::-webkit-scrollbar {
    height: 6px;
}

.categories-square-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
}

.categories-square-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.25);
    border-radius: 10px;
}

.categories-square-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Category Square Card (1*1 Aspect Ratio, Flex Fixed Item) */
.category-square-card {
    flex: 0 0 145px;
    width: 145px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 2.5px solid transparent;
    transition: var(--transition-smooth);
    background-color: #1e293b;
    user-select: none;
    scroll-snap-align: start;
}

.category-square-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.4);
}

.category-square-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: translateY(-3px);
}

/* 1*1 "All Products" Card */
.card-all-products {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
}

.cat-square-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.cat-square-decor-shape {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -20px;
    left: -20px;
}

/* Category Background Image with 75% opacity and overlay */
.cat-square-img-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.75;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-square-card:hover .cat-square-img-layer {
    transform: scale(1.08);
    opacity: 0.85;
}

.cat-square-scrim-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%);
}

/* Company Color Fallback Box (when no image exists) */
.cat-square-company-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--primary) 0%, #0f172a 100%);
}

.cat-square-pattern-layer {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 12px 12px;
}

/* Card Top Badge (Counter) */
.cat-square-badge-top {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 5;
}

.cat-count-pill {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Center Content - NO ELLIPSIS / FULL TEXT */
.cat-square-content-center {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.4rem;
    width: 100%;
    gap: 0.35rem;
}

.cat-center-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0.1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cat-center-icon {
    width: 18px;
    height: 18px;
}

/* Full Text Display without dots (...) */
.cat-center-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
    line-height: 1.3;
    max-width: 95%;
    word-break: break-word;
    text-align: center;
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Active Check Indicator */
.cat-square-active-indicator {
    position: absolute;
    bottom: 0.45rem;
    left: 0.45rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.indicator-icon {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.category-square-card.active .cat-square-active-indicator {
    display: flex;
}

/* ==========================================================================
   3. Products Catalog & Cards
   ========================================================================== */
.products-catalog-section {
    margin-bottom: 3.5rem;
}

.catalog-section-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-bar-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.catalog-bar-indicator i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.products-ajax-container {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.products-ajax-container.is-loading {
    opacity: 0.45;
    filter: blur(1.5px);
    pointer-events: none;
}

/* Product Card */
.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.35);
}

/* Product Image Box */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Product Image Fallback */
.product-no-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary);
}

.fallback-graphic-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    border: 1px dashed rgba(var(--primary-rgb, 37, 99, 235), 0.25);
    transition: transform 0.3s ease;
}

.product-card:hover .fallback-graphic-wrap {
    transform: scale(1.1) rotate(5deg);
}

.fallback-svg {
    width: 38px;
    height: 38px;
}

/* Category Badge Over Image */
.product-category-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2;
}

.badge-icon {
    width: 9px;
    height: 9px;
}

/* Product Body Info */
.product-info {
    padding: 0.95rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.35rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
}

.product-details-empty {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    font-style: italic;
    min-height: 2.4em;
}

/* Product Footer Row & Price */
.product-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
    gap: 0.5rem;
}

.product-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: var(--primary);
    font-weight: 900;
}

.price-currency-symbol {
    font-size: 0.85rem;
}

.price-value-number {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.price-currency-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 2px;
}

.product-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.action-icon {
    width: 12px;
    height: 12px;
}

/* Empty State */
.products-empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    font-size: 0.92rem;
    max-width: 480px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 0.45rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition-smooth);
}

.pagination-link:hover {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
}

.pagination-link.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
}

.pagination-link.nav-btn {
    gap: 0.35rem;
    padding: 0 1rem;
    color: var(--text-muted);
}

.pagination-link.nav-btn i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   4. App Download Section (Below Products)
   ========================================================================== */
.app-download-section {
    margin: 3.5rem 0 1.5rem;
}

.app-download-card {
    background: linear-gradient(135deg, #0b0f19 0%, #1e293b 60%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    padding: 3rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-download-decor-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb, 37, 99, 235), 0.4) 0%, transparent 70%);
    top: -100px;
    left: -50px;
    pointer-events: none;
}

.app-download-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.app-download-info-side {
    max-width: 600px;
}

.app-promo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.app-promo-pill i {
    width: 16px;
    height: 16px;
    color: #fcd34d;
}

.app-promo-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.app-promo-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.app-download-buttons-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 260px;
}

/* Store App Buttons */
.store-app-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.store-app-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-icon-cell {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-text-cell {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: right;
}

.store-subtext {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
}

.store-maintext {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.store-arrow-cell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.store-arrow-cell i {
    width: 16px;
    height: 16px;
}

.store-app-btn:hover .store-arrow-cell {
    transform: translateY(2px);
    background: var(--primary);
}

.store-app-btn.is-coming-soon {
    opacity: 0.7;
    cursor: default;
}

.soon-badge {
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   5. Support & Privacy Pages Styles
   ========================================================================== */
.support-page-wrapper,
.privacy-page-wrapper {
    padding: 3rem 0 5rem;
}

.support-hero-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.support-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.2);
    color: var(--primary);
    padding: 0.4rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.support-pill-badge i {
    width: 16px;
    height: 16px;
}

.support-main-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.support-main-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.support-contact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.support-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.3);
}

.support-card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.support-card-icon-wrap.phone-wrap {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.support-card-icon-wrap.email-wrap {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.support-card-icon-wrap.address-wrap {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.support-card-icon-wrap.app-wrap {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.support-card-icon-wrap i {
    width: 28px;
    height: 28px;
}

.support-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.support-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.support-card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.support-card-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
}

.support-card-action-btn i {
    width: 18px;
    height: 18px;
}

.support-card-address-badge {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
}

/* FAQs */
.support-faq-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.faq-header-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.faq-header-bar i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.faq-header-bar h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
}

.faq-accordion-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: #ffffff;
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.faq-a {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Privacy Page Card */
.privacy-content-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.privacy-header {
    text-align: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.privacy-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.privacy-icon-box i {
    width: 32px;
    height: 32px;
}

.privacy-title {
    font-size: 2.35rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.privacy-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.privacy-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-section-block h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.privacy-section-block p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

.privacy-company-note {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.05);
    border-right: 4px solid var(--primary);
    padding: 0.85rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 600;
    color: var(--text);
}

.privacy-section-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding-right: 0.5rem;
}

.privacy-section-block ul li {
    font-size: 0.98rem;
    color: #334155;
    line-height: 1.6;
    position: relative;
    padding-right: 1.5rem;
}

.privacy-section-block ul li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    right: 0;
    top: -4px;
}

.privacy-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.98rem;
    color: var(--text);
}

.contact-line i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.contact-line a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-col {
    max-width: 400px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    padding: 2px;
}

.footer-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-details-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-col-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.footer-contact-list,
.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li,
.footer-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover,
.footer-nav-list li a:hover {
    color: #ffffff;
}

.footer-contact-list i,
.footer-nav-list i {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.1rem;
    }
}

@media (max-width: 1180px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .app-download-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-download-buttons-side {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .store-app-btn {
        flex: 1;
        min-width: 240px;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }

    .appbar-nav {
        gap: 0.75rem;
    }

    .appbar-brand {
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 210px);
        gap: 0.6rem;
    }

    .brand-title {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .appbar-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .appbar-cta-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }

    .appbar-cta-btn .cta-icon {
        width: 15px;
        height: 15px;
    }

    .appbar-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav-drawer {
        display: block;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    .fallback-title {
        font-size: 1.6rem;
    }

    .fallback-banner-logo {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 1rem;
    }

    .home-page-wrapper {
        padding: 1rem 0 2.5rem;
    }

    /* Appbar Mobile Optimization */
    .appbar-nav {
        gap: 0.5rem;
    }

    .appbar-brand {
        min-width: 0;
        flex: 1 1 auto;
        max-width: calc(100% - 170px);
        gap: 0.45rem;
    }

    .brand-logo-wrap,
    .brand-icon-wrap {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .brand-icon {
        width: 18px;
        height: 18px;
    }

    .brand-info {
        min-width: 0;
        overflow: hidden;
        flex: 1;
    }

    .brand-title {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-width: 100%;
    }

    .appbar-actions {
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .appbar-cta-btn {
        padding: 0.36rem 0.65rem;
        font-size: 0.72rem;
        gap: 0.28rem;
    }

    .appbar-cta-btn .cta-icon {
        width: 13px;
        height: 13px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    /* 1*2 Banner Mobile */
    .app-banner-card {
        border-radius: var(--radius);
    }

    .app-banner-fallback-mode {
        padding: 1.25rem;
    }

    .fallback-banner-content {
        gap: 1rem;
    }

    .fallback-banner-logo {
        width: 55px;
        height: 55px;
        border-radius: var(--radius-sm);
        padding: 3px;
    }

    .fallback-title {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .fallback-description {
        font-size: 0.78rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .fallback-welcome-pill {
        font-size: 0.7rem;
        padding: 2px 7px;
        margin-bottom: 0.35rem;
    }

    /* Categories Horizontal Scroll on Mobile */
    .category-square-card {
        flex: 0 0 115px;
        width: 115px;
        border-radius: var(--radius-sm);
    }

    .cat-center-icon-wrap {
        width: 26px;
        height: 26px;
        margin-bottom: 0;
    }

    .cat-center-icon {
        width: 13px;
        height: 13px;
    }

    .cat-center-name {
        font-size: 0.76rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .cat-count-pill {
        font-size: 0.62rem;
        padding: 1px 5px;
    }

    .cat-square-badge-top {
        top: 0.3rem;
        right: 0.3rem;
    }

    /* Products Grid: Exactly 2 per row on Mobile */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .product-card {
        border-radius: var(--radius);
    }

    .product-info {
        padding: 0.65rem 0.75rem;
    }

    .product-name {
        font-size: 0.84rem;
        margin-bottom: 0.15rem;
    }

    .product-details,
    .product-details-empty {
        font-size: 0.72rem;
        margin-bottom: 0.5rem;
        min-height: unset;
        line-height: 1.4;
    }

    .price-value-number {
        font-size: 0.98rem;
    }

    .product-category-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .product-action-badge {
        display: none;
    }

    /* Support & Privacy Mobile */
    .support-main-title {
        font-size: 1.95rem;
    }

    .support-faq-section {
        padding: 1.75rem 1.25rem;
    }

    .privacy-content-card {
        padding: 2rem 1.25rem;
    }

    .privacy-title {
        font-size: 1.65rem;
    }

    /* App Download Mobile */
    .app-download-card {
        padding: 1.75rem 1.25rem;
        border-radius: var(--radius-lg);
    }

    .app-promo-title {
        font-size: 1.45rem;
    }

    .app-promo-desc {
        font-size: 0.88rem;
    }

    .app-download-buttons-side {
        flex-direction: column;
    }

    .store-app-btn {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 400px) {
    .appbar-brand {
        max-width: calc(100% - 145px);
    }
    .brand-title {
        font-size: 0.86rem;
    }
    .appbar-cta-btn {
        padding: 0.32rem 0.55rem;
        font-size: 0.68rem;
    }
}

/* ==========================================================================
   Input Focus Optimization (Prevent iOS/Mobile Auto-Zoom & Layout Distortion)
   ========================================================================== */
input,
select,
textarea {
    font-size: 16px !important;
    box-sizing: border-box;
    max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.15) !important;
}

