/* Mobile Responsive Styles */

@media (max-width: 768px) {
    /* Layout */
    .floating-panel {
        top: var(--spacing-md);
        left: var(--spacing-md);
        width: calc(100vw - 24px);
        height: 85vh;
    }
    
    .bottom-search-bar {
        bottom: var(--spacing-md);
        left: var(--spacing-md);
        width: calc(100vw - 24px);
    }

    /* Header */
    header {
        padding: var(--spacing-md);
        padding-right: 60px;
    }

    .header-brand h1 {
        font-size: var(--font-md);
    }

    .user-info {
        font-size: var(--font-sm);
    }

    .user-info-dropdown {
        left: 0;
        right: 0;
    }

    /* Sections - keep in one line */
    .section-header {
        padding: var(--spacing-md) var(--spacing-xl) 0;
    }

    .section-header h2 {
        font-size: var(--font-md);
    }

    /* Add Product - keep in one line */
    .add-product {
        margin: 0 var(--spacing-md) var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .add-product input {
        padding: var(--spacing-sm);
    }

    .add-product .btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: var(--font-xl);
    }

    /* Preview */
    .preview-content {
        flex-direction: column;
    }

    .preview-image {
        margin: 0 auto;
    }

    .preview-actions {
        flex-direction: column;
    }

    /* Bulk Actions */
    .bulk-actions {
        flex-wrap: wrap;
        left: var(--spacing-md);
        right: var(--spacing-md);
        bottom: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .bulk-actions-text {
        font-size: var(--font-sm);
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-bottom: var(--spacing-xs);
    }

    .bulk-actions .btn:not(#categoryDropdownBtn) {
        padding: var(--spacing-sm);
        min-width: auto;
        width: 40px;
        height: 40px;
        justify-content: center;
        font-size: 0;
    }

    .bulk-actions .btn:not(#categoryDropdownBtn) svg {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    .bulk-actions #categoryDropdownBtn {
        flex: 1;
        min-width: 120px;
    }

    .bulk-actions .btn-close {
        position: absolute;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 32px;
        height: 32px;
    }

    /* Table */
    .prices-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .prices-table .product-col {
        min-width: 120px;
        max-width: 120px;
    }

    .product-image {
        width: 40px;
        height: 40px;
    }

    .product-info {
        gap: var(--spacing-sm);
    }

    .product-name {
        font-size: var(--font-sm);
    }

    .product-meta {
        font-size: 9px;
    }

    .drag-handle {
        display: none;
    }

    .edit-icon,
    .store-card-delete {
        opacity: 1;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: var(--spacing-md);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .product-detail-image {
        height: 250px;
    }

    .modal-price-row {
        grid-template-columns: 1fr auto;
        gap: var(--spacing-md);
    }

    /* Chart */
    .chart-controls {
        flex-direction: column;
    }

    .chart-controls select {
        width: 100%;
    }

    .period-buttons {
        width: 100%;
    }

    .period-btn {
        flex: 1;
    }

    /* Map */
    .map-modal {
        max-width: 100%;
    }

    #map {
        height: 300px !important;
    }

    .map-modal-actions {
        flex-direction: column;
    }

    /* Notifications */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .notify-modal-content {
        width: 95%;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .floating-panel {
        height: 85vh;
    }
}

/* Notification System Mobile Styles */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    .notify-modal-content {
        width: 95%;
        max-width: none;
    }

    .notify-modal-header {
        padding: 20px 16px 12px;
    }

    .notify-modal-body {
        padding: 0 16px 20px;
    }

    .notify-modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
    }

    .notify-modal-footer .btn {
        width: 100%;
    }

    .btn-choice {
        padding: 14px 16px;
    }

    .btn-choice-icon svg {
        width: 18px;
        height: 18px;
    }
}
