/* ============================================
   CSS COMMUN - Gloutonnes List & Shop
   Styles partagés pour toutes les pages de /list/
   ============================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========== CONTAINERS ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em 1em;
}

/* ========== HEADERS ========== */
.header {
    background: linear-gradient(135deg, #6b21a8 0%, #f97316 100%);
    color: white;
    padding: 2em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
}

.header h1 {
    font-size: 1.8em;
}

.header-actions {
    display: flex;
    gap: 1em;
}

.page-header {
    background: white;
    padding: 2em;
    border-radius: 12px;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-header {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    margin-bottom: 2em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ========== BUTTONS ========== */
.btn {
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: #6b21a8;
    color: white;
}

.btn-primary:hover {
    background: #581c87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #d1d5db;
    border-color: #9ca3af;
}

.btn-small {
    padding: 0.5em 1em;
    font-size: 0.9em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-edit {
    background: #6b21a8;
    color: white;
}

.btn-edit:hover {
    background: #581c87;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-delete:hover {
    background: #dc2626;
}

.btn-delete-notif {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: transparent;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete-notif:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.btn-delete-notif:active {
    transform: scale(0.95);
}

/* ========== CARDS & SECTIONS ========== */
.section {
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.section h2 {
    font-size: 1.5em;
    color: #1f2937;
    margin-bottom: 1em;
}

.card {
    background: white;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2em;
}

.card h2 {
    color: #6b21a8;
    margin-bottom: 1.5em;
    font-size: 1.5em;
}

/* ========== STATS ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin-bottom: 2em;
}

.stat-card {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #6b21a8;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 0.3em;
}

/* ========== GRIDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5em;
}

.product-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5em;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: #6b21a8;
    box-shadow: 0 4px 12px rgba(107,33,168,0.1);
}

.product-name {
    font-size: 1.2em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5em;
}

.product-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #6b21a8;
    margin-bottom: 0.5em;
}

.product-actions {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

/* ========== BADGES ========== */
.badge {
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}

.badge-stock {
    background: #d1fae5;
    color: #065f46;
}

.badge-out {
    background: #fee2e2;
    color: #991b1b;
}

.badge-echange {
    background: #fef3c7;
    color: #92400e;
}

.badge-public {
    background: #dbeafe;
    color: #1e40af;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1.5em;
}

label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #374151;
}

.required {
    color: #dc2626;
}

input, select, textarea {
    width: 100%;
    padding: 0.75em;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6b21a8;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.help-text {
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 0.3em;
}

.form-actions {
    display: flex;
    gap: 1em;
    margin-top: 2em;
}

/* ========== MESSAGES ========== */
.message {
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 1.5em;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75em;
    border-radius: 8px;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75em;
    border-radius: 8px;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.info {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.75em;
    border-radius: 8px;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.info-box {
    background: #dbeafe;
    color: #1e40af;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 2em;
}

/* ========== EMPTY STATES ========== */
.empty-state {
    text-align: center;
    padding: 3em;
    color: #6b7280;
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 1em;
    margin-bottom: 2em;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
    height: 6px;
}

.tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tabs::-webkit-scrollbar-thumb {
    background: #6b21a8;
    border-radius: 3px;
}

.tab-btn {
    padding: 1em;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: #6b21a8;
}

.tab-btn.active {
    color: #6b21a8;
    border-bottom-color: #6b21a8;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========== MODALS ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2em;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #6b7280;
}

/* ========== FILTERS ========== */
.filters {
    background: white;
    padding: 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2em;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
}

.filters input, .filters select {
    padding: 0.75em;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
}

.filters input[type="text"] {
    flex: 1;
    min-width: 200px;
}

/* ========== VIEW TOGGLE ========== */
.view-toggle {
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
    margin-bottom: 1em;
    align-items: center;
    margin-top: 1em;
}

.view-toggle span {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95em;
}

.view-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.6em 1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 0.3em;
    font-weight: 500;
}

.view-btn:hover {
    background: #f3f4f6;
    border-color: #6b21a8;
    color: #6b21a8;
}

.view-btn.active {
    background: #6b21a8;
    color: white;
    border-color: #6b21a8;
}

/* ========== TABLES ========== */
.products-table-wrapper {
    display: none;
    margin-top: 1em;
}

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead {
    background: #6b21a8;
    color: white;
}

.products-table th {
    padding: 1em;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.products-table th:last-child {
    min-width: 160px;
}

.products-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.products-table tbody tr:hover {
    background: #f8fafc;
}

.products-table td {
    padding: 0.8em 1em;
    font-size: 0.9em;
    vertical-align: middle;
}

.products-table td img {
    display: inline-block;
    margin-right: 0.5em;
}

.table-name {
    font-weight: 600;
    color: #2d3748;
    max-width: 250px;
}

.table-source,
.table-collectionneur,
.table-etat,
.table-visibilite,
.table-echange,
.table-notes {
    color: #6b7280;
}

.table-actions {
    min-width: 160px;
    white-space: nowrap;
}

.table-actions .btn-small {
    margin: 0.2em;
}

/* ========== LOGIN/REGISTER CONTAINERS ========== */
.login-container,
.register-container {
    background: white;
    padding: 3em;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
}

.register-container {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

h1 {
    color: #6b21a8;
    margin-bottom: 0.5em;
    font-size: 2em;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 2em;
}

.links {
    text-align: center;
    margin-top: 1.5em;
    color: #6b7280;
}

.links a {
    color: #6b21a8;
    text-decoration: none;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

/* ========== INFO ITEMS ========== */
.info-item {
    margin-bottom: 1em;
    padding: 1em;
    background: #f9fafb;
    border-radius: 8px;
}

.info-item strong {
    color: #6b7280;
    display: block;
    margin-bottom: 0.3em;
    font-size: 0.9em;
}

.info-item span {
    color: #1f2937;
    font-size: 1.1em;
}

.collectionneur {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 0.5em;
}

/* ========== FORM CONTAINERS ========== */
.form-container {
    background: white;
    padding: 2em;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.conditional-field {
    display: none;
    margin-top: 0.5em;
}

.conditional-field.show {
    display: block;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ========== DARK MODE ========== */
.dark-mode body {
    background: linear-gradient(135deg, #1a0b2e 0%, #3d1a54 50%, #1a0b2e 100%) !important;
    color: #e2e8f0;
}

.dark-mode .header {
    background: linear-gradient(135deg, #6b21a8 0%, #f97316 100%);
    color: white;
}

.dark-mode .page-header,
.dark-mode .dashboard-header,
.dark-mode .section,
.dark-mode .card,
.dark-mode .stat-card,
.dark-mode .product-card,
.dark-mode .filters,
.dark-mode .modal-content,
.dark-mode .table-container,
.dark-mode [style*="background: white"] {
    background: #2d3748 !important;
    color: #e2e8f0;
    border-color: #4a5568;
}

.dark-mode .dashboard-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode .product-name,
.dark-mode .card h2 {
    color: #e2e8f0 !important;
}

.dark-mode .dashboard-header h1,
.dark-mode .card h2 {
    color: #a78bfa !important;
}

.dark-mode .stat-value {
    color: #7c3aed !important;
}

.dark-mode .stat-label,
.dark-mode .collectionneur,
.dark-mode .empty-state,
.dark-mode .subtitle,
.dark-mode .help-text,
.dark-mode [style*="color: #6b7280"] {
    color: #a0aec0 !important;
}

.dark-mode label {
    color: #e2e8f0 !important;
}

.dark-mode .required {
    color: #f87171 !important;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background: #1a202c !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

.dark-mode input:focus,
.dark-mode select:focus,
.dark-mode textarea:focus {
    border-color: #7c3aed !important;
    outline: none;
}

.dark-mode input:disabled {
    background: #374151 !important;
    color: #9ca3af !important;
}

.dark-mode .message.success,
.dark-mode .success {
    background: #14532d !important;
    color: #86efac !important;
}

.dark-mode .message.error,
.dark-mode .error {
    background: #7f1d1d !important;
    color: #fca5a5 !important;
}

.dark-mode .info,
.dark-mode .info-box {
    background: #1e3a8a !important;
    color: #93c5fd !important;
}

.dark-mode .info-item {
    background: #374151 !important;
}

.dark-mode .info-item strong {
    color: #a0aec0 !important;
}

.dark-mode .info-item span {
    color: #e2e8f0 !important;
}

.dark-mode .btn-primary {
    background: #7c3aed !important;
    color: white !important;
}

.dark-mode .btn-primary:hover {
    background: #6d28d9 !important;
}

.dark-mode .btn-secondary {
    background: #374151 !important;
    color: #e2e8f0 !important;
    border-color: #4a5568 !important;
}

.dark-mode .btn-secondary:hover {
    background: #1a202c !important;
}

.dark-mode .product-card:hover {
    border-color: #7c3aed !important;
}

.dark-mode .modal-close {
    color: #a0aec0 !important;
}

.dark-mode .modal-close:hover {
    color: #e2e8f0 !important;
}

.dark-mode .badge-stock {
    background: #064e3b !important;
    color: #6ee7b7 !important;
}

.dark-mode .badge-echange {
    background: #78350f !important;
    color: #fde68a !important;
}

.dark-mode .badge-public {
    background: #1e3a8a !important;
    color: #93c5fd !important;
}

.dark-mode .view-toggle span {
    color: #e2e8f0;
}

.dark-mode .view-btn {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .view-btn:hover {
    background: #374151;
    border-color: #7c3aed;
    color: #a78bfa;
}

.dark-mode .view-btn.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.dark-mode .products-table thead {
    background: #5b21b6;
}

.dark-mode .products-table tbody tr {
    border-bottom-color: #4a5568;
}

.dark-mode .products-table tbody tr:hover {
    background: #374151;
}

.dark-mode .table-name {
    color: #e2e8f0;
}

.dark-mode .table-source,
.dark-mode .table-collectionneur,
.dark-mode .table-etat,
.dark-mode .table-visibilite,
.dark-mode .table-echange,
.dark-mode .table-notes {
    color: #a0aec0;
}

.dark-mode .form-container {
    background: #2d3748 !important;
    color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.dark-mode input[type="checkbox"] {
    width: auto;
}

.dark-mode .btn-danger {
    background: #dc2626 !important;
    color: white !important;
}

.dark-mode .btn-danger:hover {
    background: #b91c1c !important;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .container {
        padding: 1em 0.75em;
    }
    
    .header {
        padding: 1.5em 1em;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .header h1 {
        font-size: 1.5em;
        width: 100%;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75em;
    }
    
    .header-actions .btn {
        width: 100%;
        min-height: 44px;
    }
    
    .page-header {
        padding: 1.5em 1em;
    }
    
    .page-header h1 {
        font-size: 1.5em;
    }
    
    .dashboard-header {
        padding: 1em;
    }
    
    .dashboard-header h1 {
        font-size: 1.5em;
    }
    
    .section {
        padding: 1.5em 1em;
    }
    
    .section h2 {
        font-size: 1.3em;
    }
    
    .card {
        padding: 1.5em 1em;
    }
    
    .card h2 {
        font-size: 1.3em;
    }
    
    .tabs {
        gap: 0.5em;
        padding-bottom: 0.5em;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 0.75em 1em;
        font-size: 0.9em;
        min-height: 44px;
        white-space: nowrap;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        position: relative;
    }
    
    .table-container::before {
        content: '← Faites glisser →';
        position: absolute;
        top: 0.5em;
        right: 0.5em;
        font-size: 0.75em;
        color: #6b7280;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.25em 0.5em;
        border-radius: 4px;
        z-index: 10;
        pointer-events: none;
    }
    
    .dark-mode .table-container::before {
        background: rgba(45, 55, 72, 0.9);
        color: #a0aec0;
    }
    
    .products-table {
        min-width: 800px;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.75em 0.6em;
        font-size: 0.85em;
    }
    
    .table-actions {
        min-width: 140px;
    }
    
    .table-actions .btn-small {
        padding: 0.4em 0.75em;
        font-size: 0.8em;
        min-height: 36px;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1em;
    }
    
    .stat-card {
        padding: 1.25em;
    }
    
    .stat-value {
        font-size: 1.75em;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    
    .product-card {
        padding: 1.25em;
    }
    
    .product-name {
        font-size: 1.1em;
    }
    
    .product-price {
        font-size: 1.2em;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .product-actions .btn-small {
        width: 100%;
        min-height: 44px;
    }
    
    .filters {
        flex-direction: column;
        gap: 0.75em;
    }
    
    .filters input,
    .filters select {
        width: 100%;
        min-height: 44px;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .filters input[type="text"] {
        min-width: 0;
    }
    
    .form-group {
        margin-bottom: 1.25em;
    }
    
    input, select, textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
        min-height: 44px;
    }
    
    textarea {
        min-height: 120px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75em;
    }
    
    .form-actions .btn {
        width: 100%;
        min-height: 44px;
    }
    
    .view-toggle {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75em;
    }
    
    .view-toggle span {
        width: 100%;
    }
    
    .view-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    
    .login-container,
    .register-container {
        padding: 2em 1.5em;
        margin: 1em;
        max-width: calc(100% - 2em);
    }
    
    h1 {
        font-size: 1.75em;
    }
    
    .modal-content {
        padding: 1.5em;
        margin: 1em;
        max-width: calc(100% - 2em);
    }
    
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }
    
    .info-item {
        padding: 0.875em;
    }
    
    .form-container {
        padding: 1.5em 1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5em;
    }
    
    .header {
        padding: 1em 0.75em;
    }
    
    .header h1 {
        font-size: 1.3em;
    }
    
    .page-header,
    .dashboard-header {
        padding: 1em 0.75em;
    }
    
    .page-header h1,
    .dashboard-header h1 {
        font-size: 1.3em;
    }
    
    .section,
    .card {
        padding: 1em 0.75em;
    }
    
    .section h2,
    .card h2 {
        font-size: 1.2em;
    }
    
    .tab-btn {
        padding: 0.6em 0.75em;
        font-size: 0.85em;
    }
    
    .products-table {
        min-width: 700px;
        font-size: 0.8em;
    }
    
    .products-table th,
    .products-table td {
        padding: 0.6em 0.5em;
        font-size: 0.8em;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 0.75em;
    }
    
    .stat-card {
        padding: 1em;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5em;
    }
    
    .product-actions .btn-small {
        width: 100%;
        min-height: 44px;
    }
    
    .login-container,
    .register-container {
        padding: 1.5em 1em;
        margin: 0.5em;
        max-width: calc(100% - 1em);
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .modal-content {
        padding: 1.25em;
        margin: 0.5em;
        max-width: calc(100% - 1em);
    }
}

