.chat-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    z-index: 10;
    max-height: 220px;
    overflow-y: auto;
}

.chat-suggestions.hidden {
    display: none;
}

.chat-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.chat-suggestion:last-child {
    border-bottom: none;
}

.chat-suggestion:hover {
    background: #f8fafc;
}

.lists-container,
.store-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-list {
    display: grid;
    gap: 12px;
}

.list-item {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-item:hover {
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border-color: #e2e8f0;
}

.list-item input[type=\"checkbox\"] {
    width: 16px;
    height: 16px;
}

.item-details {
    flex: 1;
    min-width: 0;
    align-self: center;
}

.item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.item-meta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.list-item .delete-btn {
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    margin-left: auto;
    align-self: center;
}

.list-item .delete-btn:hover {
    color: #f43f5e;
}

.list-item.bought {
    opacity: 0.6;
}

.list-item.bought .item-name {
    text-decoration: line-through;
}

.store-list.drag-over {
    border: 2px dashed #86efac;
    border-radius: 18px;
    padding: 12px;
}

.list-item.dragging {
    opacity: 0.6;
}

.store-tab.drag-over {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.modal .modal-close {
    line-height: 1;
}

/* Start Shopping Button */
.start-shopping-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.start-shopping-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.start-shopping-btn:active {
    transform: translateY(0);
}

.start-shopping-icon {
    font-size: 1.1rem;
}

.store-list-items {
    display: grid;
    gap: 12px;
}

.store-list-items.drag-over {
    border: 2px dashed #86efac;
    border-radius: 18px;
    padding: 12px;
}

/* Shopping Mode Container */
.shopping-mode-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(to bottom, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shopping-mode-container.hidden {
    display: none;
}

body.shopping-mode-active {
    overflow: hidden;
}

/* Shopping Mode Header */
.shopping-mode-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top));
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.shopping-mode-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shopping-mode-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.shopping-mode-back-arrow {
    font-size: 1.1rem;
}

.shopping-mode-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.shopping-mode-store-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.shopping-mode-progress {
    font-size: 0.85rem;
    opacity: 0.9;
}

.shopping-mode-toggle-btn {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.shopping-mode-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.shopping-mode-toggle-btn.active {
    background: rgba(255, 255, 255, 0.35);
}

/* Shopping Mode List */
.shopping-mode-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}

/* Shopping Mode Items */
.shopping-mode-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    min-height: 64px;
}

.shopping-mode-item:active {
    transform: scale(0.98);
}

.shopping-mode-item.checking-off {
    animation: checkingOff 0.3s ease forwards;
}

@keyframes checkingOff {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.shopping-mode-item.bought {
    opacity: 0.6;
    background: #f8fafc;
}

.shopping-mode-item.bought .shopping-mode-item-name {
    text-decoration: line-through;
    color: #64748b;
}

/* Custom Checkbox for Shopping Mode */
.shopping-mode-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    flex-shrink: 0;
}

.shopping-mode-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.shopping-mode-checkmark {
    width: 28px;
    height: 28px;
    border: 2.5px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shopping-mode-checkbox:checked + .shopping-mode-checkmark {
    background: #10b981;
    border-color: #10b981;
}

.shopping-mode-checkbox:checked + .shopping-mode-checkmark::after {
    content: '✓';
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.shopping-mode-checkbox:focus + .shopping-mode-checkmark {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Item Details */
.shopping-mode-item-details {
    flex: 1;
    min-width: 0;
}

.shopping-mode-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.shopping-mode-item-quantity {
    font-weight: 500;
    color: #64748b;
}

.shopping-mode-item-notes {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Divider for Completed Items */
.shopping-mode-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
}

.shopping-mode-divider::before,
.shopping-mode-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Empty State */
.shopping-mode-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.shopping-mode-empty-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.shopping-mode-empty-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.shopping-mode-empty-subtext {
    font-size: 1rem;
    color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .shopping-mode-header {
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .shopping-mode-back-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .shopping-mode-store-name {
        font-size: 1rem;
    }

    .shopping-mode-toggle-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .shopping-mode-list {
        padding: 16px;
    }

    .shopping-mode-item {
        padding: 14px 16px;
        min-height: 60px;
    }

    .shopping-mode-item-name {
        font-size: 1rem;
    }
}
