:root {
    --bg: #05070d;
    --bg-2: #08111f;
    --panel: rgba(12, 18, 31, 0.94);
    --panel-2: rgba(17, 24, 39, 0.96);
    --card: rgba(15, 23, 42, 0.82);
    --card-soft: rgba(255, 255, 255, 0.045);
    --blue: #2563eb;
    --blue-2: #3b82f6;
    --blue-3: #60a5fa;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --white: #ffffff;
}

/* Reset */

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

html {
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(96, 165, 250, 0.10), transparent 25%),
        linear-gradient(135deg, #03060c 0%, #08111f 48%, #0b1324 100%);
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 8, 15, 0.82);
    border-bottom: 1px solid rgba(59, 130, 246, 0.14);
    backdrop-filter: blur(16px);
}

.header-content {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(145deg, #000000 0%, #0f172a 45%, #1d4ed8 100%);
    border: 1px solid rgba(96, 165, 250, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 22px rgba(59, 130, 246, 0.24);
}

.brand-name {
    color: #f8fafc;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links .active {
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.10);
}

.cart-pill {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.36)) !important;
    border-color: rgba(96, 165, 250, 0.32) !important;
}

.user-pill {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.34)) !important;
    border-color: rgba(96, 165, 250, 0.38) !important;
}

.logout-pill {
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.28) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}

/* Layout base */

main {
    padding: 38px 0 52px;
}

.section-title {
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--muted);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 30px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 58%, #3b82f6 100%);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
    box-shadow:
        0 18px 36px rgba(37, 99, 235, 0.34),
        0 0 20px rgba(59, 130, 246, 0.16);
}

.btn-outline {
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.btn-outline:hover {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(96, 165, 250, 0.44);
}

.btn-favorite {
    color: #ffe4e6;
    background: rgba(225, 29, 72, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.42);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.16);
}

.btn-favorite:hover {
    color: #ffffff;
    background: rgba(225, 29, 72, 0.24);
    border-color: rgba(251, 113, 133, 0.75);
    box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
    transform: translateY(-1px);
}

.btn-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.22);
}

.btn-danger:hover {
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.30);
}

/* Login / Signup */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell {
    width: min(980px, 100%);
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(7, 12, 22, 0.88);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(37, 99, 235, 0.10);
}

.visual-panel {
    position: relative;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    animation: visualSlider 18s infinite ease-in-out;
}

.visual-panel::before,
.catalog-hero::before,
.product-hero::before,
.cart-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(2, 6, 14, 0.72), rgba(2, 6, 14, 0.90)),
        repeating-linear-gradient(0deg, rgba(96, 165, 250, 0.06) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0 1px, transparent 1px 34px);
    pointer-events: none;
}

.visual-panel > *,
.catalog-hero > *,
.product-hero > *,
.cart-hero > * {
    position: relative;
    z-index: 1;
}

.auth-copy h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.02;
    color: #f8fafc;
    letter-spacing: -1.4px;
    margin-bottom: 18px;
}

.auth-copy p {
    color: #cbd5e1;
    max-width: 440px;
}

.tech-tag {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.28);
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.auth-panel {
    padding: 56px 44px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.97), rgba(8, 13, 24, 0.98));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h2 {
    color: #f8fafc;
    font-size: 2rem;
    letter-spacing: -0.7px;
}

.auth-header p {
    color: var(--muted);
    margin-top: 8px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    color: #dbeafe;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 0.9rem;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
    padding: 13px 15px;
    font-size: 1rem;
    outline: 0;
    transition: 0.2s ease;
}

input:focus,
select:focus {
    border-color: rgba(96, 165, 250, 0.72);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

select option {
    background: #0f172a;
    color: #ffffff;
}

.auth-footer {
    text-align: center;
    color: var(--muted);
    margin-top: 22px;
}

.auth-footer a {
    color: #60a5fa;
    font-weight: 900;
    text-decoration: none;
}

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

/* Hero panels */

.catalog-hero,
.product-hero,
.cart-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    min-height: 300px;
    padding: 52px;
    margin-bottom: 28px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.catalog-hero {
    animation: visualSlider 18s infinite ease-in-out;
}

.product-hero {
    background-image: url("https://images.unsplash.com/photo-1518611012118-696072aa579a?auto=format&fit=crop&w=1400&q=80");
}

.cart-hero {
    background-image: url("https://images.unsplash.com/photo-1511556820780-d912e42b4980?auto=format&fit=crop&w=1400&q=80");
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: #f8fafc;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.hero-content p {
    color: #cbd5e1;
    max-width: 560px;
}

/* Catalog */

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 104px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.78);
}

.filters-sidebar h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.stock-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.stock-filter input {
    width: auto;
    min-height: auto;
}

.filter-button {
    width: 100%;
    margin-top: 4px;
}

.clear-filters {
    color: #93c5fd;
    text-align: center;
    font-weight: 900;
    text-decoration: none;
}

.clear-filters:hover {
    text-decoration: underline;
}

.catalog-products {
    min-width: 0;
}

/* Sections */

.products-section,
.product-container,
.related-section,
.cart-section,
.total-section {
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(8, 13, 24, 0.96));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.products-section {
    padding: 34px;
}

.no-products,
.empty-cart {
    text-align: center;
    padding: 46px 22px;
    color: var(--muted);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(96, 165, 250, 0.20);
}

.empty-cart-img,
.no-products-img {
    width: 94px;
    height: 94px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    margin: 0 auto 18px;
    border: 1px solid rgba(96, 165, 250, 0.22);
}

/* Product cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.78);
    transition: 0.22s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.30);
}

.clickable-card {
    display: flex;
    flex-direction: column;
}

.product-card-main-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.product-card-main-link:hover .product-name {
    color: #93c5fd;
}

.product-card-image {
    width: 100%;
    height: 178px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(1.05) contrast(1.03);
    background: rgba(15, 23, 42, 0.92);
}

.product-card-body {
    padding: 20px;
}

.product-name {
    color: #f8fafc;
    font-size: 1.18rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.product-name a {
    color: #f8fafc;
    text-decoration: none;
}

.product-name a:hover {
    color: #93c5fd;
}

.product-description {
    color: var(--muted);
    font-size: 0.92rem;
    min-height: 48px;
    margin-bottom: 16px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
}

.product-price,
.price-value,
.item-price,
.total-amount {
    color: #93c5fd;
    font-weight: 900;
}

.product-price {
    font-size: 1.35rem;
}

.product-stock,
.stock-value {
    color: var(--success);
    font-weight: 800;
}

.stock-low {
    color: var(--warning);
    font-weight: 900;
}

.stock-out {
    color: var(--danger);
    font-weight: 900;
}

/* Product detail */

.breadcrumb {
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 800;
}

.product-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 34px;
    padding: 34px;
}

.product-image img {
    width: 100%;
    min-height: 430px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.product-info h2 {
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.product-details-panel {
    margin: 22px 0;
}

.detail-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-label {
    min-width: 110px;
    color: #dbeafe;
    font-weight: 900;
}

.detail-value {
    color: #cbd5e1;
}

.description-value {
    color: #cbd5e1;
    padding: 18px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.16);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
}

.status-available {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.24);
}

.status-low {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.status-out {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.related-section {
    padding: 30px;
    margin-top: 28px;
    text-align: center;
}

/* Cart / Checkout / Invoice */

.cart-section {
    padding: 34px;
    margin-bottom: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-bottom: 14px;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.72);
    transition: 0.2s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.30);
}

.item-name {
    color: #f8fafc;
    font-size: 1.12rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.item-details {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
}

.item-stock {
    color: var(--success);
    font-weight: 800;
}

.total-section {
    padding: 30px;
    text-align: center;
}

.total-section h3 {
    color: #dbeafe;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-amount {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin: 8px 0 18px;
}

.alert {
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-weight: 800;
}

.alert-error {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.28);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

/* Client profile */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

.profile-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(8, 13, 24, 0.96));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.profile-card h2 {
    color: #f8fafc;
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.profile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-row span {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 700;
}

.profile-row strong {
    color: #f8fafc;
    font-size: 0.96rem;
    word-break: break-word;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.profile-stat strong {
    color: #93c5fd;
    font-size: 2rem;
    line-height: 1;
}

.profile-stat span {
    color: #94a3b8;
    font-weight: 700;
}

.profile-btn {
    width: 100%;
}

.profile-section {
    margin-bottom: 28px;
}

.profile-total-line {
    margin-top: 20px;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.profile-total-line span {
    color: #cbd5e1;
    font-weight: 800;
}

.profile-total-line strong {
    color: #93c5fd;
    font-size: 1.6rem;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.72);
}

.order-card h3 {
    color: #f8fafc;
    margin-bottom: 4px;
}

.order-card p {
    color: #94a3b8;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(4, 8, 15, 0.92);
    color: var(--muted);
    padding: 28px 0;
    text-align: center;
}

/* Scroll restore */

html.no-smooth-scroll,
html.no-smooth-scroll body {
    scroll-behavior: auto !important;
}

body.restore-hidden {
    visibility: hidden;
}

.product-card.item-highlight,
.cart-item.item-highlight {
    animation: itemHighlight 0.7s ease;
}
html.no-smooth-scroll,
html.no-smooth-scroll body {
    scroll-behavior: auto !important;
}

.scroll-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.scroll-loader.is-active {
    display: flex;
}

.scroll-loader-box {
    padding: 18px 24px;
    border-radius: 18px;
    color: #e5e7eb;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

@keyframes itemHighlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }

    35% {
        transform: scale(1.015);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Animations */

@keyframes visualSlider {
    0%, 28% {
        background-image: url("https://images.unsplash.com/photo-1517836357463-d25dfeac3438?auto=format&fit=crop&w=1400&q=80");
    }

    33%, 61% {
        background-image: url("https://images.unsplash.com/photo-1534258936925-c58bed479fcb?auto=format&fit=crop&w=1400&q=80");
    }

    66%, 100% {
        background-image: url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?auto=format&fit=crop&w=1400&q=80");
    }
}

/* Responsive */

@media (max-width: 1080px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .auth-shell,
    .product-container {
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: 420px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .catalog-hero,
    .product-hero,
    .cart-hero {
        padding: 34px 24px;
    }

    .products-section,
    .product-container,
    .cart-section,
    .total-section,
    .related-section {
        padding: 22px;
    }
}

@media (max-width: 620px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-card .btn {
        width: 100%;
    }

    .profile-total-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 520px) {
    .auth-page {
        padding: 14px;
    }

    .auth-panel,
    .visual-panel {
        padding: 30px 22px;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: 1.28rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .action-buttons,
    .btn {
        width: 100%;
    }

    .product-details,
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
    }
	
}

.add-cart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quantity-control label {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
}

.quantity-control input {
    width: 76px;
    padding: 8px 10px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-weight: 800;
    outline: none;
}

.quantity-control input:focus {
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.alert-error,
.alert-warning,
.alert-success {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
}

.alert-error {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.alert-warning {
    color: #fde68a;
    background: rgba(250, 204, 21, 0.10);
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.alert-success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
}