/* ==============================
   Maestro Pizza - Main Stylesheet
   ============================== */

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

:root {
    --green-dark: #155142;
    --green-medium: #1a7a5a;
    --green-light: #2ecc71;
    --yellow: #f5b800;
    --yellow-light: #ffd54f;
    --orange: #ff6600;
    --red: #e53935;
    --bg-cream: #f5f0e1;
    --bg-light: #faf8f2;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e0ddd5;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* --- Top Header --- */
.top-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo svg {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    background: var(--bg-cream);
}

.nav-link.active-bold {
    font-weight: 700;
}

.nav-link-highlight {
    background: var(--green-dark);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
}

.login-btn {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    padding: 6px 20px !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 600 !important;
}

.login-btn:hover {
    background: var(--green-medium) !important;
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-dark);
}

/* --- Mobile Menu --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.mobile-menu-content {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-content a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
}

.mobile-menu-content a:hover {
    background: var(--bg-cream);
}

/* --- Main Layout --- */
.main-layout {
    display: flex;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

.content-area {
    flex: 1;
    max-width: 1200px;
    padding: 0 20px 40px;
}

/* --- Banner Slider --- */
.banner-slider {
    margin: 12px 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    max-height: 180px;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.banner-track .banner-card {
    min-width: 100%;
    flex-shrink: 0;
}

.banner-card {
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-card a {
    display: block;
    width: 100%;
    line-height: 0;
}

.banner-card img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

.banner-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
}

.banner-text .price-highlight {
    color: var(--orange);
    font-size: 2.5rem;
}

.order-now-btn {
    display: inline-block;
    margin-top: 16px;
    background: var(--red);
    color: var(--white);
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s;
}

.order-now-btn:hover {
    transform: scale(1.05);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.banner-dots .dot {
    width: 30px;
    height: 6px;
    border-radius: 3px;
    background: var(--green-dark);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.banner-dots .dot.active {
    opacity: 1;
}

/* --- Category Navigation --- */
.category-nav {
    background: var(--yellow);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.cat-search-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-search-btn svg {
    fill: var(--text-dark);
}

.cat-link {
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    transition: all 0.2s;
}

.cat-link.active {
    background: var(--text-dark);
    color: var(--white);
}

.cat-link:hover:not(.active) {
    background: rgba(0,0,0,0.1);
}

/* --- Subcategory Navigation --- */
.subcategory-nav {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.subcategory-nav::-webkit-scrollbar {
    display: none;
}

.subcat-link {
    padding: 6px 18px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    transition: all 0.2s;
}

.subcat-link.active {
    background: var(--green-dark);
    color: var(--white);
}

.subcat-link:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}

/* --- Menu Section --- */
.menu-content {
    margin-top: 20px;
}

.menu-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

/* --- Products Grid --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrap {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: var(--bg-light);
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.add-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--green-light);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.4);
    transition: transform 0.2s;
    z-index: 2;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.add-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

.product-info {
    padding: 12px 16px 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.ptag {
    font-size: 14px;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--green-dark);
    margin-top: 6px;
}

.product-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-best {
    background: var(--orange);
    color: var(--white);
}

.badge-new {
    background: var(--green-light);
    color: var(--white);
}

.product-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-description {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Basket Sidebar --- */
.basket-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.basket-header {
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.basket-currency {
    font-weight: 700;
    font-size: 15px;
}

.basket-label {
    font-size: 13px;
    font-weight: 500;
}

.basket-cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--yellow);
    color: var(--text-dark);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.basket-body:has(.basket-empty) {
    align-items: center;
    justify-content: center;
}

.basket-empty {
    text-align: center;
    padding: 40px 20px;
}

.basket-empty-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.basket-empty-title {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.basket-empty-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* Cart Items */
.basket-items {
    width: 100%;
}

.cart-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-dark);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    background: var(--green-dark);
    color: var(--white);
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity span {
    font-weight: 600;
}

/* Promo Code Bar */
.promo-code-bar {
    background: var(--yellow);
    border-radius: var(--radius-xl);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.promo-icon {
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delivery Toggle */
.delivery-toggle {
    display: flex;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid var(--border);
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-gray);
    border: none;
    background: transparent;
    cursor: pointer;
}

.toggle-btn:hover {
    background: var(--bg-cream);
}

.toggle-btn.active {
    background: var(--yellow);
    color: var(--text-dark);
}

.toggle-btn.active:hover {
    background: var(--yellow-light);
}

/* --- Promotions Page --- */
.promo-nav {
    background: var(--green-light);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.promo-nav-link {
    padding: 8px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.2s;
}

.promo-nav-link.active {
    background: var(--green-dark);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.promo-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.promo-card:hover {
    transform: translateY(-2px);
}

.promo-image-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.promo-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* Promo Banners List */
.promo-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.promo-banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.promo-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.promo-banner-card a {
    display: block;
}

.promo-banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

/* Promo Slider */
.promo-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.promo-slider {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: grab;
    user-select: none;
}

.promo-slider:active {
    cursor: grabbing;
}

.promo-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.promo-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.promo-slide a {
    display: block;
    line-height: 0;
}

.promo-slide-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.promo-slider-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--green-dark);
    background: var(--white);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.promo-slider-arrow:hover {
    background: var(--green-dark);
    color: var(--white);
}

.promo-slider-arrow:hover svg {
    fill: white;
}

.promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.promo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.promo-dot.active {
    background: var(--green-dark);
}

/* Search Bar */
.menu-search-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    position: sticky;
    top: 60px;
    z-index: 50;
}

.menu-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    transition: border-color 0.2s;
}

.menu-search-input-wrap:focus-within {
    border-color: var(--green-dark);
}

.menu-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
}

.menu-search-close {
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.menu-search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--bg-cream);
}

.search-result-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.search-result-price {
    font-size: 13px;
    color: var(--green-dark);
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

/* Disabled payment option */
.payment-option.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.payment-option.disabled .payment-option-content {
    background: #f5f5f5;
}

/* Logged in state */
.logged-in {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}

/* Logout */
.logout-btn {
    padding: 6px 8px !important;
    border-radius: 50% !important;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #fce4ec !important;
}

.mobile-logout-link {
    padding: 12px 16px;
    color: var(--red) !important;
    font-weight: 600;
    font-size: 15px;
}

.account-logout-link {
    display: inline-block;
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    margin-right: 16px;
    padding: 8px 20px;
    border: 2px solid var(--red);
    border-radius: var(--radius-xl);
    transition: all 0.2s;
}

.account-logout-link:hover {
    background: var(--red);
    color: var(--white);
}

/* Map & Address Cards */
.map-container {
    margin-bottom: 16px;
}

.map-address-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-address-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background 0.15s;
}

.delivery-address-card:hover {
    background: var(--bg-cream);
}

.delivery-address-icon {
    flex-shrink: 0;
}

.delivery-address-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-address-text strong {
    font-size: 14px;
    font-weight: 700;
}

.delivery-address-text span {
    font-size: 12px;
    color: var(--text-gray);
    word-break: break-word;
}

.delete-addr-btn {
    flex-shrink: 0;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

.delete-addr-btn:hover {
    background: #fce4ec;
}

.add-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-dark);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.15s;
}

.add-location-btn:hover {
    background: var(--bg-cream);
}

.checkout-saved-addresses {
    margin-bottom: 12px;
}

.checkout-addr-select {
    cursor: pointer;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.checkout-addr-select:hover {
    border-color: var(--green-light);
}

/* Location Banner */
.location-banner {
    background: var(--white);
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 32px auto;
}

.location-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.location-text p {
    font-size: 13px;
    color: var(--text-gray);
}

.location-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    color: var(--green-dark);
    background: transparent;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn-primary {
    padding: 10px 28px;
    background: var(--green-dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    border: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--green-medium);
}

/* --- Tracking Page --- */
.tracking-page {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.tracking-icon {
    position: relative;
    margin-bottom: 32px;
    display: inline-block;
}

.tracking-scooter {
    position: absolute;
    bottom: 5px;
    right: -10px;
}

.tracking-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tracking-subtitle {
    color: var(--green-dark);
    font-size: 14px;
    margin-bottom: 32px;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 12px;
    border-right: 1px solid var(--border);
    background: var(--bg-light);
    cursor: pointer;
}

.country-select-dropdown {
    padding: 12px 8px;
    border: none;
    border-right: 2px solid var(--border);
    background: var(--bg-cream);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    max-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 18px;
}

.phone-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.send-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 14px;
    background: var(--border);
    color: var(--text-gray);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.send-btn:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* --- Contact Page --- */
.contact-page {
    padding: 40px 20px;
    max-width: 700px;
}

.contact-phone {
    font-size: 16px;
    margin-bottom: 32px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.contact-option:hover {
    background: var(--bg-cream);
}

/* --- Help Page --- */
.help-page {
    padding: 20px 0;
}

.help-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.faq-section {
    max-width: 700px;
}

.faq-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: inline-block;
    margin-right: 20px;
}

.faq-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.faq-tab {
    padding: 6px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    background: transparent;
    transition: all 0.2s;
}

.faq-tab.active {
    background: var(--green-dark);
    color: var(--white);
}

.faq-content.hidden {
    display: none;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    color: var(--text-dark);
}

.faq-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-question.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 0 16px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.faq-answer.show {
    display: block;
}

/* --- Login Page --- */
.login-page {
    display: flex;
    min-height: calc(100vh - 56px);
}

.login-form-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-arrow {
    align-self: flex-start;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.login-icon {
    margin-bottom: 16px;
}

.login-subtitle {
    color: var(--green-dark);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.login-other-methods {
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    text-decoration: underline;
}

.login-image-section {
    flex: 1;
    display: none;
}

.login-hero-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-cream), var(--yellow-light));
}

/* --- Product Modal (Right-side panel) --- */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
}

.product-modal.open {
    display: flex;
}

.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 0;
}

.product-modal-content {
    position: fixed;
    right: 320px;
    top: 56px;
    bottom: 0;
    width: 420px;
    background: var(--white);
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    color: var(--text-gray);
    z-index: 2;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.modal-product-image {
    padding: 20px;
    text-align: center;
    background: var(--bg-light);
}

.modal-product-image img {
    max-height: 200px;
    object-fit: contain;
}

.modal-product-info {
    padding: 20px;
}

.modal-product-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-product-info p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.modal-dips {
    margin-bottom: 20px;
}

.modal-dips h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dip-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dip-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.dip-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-dark);
    border-radius: var(--radius-xl);
    padding: 4px;
}

.dip-counter button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dip-counter span {
    color: var(--white);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.modal-favorites {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--green-dark);
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}

.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-dark);
    border-radius: var(--radius-xl);
    padding: 6px;
}

.quantity-control button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control span {
    color: var(--white);
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.add-to-basket-btn {
    width: 100%;
    padding: 14px;
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s;
}

.add-to-basket-btn:hover {
    background: var(--yellow-light);
}

/* --- Footer --- */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: underline;
}

.footer-col a:hover {
    color: var(--green-dark);
}

.footer-col-right {
    align-items: flex-end;
    text-align: right;
}

.app-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.app-badge-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.app-badge-btn:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.social-link:hover {
    background: var(--bg-cream);
}

.footer-info p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-info a {
    color: var(--green-dark);
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .basket-sidebar {
        width: 280px;
    }
    .product-modal-content {
        right: 280px;
        width: 380px;
    }
    .sidebar-config-image img {
        max-height: 120px;
    }
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-image-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .basket-sidebar {
        display: none;
        position: fixed;
        right: 0;
        top: 56px;
        bottom: 0;
        width: 300px;
        z-index: 150;
        background: var(--bg-light);
        box-shadow: var(--shadow-lg);
    }

    .basket-sidebar.open,
    .basket-sidebar.configurator-mode {
        display: flex;
    }

    .content-area {
        padding: 0 12px 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        border-width: 1px;
    }

    .product-image-wrap {
        min-height: 120px;
        padding: 12px;
    }

    .product-image {
        height: 110px;
    }

    .product-info {
        padding: 8px 10px 12px;
    }

    .product-name {
        font-size: 13px;
    }

    .product-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 13px;
    }

    .add-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-content {
        left: 0;
        right: 0;
        top: 56px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .footer-col-right {
        align-items: flex-start;
        text-align: left;
    }

    .banner-text h2 {
        font-size: 1.5rem;
    }

    .banner-text .price-highlight {
        font-size: 1.8rem;
    }

    .location-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .location-actions {
        justify-content: center;
    }

    .category-nav {
        padding: 6px 10px;
        gap: 2px;
    }

    .cat-link {
        padding: 6px 14px;
        font-size: 13px;
    }

    .cat-search-btn {
        width: 34px;
        height: 34px;
    }

    .subcategory-nav {
        padding: 4px 8px;
        gap: 2px;
    }

    .subcat-link {
        padding: 5px 12px;
        font-size: 12px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    /* Cart page mobile */
    .cart-page {
        padding: 12px;
    }

    .cart-item {
        padding: 10px;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    /* Checkout mobile */
    .checkout-page {
        padding: 12px;
    }

    .checkout-section {
        padding: 14px;
    }

    /* SMS verify mobile */
    .sms-verify-page {
        padding: 20px 12px;
    }

    .sms-verify-card {
        padding: 12px;
    }

    .sms-verify-icon svg {
        width: 60px;
        height: 60px;
    }

    .sms-verify-title {
        font-size: 1.1rem;
    }

    /* Sidebar configurator mobile - full screen */
    .sidebar-configurator {
        padding: 0;
    }

    .sidebar-config-image img {
        max-height: 120px;
    }
}

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

    .category-nav {
        border-radius: var(--radius-md);
    }

    .top-nav {
        height: 48px;
        padding: 0 12px;
    }

    .banner-slider {
        max-height: 140px;
        margin: 8px 0;
    }

    .banner-card,
    .banner-card img {
        max-height: 140px;
    }

    .product-image-wrap {
        min-height: 160px;
        padding: 16px;
    }

    .product-image {
        height: 140px;
    }

    .basket-sidebar {
        width: 100%;
    }

    .mobile-menu-content {
        width: 100%;
    }

    .cart-header-row {
        margin-bottom: 16px;
    }

    .cart-title, .checkout-title {
        font-size: 1.2rem;
    }

    .phone-input-group {
        max-width: 100%;
    }

    .sms-code-input {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .account-content {
        flex-direction: column;
        gap: 16px;
    }

    .site-footer {
        padding: 24px 12px;
    }

    .footer-info p {
        font-size: 11px;
    }
}

/* --- Mobile Cart Button --- */
.mobile-cart-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--green-dark);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 140;
    box-shadow: 0 4px 16px rgba(21, 81, 66, 0.4);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-cart-btn:hover {
    transform: scale(1.1);
}

.mobile-cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--yellow);
    color: var(--text-dark);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .mobile-cart-btn {
        display: flex;
    }
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ==============================
   Cart Page
   ============================== */
.cart-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.cart-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-dark);
    box-shadow: var(--shadow);
    transition: background 0.2s;
}

.back-arrow:hover {
    background: var(--bg-cream);
}

.cart-title, .checkout-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
    flex: 1;
}

.cart-clear-btn {
    background: none;
    border: none;
    color: var(--red);
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty h2 {
    margin: 16px 0 8px;
    color: var(--green-dark);
}

.cart-empty p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    background: var(--green-dark);
    color: var(--white);
    padding: 12px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--green-medium);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.cart-item-options {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.cart-item-options span {
    font-size: 0.75rem;
    color: var(--text-gray);
    background: var(--bg-cream);
    padding: 2px 8px;
    border-radius: 4px;
}

.cart-item-dips {
    margin-bottom: 8px;
}

.cart-item-dips span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--green-dark);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    background: var(--green-medium);
}

.cart-item-qty span {
    padding: 0 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.95rem;
}

.cart-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.cart-item-remove:hover {
    opacity: 1;
}

/* Cart Promo */
.cart-promo-section {
    margin-bottom: 16px;
}

.cart-promo-input {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    box-shadow: var(--shadow);
}

.cart-promo-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
}

.promo-apply-btn {
    background: var(--green-dark);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.promo-apply-btn:hover {
    background: var(--green-medium);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.summary-row.summary-total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.free-delivery {
    color: var(--green-medium);
    font-weight: 600;
}

/* Cart Delivery Toggle */
.cart-delivery-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.cart-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-toggle-btn.active {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: white;
}

.cart-toggle-btn.active svg {
    fill: white;
}

/* Checkout Button */
.cart-checkout-btn {
    display: block;
    width: 100%;
    background: var(--yellow);
    color: var(--text-dark);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s;
}

.cart-checkout-btn:hover {
    background: var(--yellow-light);
}

/* ==============================
   Pre-Auth Page
   ============================== */
.preauth-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.preauth-form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.preauth-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 20px 0 16px;
}

.preauth-icon {
    margin: 16px 0;
}

.preauth-subtitle {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.preauth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-input-group:focus-within {
    border-color: var(--green-dark);
}

.country-select {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: var(--bg-cream);
    border-right: 2px solid var(--border);
    cursor: pointer;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 1rem;
    background: transparent;
}

.send-btn {
    width: 100%;
    background: var(--green-dark);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.send-btn:hover {
    background: var(--green-medium);
}

/* Code Input */
.preauth-code-info {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.code-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.code-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s;
}

.code-input:focus {
    border-color: var(--green-dark);
}

.preauth-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--green-dark);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.resend-timer {
    color: var(--text-light);
    font-size: 0.8rem;
}

.change-number-btn {
    background: none;
    border: none;
    color: var(--green-dark);
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    font-size: 0.85rem;
    text-decoration: underline;
}

/* ==============================
   Checkout Page
   ============================== */
.checkout-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 16px;
}

.checkout-input {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 8px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.checkout-input:focus {
    border-color: var(--green-dark);
}

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

.address-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
}

.address-input-wrap .checkout-input {
    margin-bottom: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.location-detect-btn {
    height: 46px;
    width: 46px;
    border: 2px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--bg-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-detect-btn:hover {
    background: var(--border);
}

/* Checkout Items */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-cream);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.checkout-item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-item-qty {
    font-size: 0.8rem;
    color: var(--text-light);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.9rem;
}

.checkout-totals {
    border-top: 2px solid var(--bg-cream);
    padding-top: 12px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    accent-color: var(--green-dark);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.payment-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.payment-option input[type="radio"]:checked + .payment-option-content {
    border-color: var(--green-dark);
    background: rgba(21, 81, 66, 0.03);
}

.payment-option-content strong {
    font-size: 0.9rem;
}

.payment-option-content small {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.payment-option-content div {
    display: flex;
    flex-direction: column;
}

/* Place Order Button */
.place-order-btn {
    display: block;
    width: 100%;
    background: var(--yellow);
    color: var(--text-dark);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.place-order-btn:hover {
    background: var(--yellow-light);
}

/* Payment Method Grid (2x2 like original) */
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    min-height: 100px;
}

.pay-card strong {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #333;
}

.pay-card small {
    font-size: 0.65rem;
}

.pay-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
}

.pay-card-logos {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pay-card-logos img {
    object-fit: contain;
}

.pay-card.pay-active {
    border-color: #155142;
    box-shadow: 0 0 0 1px #155142;
}

.pay-card.pay-active:hover {
    box-shadow: 0 2px 12px rgba(21,81,66,0.15);
}

.pay-card.pay-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Card Entry Form (Maestro original style) */
.card-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-form-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.card-txn-bar {
    background: #e8f5e9;
    color: #155142;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.card-form-maestro {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.card-field {
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid #eee;
    min-height: 52px;
}

.card-field:last-child {
    border-bottom: none;
}

.card-field input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    color: #333;
    font-family: inherit;
}

.card-field input::placeholder {
    color: #bbb;
}

.card-field-logos {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    width: 60px;
}

.card-field-logos img {
    max-height: 18px;
    max-width: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-field-split {
    display: flex;
    padding: 0;
}

.card-field-left {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 14px;
    border-right: 1px solid #eee;
}

.card-field-left img,
.card-field-left svg {
    max-height: 16px;
    max-width: 28px;
    flex-shrink: 0;
}

.card-field-left input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
    padding: 14px 8px;
    background: transparent;
}

.card-field-right {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 14px;
}

.card-field-right input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    flex: 1;
    padding: 14px 8px;
    background: transparent;
    text-align: center;
}

.card-field-left input::placeholder,
.card-field-right input::placeholder {
    color: #bbb;
}

/* Order Confirmation Modal */
.order-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.order-confirm-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.order-confirm-icon {
    margin-bottom: 16px;
}

.order-confirm-content h2 {
    color: var(--green-dark);
    margin-bottom: 8px;
}

.order-confirm-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.order-number {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 20px !important;
}

.btn-outline-link {
    display: block;
    margin-top: 12px;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* App badge fix for images */
.app-badge-btn {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
}

.app-badge-btn img {
    border-radius: 8px;
    display: block;
}

/* Basket header link fix */
a.basket-header {
    text-decoration: none;
    color: inherit;
}

/* Product tag icon alignment */
.ptag img {
    vertical-align: middle;
}

/* Product badge with icon */
.product-badge img {
    vertical-align: middle;
    margin-right: 2px;
}

/* ==============================
   Sidebar Cart Items
   ============================== */
.basket-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg-cream);
    align-items: flex-start;
}

.sidebar-cart-item:last-child {
    border-bottom: none;
}

.sidebar-item-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-cream);
}

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

.sidebar-item-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item-meta {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.sidebar-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-item-price {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.85rem;
}

.sidebar-item-qty {
    display: inline-flex;
    align-items: center;
    background: var(--green-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.sidebar-item-qty button {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--green-dark);
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.sidebar-item-qty button:hover {
    background: var(--green-medium);
}

.sidebar-item-qty span {
    padding: 0 8px;
    font-weight: 600;
    font-size: 0.8rem;
    color: white;
    min-width: 20px;
    text-align: center;
}

/* ==============================
   Sidebar Configurator Mode
   ============================== */
.basket-sidebar.configurator-mode {
    overflow-y: auto;
}

.sidebar-configurator {
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
}

.sidebar-config-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dark);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.sidebar-config-back:hover {
    text-decoration: underline;
}

.sidebar-config-image {
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
}

.sidebar-config-image img {
    max-height: 140px;
    object-fit: contain;
}

.sidebar-config-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sidebar-config-info p {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

.sidebar-config-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sidebar-configurator .quantity-control,
.modal-product-info .quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--green-dark);
    border-radius: var(--radius-xl);
    padding: 4px;
}

.sidebar-configurator .quantity-control button,
.modal-product-info .quantity-control button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}

.sidebar-configurator .quantity-control span,
.modal-product-info .quantity-control span {
    color: var(--white);
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.sidebar-configurator .add-to-basket-btn {
    margin-top: 8px;
}

/* ==============================
   Configurator Sections (Shared)
   ============================== */
.cfg-section {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cfg-section:last-of-type {
    border-bottom: none;
}

.cfg-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cfg-required {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e74c3c;
    background: #fdeaea;
    padding: 2px 8px;
    border-radius: 10px;
}

.cfg-limit {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Size Toggle */
.cfg-size-toggle {
    display: flex;
    gap: 8px;
}

.cfg-size-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.cfg-size-btn small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-top: 2px;
}

.cfg-size-btn.active {
    border-color: var(--green-dark);
    background: #eaf7f0;
    color: var(--green-dark);
}

/* Dough List */
.cfg-dough-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfg-dough-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.cfg-dough-row:last-child {
    border-bottom: none;
}

.cfg-dough-row:hover {
    background: #f8f8f8;
}

.cfg-dough-row.selected {
    background: #eaf7f0;
}

.cfg-dough-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.cfg-dough-row.selected .cfg-dough-radio {
    border-color: var(--green-dark);
}

.cfg-dough-row.selected .cfg-dough-radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-dark);
}

.cfg-dough-label {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cfg-dough-price {
    font-size: 0.75rem;
    color: var(--green-dark);
    font-weight: 600;
}

.cfg-dough-row img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Dips List */
.cfg-dips-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cfg-dip-row {
    display: flex;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.cfg-dip-row:last-child {
    border-bottom: none;
}

.cfg-dip-row.active {
    background: #eaf7f0;
}

.cfg-dip-label {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 10px;
}

.cfg-dip-price {
    font-size: 0.75rem;
    color: var(--green-dark);
    font-weight: 600;
}

.cfg-dip-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Items Grid (Toppings) */
.cfg-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cfg-item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--white);
    transition: all 0.2s;
}

.cfg-item-card.active {
    border-color: var(--green-dark);
    background: #eaf7f0;
}

.cfg-item-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 4px;
}

.cfg-item-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 2px;
}

.cfg-item-price {
    font-size: 0.6rem;
    color: var(--green-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.cfg-item-counter {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--green-dark);
    border-radius: var(--radius-xl);
    padding: 2px;
}

.cfg-item-counter button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
}

.cfg-item-counter span {
    color: var(--white);
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    font-size: 0.75rem;
}

/* Modal configurator sections */
.modal-product-info .cfg-section {
    margin-top: 8px;
}

.modal-product-info .cfg-items-grid {
    grid-template-columns: repeat(4, 1fr);
}

.modal-product-info .sidebar-config-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cfg-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .modal-product-info .cfg-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==============================
   SMS Verify Page (Login)
   ============================== */
.sms-verify-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background: var(--bg-cream);
}

.sms-verify-card {
    background: var(--bg-cream);
    max-width: 400px;
    width: 100%;
    text-align: center;
    padding: 20px;
}

.sms-verify-icon {
    margin-bottom: 20px;
}

.sms-verify-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.sms-verify-subtitle {
    font-size: 0.9rem;
    color: var(--green-dark);
    margin-bottom: 24px;
    line-height: 1.5;
}

.sms-verify-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.sms-code-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    font-weight: 600;
    transition: border-color 0.2s;
}

.sms-code-input:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(21, 81, 66, 0.1);
}

.sms-validate-btn {
    width: 100%;
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    padding: 14px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sms-validate-btn:hover {
    background: var(--yellow-light);
}

.sms-validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sms-resend-section {
    margin-bottom: 20px;
}

.sms-resend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.sms-timer-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sms-timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
}

.sms-resend-btn {
    width: 100%;
    background: var(--yellow);
    color: var(--text-dark);
    border: none;
    padding: 12px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.sms-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sms-other-methods {
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline;
    display: inline-block;
    margin-top: 8px;
}

.country-select-dropdown {
    padding: 12px 8px;
    border: none;
    outline: none;
    background: var(--bg-cream);
    font-size: 0.9rem;
    border-right: 2px solid var(--border);
    cursor: pointer;
    min-width: 100px;
}

/* ==============================
   Account Page (My Maestro)
   ============================== */
.account-page {
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.account-header {
    text-align: center;
    margin-bottom: 32px;
}

.account-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.account-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.account-progress span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
    border-radius: 4px;
    transition: width 0.3s;
}

.progress-bar-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar-icon svg {
    fill: white;
}

.account-content {
    display: flex;
    gap: 32px;
}

.account-left {
    flex: 1;
}

.account-right {
    flex: 1;
}

.account-section {
    margin-bottom: 28px;
}

.account-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.account-detail-row {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.account-detail-row:hover {
    background: var(--bg-cream);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--radius-sm);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    min-width: 100px;
}

.detail-value {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: right;
    margin-right: 8px;
}

.account-toggle-row {
    cursor: default;
}

.account-toggle-row:hover {
    background: transparent;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-left: auto;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--green-dark);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.account-delete-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--red);
    font-weight: 500;
    text-decoration: none;
}

.account-delete-link:hover {
    text-decoration: underline;
}

/* Social Connect */
.social-connect-buttons {
    display: flex;
    gap: 8px;
}

.social-connect-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.social-connect-btn:hover {
    border-color: var(--green-dark);
    background: var(--bg-cream);
}

/* Language Options */
.language-group {
    margin-bottom: 16px;
}

.language-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.9rem;
}

.language-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.language-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--green-dark);
}

.language-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--green-dark);
    border-radius: 50%;
}

/* Delivery Address */
.delivery-address-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.delivery-address-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.delivery-address-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.delivery-address-text strong {
    font-size: 0.9rem;
}

.delivery-address-text span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.add-location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--green-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}

.add-location-btn:hover {
    text-decoration: underline;
}

/* Payment rows */
.payment-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.payment-row-link {
    cursor: pointer;
}

.payment-row-link:hover {
    color: var(--green-dark);
}

.payment-row-link svg:last-child {
    margin-left: auto;
}

/* Account responsive */
@media (max-width: 768px) {
    .account-content {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==============================
   Help Page Updates
   ============================== */
.help-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.help-issue-btn {
    display: inline-block;
    background: var(--yellow);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.help-issue-btn:hover {
    background: var(--yellow-light);
}

.faq-heading-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.faq-answer ol,
.faq-answer ul {
    margin: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.faq-answer ol li,
.faq-answer ul li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ==============================
   Promotions Page Fixes
   ============================== */
.promo-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.promo-slide-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

/* Promo dots - dash style like original */
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

.promo-dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.promo-dot.active {
    background: var(--green-dark);
}

/* Banner slider dots - also dash style */
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.banner-dots .dot {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background: var(--green-dark);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.banner-dots .dot.active {
    opacity: 1;
}

/* Banner slider fix - proper image display */
.banner-slider {
    margin: 12px 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    max-height: 180px;
}

.banner-track .banner-card {
    min-width: 100%;
    flex-shrink: 0;
}

.banner-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    max-height: 180px;
}

.banner-card a {
    display: block;
    width: 100%;
    line-height: 0;
}

.banner-card img {
    width: 100%;
    height: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
    .banner-slider {
        max-height: 140px;
    }
    .banner-card {
        max-height: 140px;
    }
    .banner-card img {
        max-height: 140px;
        border-radius: var(--radius-md);
    }
}

/* Promo grid cards */
.promo-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.promo-grid-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.promo-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.promo-grid-card a {
    display: block;
    line-height: 0;
}

.promo-grid-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* Location Banner */
.location-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 24px 0;
}

.location-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.location-text p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.location-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--green-dark);
    border-radius: var(--radius-xl);
    background: transparent;
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
}

@media (max-width: 768px) {
    .promo-grid-cards {
        grid-template-columns: 1fr;
    }

    .location-banner {
        flex-direction: column;
        text-align: center;
    }

    .location-actions {
        margin-left: 0;
        justify-content: center;
    }

    .sms-verify-page {
        padding: 20px 12px;
    }

    .help-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================
   RTL (Arabic) Support
   ============================== */
body.rtl {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .top-nav {
    flex-direction: row-reverse;
}

body.rtl .mobile-menu-content {
    right: auto;
    left: 0;
}

body.rtl .category-nav {
    flex-direction: row-reverse;
}

body.rtl .subcategory-nav {
    flex-direction: row-reverse;
}

body.rtl .product-info {
    text-align: right;
}

body.rtl .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

body.rtl .faq-answer {
    text-align: right;
}

body.rtl .faq-answer ol,
body.rtl .faq-answer ul {
    margin: 8px 20px 8px 0;
}

body.rtl .account-content {
    flex-direction: row-reverse;
}

body.rtl .account-detail-row {
    flex-direction: row-reverse;
}

body.rtl .detail-value {
    text-align: left;
    margin-right: 0;
    margin-left: 8px;
}

body.rtl .delivery-address-card {
    flex-direction: row-reverse;
}

body.rtl .delivery-address-text {
    text-align: right;
}

body.rtl .payment-row {
    flex-direction: row-reverse;
}

body.rtl .basket-header {
    flex-direction: row-reverse;
}

body.rtl .sidebar-cart-item {
    flex-direction: row-reverse;
}

body.rtl .sidebar-item-name {
    text-align: right;
}

body.rtl .sidebar-item-bottom {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-col-right {
    align-items: flex-start;
    text-align: left;
}

body.rtl .add-btn {
    right: auto;
    left: 12px;
}

body.rtl .modal-close {
    right: auto;
    left: 16px;
}

body.rtl .product-modal-content {
    right: auto;
    left: 320px;
}

body.rtl .promo-code-bar {
    flex-direction: row-reverse;
}

body.rtl .help-header-row {
    flex-direction: row-reverse;
}

body.rtl .faq-heading-row {
    flex-direction: row-reverse;
}

body.rtl .cart-header-row {
    flex-direction: row-reverse;
}

body.rtl .cart-item {
    flex-direction: row-reverse;
}

body.rtl .cart-item-bottom {
    flex-direction: row-reverse;
}

body.rtl .cart-item-remove {
    right: auto;
    left: 8px;
}

body.rtl .location-banner {
    flex-direction: row-reverse;
}

body.rtl .location-text {
    text-align: right;
}

body.rtl .sms-resend-row {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    body.rtl .account-content {
        flex-direction: column;
    }

    body.rtl .footer-content {
        flex-direction: column;
    }
}
