/* ═══════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════ */
:root {
    --primary: #006233;
    --primary-dark: #004d27;
    --primary-light: #e6f2ec;
    --accent: #C1272D;
    --accent-light: #fce9ea;
    --purple: #8B5CF6;
    --purple-dark: #7c3aed;
    --purple-light: #ede9fe;
    
    --bg: #f6f7fb;
    --card-bg: #ffffff;
    --border: #e4e8f0;
    --border-dark: #d1d8e5;
    
    --text: #16202e;
    --text-muted: #6b7688;
    --text-light: #a3acbb;
    
    --shadow-sm: 0 1px 3px rgba(16,24,40,.05);
    --shadow-md: 0 4px 14px rgba(16,24,40,.08);
    --shadow-lg: 0 12px 40px rgba(16,24,40,.12);
    --shadow-xl: 0 25px 80px rgba(16,24,40,.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 100px; /* مساحة للشريط السفلي */
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
    font-size: 1.15rem;
}

.brand i {
    color: var(--primary);
    font-size: 1.3rem;
}

.brand-accent {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* مبدل اللغة */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--bg);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(0, 98, 51, 0.08);
}

.lang-btn.active {
    background: var(--primary);
    transform: scale(1.05);
}

/* زر السلة */
.cart-btn {
    position: relative;
    background: var(--primary);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(0, 98, 51, 0.3);
}

.cart-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 98, 51, 0.4);
}

.cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

.cart-btn.pulse {
    animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    padding: 90px 20px 40px;
    background: linear-gradient(135deg, #f8fdf9 0%, #e6f2ec 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,98,51,.08), transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #0f8a4b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(.9rem, 3vw, 1.05rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 560px;
    margin-inline: auto;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hero-feature i {
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIES NAV (شريط البطاقات)
   ═══════════════════════════════════════════════════════════ */
.categories-nav-wrapper {
    position: sticky;
    top: 60px;
    z-index: 900;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.categories-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    min-width: max-content;
}

.cat-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}

.cat-nav-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-nav-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 98, 51, 0.3);
}

.cat-emoji {
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════ */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8fdf9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.category-header-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.category-header-info h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.category-header-info p {
    font-size: .78rem;
    color: var(--text-muted);
}

.category-header-info p span {
    font-weight: 800;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   ACCORDION
   ═══════════════════════════════════════════════════════════ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.open {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 98, 51, 0.2);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: start;
    color: var(--text);
    transition: var(--transition);
}

.accordion-trigger:hover {
    background: var(--bg);
}

.accordion-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.accordion-title {
    flex: 1;
    font-size: .95rem;
    font-weight: 800;
}

.accordion-count {
    background: var(--primary-light);
    color: var(--primary);
    font-size: .68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 28px;
    text-align: center;
}

.accordion-arrow {
    font-size: .75rem;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner {
    padding: 8px 14px 16px;
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   MAP ITEM
   ═══════════════════════════════════════════════════════════ */
.map-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.map-item:last-child {
    margin-bottom: 0;
}

.map-item:hover {
    border-color: var(--primary);
    background: #fafdfb;
}

.map-item.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0fdf5, #fff);
    box-shadow: 0 2px 10px rgba(0, 98, 51, 0.1);
}

.map-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.map-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    background: #fff;
}

.map-check-box i {
    font-size: .7rem;
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.map-item.selected .map-check-box {
    background: var(--primary);
    border-color: var(--primary);
}

.map-item.selected .map-check-box i {
    opacity: 1;
}

.map-name {
    flex: 1;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
}

.map-price {
    font-size: .85rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
    margin-inline-end: 8px;
}

/* ═══════════════════════════════════════════════════════════
   MAP OPTIONS (الكمية + التعليق) — تظهر عند الاختيار
   ═══════════════════════════════════════════════════════════ */
.map-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 4px;
}

.map-item.selected ~ .map-options {
    max-height: 300px;
    margin-bottom: 10px;
}

.map-options-inner {
    padding: 12px 14px;
    background: #f8fdf9;
    border: 1px dashed rgba(0, 98, 51, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.option-row label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* عداد الكمية */
.qty-control {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 900;
    color: var(--primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-btn:active {
    transform: scale(.92);
}

.qty-value {
    width: 40px;
    text-align: center;
    font-size: .9rem;
    font-weight: 900;
    color: var(--text);
    border: none;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: inherit;
}

.qty-value::-webkit-inner-spin-button,
.qty-value::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* حقل التعليق */
.comment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .82rem;
    color: var(--text);
    background: #fff;
    resize: none;
    min-height: 60px;
    transition: var(--transition);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.comment-input::placeholder {
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════
   ADD CUSTOM MAP BUTTON
   ═══════════════════════════════════════════════════════════ */
.add-custom-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #fff, #f8fdf9);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-top: 8px;
}

.add-custom-btn:hover {
    background: var(--primary-light);
    border-style: solid;
    transform: translateY(-1px);
}

.add-custom-btn i {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   CUSTOM MAP FORM
   ═══════════════════════════════════════════════════════════ */
.custom-map-form {
    margin-top: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
    border-radius: var(--radius-md);
    display: none;
    flex-direction: column;
    gap: 10px;
}

.custom-map-form.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-map-form h4 {
    font-size: .85rem;
    font-weight: 900;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-family: inherit;
    font-size: .82rem;
    background: #fff;
    color: var(--text);
    transition: var(--transition);
}

.custom-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.custom-form-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.btn-sm-primary {
    background: #0ea5e9;
    color: #fff;
}

.btn-sm-primary:hover {
    background: #0284c7;
}

.btn-sm-secondary {
    background: #fff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.btn-sm-secondary:hover {
    background: #f0f9ff;
}

/* ═══════════════════════════════════════════════════════════
   STICKY BOTTOM BAR
   ═══════════════════════════════════════════════════════════ */
.sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.08);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.sticky-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.sticky-count strong {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

.sticky-count span {
    font-size: .62rem;
    color: var(--text-muted);
    font-weight: 600;
}

.sticky-total {
    display: flex;
    align-items: center;
}

.sticky-total strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--accent);
}

.sticky-btn {
    background: linear-gradient(135deg, var(--primary), #0f8a4b);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: .85rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(0, 98, 51, 0.3);
    white-space: nowrap;
}

.sticky-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 98, 51, 0.4);
}

.sticky-btn:disabled {
    background: var(--border-dark);
    cursor: not-allowed;
    box-shadow: none;
    opacity: .6;
}

/* ═══════════════════════════════════════════════════════════
   MODAL (نموذج الفاتورة)
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fdf9, #e6f2ec);
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-close {
    background: #fff;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-title {
    font-size: .92rem;
    font-weight: 900;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.form-title i {
    color: var(--primary);
    font-size: .9rem;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group .required {
    color: var(--accent);
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .88rem;
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 51, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

/* ملخص الطلب */
.summary-list {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 12px;
    max-height: 260px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    background: #fff;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.summary-item-name {
    font-size: .82rem;
    font-weight: 800;
    color: var(--text);
    flex: 1;
}

.summary-item-price {
    font-size: .85rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.summary-item-meta {
    font-size: .7rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.summary-item-comment {
    font-size: .72rem;
    color: var(--purple-dark);
    background: var(--purple-light);
    padding: 6px 8px;
    border-radius: 6px;
    margin-top: 4px;
    line-height: 1.5;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.summary-total span {
    font-size: .88rem;
    font-weight: 800;
    color: var(--text);
}

.summary-total strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: #fafbfd;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: none;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: #fff;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    flex: 0.6;
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 100px;
    inset-inline-start: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 700;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    max-width: 90vw;
    white-space: nowrap;
}

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

.toast.success {
    background: linear-gradient(135deg, var(--primary), #0f8a4b);
}

.toast.error {
    background: linear-gradient(135deg, var(--accent), #991b1b);
}

.toast i {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .hero {
        padding: 80px 16px 30px;
    }

    .hero-features {
        gap: 10px;
    }

    .hero-feature {
        font-size: .72rem;
        padding: 5px 10px;
    }

    .category-header {
        padding: 16px;
    }

    .category-header-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .category-header-info h2 {
        font-size: 1rem;
    }

    .accordion-trigger {
        padding: 14px 14px;
        gap: 8px;
    }

    .accordion-icon {
        font-size: 1.1rem;
        width: 24px;
    }

    .accordion-title {
        font-size: .85rem;
    }

    .accordion-inner {
        padding: 6px 10px 12px;
    }

    .map-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .map-name {
        font-size: .82rem;
    }

    .map-price {
        font-size: .78rem;
    }

    .map-check-box {
        width: 20px;
        height: 20px;
    }

    .sticky-bar {
        padding: 10px 14px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
    }

    .sticky-btn {
        padding: 10px 16px;
        font-size: .78rem;
    }

    .sticky-count strong {
        font-size: 1.05rem;
    }

    .sticky-total strong {
        font-size: 1rem;
    }

    .modal-box {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .btn-primary, .btn-secondary {
        font-size: .82rem;
        padding: 11px 14px;
    }

    .summary-total strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .map-name {
        font-size: .75rem;
    }

    .map-price {
        font-size: .72rem;
    }

    .sticky-count span {
        font-size: .55rem;
    }

    .lang-btn {
        font-size: .85rem;
        padding: 4px 6px;
    }

    .brand {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════
   HIDE STICKY BAR WHEN NO SELECTION
   ═══════════════════════════════════════════════════════════ */
.sticky-bar:not(.visible) {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}