/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6A0DAD;
    --primary-dark: #4B0082;
    --primary-light: #F3E5F5;
    --accent: #FF8C00;
    --accent-dark: #E67E00;
    --bg: #FAFAFA;
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #EEEEEE;
    --border-light: #F5F5F5;
    --success: #4CAF50;
    --danger: #E53935;
    --cashback-green: #2E7D32;
    --cashback-bg: #E8F5E9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --header-height: 60px;
    --max-width: 720px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: var(--header-height);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    padding: 2px;
}

.logo-fallback {
    font-size: 22px;
}

.store-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-btn {
    background: none;
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-btn:hover {
    background: rgba(255,255,255,0.2);
}

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

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    background: var(--white);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-overlay.active {
    max-height: 70px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 14px;
    height: 42px;
    gap: 10px;
}

.search-bar-icon {
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.search-close:hover {
    background: var(--border);
}

/* ===== STORE INFO BAR ===== */
.store-info-bar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.store-info-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.store-status.open {
    color: var(--success);
    font-weight: 600;
}

.store-status.closed {
    color: var(--danger);
    font-weight: 600;
}

.info-separator {
    color: var(--text-muted);
}

.store-profile-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.store-profile-link:hover {
    color: var(--primary-dark);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--white);
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 100px;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    margin: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: var(--border-light);
    height: 160px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

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

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.slide-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.slide-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 4px;
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.category-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.category-nav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0;
    padding: 0 8px;
}

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

.category-tab {
    flex-shrink: 0;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    background: none;
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
}

.category-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.category-tab.active {
    color: var(--primary);
}

.category-tab.active::after {
    width: 100%;
}

.category-tab:hover {
    color: var(--primary);
}

/* ===== POPULAR SECTION ===== */
.popular-section {
    padding: 20px 0 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 16px;
    margin-bottom: 14px;
}

.popular-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 12px;
    padding: 0 16px 16px;
}

.popular-scroll::-webkit-scrollbar {
    display: none;
}

.popular-item {
    flex-shrink: 0;
    width: 120px;
    cursor: pointer;
    transition: var(--transition);
}

.popular-item:hover {
    transform: translateY(-3px);
}

.popular-item:active {
    transform: scale(0.97);
}

.popular-item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.popular-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
    text-transform: uppercase;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-item-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

/* ===== PRODUCT SECTIONS ===== */
.product-section {
    padding: 0 16px;
    margin-bottom: 8px;
}

.product-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    padding: 20px 0 12px;
    letter-spacing: 0.3px;
    border-top: 8px solid var(--border-light);
}

.product-section:first-child .product-section-title {
    border-top: none;
}

.product-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.product-card:hover {
    background: var(--border-light);
    margin: 0 -16px;
    padding: 16px;
    border-radius: var(--radius-sm);
}

.product-card-info {
    flex: 1;
    min-width: 0;
}

.product-card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card-image-wrapper {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
}

.product-card-image {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Cashback tags removed as per user request */

.product-card-no-image {
    display: none;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.modal-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: var(--header-height);
    border-bottom: 1px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
}

.modal-back-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-back-btn:hover {
    background: var(--border-light);
}

.modal-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-header-right .header-btn {
    color: var(--text-primary);
}

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Product Info in Modal */
.modal-product-info {
    display: flex;
    gap: 16px;
    padding: 20px 16px;
    align-items: flex-start;
}

.modal-product-image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.modal-product-details {
    flex: 1;
    min-width: 0;
}

.modal-product-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
}

.modal-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.modal-product-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-transform: uppercase;
}

/* Modal cashback removed as per user request */

/* Modal Search */
.modal-search-bar {
    display: flex;
    align-items: center;
    margin: 0 16px 12px;
    background: var(--border-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 14px;
    height: 42px;
    gap: 10px;
}

.modal-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

.modal-search-input::placeholder {
    color: var(--text-muted);
}

.modal-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-search-close:hover {
    background: var(--border);
}

/* Option Groups */
.option-group {
    margin-bottom: 0;
}

.option-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    border-top: 1px solid var(--border);
}

.option-group-header:hover {
    background: var(--border);
}

.option-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.option-group-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.option-group-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-required-tag {
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.option-group-chevron {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.option-group.collapsed .option-group-chevron {
    transform: rotate(-90deg);
}

.option-group-items {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.option-group.collapsed .option-group-items {
    max-height: 0 !important;
}

/* Option Items */
.option-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.option-item:hover {
    background: var(--border-light);
}

.option-item-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--border-light);
    flex-shrink: 0;
}

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

.option-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.option-item-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.option-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Radio & Checkbox Controls */
.option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.option-radio.selected {
    border-color: var(--primary);
}

.option-radio.selected::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
}

/* Plus/Minus Controls */
.option-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.option-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

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

.option-qty-btn.minus {
    visibility: hidden;
}

.option-qty-btn.minus.visible {
    visibility: visible;
}

.option-qty-value {
    width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: none;
}

.option-qty-value.visible {
    display: block;
}

.option-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

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

/* Observations */
.modal-observations {
    padding: 0 16px 16px;
}

.observations-input {
    width: 100%;
    min-height: 70px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    outline: none;
    transition: var(--transition);
    margin-top: 12px;
}

.observations-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.observations-input::placeholder {
    color: var(--text-muted);
}

.observations-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

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

.qty-value {
    width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.add-to-cart-btn {
    flex: 1;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

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

.add-to-cart-btn:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* ===== CART FLOATING BUTTON ===== */
.cart-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 12px 16px;
    animation: slideUp 0.3s ease;
}

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

.cart-floating-btn {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.4);
}

.cart-floating-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

.cart-btn-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-badge {
    background: var(--white);
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.cart-text {
    font-weight: 600;
}

/* ===== CART MODAL ===== */
.cart-body {
    padding: 16px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 12px;
    color: var(--text-muted);
}

.cart-empty p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.cart-empty span {
    font-size: 14px;
}

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

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cart-item-extras {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

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

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

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.cart-item-qty span {
    font-weight: 700;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

/* Cart Summary */
.cart-summary {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-summary-row.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.checkout-body {
    padding: 0;
}

.checkout-section {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);
}

.checkout-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.delivery-toggle {
    display: flex;
    gap: 12px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-row {
    display: flex;
    gap: 12px;
}

.flex-2 {
    flex: 2;
}

.btn-lookup {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-icon {
    font-size: 20px;
}

.payment-name {
    font-size: 14px;
    font-weight: 600;
}

.checkout-summary {
    background: var(--bg);
    padding: 20px 16px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-line.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid var(--border);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.confirm-order-btn {
    width: 100%;
    background: #25D366; /* WhatsApp Green */
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.confirm-order-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.profile-body {
    padding: 0;
}

.profile-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
}

.profile-logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: var(--shadow-md);
    margin-bottom: 16px;
}

.profile-store-name {
    font-size: 22px;
    font-weight: 800;
}

.profile-info-section {
    padding: 16px;
}

.profile-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.profile-info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-info-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted);
}

.no-results svg {
    margin-bottom: 12px;
}

.no-results p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.no-results span {
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .store-name {
        font-size: 16px;
    }

    .product-card-image-wrapper {
        width: 90px;
        height: 90px;
    }

    .product-card-image {
        width: 90px;
        height: 90px;
    }

    .popular-item {
        width: 100px;
    }

    .popular-item-image {
        width: 100px;
        height: 100px;
    }

    .modal-product-image {
        width: 110px;
        height: 110px;
    }

    .modal-product-name {
        font-size: 18px;
    }

    .promo-title {
        font-size: 18px;
    }
}

@media (min-width: 721px) {
    .main-content {
        box-shadow: var(--shadow-md);
    }

    .modal-container {
        box-shadow: var(--shadow-lg);
    }

    body {
        background: #F0F0F0;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 4px;
}

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

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

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

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
