/* ============================================
   GROCERY APP - COMPLETE STYLES
   All styles consolidated and de-duplicated
   ============================================ */

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

/* CSS Variables */
:root {
    --primary: #0891B2;
    --primary-dark: #0e7490;
    --primary-light: #06B6D4;
    --accent: #F97316;
    --accent-hover: #EA580C;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.04);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F97316;
}

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

#loading-screen .logo {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

#loading-screen .app-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* Auth Container */
#auth-container {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.auth-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-logo {
    font-size: 5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.auth-form input {
    padding: 14px 16px;
    font-size: 1rem;
    min-height: 48px;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
}

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

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Text inputs - touch friendly */
input[type="text"],
input[type="email"],
input[type="password"],
.quick-add-input {
    padding: 12px 14px;
    font-size: 0.95rem;
    min-height: 44px;
}

/* Buttons - Base */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    min-height: 36px;
    max-width: fit-content;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 14px 24px;
    font-size: 0.95rem;
    min-height: 44px;
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.8rem;
    min-height: 32px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 30px;
}

.btn-google {
    width: 100%;
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google svg {
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 12px;
    font-weight: 600;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* App Container */
#app-container {
    display: none;
    height: 100vh;
    overflow: hidden;
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: max(env(safe-area-inset-top), 20px) 25px 25px;
    color: white;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    min-height: 32px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* App Content */
.app-content {
    height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 25px 20px 100px;
    -webkit-overflow-scrolling: touch;
}

.app-content::-webkit-scrollbar {
    width: 6px;
}

.app-content::-webkit-scrollbar-track {
    background: transparent;
}

.app-content::-webkit-scrollbar-thumb {
    background: rgba(8, 145, 178, 0.2);
    border-radius: 3px;
}

.app-content::-webkit-scrollbar-thumb:hover {
    background: rgba(8, 145, 178, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 8px 0 max(env(safe-area-inset-bottom), 8px);
    z-index: 999;
    border-top: 1px solid var(--border);
}

.nav-items {
    display: flex;
    justify-content: space-around;
    max-width: 600px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 12px;
    color: var(--text-secondary);
    flex: 1;
}

.nav-item:hover {
    background: var(--bg-main);
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.6rem;
    transition: transform 0.2s;
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
}

/* Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.list-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-header-compact .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    min-height: 30px;
}

/* Store Selector */
.store-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.store-chip {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-main);
    color: var(--text-primary);
}

.store-chip:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.store-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Autocomplete */
.input-with-autocomplete {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
}

.autocomplete-dropdown.visible {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--bg-main);
    color: var(--primary);
    font-weight: 500;
}

/* Grocery Items */
.grocery-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--bg-main);
    border-radius: 12px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.grocery-item:hover {
    border-color: var(--border);
    transform: translateX(2px);
}

.grocery-item.checked {
    opacity: 0.5;
    text-decoration: line-through;
}

.grocery-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--success);
    flex-shrink: 0;
}

.item-name-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.item-name-wrapper span:first-child {
    font-weight: 500;
    font-size: 1rem;
}

.item-name-wrapper:hover {
    opacity: 0.7;
}

.quantity-badge {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
}

.grocery-item-container {
    margin-bottom: 10px;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s;
    opacity: 0.7;
    line-height: 1;
    flex-shrink: 0;
}

.favorite-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Quantity Controls - Material Design */
.qty-controls-inline {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    margin-top: -2px;
    padding: 0 14px;
}

.qty-controls-inline.expanded {
    max-height: 180px;
    opacity: 1;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-top: none;
}

.qty-inline-btn,
.qty-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-inline-btn:hover,
.qty-add-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.qty-inline-btn:active,
.qty-add-btn:active {
    background: #f3f4f6;
    transform: scale(0.95);
}

.qty-inline-ok {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: var(--success);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 12px;
}

.qty-inline-ok:active {
    transform: scale(0.95);
    background: #059669;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 12px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: toastSlideUp 0.3s ease;
    font-weight: 500;
}

.toast.error {
    background: var(--danger);
}

@keyframes toastSlideUp {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes toastFadeOut {
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn {
        min-height: 40px;
        padding: 10px 18px;
    }
    
    .btn-small, .btn-xs {
        min-height: 36px;
        padding: 8px 14px;
    }
}

@media (max-width: 640px) {
    .app-content {
        padding: 20px 16px 100px;
    }
}

/* ============================================
   MODALS & SPECIAL FEATURES
   ============================================ */

/* Delete Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-body {
    padding: 24px;
}

.modal-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0891B2;
    margin: 0 0 12px 0;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-btn-danger {
    background: #EF4444;
    color: white;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
}

.modal-btn-danger:hover {
    background: #DC2626;
}

.modal-btn-warning {
    background: #F97316;
    color: white;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
}

.modal-btn-warning:hover {
    background: #EA580C;
}

.modal-btn-cancel {
    background: #e2e8f0;
    color: #475569;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
}

.modal-btn-cancel:hover {
    background: #cbd5e1;
}

/* Hamburger Menu */
.hamburger-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hamburger-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.hamburger-menu.visible {
    display: flex;
    justify-content: flex-end;
}

.hamburger-menu-content {
    background: white;
    width: 280px;
    height: 100%;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

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

.hamburger-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
    color: white;
}

.hamburger-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.hamburger-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger-item {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.hamburger-item:hover {
    background: #f8fafc;
}

.hamburger-item span:first-child {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

/* Share Indicator */
.share-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
}

.share-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.share-indicator-dot.linked {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.share-indicator-dot.sharing {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Collapsible Store Lists */
.store-card {
    margin-bottom: 12px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: rgba(8, 145, 178, 0.1);
    touch-action: manipulation;
    background: linear-gradient(90deg, #ffffff 0%, #f8fafc 100%);
}

.store-header:active {
    background: rgba(8, 145, 178, 0.05);
}

.store-header-left {
    flex: 1;
}

.store-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.store-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.store-chevron {
    font-size: 1.5rem;
    color: #0891B2;
    transition: transform 0.3s;
    font-weight: 700;
}

.store-chevron.expanded {
    transform: rotate(90deg);
}

.store-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.store-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0;
}

.store-content.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.store-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.store-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.store-action-btn.btn-done {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.store-action-btn.btn-done:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.store-action-btn.btn-clear {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 36px;
    font-weight: 500;
}

.store-action-btn.btn-clear:active {
    background: #e2e8f0;
    transform: scale(0.98);
    box-shadow: none;
}

/* Link Banner */
.link-banner {
    margin: 16px 20px;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.link-banner.linked {
    background: #DBEAFE;
    border: 2px solid #3B82F6;
}

.link-banner.owner {
    background: #D1FAE5;
    border: 2px solid #10B981;
}

.link-banner-content {
    flex: 1;
}

.link-banner-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.link-banner.linked .link-banner-title {
    color: #1E40AF;
}

.link-banner.owner .link-banner-title {
    color: #065F46;
}

.link-banner-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
}

.link-banner-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.link-banner .btn-unlink {
    background: #EF4444;
    color: white;
}

.link-banner .btn-unlink:hover {
    background: #DC2626;
}

.link-banner .btn-share {
    background: #10B981;
    color: white;
}

.link-banner .btn-share:hover {
    background: #059669;
}

.store-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-main);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid transparent;
}

.store-item-compact:hover {
    border-color: var(--border);
}

.store-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.store-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
/* FAB Button */
.fab-btn {
    position: fixed;
    bottom: calc(104px + max(env(safe-area-inset-bottom), 8px));
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fab-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.55);
}
.fab-btn:active {
    transform: scale(0.95);
}

/* Lists sub-tabs — icon + pill style */
.lists-subtabs {
    display: flex;
    background: var(--bg-main);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 14px;
}
.lists-subtab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.lists-subtab .tab-icon {
    font-size: 1rem;
    line-height: 1;
}
.lists-subtab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.4);
}

/* Remove Bought modal item rows */
.bought-item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.bought-item-row:last-child {
    border-bottom: none;
}
.bought-item-name {
    font-weight: 600;
    color: var(--text-primary);
}
.bought-item-options {
    display: flex;
    gap: 8px;
}
.bought-opt-btn {
    flex: 1;
    padding: 8px 6px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.bought-opt-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
