/* ==================== */
/* PREVIEW DEMO STYLES */
/* ==================== */

:root {
    --gray-50: #FAFAFA;
    --gray-100: #F4F4F5;
    --gray-200: #E4E4E7;
    --gray-300: #D4D4D8;
    --gray-400: #A1A1AA;
    --gray-500: #71717A;
    --gray-600: #52525B;
    --gray-700: #3F3F46;
    --gray-800: #27272A;
    --gray-900: #18181B;
    --primary: #272757;
    --primary-dark: #1f1f4a;
}

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

html, body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: #fff;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override layout wrapper styles */
body > .w-full {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Desktop: center the container */
@media (min-width: 992px) {
    html, body {
        background-color: var(--gray-200);
    }
    
    body > .w-full {
        background-color: var(--gray-200);
    }
}

/* Container */
.app-container {
    width: 100%;
    height: 100vh;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Desktop: simple frame design without border and notch */
@media (min-width: 992px) {
    .app-container {
        max-width: 480px;
        height: 900px;
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
}

/* ==================== */
/* MAIN PAGE - Categories */
/* ==================== */
.main-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.main-page.hidden {
    display: none;
}

/* Scrollable content area */
.app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-content::-webkit-scrollbar {
    display: none;
}

/* Landing Page */
.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 24px 20px;
    text-align: center;
    min-height: 0;
    flex: 1;
}

.landing-hero {
    margin-top: auto;
    padding-top: 40px;
}

.hero-cover {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
    background: #ffffff;
}

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

.landing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 24px;
    line-height: 1.3;
}

.landing-subtitle {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 8px;
    line-height: 1.5;
    max-width: 260px;
}

.landing-actions {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 32px;
    margin-bottom: auto;
}

.landing-btn {
    height: 48px;
    border-radius: 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.landing-btn.primary {
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    color: #ffffff;
}

.landing-btn.primary:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

.landing-btn.secondary {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid #e5e7eb;
}

.landing-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #fff;
    position: relative;
    z-index: 20;
}

.lang-current-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.lang-trigger-wrap {
    position: relative;
}

.lang-trigger-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--gray-500);
}

.lang-trigger-btn:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.lang-trigger-btn svg {
    width: 18px;
    height: 18px;
}

/* Dropup */
.lang-dropup {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-100);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    min-width: 140px;
    z-index: 200;
}

.lang-dropup-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Space Grotesk', sans-serif;
}

html[dir="rtl"] .lang-dropup-item,
body.rtl .lang-dropup-item {
    text-align: right;
}

html[dir="rtl"] .lang-dropup,
body.rtl .lang-dropup {
    right: auto;
    left: 0;
}

.lang-dropup-item:hover {
    background: var(--gray-50);
}

.lang-dropup-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Top Right Actions */
.top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.lang-dropdown {
    position: relative;
}

.lang-selector {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-selector svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

.lang-dropdown.open .lang-selector svg {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    min-width: 140px;
    z-index: 100;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.lang-option:hover {
    background: var(--gray-50);
}

.lang-option.active {
    background: var(--gray-100);
}

.lang-option svg {
    width: 20px;
    height: 14px;
}

.search-btn {
    background: #000;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* Main Content Wrapper - Centers content on larger screens */
.main-content-wrapper {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

/* Categories List */
.categories-list {
    padding: 8px 16px 100px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 12px 0;
    background: #fff;
    border-radius: 76px;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: all 0.2s;
}

.category-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 76px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.24));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.category-item:hover {
    background: var(--gray-50);
}

.category-item:first-child {
    margin-top: 0;
}

/* RTL Support */
html[dir="rtl"] .app-container,
body.rtl .app-container {
    direction: rtl;
}

html[dir="rtl"] .top-actions,
body.rtl .top-actions {
    right: auto;
    left: 12px;
}

html[dir="rtl"] .lang-menu,
body.rtl .lang-menu {
    right: auto;
    left: 0;
}

html[dir="rtl"] .lang-option,
body.rtl .lang-option {
    direction: ltr;
    text-align: right;
}

html[dir="rtl"] .back-btn svg,
body.rtl .back-btn svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .category-title,
body.rtl .category-title {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="rtl"] .item-info,
body.rtl .item-info {
    padding-right: 0;
    padding-left: 12px;
}

html[dir="rtl"] .info-row,
body.rtl .info-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .info-row-icon,
body.rtl .info-row-icon {
    margin-right: 12px;
    margin-left: 0;
}

/* ==================== */
/* CATEGORY PAGE */
/* ==================== */
.category-page {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    position: relative;
    background: var(--gray-50);
}

.category-page.active {
    display: flex;
}

/* Scrollable category content */
.category-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 80px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

/* Category Header */
.category-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    border-bottom: 1px solid var(--gray-100);
}

.category-title-bar {
    display: flex;
    align-items: center;
    padding: 12px 8px;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.category-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--gray-900);
}

.search-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Subcategory Pills */
.subcategory-nav {
    padding: 8px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    background: #fff;
}

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

.subcategory-pills {
    display: inline-flex;
    gap: 8px;
    padding: 0 16px;
}

.subcategory-pill {
    padding: 6px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.subcategory-pill.active {
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border-color: #272757;
    color: #ffffff;
}

.subcategory-pill:hover:not(.active) {
    background: var(--gray-50);
}

/* Section Title */
.section-header {
    padding: 20px 16px 12px;
    background: var(--gray-50);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.section-description {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Menu Items List */
.menu-items {
    background: var(--gray-50);
    padding: 12px 16px;
    padding-bottom: 100px;
}

/* Tablet: 2-column grid for menu items */
@media (min-width: 600px) and (max-width: 991px) {
    .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.menu-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 14px;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 12px;
}

.menu-item:active {
    background: #f8f8f8;
}

/* Tablet: reset margin for grid layout */
@media (min-width: 600px) and (max-width: 991px) {
    .menu-item {
        margin-bottom: 0;
    }
}

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

.item-image {
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    grid-row: 1 / span 3;
}

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

.item-info {
    flex: 1;
    min-width: 0;
    padding-right: 50px;
}

html[dir="rtl"] .item-info,
body.rtl .item-info {
    padding-right: 0;
    padding-left: 50px;
}

.item-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.item-badge {
    display: inline-flex;
    align-items: center;
}

.item-badge img {
    width: 20px;
    height: 20px;
}

.item-description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.item-price .currency {
    font-size: 0.7rem;
    vertical-align: super;
    margin-left: 2px;
    color: #6b7280;
}

html[dir="rtl"] .item-price .currency,
body.rtl .item-price .currency {
    margin-left: 0;
    margin-right: 2px;
}

.item-price-variant {
    opacity: 0.7;
}

.item-price-variant::before {
    content: '·';
    padding: 0 4px;
    font-weight: 800;
}

.item-price-variant:first-child::before {
    display: none;
}

/* No Image placeholder */
.no-image {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.no-image svg {
    width: 28px;
    height: 28px;
    color: #d1d5db;
    opacity: 0.7;
}

/* ==================== */
/* SEARCH OVERLAY */
/* ==================== */
.search-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 50;
    flex-direction: column;
}

.search-overlay.active {
    display: flex;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.search-back-btn svg {
    width: 20px;
    height: 20px;
}

.search-input-wrapper {
    flex: 1;
    margin: 0 8px;
}

.search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--gray-800);
    outline: none;
    padding: 8px 0;
    resize: none;
    line-height: 24px;
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-clear-btn {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    flex-shrink: 0;
}

.search-clear-btn.visible {
    display: flex;
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

.search-results-header {
    display: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-50);
}

.search-results-header.visible {
    display: block;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    background: var(--gray-50);
}

.search-results-list {
    background: #fff;
    padding: 0 16px;
}

.search-results .menu-item {
    margin-bottom: 10px;
}

.search-results-list {
    padding: 12px 16px;
    background: var(--gray-50);
}

.search-empty {
    display: none;
    text-align: center;
    padding: 60px 24px;
    color: var(--gray-500);
}

.search-empty.visible {
    display: block;
}

.search-empty svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.search-empty-text {
    font-size: 1rem;
    font-weight: 500;
}

/* RTL Support for Search */
html[dir="rtl"] .search-input-wrapper,
body.rtl .search-input-wrapper {
    margin: 0 8px;
}

html[dir="rtl"] .search-back-btn svg,
body.rtl .search-back-btn svg {
    transform: scaleX(-1);
}

/* ==================== */
/* BASKET/CART STYLES */
/* ==================== */

/* Floating Basket Button */
.basket-float-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 30;
    transition: transform 0.2s, background 0.2s;
}

.basket-float-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

.basket-float-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.basket-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.basket-float-btn.hidden {
    display: none;
}

html[dir="rtl"] .basket-float-btn,
body.rtl .basket-float-btn {
    right: auto;
    left: 24px;
}

/* Add to Cart Button on Menu Items */
.add-to-cart-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
    transform: scale(1.05);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.add-to-cart-btn svg {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

/* ==================== */
/* BASKET PAGE */
/* ==================== */
.basket-page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background: var(--gray-50);
    z-index: 100;
}

/* ==================== */
/* FOLLOW ORDER PAGE */
/* ==================== */
.follow-page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    flex-direction: column;
    background: var(--gray-50);
    z-index: 100;
}

.follow-page.active {
    display: flex;
}

.follow-header {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}

.follow-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: center;
    margin-right: 40px;
}

.follow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 24px;
}

.follow-icon {
    width: 72px;
    height: 72px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

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

.follow-input {
    width: 100%;
    max-width: 320px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s;
}

.follow-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 39, 87, 0.08);
}

.follow-check-btn {
    margin-top: 14px;
    width: 100%;
    max-width: 320px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.follow-check-btn:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

.follow-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.follow-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 10px;
    text-align: center;
}

.follow-result-card {
    width: 100%;
    max-width: 320px;
    margin-top: 20px;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.follow-result-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f0fdf4;
    color: #16a34a;
    margin-bottom: 10px;
}

.follow-result-meta {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.follow-items {
    display: flex;
    flex-direction: column;
}

.follow-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--gray-700);
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.basket-page.active {
    display: flex;
}

.basket-header {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}

.basket-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-right: 40px;
}

html[dir="rtl"] .basket-title,
body.rtl .basket-title {
    margin-left: 0;
    margin-right: 8px;
}

.basket-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.basket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    text-align: center;
    padding: 40px;
}

.basket-empty svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.basket-empty-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Cart Items */
.cart-items-list {
    padding: 0 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 14px;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    background: #ffffff;
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    grid-row: 1 / span 3;
}

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

.cart-item-name {
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

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

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.qty-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.qty-btn svg {
    width: 14px;
    height: 14px;
    color: var(--gray-700);
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.delete-btn:hover {
    background: #fee2e2;
}

.delete-btn svg {
    width: 14px;
    height: 14px;
    color: #ef4444;
}

/* Basket Footer */
.basket-footer {
    background: #fff;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
}

.basket-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.basket-total-label {
    font-size: 14px;
    color: var(--gray-600);
}

.basket-total-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pass-order-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    font-family: 'Space Grotesk', sans-serif;
}

.pass-order-btn:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

.pass-order-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.pass-order-btn svg {
    width: 20px;
    height: 20px;
}

/* Toast Notification */
.toast {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--gray-800);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

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

.toast svg {
    width: 20px;
    height: 20px;
    color: #22c55e;
}

/* ==================== */
/* ITEM DETAIL BOTTOM DRAWER */
/* ==================== */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 75%;
    display: flex;
    flex-direction: column;
    z-index: 201;
}

.drawer-overlay.active .drawer-sheet {
    transform: translateY(0);
}

.drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

.drawer-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 16px;
    padding: 0 20px;
}

.drawer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.drawer-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.drawer-price .currency {
    font-size: 0.75rem;
    vertical-align: super;
    color: var(--gray-500);
    margin-left: 2px;
}

.drawer-desc-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.drawer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gray-600);
}

.drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.drawer-add-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.drawer-add-btn:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

.drawer-add-btn svg {
    width: 18px;
    height: 18px;
}

/* ==================== */
/* ORDER SUCCESS PAGE */
/* ==================== */
.order-success-page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 110;
    flex-direction: column;
}

.order-success-page.active {
    display: flex;
}

.order-success-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon svg {
    width: 36px;
    height: 36px;
    color: #16a34a;
}

.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 0.88rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    max-width: 260px;
    line-height: 1.5;
}

.success-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: 14px;
    padding: 14px 20px;
    margin-bottom: 32px;
}

.success-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

.success-copy-btn {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.success-copy-btn:hover {
    background: var(--primary-dark);
}

.success-copy-btn svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.success-done-btn {
    width: 100%;
    max-width: 280px;
    height: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #272757 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.success-done-btn:hover {
    background: linear-gradient(135deg, #1f1f4a 0%, #4338ca 100%);
}

/* ==================== */
/* TABLET CENTERED LAYOUT */
/* ==================== */
@media (min-width: 600px) and (max-width: 991px) {
    /* Search results: single column centered */
    .search-results-list {
        max-width: 480px;
        margin: 0 auto;
    }

    /* Basket page: center content */
    .basket-content {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .basket-footer {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Follow order page: center content */
    .follow-content {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Order success page: center content */
    .order-success-content {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* Basket/Follow/Search headers: keep full width, back btn stays at left edge */
    .basket-header,
    .follow-header,
    .search-header {
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Center only the title text within full-width headers */
    .basket-title,
    .follow-title {
        text-align: center;
    }
}
.w-full {
    width: 100% !important;
}