/* ==========================================================================
   SHIRYAKH BOUTIQUE - DEDICATED ORDER PORTAL STYLESHEET
   ========================================================================== */

:root {
    --bg-sand: #FAF7F2;
    --bg-card: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --gold: #E09F3E;
    --gold-hover: #C68528;
    --pistachio-dark: #1E3A2B;
    --border: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px -10px rgba(224, 159, 62, 0.15);
    --radius-lg: 24px;
    --radius-sm: 12px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --transition: all 0.3s ease;
    --container-max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.portal-body {
    background-color: var(--bg-sand);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    padding-bottom: 3rem;
}

/* NAVBAR */
.navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 1rem;
}

.navbar {
    max-width: var(--container-max);
    margin: 0 auto;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.brand-logo {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}
.brand-logo span span { color: var(--gold); }

.portal-badge-pill {
    background: rgba(224, 159, 62, 0.12);
    color: var(--gold-hover);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch { display: flex; gap: 0.3rem; font-size: 0.8rem; color: var(--text-muted); }
.lang-switch a { text-decoration: none; color: var(--text-muted); padding: 0.1rem 0.3rem; }
.lang-switch a.active { color: var(--gold); font-weight: 700; }

.btn-nav {
    background: var(--pistachio-dark);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-nav:hover { background: var(--gold); }

/* MAIN CONTENT */
.portal-container {
    max-width: var(--container-max);
    margin: 2rem auto 0 auto;
    padding: 0 1.2rem;
}

.portal-title-block { text-align: center; margin-bottom: 2.5rem; }
.portal-title-block h1 { font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 0.4rem; }
.portal-title-block p { color: var(--text-muted); font-size: 1rem; }

.alert-success-box {
    background: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* MENU GRID */
.flavor-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.flavor-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.flavor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.card-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
[dir="rtl"] .card-badge { right: auto; left: 0.8rem; }

.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-header-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.2rem; }
.card-header-row h3 { font-size: 1.1rem; font-weight: 700; }
.price { color: var(--gold); font-weight: 700; font-size: 1rem; }
.subtitle { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.8rem; display: block; }
.card-body p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1.2rem; flex-grow: 1; }

.qty-control-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.qty-label { font-size: 0.85rem; font-weight: 600; }
.qty-btn-group { display: flex; align-items: center; gap: 0.3rem; }

.btn-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-sand);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-qty:hover { background: var(--pistachio-dark); color: white; }

.qty-input {
    width: 45px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.2rem;
    font-weight: 600;
}

/* CHECKOUT PANEL */
.portal-checkout-panel { margin-top: 2rem; }
.order-box {
    background: var(--pistachio-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.order-info h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.cart-items-preview { min-height: 60px; color: #A7F3D0; font-size: 0.9rem; }
.cart-item-line { display: flex; justify-content: space-between; padding: 0.3rem 0; border-bottom: 1px dashed rgba(255,255,255,0.15); }

.order-summary { display: flex; flex-direction: column; justify-content: space-between; }
.form-control-custom {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    margin-bottom: 1rem;
}
.form-control-custom::placeholder { color: #A7F3D0; }

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-submit-order {
    width: 100%;
    background: var(--gold);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-submit-order:hover:not(:disabled) { background: var(--gold-hover); }
.btn-submit-order:disabled { background: #475569; opacity: 0.6; cursor: not-allowed; }

@media (max-width: 768px) {
    .order-box { grid-template-columns: 1fr; }
    .portal-badge-pill { display: none; }
}

[dir="rtl"] { text-align: right; }
[dir="rtl"] .portal-title-block { text-align: center; }
