@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ============================================================
   DESIGN SYSTEM — Alzhaparova 2026
   Modern, elegant, warm aesthetic
   ============================================================ */

:root {
    /* Palette */
    --pink: #e85a8a;
    --pink-light: #f8b4d0;
    --pink-dark: #c2185b;
    --cream: #faf7f5;
    --cream-dark: #f0e8e3;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d0d0d0;
    --gray-400: #a0a0a0;
    --gray-500: #707070;
    --rose: #8b5e7a;
    --rose-light: #c9a8b8;
    --gold: #d4a574;
    --success: #2e7d32;
    --warning: #f9a825;
    --error: #c62828;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.10);
    --shadow-pink: 0 8px 30px rgba(232,90,138,0.18);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 72px;
    --max-width: 1400px;
}

/* ============================================================
   1. BASE & RESET
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

img, video, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--black);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

::selection {
    background: var(--pink-light);
    color: var(--black);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   2. HEADER & NAVIGATION
   ============================================================ */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    background: rgba(250,247,245,0.85);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-left, .nav-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-right: 28px;
    position: relative;
    padding: 4px 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width var(--transition-base);
}

.logo:hover::after {
    width: 100%;
}

.main-nav a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
}

.main-nav a:hover {
    color: var(--pink);
    background: rgba(232,90,138,0.06);
}

.main-nav a.active {
    color: var(--pink);
    background: rgba(232,90,138,0.08);
    font-weight: 600;
}

.cart-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-link {
    color: var(--pink) !important;
    border: 1.5px solid var(--pink-light) !important;
    background: rgba(232,90,138,0.04) !important;
}

.admin-link:hover {
    background: var(--pink) !important;
    color: var(--white) !important;
    border-color: var(--pink) !important;
}

/* ============================================================
   NOTIFICATION BELL & DROPDOWN
   ============================================================ */
.notif-bell-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notif-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    color: var(--gray-500);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-bell:hover {
    color: var(--pink);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(232,90,138,0.4);
    pointer-events: none;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

.notif-dropdown.active {
    display: flex;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.notif-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

.notif-read-all {
    font-size: 12px;
    color: var(--pink);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.notif-read-all:hover {
    background: rgba(232,90,138,0.08);
}

.notif-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px;
}

.notif-list:empty::after {
    content: 'У вас пока нет уведомлений';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
    font-size: 14px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.notif-item:hover {
    background: var(--cream);
}

.notif-item.unread {
    background: rgba(232,90,138,0.04);
}

.notif-item.unread:hover {
    background: rgba(232,90,138,0.08);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon.order_status { background: #e3f2fd; }
.notif-icon.chat_message { background: #f3e5f5; }
.notif-icon.payment { background: #e8f5e9; }
.notif-icon.delivery { background: #fff3e0; }
.notif-icon.error { background: #ffebee; }

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 4px;
    line-height: 1.3;
}

.notif-text {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 11px;
    color: var(--gray-400);
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    flex-shrink: 0;
    margin-top: 4px;
}

.notif-item.read .notif-dot {
    display: none;
}

@media (max-width: 600px) {
    .notif-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }
}

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pink);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 0;
}

.btn-main span, .btn-main svg {
    position: relative;
    z-index: 1;
}

.btn-main:hover::before {
    transform: translateY(0);
}

.btn-main:hover {
    box-shadow: var(--shadow-pink);
    transform: translateY(-2px);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1.5px solid var(--black);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--pink);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-pink);
    position: relative;
    overflow: hidden;
}

.btn-pink::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pink-dark);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: 0;
}

.btn-pink span, .btn-pink svg, .btn-pink i {
    position: relative;
    z-index: 1;
}

.btn-pink:hover::after {
    transform: translateY(0);
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(232,90,138,0.30);
}

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

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(198,40,40,0.20);
}

/* ============================================================
   4. FORMS & INPUTS
   ============================================================ */
input, select, textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(232,90,138,0.08);
}

input::placeholder, textarea::placeholder {
    color: var(--gray-400);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ============================================================
   5. CARDS
   ============================================================ */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ============================================================
   6. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.4s ease forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.10s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.20s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.30s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.40s; }

/* ============================================================
   7. TABLE
   ============================================================ */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background: var(--cream);
    color: var(--gray-500);
    text-align: left;
    padding: 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid var(--gray-200);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--black);
    font-size: 14px;
}

tr:hover td {
    background: rgba(232,90,138,0.02);
}

tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   8. LAYOUT UTILITIES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.glass {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255,255,255,0.5);
}

.glass-pink {
    background: rgba(232,90,138,0.08);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(232,90,138,0.12);
}

.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    margin: 0 0 40px 0;
    max-width: 600px;
}

/* ============================================================
   9. FOOTER
   ============================================================ */
footer {
    flex-shrink: 0;
    margin-top: 8px;
    padding: 48px 5% 40px;
    background: var(--cream);
    border-top: 2px solid var(--pink-light);
    text-align: center;
    color: var(--gray-400);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-accent {
    font-size: 18px;
    color: var(--pink);
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 4px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 2px;
    margin: 0;
}

.footer-copy {
    font-size: 12px;
    color: var(--gray-400);
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--gray-400);
    font-style: italic;
    margin: 4px 0 0;
    opacity: 0.8;
}

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .main-nav {
        padding: 0 4%;
    }
    .nav-left a:not(.logo), .nav-right a {
        font-size: 13px;
        padding: 6px 12px;
    }
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    .main-nav {
        padding: 0 4%;
        gap: 8px;
    }
    .nav-left {
        gap: 4px;
    }
    .nav-right {
        gap: 4px;
    }
    .logo {
        font-size: 18px;
        margin-right: 12px;
    }
    .main-nav a {
        padding: 6px 10px;
        font-size: 12px;
    }
    .section-title {
        font-size: 24px;
    }
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--pink);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.mobile-bottom-nav .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    height: 100%;
    transition: var(--transition-fast);
    border-top: 3px solid transparent;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav .mbn-item.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
    border-top-color: #fff;
}

.mobile-bottom-nav .mbn-item:active {
    background: rgba(255,255,255,0.2);
}

.mobile-bottom-nav .mbn-icon {
    font-size: 24px;
    line-height: 1;
    filter: grayscale(0.2);
}

.mobile-bottom-nav .mbn-item.active .mbn-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.mobile-bottom-nav .mbn-label {
    font-size: 11px;
    letter-spacing: 0.3px;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE — MOBILE ADAPTIVE
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding-bottom: 64px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    /* Шапка — только логотип */
    .main-nav {
        height: 56px;
        padding: 0 16px;
        justify-content: center;
    }

    .nav-left a:not(.logo),
    .nav-right {
        display: none !important;
    }

    .logo {
        margin-right: 0;
        font-size: 20px;
    }

    /* Уведомления в шапке скрываем (они есть в профиле) */
    .notif-bell-wrap {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-left a:not(.logo) {
        display: none;
    }
}

/* ============================================================
   MOBILE TOUCH & READABILITY IMPROVEMENTS
   ============================================================ */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .container {
        padding: 0 4%;
    }
    footer {
        padding: 32px 4% 28px;
    }
    .footer-brand {
        font-size: 16px;
    }
    input, select, textarea {
        font-size: 16px; /* предотвращает зум на iOS */
        padding: 12px 14px;
    }
    .card {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    table th, table td {
        padding: 12px;
        font-size: 13px;
    }
    .section-title {
        font-size: 24px;
    }
    .btn-main, .btn-pink, .btn-outline {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }
    .btn-main, .btn-pink, .btn-outline {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
    }
}

/* ============================================================
   MOBILE ENHANCEMENTS v2 — Touch-friendly & readable
   ============================================================ */
@media (max-width: 768px) {
    /* Larger base text for readability */
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    /* All interactive elements minimum 48px height */
    button, .btn-main, .btn-pink, .btn-outline, .btn-sm,
    input[type="text"], input[type="email"], input[type="password"],
    input[type="number"], input[type="tel"], select, textarea {
        min-height: 48px;
    }

    /* Touch-friendly checkboxes & radios */
    input[type="checkbox"], input[type="radio"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
        min-height: 22px;
    }

    /* Larger tap targets for links in lists */
    a {
        -webkit-tap-highlight-color: rgba(232, 90, 138, 0.15);
    }

    /* Product cards — mobile optimization */
    .product-card {
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .product-card .product-img-wrap {
        aspect-ratio: 4 / 3;
    }
    .product-card .product-title {
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    .product-card .product-price {
        font-size: 17px;
        font-weight: 700;
        color: var(--pink);
    }
    .product-card .btn-add-cart {
        width: 100%;
        margin-top: 10px;
        padding: 12px;
        font-size: 15px;
        font-weight: 600;
    }

    /* Modal improvements */
    .modal-overlay {
        align-items: flex-end;
    }
    .modal-box {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        margin: 0;
        padding: 28px 20px 32px;
        max-height: 92vh;
        animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    @keyframes modalSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);     opacity: 1; }
    }

    /* Form rows */
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    .form-group label {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
        display: block;
    }

    /* Tables horizontal scroll container */
    .data-table-wrap {
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
    }

    /* Auth cards */
    .auth-card {
        margin: 16px;
        width: auto;
        padding: 32px 24px;
    }

    /* Sidebar filters */
    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Quiz */
    .quiz-container {
        margin: 12px;
        padding: 24px 20px;
        width: auto;
    }
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .option-card {
        padding: 20px 12px;
    }
    .option-card .option-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    .option-card .option-label {
        font-size: 14px;
        font-weight: 500;
    }

    /* Cart item */
    .cart-item {
        padding: 16px;
        gap: 14px;
    }
    .cart-item-img {
        width: 72px;
        height: 72px;
        border-radius: var(--radius-sm);
    }
    .cart-item-title {
        font-size: 15px;
        font-weight: 600;
    }
    .cart-item-meta {
        font-size: 13px;
        color: var(--gray-500);
    }
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .qty-input {
        width: 48px;
        height: 40px;
        font-size: 16px;
    }

    /* Checkout */
    .checkout-grid {
        gap: 20px;
    }
    .summary-panel {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    /* Admin tables compact */
    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
    .data-table th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: var(--gray-500);
    }

    /* Admin cards */
    .admin-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    .admin-header h1 {
        font-size: 1.5em;
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .products-grid, .products-grid-home {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .product-card .product-img-wrap {
        aspect-ratio: 16 / 10;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-img {
        width: 64px;
        height: 64px;
    }
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 8px;
    }
    .modal-box {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding: 24px 16px 28px;
    }
}
