@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #FFD23F;
    --accent: #4ECDC4;
    --dark: #1A1A2E;
    --darker: #0F0F1A;
    --card: #16213E;
    --card-hover: #1F3460;
    --text: #FFFFFF;
    --text-muted: #A0AEC0;
    --success: #48BB78;
    --danger: #FC8181;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--darker);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Fredoka', sans-serif; }

/* Flying snacks background */
.flying-snacks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.flying-snack {
    position: absolute;
    opacity: 0.12;
    animation: fly linear infinite;
    user-select: none;
    pointer-events: none;
}

.flying-snack svg { width: 100%; height: 100%; }

@keyframes fly {
    0% { transform: translateX(-100px) rotate(0deg); }
    100% { transform: translateX(calc(100vw + 100px)) rotate(360deg); }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,107,53,0.2);
    padding: 0.8rem 1.5rem;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span { animation: bounce 2s ease infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.header-info a { color: var(--accent); text-decoration: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.95); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 2px solid rgba(255,255,255,0.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #3BA99C);
    color: white;
}

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* Cart button */
.cart-btn {
    position: relative;
    background: var(--card);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.cart-btn:hover { background: var(--primary); color: white; }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.cart-badge.bump { animation: bump 0.4s ease; }

@keyframes bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(180deg, rgba(255,107,53,0.1) 0%, transparent 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Search */
.search-bar {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    background: var(--card);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* Categories - yatay kaydırma */
.categories-wrap {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 0.5rem;
    z-index: 1;
    overflow: hidden;
}

.categories-wrap::before,
.categories-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0.5rem;
    width: 1.5rem;
    z-index: 2;
    pointer-events: none;
}

.categories-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--darker), transparent);
}

.categories-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--darker), transparent);
}

.categories-hint {
    display: none;
}

/* Dış: sabit genişlik, kaydırılabilir */
.categories-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
    touch-action: pan-x;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

/* İç: butonları yan yana tutar */
.categories-track {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 1.5rem 0.75rem;
    min-width: min-content;
}

.cat-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    touch-action: manipulation;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.1);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.cat-btn:hover { transform: translateY(-2px); border-color: var(--primary); }

.cat-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.cat-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 2px;
}

.cat-icon svg, .cat-icon-svg {
    width: 100%;
    height: 100%;
}

/* Products grid */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow);
    border-color: rgba(255,107,53,0.3);
}

.product-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.product-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, var(--card) 100%);
    pointer-events: none;
}

.product-icon-svg {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-icon-svg svg {
    width: 100%;
    height: 100%;
}

.product-card:hover .product-icon-svg {
    transform: scale(1.1) rotate(-3deg);
}

.product-info { padding: 1rem; }

.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover { transform: scale(1.2) rotate(90deg); }

.add-btn.added {
    background: var(--success);
    animation: addedPulse 0.5s ease;
}

@keyframes addedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Flying to cart animation */
.fly-to-cart {
    position: fixed;
    font-size: 2rem;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cart sidebar */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--dark);
    z-index: 201;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255,107,53,0.2);
}

.cart-sidebar.open { right: 0; }

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 { font-size: 1.3rem; }

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: var(--primary); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.cart-item-icon svg { width: 100%; height: 100%; }

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { color: var(--secondary); font-weight: 700; font-size: 0.85rem; }

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover { background: var(--primary); border-color: var(--primary); }

.qty-num { font-weight: 700; min-width: 20px; text-align: center; }

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cart-empty .emoji { font-size: 4rem; margin-bottom: 1rem; display: block; }

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-total span:last-child {
    color: var(--secondary);
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    padding: 1rem;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
    background: var(--dark);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,107,53,0.2);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}

.form-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-switch a {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}

/* Checkout */
.checkout-section { padding: 1rem 0; }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--card);
}

.payment-option:hover { border-color: rgba(255,107,53,0.3); }

.payment-option.selected {
    border-color: var(--primary);
    background: rgba(255,107,53,0.1);
}

.payment-option input { display: none; }

.payment-icon { font-size: 1.5rem; }

.payment-label { font-weight: 600; }
.payment-desc { font-size: 0.8rem; color: var(--text-muted); }

.iban-info {
    display: none;
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease;
}

.iban-info.show { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.iban-info p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.iban-number {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
    word-break: break-all;
}

/* Success animation */
.success-modal .modal { text-align: center; }

.success-emoji {
    font-size: 5rem;
    animation: celebrate 1s ease infinite;
    display: block;
    margin-bottom: 1rem;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-10deg); }
    75% { transform: scale(1.1) rotate(10deg); }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall 3s ease forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Profile */
.profile-section { margin-bottom: 1.5rem; }

.address-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card.default { border-color: var(--primary); }

.address-title { font-weight: 700; margin-bottom: 0.3rem; }
.address-text { font-size: 0.85rem; color: var(--text-muted); }

/* Orders history */
.order-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-status {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.order-status.beklemede { background: rgba(255,210,63,0.2); color: var(--secondary); }
.order-status.hazirlaniyor { background: rgba(78,205,196,0.2); color: var(--accent); }
.order-status.yolda { background: rgba(255,107,53,0.2); color: var(--primary); }
.order-status.teslim { background: rgba(72,187,120,0.2); color: var(--success); }

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer a { color: var(--accent); text-decoration: none; }

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.loading-spin {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,107,53,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.load-error, .db-error, .empty-msg {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.load-error a, .db-error a { color: var(--primary); }

/* Mobile info bar */
.mobile-info {
    display: none;
    background: var(--card);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 99;
}

.mobile-info a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Bottom cart bar (mobile) */
.mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 0.85rem 1.2rem;
    z-index: 150;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.mobile-cart-bar .bar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
}

.mobile-cart-bar .bar-badge {
    background: var(--secondary);
    color: var(--dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.mobile-cart-bar .bar-total {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .header { padding: 0.6rem 1rem; }
    .header-info { display: none; }
    .mobile-info { display: flex; }

    .logo { font-size: 1.3rem; }
    .header-actions { gap: 0.5rem; }
    .btn-sm { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
    .user-btn { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
    .cart-btn { padding: 0.5rem 0.8rem; font-size: 1.1rem; }

    .hero { padding: 1.5rem 1rem 1rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-tags { gap: 0.5rem; }
    .tag { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

    .search-bar { margin-bottom: 1.2rem; }
    .search-bar input { padding: 0.85rem 1.2rem 0.85rem 2.8rem; font-size: 0.95rem; }

    .categories-wrap {
        max-width: 100%;
        margin-bottom: 0.25rem;
    }

    .categories-wrap::after {
        width: 2rem;
    }

    .categories-hint {
        display: block;
        position: absolute;
        right: 0.5rem;
        bottom: 0.15rem;
        font-size: 0.6rem;
        color: var(--text-muted);
        opacity: 0.65;
        pointer-events: none;
        z-index: 3;
        animation: hintPulse 2s ease infinite;
    }

    @keyframes hintPulse {
        0%, 100% { opacity: 0.35; }
        50% { opacity: 0.85; }
    }

    .categories-wrap.scrolled-end .categories-hint {
        opacity: 0;
    }

    .categories-scroll {
        scroll-padding: 0 1rem;
    }

    .categories-track {
        padding: 0.25rem 1rem 0.6rem;
        gap: 0.5rem;
    }

    .cat-btn {
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }

    .products-section { padding: 0 1rem 5.5rem; }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .product-visual { height: 100px; padding: 0.6rem; }
    .product-icon-svg { width: 56px; height: 56px; }
    .product-info { padding: 0.75rem; }
    .product-name { font-size: 0.85rem; }
    .product-desc { display: none; }
    .product-price { font-size: 1rem; }
    .add-btn { width: 36px; height: 36px; font-size: 1.1rem; }

    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .modal {
        padding: 1.5rem;
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        align-self: flex-end;
        width: 100%;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .payment-option { padding: 0.85rem 1rem; }
    .payment-icon { font-size: 1.3rem; }

    .footer { padding: 1.5rem 1rem 5rem; font-size: 0.8rem; }
    .mobile-cart-bar { display: flex; }

    body.has-cart-bar { padding-bottom: 60px; }

    .fly-to-cart { width: 32px !important; height: 32px !important; }
}

@media (max-width: 380px) {
    .products-grid { gap: 0.5rem; }
    .product-visual { height: 85px; }
    .product-icon-svg { width: 48px; height: 48px; }
    .guest-actions .btn-sm:last-child { display: none; }
    #registerBtnMobile { display: inline-flex !important; }
}

#registerBtnMobile { display: none; }

/* User menu */
.user-menu { position: relative; }

.user-btn {
    background: var(--card);
    border: 2px solid rgba(255,255,255,0.1);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.1);
    display: none;
    z-index: 110;
}

.user-dropdown.open { display: block; animation: slideDown 0.2s ease; }

.user-dropdown button,
.user-dropdown a {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    background: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    text-decoration: none;
}

.user-dropdown button:hover,
.user-dropdown a:hover { background: rgba(255,107,53,0.1); color: var(--primary); }
