/* =========================================================
   Font Face: Estedad
========================================================= */

@font-face {
    font-family: 'Estedad';
    src:
        url('../fonts/Estedad-Medium.woff2') format('woff2'),
        url('../fonts/Estedad-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Estedad';
    src:
        url('../fonts/Estedad-Bold.woff2') format('woff2'),
        url('../fonts/Estedad-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   Variables (Manli Light Theme: Red, Green, Mustard & White)
========================================================= */

:root {
    --maneli-green: #19633B;
    --maneli-green-hover: #134E2E;
    --maneli-red: #E30613;
    --maneli-red-hover: #B8040F;
    --maneli-mustard: #D99427;
    
    --bg-main: #FAF9F5;
    --card-bg: #FFFFFF;
    --border-card: #D6A24A;
    --border-light: #E8E5DE;
    
    --text-primary: #202622;
    --text-secondary: #68716C;
    
    --accent-color: var(--maneli-red);
    --secondary-color: var(--maneli-green);
}

/* =========================================================
   Base
========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Estedad', Tahoma, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.menu-dark {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body.drawer-is-open {
    overflow: hidden;
}

body,
button,
input,
select,
textarea {
    font-family: 'Estedad', Tahoma, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

.menu-header-nav {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px !important;
    background: #FFFEFB !important;
    border: 1.5px solid rgba(217, 148, 39, 0.42) !important;
    border-radius: 18px !important;
    margin-top: 15px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 15px rgba(217, 148, 39, 0.08) !important;
    overflow: visible;
}

.back-btn {
    color: var(--maneli-green, #19633B) !important;
    font-weight: 800 !important;
    font-size: 14.5px !important;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #FFFFFF !important;
    border: 1.5px solid rgba(217, 148, 39, 0.42) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.back-btn:hover {
    background: #EAF4EE !important;
    border-color: var(--maneli-green, #19633B) !important;
    color: var(--maneli-green, #19633B) !important;
    transform: translateX(3px) !important;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: visible;
}

.action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #FFFFFF !important;
    border: 1.5px solid var(--maneli-green, #19633B) !important;
    border-radius: 50% !important;
    color: var(--maneli-green, #19633B) !important;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(25, 99, 59, 0.1) !important;
}

.action-btn:hover {
    background: var(--maneli-green, #19633B) !important;
    transform: scale(1.06) !important;
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.action-icon,
.notes-trigger-btn img {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: invert(28%) sepia(85%) saturate(1005%) hue-rotate(119deg) brightness(96%) contrast(93%) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.action-btn:hover .action-icon,
.action-btn:hover img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) !important;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: var(--maneli-red, #E30613) !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    border: 2px solid #ffffff;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* =========================================================
   Language Dropdown
========================================================= */

.lang-switch-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 10000;
    display: block;
    min-width: 155px;
    padding: 6px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.lang-switch-container.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s, color 0.2s;
}

.lang-dropdown a:hover,
.lang-dropdown a:focus-visible,
.lang-dropdown a.active {
    background: #EAF4EE;
    color: var(--maneli-green);
}

.lang-dropdown a:focus-visible {
    outline: none;
}

.lang-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
    pointer-events: none;
}

html[dir="rtl"] .lang-dropdown a {
    text-align: right;
}

html[dir="ltr"] .lang-dropdown a {
    text-align: left;
}

/* =========================================================
   Topbar
========================================================= */

.topbar h1 {
    margin-top: 0;
    color: var(--text-primary);
}

/* =========================================================
   Main Layout
========================================================= */

.menu-layout-wrapper {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    align-items: flex-start;
    overflow: visible !important;
}

html[dir="rtl"] .menu-layout-wrapper {
    flex-direction: row;
}

html[dir="ltr"] .menu-layout-wrapper {
    flex-direction: row-reverse;
}

/* =========================================================
   Sidebar Categories
========================================================= */

.category-sidebar {
    position: relative;
    width: 105px;
    min-width: 105px;
    flex: 0 0 105px;
    align-self: flex-start;
    overflow: visible;
}

.sidebar-sticky {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    overscroll-behavior: contain;
    z-index: 200;
    padding: 15px 5px;
    background: #FFFFFF !important;
    border: 1.5px solid rgba(217, 148, 39, 0.42) !important;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.sidebar-sticky.is-pinned {
    position: fixed !important;
    top: 16px !important;
    margin: 0 !important;
    max-height: calc(100vh - 32px);
    z-index: 500;
}

.sidebar-sticky.is-at-bottom {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: auto !important;
}

.sidebar-sticky::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-sticky h3 {
    display: none;
}

.category-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-links li {
    width: 100%;
}

.category-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    transition: transform 0.2s;
}

.category-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    padding: 6px;
    overflow: hidden;
    background: #FFFEFB !important;
    border: 1.5px solid #D8DFD8 !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease-in-out !important;
}

.category-name {
    display: block;
    max-width: 90px;
    overflow: hidden;
    color: #4A5568 !important;
    font-size: 12px;
    font-weight: 600 !important;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 4px;
}

.category-item-link:hover .category-icon-wrapper {
    border-color: var(--maneli-green, #19633B) !important;
    background: #EAF4EE !important;
    transform: translateY(-2px);
}

.category-item-link:hover .category-name {
    color: var(--maneli-green, #19633B) !important;
}

.category-item-link.active .category-icon-wrapper {
    border: 2.5px solid var(--maneli-green, #19633B) !important;
    background: #EAF4EE !important;
    box-shadow: 0 0 0 3px rgba(25, 99, 59, 0.2), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    transform: scale(1.06) !important;
}

.category-item-link.active .category-name {
    color: var(--maneli-green, #19633B) !important;
    font-weight: 800 !important;
}

.category-icon-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
   Main Content
========================================================= */

.menu-main-content {
    flex-grow: 1;
    min-width: 0;
}

.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 24px;
}

.category-title {
    margin-bottom: 20px;
    padding-bottom: 8px;
    color: var(--maneli-mustard, #D99427) !important;
    font-size: 20px;
    font-weight: 800;
    border-bottom: 2px solid var(--maneli-mustard, #D99427) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: var(--maneli-green, #19633B) !important;
    border-radius: 4px;
}

/* =========================================================
   Products Grid
========================================================= */

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

/* =========================================================
   Product Card
========================================================= */

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card-bg);
    border: 1.5px solid rgba(217, 148, 39, 0.42) !important;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(25, 99, 59, 0.05) !important;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: var(--maneli-mustard, #D99427) !important;
    box-shadow: 0 8px 20px rgba(217, 148, 39, 0.15) !important;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #F5F3EE;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    padding: 14px;
}

.product-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.product-desc {
    height: 3em;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.product-price-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--maneli-green, #19633B) !important;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.price-amount {
    font-size: 1.15rem;
}

.currency {
    font-size: 0.8rem;
    font-weight: normal;
    color: var(--text-secondary);
}

.add-to-notes-btn {
    width: 100%;
    padding: 9px 14px;
    background: var(--maneli-red, #E30613) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(227, 6, 19, 0.25) !important;
}

.add-to-notes-btn:hover {
    background: var(--maneli-red-hover, #B8040F) !important;
}

.add-to-notes-btn:active {
    transform: scale(0.96);
}

/* =========================================================
   Inline Card Counter (+ 1 -)
========================================================= */

.card-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FFFEFB;
    border: 1.5px solid var(--maneli-green, #19633B);
    border-radius: 10px;
    padding: 3px 6px;
    box-shadow: 0 2px 6px rgba(25, 99, 59, 0.08);
}

.card-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--maneli-green, #19633B);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    touch-action: manipulation;
}

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

.card-qty-btn.minus-btn {
    background: #E2E8F0;
    color: #28312C;
}

.card-qty-btn.minus-btn:hover {
    background: var(--maneli-red, #E30613);
    color: #ffffff;
}

.card-qty-val {
    font-size: 15px;
    font-weight: 800;
    color: #1A2421;
    min-width: 24px;
    text-align: center;
}

/* =========================================================
   Badge Pulse Animation
========================================================= */

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.badge-pulse {
    animation: badgePulse 0.35s ease-in-out !important;
}

/* =========================================================
   Floating Sticky Bottom Bar
========================================================= */

.floating-cart-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 600px;
    z-index: 999;
    background: var(--maneli-green, #19633B);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 25px rgba(25, 99, 59, 0.35);
    animation: slideUpFloating 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.floating-cart-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.floating-cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-cart-badge {
    background: var(--maneli-red, #E30613);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    border: 2px solid #ffffff;
}

.floating-cart-texts {
    display: flex;
    flex-direction: column;
    text-align: right;
    color: #ffffff;
}

.floating-cart-label {
    font-size: 11px;
    opacity: 0.9;
}

.floating-cart-total {
    font-size: 15px;
    font-weight: 800;
}

.floating-cart-btn {
    background: #ffffff;
    color: var(--maneli-green, #19633B);
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.floating-cart-btn:hover {
    background: #FFFEFB;
    transform: translateX(-2px);
}

body.has-floating-bar {
    padding-bottom: 90px !important;
}

/* =========================================================
   Drawer / Cart Sidebar
========================================================= */

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
}

.drawer-overlay.is-active {
    display: block;
}

.notes-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: 340px;
    background-color: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s ease-in-out;
}

html[dir="rtl"] .notes-drawer {
    left: 0;
    transform: translateX(-100%);
}

html[dir="rtl"] .notes-drawer.is-open {
    transform: translateX(0);
}

html[dir="ltr"] .notes-drawer {
    right: 0;
    border-left: 1px solid var(--border-light);
    transform: translateX(100%);
}

html[dir="ltr"] .notes-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #FFFEFB !important;
    border-bottom: 1px solid rgba(217, 148, 39, 0.42) !important;
}

.drawer-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800 !important;
    color: #1A2421 !important;
}

.close-drawer-btn {
    padding: 0;
    background: none;
    color: #66706A !important;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close-drawer-btn:hover {
    color: var(--maneli-red, #E30613) !important;
}

.drawer-body {
    flex-grow: 1;
    padding: 16px 20px;
    overflow-y: auto;
    background-color: #FFFFFF !important;
}

.drawer-empty-message {
    padding: 40px 0;
    color: var(--text-secondary);
    text-align: center;
    font-size: 14px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 !important;
    border-bottom: 1px solid #F1F5F9 !important;
}

.drawer-item-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    background: #F5F3EE;
}

.drawer-item-details {
    flex-grow: 1;
    min-width: 0;
}

.drawer-item-title {
    margin: 0 0 4px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700 !important;
    color: #1A2421 !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.drawer-item-price {
    color: var(--maneli-green, #19633B) !important;
    font-size: 13px;
    font-weight: 800 !important;
}

.drawer-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-qty-controls .qty-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #FCFBF8 !important;
    color: #1A2421 !important;
    border: 1px solid #D8D3C9 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.2s ease !important;
}

.drawer-qty-controls .qty-btn:hover {
    background: var(--maneli-red, #E30613) !important;
    border-color: var(--maneli-red, #E30613) !important;
    color: #FFFFFF !important;
}

.drawer-qty-controls .qty-val {
    min-width: 16px;
    font-size: 14px;
    font-weight: 800 !important;
    text-align: center;
    color: #1A2421 !important;
}

.drawer-footer {
    padding: 20px;
    background: #FFFEFB !important;
    border-top: 1px solid rgba(217, 148, 39, 0.42) !important;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    color: #1A2421 !important;
}

.total-row strong {
    color: var(--maneli-green, #19633B) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.checkout-btn {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px !important;
    background: var(--maneli-red, #E30613) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.20) !important;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background: var(--maneli-red-hover, #B8040F) !important;
}

.clear-all-btn {
    width: 100%;
    padding: 10px;
    background: #F1F5F9 !important;
    color: #4E5953 !important;
    border: 1px solid #D8D3C9 !important;
    border-radius: 10px !important;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.clear-all-btn:hover {
    background: #EEEAE2 !important;
    color: #28312C !important;
}

/* =========================================================
   Checkout Modal (فرم کاملاً تک‌ستونه و تمام‌عرض)
========================================================= */

.checkout-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 99999;
}

.checkout-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFFFFF !important;
    color: #1A2421 !important;
    border-radius: 20px !important;
    border: 1.5px solid rgba(217, 148, 39, 0.42) !important;
    padding: 24px;
    direction: rtl;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E2E8F0 !important;
    padding-bottom: 12px;
}

.checkout-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800 !important;
    color: #1A2421 !important;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9 !important;
    color: #66706A !important;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.modal-close-btn:hover {
    background: #EEEAE2 !important;
    color: var(--maneli-red, #E30613) !important;
    transform: scale(1.05);
}

.checkout-stepper-item {
    font-weight: 700 !important;
    font-size: 13px !important;
    border: 1px solid #D8D3C9 !important;
    transition: all 0.2s ease !important;
}

.checkout-stepper-item.active {
    background: var(--maneli-green, #19633B) !important;
    color: #FFFFFF !important;
    border-color: var(--maneli-green, #19633B) !important;
}

.checkout-stepper-item:not(.active) {
    background: #FCFBF8 !important;
    color: #66706A !important;
}

/* ساختار تک‌ستونه فیلدهای فرم */
.checkout-modal .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

.checkout-modal .form-group {
    width: 100% !important;
    margin-bottom: 12px !important;
    display: flex !important;
    flex-direction: column !important;
}

.checkout-modal label {
    color: #1A2421 !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    text-align: right !important;
    font-size: 13.5px !important;
}

.checkout-modal .form-control,
.checkout-modal input[type="text"],
.checkout-modal input[type="tel"],
.checkout-modal textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FCFBF8 !important;
    color: #1A2421 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 12px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    text-align: right !important;
    direction: rtl !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-modal .form-control:focus,
.checkout-modal input:focus,
.checkout-modal textarea:focus {
    background: #FFFFFF !important;
    border-color: var(--maneli-green, #19633B) !important;
    box-shadow: 0 0 0 3px rgba(25, 99, 59, 0.15) !important;
}

.checkout-modal textarea {
    min-height: 85px !important;
    resize: vertical;
}

.checkout-modal .form-text {
    width: 100% !important;
    text-align: right !important;
    direction: rtl !important;
    color: #66706A !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* رادیوباتن‌های نحوه دریافت */
.checkout-modal input[type="radio"] {
    accent-color: var(--maneli-green, #19633B) !important;
    width: 17px !important;
    height: 17px !important;
    cursor: pointer !important;
}

#pickupNotice {
    background: #FFF7DC !important;
    color: #6B5200 !important;
    border: 1px solid #FDE68A !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 13.5px !important;
    line-height: 1.8 !important;
    text-align: right !important;
    margin-bottom: 16px !important;
}

.btn-location {
    background: #F0FDF4 !important;
    color: var(--maneli-green, #19633B) !important;
    border: 1.5px solid var(--maneli-green, #19633B) !important;
    border-radius: 10px !important;
    padding: 9px 14px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-location:hover {
    background: var(--maneli-green, #19633B) !important;
    color: #FFFFFF !important;
}

.checkout-actions {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.submit-order-btn,
.checkout-modal .submit-order-btn {
    width: 100%;
    padding: 13px 16px;
    border: none !important;
    border-radius: 12px !important;
    background: var(--maneli-red, #E30613) !important;
    color: #FFFFFF !important;
    font-weight: 800 !important;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-order-btn:hover,
.checkout-modal .submit-order-btn:hover {
    background: var(--maneli-red-hover, #B8040F) !important;
}

#backToCartBtn,
#backToStep1Btn {
    background: #EEEAE2 !important;
    color: #39413D !important;
    border: 1px solid #D8D3C9 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

#backToCartBtn:hover,
#backToStep1Btn:hover {
    background: #DDD8CE !important;
    color: #202622 !important;
}

body.checkout-modal-open {
    overflow: hidden;
}

/* =========================================================
   Responsive: Mobile
========================================================= */

@media (max-width: 768px) {
    .menu-header-nav {
        padding: 10px 14px !important;
        margin-top: 10px !important;
        margin-bottom: 16px !important;
        border-radius: 14px !important;
    }

    .back-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }

    .header-actions {
        gap: 12px;
    }

    .category-sidebar {
        width: 80px;
        min-width: 80px;
        flex: 0 0 80px;
    }

    .sidebar-sticky {
        max-height: calc(100vh - 20px);
        padding: 10px 4px;
    }

    .category-icon-wrapper {
        width: 54px;
        height: 54px;
        padding: 4px;
    }

    .category-name {
        max-width: 72px;
        font-size: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        flex-direction: row;
        align-items: stretch;
    }

    .product-image {
        width: 95px;
        height: auto;
        min-height: 95px;
        flex-shrink: 0;
    }

    .product-content {
        justify-content: space-between;
        gap: 6px;
        padding: 10px 12px;
    }

    .notes-drawer {
        width: 92%;
        max-width: 330px;
    }

    .floating-cart-bar {
        width: calc(100% - 24px);
        bottom: 12px;
        padding: 8px 14px;
    }

    .floating-cart-total {
        font-size: 14px;
    }

    .floating-cart-btn {
        padding: 7px 12px;
        font-size: 12.5px;
    }
}
/* =========================================================
   اصلاح چیدمان دو ستونه روش‌های پرداخت (هر خط ۲ تا با کادر)
========================================================= */

.payment-method-options {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 10px !important;
    width: 100% !important;
}

.payment-method-choice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 52px !important;
    padding: 10px 12px !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    color: #1A2421 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.payment-method-choice:hover {
    border-color: var(--maneli-green, #19633B) !important;
    background: #FCFBF8 !important;
}

/* حالت انتخاب‌شده (سبز مانلی) */
.payment-method-choice.is-selected {
    border-color: var(--maneli-green, #19633B) !important;
    background: #EAF4EE !important;
    box-shadow: 0 0 0 2px rgba(25, 99, 59, 0.15) !important;
}

.payment-method-choice input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    accent-color: var(--maneli-green, #19633B) !important;
    cursor: pointer !important;
}

.payment-method-choice-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 100% !important;
}

.payment-method-choice-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1A2421 !important;
    line-height: 1.4 !important;
}

/* بج درصد تخفیف روی روش پرداخت */
.payment-method-discount-chip {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    background: #FEF3C7 !important;
    color: #B45309 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    border: 1px solid #FDE68A !important;
}

/* در گوشی‌های باریک برای خوانایی تک‌ستونه شود */
@media (max-width: 480px) {
    .payment-method-options {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   کادربندی و استایل باکس‌های فاکتور و اقلام در مرحله ۲
========================================================= */

.invoice-address-box,
.invoice-items-box,
.invoice-summary-box {
    background: #FCFBF8 !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 6px 0 !important;
    font-size: 13.5px !important;
    color: #4E5953 !important;
}

.summary-row.final-row {
    border-top: 1.5px dashed #D8D3C9 !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #1A2421 !important;
}

.summary-row.final-row strong {
    color: var(--maneli-green, #19633B) !important;
    font-size: 17px !important;
}