@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;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

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;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

.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;
    }

    /* Floating Order Bar on Mobile */
    .floating-order-bar {
        bottom: 1rem;
        width: calc(100% - 1.5rem);
        padding: 0.6rem 0.9rem;
    }

    .floating-open-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }

    .order-drawer {
        width: 100%;
    }
}

/* ==========================================================================
   6. Restaurant Web Order System Styles (rest/local)
   ========================================================================== */

/* Add to Order Button */
.btn-add-to-order {
    margin-top: 0.5rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 37, 99, 235), 0.22);
    transition: var(--transition-smooth);
    user-select: none;
    line-height: 1.2;
}

.btn-add-to-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-add-to-order:active {
    transform: translateY(0);
}

.btn-add-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .btn-add-to-order {
        margin-top: 0.35rem;
        padding: 0.32rem 0.45rem;
        font-size: 0.72rem;
        gap: 0.25rem;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(var(--primary-rgb, 37, 99, 235), 0.18);
    }

    .btn-add-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 420px) {
    .btn-add-to-order {
        padding: 0.28rem 0.35rem;
        font-size: 0.67rem;
        gap: 0.2rem;
    }

    .btn-add-icon {
        width: 11px;
        height: 11px;
    }
}

/* Compact & Mobile-Friendly Floating Order Bar */
.floating-order-bar {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: calc(100% - 1.5rem);
    max-width: 440px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--primary-rgb, 37, 99, 235), 0.25);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.floating-order-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.floating-order-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.floating-cart-icon-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 37, 99, 235), 0.4);
    flex-shrink: 0;
}

.floating-cart-icon-wrap i {
    width: 17px;
    height: 17px;
}

.floating-cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0f172a;
    padding: 0 2px;
}

.floating-text-wrap {
    display: flex;
    flex-direction: column;
}

.floating-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.1;
}

.floating-total-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.floating-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.45);
}

.floating-open-btn i {
    width: 14px;
    height: 14px;
}

/* Product Variant Selection Modal */
.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    animation: fadeIn 0.25s ease;
}

#product-variant-backdrop {
    z-index: 2010;
}

.product-variant-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 2020;
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.variant-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.variant-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.variant-header-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.variant-header-icon-wrap i {
    width: 20px;
    height: 20px;
}

.variant-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.variant-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.variant-modal-close-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.variant-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.variant-modal-close-btn i {
    width: 18px;
    height: 18px;
}

.variant-modal-body {
    padding: 1.25rem 1.5rem;
    max-height: 55vh;
    overflow-y: auto;
}

.variant-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variant-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--surface);
    transition: var(--transition-smooth);
}

.variant-option-card input {
    display: none;
}

.variant-option-card:hover {
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.4);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.02);
}

.variant-option-card.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.06);
}

.variant-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.variant-item-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

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

.variant-option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition-smooth);
}

.variant-option-check i {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

.variant-option-card.active .variant-option-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.variant-modal-footer {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

.btn-confirm-variant {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
    transition: var(--transition-smooth);
}

.btn-confirm-variant:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb, 37, 99, 235), 0.45);
}

.btn-confirm-variant i {
    width: 18px;
    height: 18px;
}

.floating-open-btn i {
    width: 16px;
    height: 16px;
}

/* Order Drawer & Backdrop */
.order-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.order-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.order-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: var(--surface);
    z-index: 1200;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.order-drawer.is-open {
    transform: translateX(0);
}

.order-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-glass);
}

.drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.drawer-header-icon {
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.drawer-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text);
}

.drawer-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.drawer-close-btn i {
    width: 18px;
    height: 18px;
}

.order-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.85rem;
}

.drawer-section-title i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Items in Drawer */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: var(--transition-smooth);
}

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

.order-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-thumb i {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

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

.order-item-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

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

.order-item-qty-controls {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary);
}

.qty-display {
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-remove-item:hover {
    color: #ef4444;
}

.btn-remove-item i {
    width: 16px;
    height: 16px;
}

.order-empty-cart-msg {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-cart-icon {
    width: 54px;
    height: 54px;
    color: #94a3b8;
    margin-bottom: 1rem;
}/* ==========================================================================
   Input Focus Optimization (Prevent iOS/Mobile Auto-Zoom & Layout Distortion)
   ========================================================================== */
input,
select,
textarea,
button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

input,
select,
textarea {
    font-size: 16px !important; /* Critical for iOS/Android to prevent zoom distortion */
    box-sizing: border-box !important;
    max-width: 100% !important;
    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;
}

/* ==========================================================================
   Checkout Page Styles
   ========================================================================== */
.checkout-page-container {
    padding: 1.5rem 0 4rem;
    min-height: 80vh;
    background: #f8fafc;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-back-to-menu {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.45rem 0.95rem;
    background: #ffffff;
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.18);
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.btn-back-to-menu:hover {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    transform: translateY(-1px);
}

.btn-back-to-menu i {
    width: 16px;
    height: 16px;
}

.checkout-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkout-main-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.checkout-header-badge {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.checkout-grid-layout {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .checkout-grid-layout {
        grid-template-columns: 100%;
        gap: 1rem;
    }
}

.checkout-form-column,
.checkout-summary-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.checkout-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.header-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon-box i,
.header-icon-box .header-icon {
    width: 16px;
    height: 16px;
}

.header-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-card-header .card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.1rem 0;
}

.checkout-card-header .card-subtitle {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0;
    white-space: normal;
}

/* Order Type Selection Cards (صالة / سفري) */
.order-type-selection-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.order-type-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fafc;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.order-type-card input {
    display: none;
}

.type-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.type-card-icon i {
    width: 16px;
    height: 16px;
}

.type-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.type-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-desc {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-card-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.type-card-check i {
    width: 11px;
    height: 11px;
    stroke-width: 3;
}

.order-type-card.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.04);
    box-shadow: 0 0 0 1px var(--primary), 0 3px 10px rgba(var(--primary-rgb, 37, 99, 235), 0.1);
}

.order-type-card.active .type-card-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.order-type-card.active .type-title {
    color: var(--primary);
}

.order-type-card.active .type-card-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Form Controls */
.form-row-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 575px) {
    .form-row-grid-2 {
        grid-template-columns: 100%;
        gap: 0.65rem;
    }
}

.checkout-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.checkout-input-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.checkout-input-group label i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.checkout-input-group label .required {
    color: #ef4444;
}

.checkout-form-input,
.checkout-form-select,
.checkout-form-textarea {
    width: 100%;
    max-width: 100% !important;
    padding: 0.62rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px !important;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.checkout-form-input:focus,
.checkout-form-select:focus,
.checkout-form-textarea:focus {
    background: #ffffff;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 37, 99, 235), 0.12) !important;
    outline: none;
}

.checkout-form-textarea {
    resize: vertical;
    min-height: 70px;
}

.checkout-error-alert {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.checkout-error-alert i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Checkout Summary Column */
.checkout-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 5.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #0f172a;
}

.summary-title-wrap i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.summary-title-wrap h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.summary-count-badge {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.summary-items-list {
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding-left: 0.15rem;
    width: 100%;
    box-sizing: border-box;
}

.summary-item-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #f8fafc;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.summary-item-img-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-item-img-wrap i {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

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

.summary-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.1rem 0;
}

.summary-item-price {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
}

.summary-item-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.1rem 0.25rem;
    flex-shrink: 0;
}

.btn-summary-qty {
    background: none;
    border: none;
    width: 16px;
    height: 16px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    line-height: 1;
}

.btn-summary-qty:hover {
    background: rgba(0, 0, 0, 0.06);
}

.summary-qty-num {
    font-size: 0.76rem;
    font-weight: 800;
    min-width: 14px;
    text-align: center;
    color: #0f172a;
}

.btn-summary-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-summary-remove:hover {
    background: #fef2f2;
}

.btn-summary-remove i {
    width: 14px;
    height: 14px;
}

.summary-empty-msg {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #64748b;
}

.summary-empty-msg i {
    width: 38px;
    height: 38px;
    margin-bottom: 0.5rem;
    opacity: 0.45;
}

.btn-return-menu {
    display: inline-block;
    margin-top: 0.75rem;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.summary-pricing-breakdown {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.85rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
}

.pricing-row.total-row {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 0.45rem;
    margin-bottom: 1rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.65rem;
}

.pricing-row.total-row strong,
.pricing-row.total-row .pricing-value {
    color: var(--primary);
    font-size: 1.25rem;
}

.btn-checkout-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.3);
    transition: var(--transition-smooth);
    user-select: none;
    touch-action: manipulation;
}

.btn-checkout-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 37, 99, 235), 0.4);
}

.btn-checkout-submit:active {
    transform: translateY(0);
}

.btn-checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-icon {
    width: 17px;
    height: 17px;
}

.btn-spinner {
    width: 15px;
    height: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

    .checkout-page-container {
        padding: 0.85rem 0 3.5rem;
    }

    .checkout-nav-bar {
        margin-bottom: 0.85rem;
    }

    .checkout-main-title {
        font-size: 1.1rem;
    }

    .checkout-section-card {
        padding: 0.9rem 0.8rem;
        border-radius: 14px;
        margin-bottom: 0.75rem;
    }

    .checkout-card-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.55rem;
    }

    .header-icon-box {
        width: 28px;
        height: 28px;
        border-radius: 7px;
    }

    .header-icon-box i {
        width: 15px;
        height: 15px;
    }

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

    .checkout-card-header .card-subtitle {
        font-size: 0.7rem;
    }

    .order-type-selection-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .order-type-card {
        padding: 0.55rem 0.5rem;
        border-radius: 9px;
        gap: 0.35rem;
    }

    .type-card-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }

    .type-card-icon i {
        width: 14px;
        height: 14px;
    }

    .type-title {
        font-size: 0.78rem;
    }

    .type-desc {
        font-size: 0.62rem;
    }

    .type-card-check {
        width: 15px;
        height: 15px;
    }

    .type-card-check i {
        width: 9px;
        height: 9px;
    }

    .checkout-form-input,
    .checkout-form-select,
    .checkout-form-textarea {
        padding: 0.55rem 0.7rem;
        border-radius: 8px;
    }

    .checkout-summary-card {
        padding: 0.9rem 0.8rem;
        border-radius: 14px;
        position: static;
        margin-top: 0.15rem;
    }

    .btn-checkout-submit {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

/* ==========================================================================
   Order Receipt Page Styles
   ========================================================================== */
.receipt-page-container {
    padding: 3rem 0 5rem;
    min-height: 80vh;
}

.receipt-card-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    text-align: center;
}

@media (max-width: 575px) {
    .receipt-card-wrapper {
        padding: 1.5rem;
    }
}

.receipt-success-badge {
    color: #10b981;
    margin-bottom: 1rem;
    display: inline-flex;
    animation: scaleUp 0.5s ease-out;
}

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

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

.receipt-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.receipt-details-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    text-align: right;
}

.receipt-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

@media (max-width: 575px) {
    .receipt-meta-grid {
        grid-template-columns: 1fr;
    }
}

.receipt-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.receipt-meta-item.full-width-meta {
    grid-column: 1 / -1;
}

.meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.meta-val.invoice-code {
    font-size: 1.05rem;
    color: var(--primary);
    font-family: monospace;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.type-badge i {
    width: 14px;
    height: 14px;
}

.type-badge.type-dinein {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary);
}

.type-badge.type-takeaway {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.meta-val.table-code {
    color: var(--primary);
}

.meta-val.note-val {
    font-weight: 500;
    background: #ffffff;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 0.25rem;
}

.receipt-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.receipt-section-title i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.receipt-table-wrap {
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.receipt-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.receipt-items-table th {
    text-align: right;
    padding: 0.65rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border);
}

.receipt-items-table td {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

.item-qty-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 800;
}

.item-total-cell {
    color: var(--primary);
}

.receipt-grand-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px dashed var(--border);
}

.grand-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.grand-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.btn-return-home {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb, 37, 99, 235), 0.35);
    transition: var(--transition-smooth);
}

.btn-return-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb, 37, 99, 235), 0.45);
}

.btn-return-home i {
    width: 18px;
    height: 18px;
}

/* Toast Notification */
.order-toast {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0f172a;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.order-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
}

@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;
    }
}

/* =========================================================================
   Branch Selector (Simple & Clean)
   ========================================================================= */
.branch-simple-container {
    margin: 0.65rem 0 0.4rem;
    display: flex;
    justify-content: flex-start;
}

.branch-simple-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 0.55rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    min-width: 160px;
    height: 36px;
}

.branch-simple-box:hover,
.branch-simple-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 37, 99, 235), 0.15);
}

.branch-simple-icon {
    width: 15px;
    height: 15px;
    color: var(--primary);
    margin-inline-end: 0.35rem;
    flex-shrink: 0;
}

.branch-simple-select {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    padding: 0.35rem 1.4rem 0.35rem 0.2rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
}

.branch-simple-chevron {
    position: absolute;
    left: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.branch-simple-box:focus-within .branch-simple-chevron {
    color: var(--primary);
    transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 480px) {
    .branch-simple-container {
        margin: 0.5rem 0 0.25rem;
    }
    .branch-simple-box {
        width: 100%;
    }
}

/* =========================================================================
   SubGroup Card in Products Grid
   ========================================================================= */
.subgroup-card {
    border: 1.5px solid rgba(var(--primary-rgb, 37, 99, 235), 0.22);
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--primary-rgb, 37, 99, 235), 0.02) 100%);
}

.subgroup-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb, 37, 99, 235), 0.16);
}

.subgroup-count-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subgroup-count-badge i {
    width: 12px;
    height: 12px;
}

.subgroup-fallback-wrap {
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.12);
    border: 1.5px dashed var(--primary);
}

.subgroup-fallback-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.subgroup-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.subgroup-badge-tag i {
    width: 13px;
    height: 13px;
}

.btn-view-subgroup {
    margin-top: 0.5rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 37, 99, 235), 0.22);
    transition: var(--transition-smooth);
    user-select: none;
    line-height: 1.2;
}

.btn-view-subgroup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(var(--primary-rgb, 37, 99, 235), 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-view-subgroup:active {
    transform: translateY(0);
}

.btn-subgroup-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 680px) {
    .btn-view-subgroup {
        margin-top: 0.35rem;
        padding: 0.32rem 0.45rem;
        font-size: 0.72rem;
        gap: 0.25rem;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(var(--primary-rgb, 37, 99, 235), 0.18);
    }

    .btn-subgroup-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 420px) {
    .btn-view-subgroup {
        padding: 0.28rem 0.35rem;
        font-size: 0.67rem;
        gap: 0.2rem;
    }

    .btn-subgroup-icon {
        width: 11px;
        height: 11px;
    }
}

/* =========================================================================
   SubGroup Dialog Modal
   ========================================================================= */
#subgroup-modal-backdrop {
    z-index: 2000;
}

.subgroup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
    max-width: 680px;
    max-height: 88vh;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 2005;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subgroup-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 37, 99, 235), 0.05) 0%, var(--surface) 100%);
    flex-shrink: 0;
}

.subgroup-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.subgroup-header-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subgroup-header-icon-wrap i {
    width: 22px;
    height: 22px;
}

.subgroup-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.subgroup-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.subgroup-modal-close-btn {
    background: none;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.subgroup-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text);
}

.subgroup-modal-close-btn i {
    width: 20px;
    height: 20px;
}

.subgroup-modal-body {
    padding: 1.15rem 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(85vh - 130px);
    flex-grow: 1;
}

.subgroup-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .subgroup-products-grid {
        grid-template-columns: 1fr;
    }
}

.subgroup-item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    transition: var(--transition-smooth);
}

.subgroup-item-card:hover {
    border-color: rgba(var(--primary-rgb, 37, 99, 235), 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subgroup-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subgroup-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subgroup-item-no-img {
    color: var(--primary);
    opacity: 0.6;
}

.subgroup-item-no-img i {
    width: 24px;
    height: 24px;
}

.subgroup-item-details {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.subgroup-item-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subgroup-item-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subgroup-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.subgroup-item-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.subgroup-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.subgroup-item-currency {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-subgroup-add-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.08);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb, 37, 99, 235), 0.25);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.75rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-subgroup-add-item:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb, 37, 99, 235), 0.3);
}

.btn-subgroup-add-item i {
    width: 14px;
    height: 14px;
}

.subgroup-modal-footer {
    padding: 0.9rem 1.4rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    background: var(--surface);
    flex-shrink: 0;
}

.btn-subgroup-done {
    background: #f1f5f9;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-subgroup-done:hover {
    background: #e2e8f0;
    color: #0f172a;
}