:root {
    --bg: #eef4ff;
    --surface: #f8fbff;
    --surface-strong: #fff;
    --text: #10233f;
    --muted: #6b7280;
    --line: #d4e2ff;
    --primary: #0b63ce;
    --primary-dark: #083b8a;
    --accent: #38a3ff;
    --danger: #a83232;
    --shadow: 0 24px 60px rgba(11, 99, 206, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 24%),
        radial-gradient(circle at top right, rgba(13, 92, 99, 0.15), transparent 26%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: calc(100% - clamp(24px, 4vw, 72px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--header-bg) 88%, transparent);
    border-bottom: 1px solid rgba(234, 223, 205, 0.9);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    color: var(--muted);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cart-pill {
    display: inline-flex;
    justify-content: center;
    min-width: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero,
.section {
    padding: 56px 0;
}

.hero-grid,
.info-grid,
.cart-layout,
.checkout-layout,
.product-detail {
    display: grid;
    gap: 28px;
}

.hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 0.96;
    margin-bottom: 18px;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 10px;
}

.hero-copy,
.detail-description,
.info-card p,
.product-card p,
.stock-card p,
.empty-state p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 16px 30px rgba(13, 92, 99, 0.18);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--line);
}

.button-small {
    padding: 10px 16px;
}

.button-ghost {
    background: transparent;
    color: var(--danger);
    padding: 18px 0;
}

.button-block {
    width: 100%;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.hero-points {
    padding-left: 18px;
    color: var(--muted);
}

.hero-card,
.product-card,
.info-card,
.stock-card,
.summary-card,
.empty-state,
.success-card {
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    border: 1px solid rgba(234, 223, 205, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 30px;
}

.hero-card-label {
    color: var(--muted);
    margin-bottom: 22px;
}

.hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.hero-stat:last-child {
    border-bottom: none;
}

.hero-stat strong {
    font-size: 2.1rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.product-grid,
.stock-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.product-card,
.stock-card,
.info-card,
.summary-card,
.success-card,
.empty-state,
.cart-item,
.purchase-box {
    padding: 24px;
}

.product-art,
.detail-visual {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(13, 92, 99, 0.14), rgba(245, 158, 11, 0.12));
    border-radius: 20px;
}

.product-art {
    min-height: 150px;
    font-size: 4rem;
}

.detail-visual {
    min-height: 340px;
    font-size: 7rem;
}

.product-topline,
.product-footer,
.stock-card-head,
.stock-card-foot,
.summary-row,
.summary-line,
.detail-meta,
.cart-item,
.cart-item-actions,
.size-grid,
.inline-form,
.search-bar {
    display: flex;
    gap: 12px;
}

.product-topline,
.product-footer,
.stock-card-head,
.stock-card-foot,
.summary-row,
.summary-line,
.cart-item,
.cart-item-actions {
    justify-content: space-between;
    align-items: center;
}

.tag,
.stock-badge,
.size-pill,
.alert {
    border-radius: 999px;
    font-size: 0.88rem;
}

.tag {
    padding: 8px 12px;
    background: rgba(13, 92, 99, 0.08);
    color: var(--primary);
}

.tag-soft {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--text);
}

.stock-badge {
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.15);
    color: #9a6500;
}

.section-soft {
    background: linear-gradient(to bottom, rgba(255, 250, 242, 0), rgba(255, 255, 255, 0.35));
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.search-bar {
    margin-bottom: 24px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
}

.stock-list,
.cart-items {
    gap: 18px;
}

.stock-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.size-grid {
    flex-wrap: wrap;
    margin: 18px 0;
}

.size-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(13, 92, 99, 0.08);
}

.cart-layout,
.checkout-layout,
.product-detail {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
}

.cart-items {
    display: grid;
}

.cart-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.cart-item-actions,
.inline-form {
    flex-wrap: wrap;
}

.summary-card,
.purchase-box {
    position: sticky;
    top: 110px;
}

.purchase-box,
.checkout-form {
    display: grid;
    gap: 16px;
}

.detail-meta {
    flex-wrap: wrap;
    margin: 24px 0;
}

.detail-meta div {
    min-width: 140px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(13, 92, 99, 0.06);
}

.detail-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.alert {
    padding: 12px 16px;
    background: rgba(168, 50, 50, 0.08);
    color: var(--danger);
    margin-bottom: 18px;
}

.empty-state,
.success-card {
    text-align: center;
}

.success-card textarea {
    margin: 20px 0;
}

@media (max-width: 920px) {
    .hero-grid,
    .product-grid,
    .info-grid,
    .stock-list,
    .cart-layout,
    .checkout-layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .nav-shell,
    .section-head,
    .cart-item,
    .stock-card-head,
    .stock-card-foot,
    .product-footer {
        align-items: start;
    }

    .summary-card,
    .purchase-box {
        position: static;
    }
}

@media (max-width: 640px) {
    h1 {
        line-height: 1.02;
    }

    .nav-shell,
    .nav-links,
    .search-bar,
    .hero-actions,
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .button-small,
    .button-ghost {
        width: 100%;
    }
}

.nav-user {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13, 92, 99, 0.08);
    color: var(--primary);
    font-weight: 600;
}

.muted-copy {
    color: var(--muted);
    line-height: 1.7;
}

.alert-success {
    padding: 12px 16px;
    background: rgba(13, 92, 99, 0.1);
    color: var(--primary);
    margin-bottom: 18px;
    border-radius: 18px;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.narrow-shell {
    width: min(620px, calc(100% - 32px));
}

.auth-card {
    text-align: left;
}

.top-space {
    margin-top: 24px;
}
.tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.tab-chip.is-active {
    background: var(--primary);
    color: #fff;
}

.product-image,
.gallery-image,
.thumb-image {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.product-image {
    height: 180px;
}

.gallery-shell {
    overflow: hidden;
    border-radius: 24px;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
}

.gallery-image {
    height: 360px;
    scroll-snap-align: start;
}

.two-col-layout,
.stats-grid {
    display: grid;
    gap: 24px;
}

.two-col-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.panel-card,
.order-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(234, 223, 205, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.stack-list {
    display: grid;
    gap: 16px;
}

.compact-list {
    gap: 10px;
}

.status-chip {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}

.status-en_proceso {
    background: rgba(245, 158, 11, 0.16);
    color: #9a6500;
}

.status-enviado {
    background: rgba(13, 92, 99, 0.12);
    color: var(--primary);
}

.status-entregado {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.status-rechazado {
    background: rgba(168, 50, 50, 0.1);
    color: var(--danger);
}

.admin-layout-wide {
    grid-template-columns: 0.95fr 1.05fr;
}

.image-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.thumb-image {
    width: 96px;
    height: 96px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
}

@media (max-width: 920px) {
    .two-col-layout,
    .stats-grid,
    .admin-layout-wide {
        grid-template-columns: 1fr;
    }
}

.three-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

.checkbox-label {
    align-self: end;
}

.compact-check {
    margin-top: 8px;
}

.help-copy {
    color: var(--muted);
    line-height: 1.6;
    margin: 8px 0 0;
}

.size-editor-block {
    display: grid;
    gap: 16px;
}

.table-scroll {
    overflow-x: auto;
}

.admin-size-table,
.inventory-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.admin-size-table th,
.admin-size-table td,
.inventory-table th,
.inventory-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-size-table th,
.inventory-table th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-size-table input,
.inventory-table input {
    min-width: 100px;
}

.size-row-actions {
    width: 120px;
    text-align: right;
}

.inventory-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.inventory-size-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(13, 92, 99, 0.08);
    color: var(--primary);
    font-size: 0.86rem;
}

@media (max-width: 920px) {
    .three-field-grid {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 360px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(234, 223, 205, 0.9);
}

.gallery-stage .gallery-image {
    display: none;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.gallery-stage .gallery-image.is-active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: rgba(31, 41, 55, 0.72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 78px;
    height: 78px;
    padding: 0;
    border-radius: 18px;
    border: 2px solid transparent;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 640px) {
    .gallery-stage {
        min-height: 280px;
    }

    .gallery-stage .gallery-image {
        height: 300px;
    }

    .gallery-thumb {
        width: 64px;
        height: 64px;
    }
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(234, 223, 205, 0.9);
    background: #fff;
}

.admin-tab-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.admin-tab.is-active {
    background: var(--primary);
    color: #fff;
}

.line-admin-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.line-admin-main {
    display: grid;
    gap: 10px;
}

.line-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-preview img {
    display: block;
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    border: 1px solid var(--line);
}

.admin-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a,
.footer-links a {
    color: var(--primary);
    font-weight: 700;
}

.site-footer {
    padding: 28px 0 40px;
    background: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(234, 223, 205, 0.9);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    padding: 14px 18px;
    border-radius: 999px;
    background: #1fa855;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(31, 168, 85, 0.28);
}

@media (max-width: 920px) {
    .footer-menu-grid,
    .admin-settings-grid,
    .line-admin-row {
        grid-template-columns: 1fr;
    }

    .footer-bar {
        flex-direction: column;
    }
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(234, 223, 205, 0.9);
    background: #fff;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.product-card {
    overflow: hidden;
}

.product-body {
    padding: 0 24px 24px;
}

.nav-user {
    color: var(--muted);
    font-weight: 600;
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(13, 92, 99, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.site-footer {
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--footer-bg) 78%, transparent);
}

.footer-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-note {
    color: var(--muted);
    max-width: 520px;
}

.footer-credit {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--muted);
    font-size: 0.94rem;
    text-align: center;
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #1fa855;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(31, 168, 85, 0.28);
    z-index: 20;
}

.floating-whatsapp-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.admin-page-stack {
    display: grid;
    gap: 24px;
}

.compact-head {
    margin-bottom: 18px;
}

.admin-side-panel {
    align-self: start;
}

.admin-preview-card {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    background: rgba(245, 239, 228, 0.65);
}

.preview-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    margin-right: 8px;
}

.tag-muted {
    background: rgba(107, 114, 128, 0.14);
    color: var(--muted);
}

.alert-success {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.help-copy,
.muted-copy {
    color: var(--muted);
}

.logo-preview img,
.thumb-image {
    max-width: 100%;
    border-radius: 18px;
}

.image-admin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.inventory-size-list,
.stack-list,
.cart-items,
.compact-list {
    display: grid;
    gap: 12px;
}

.inventory-size-chip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(13, 92, 99, 0.08);
    color: var(--primary);
    margin: 6px 8px 0 0;
}

.admin-tab-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    font-weight: 700;
}

.admin-tab.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.table-scroll {
    overflow-x: auto;
}

.inventory-table,
.admin-size-table {
    width: 100%;
    border-collapse: collapse;
}

.inventory-table th,
.inventory-table td,
.admin-size-table th,
.admin-size-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.line-admin-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.line-admin-main,
.line-admin-meta {
    display: grid;
    gap: 10px;
}

.three-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.top-space {
    margin-top: 24px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .hero-grid,
    .product-detail,
    .cart-layout,
    .checkout-layout,
    .two-col-layout,
    .footer-bar,
    .line-admin-row,
    .three-field-grid,
    .footer-menu-grid,
    .product-grid,
    .stock-list {
        grid-template-columns: 1fr;
    }

    .line-admin-row {
        display: grid;
    }
}

.inventory-table-wide th,
.inventory-table-wide td {
    min-width: 120px;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 92, 99, 0.03);
    border-radius: 14px;
    overflow: hidden;
}

.mini-table th,
.mini-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(13, 92, 99, 0.08);
    font-size: 0.92rem;
}

.mini-table th {
    background: rgba(13, 92, 99, 0.08);
}

.order-admin-form {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.alert-inline {
    border-radius: 18px;
    padding: 12px 14px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--primary);
    border-radius: 999px;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
}

.nav-toggle-icon {
    width: 18px;
    height: 16px;
    background: currentColor;
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 34%, 100% 100%, 64% 100%, 64% 60%, 36% 60%, 36% 100%, 0% 100%, 0% 34%);
}

@media (max-width: 900px) {
    .site-header {
        position: sticky;
    }

    .nav-shell {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        padding: 12px 0;
        position: relative;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand small {
        font-size: 0.76rem;
    }

    .nav-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 0 14px;
        background: color-mix(in srgb, var(--header-bg) 98%, transparent);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        max-height: 420px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 14px;
    }

    .nav-links a,
    .nav-user {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.92rem;
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--surface-strong);
        border: 1px solid var(--line);
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .product-body {
        padding: 0 18px 18px;
    }

    .inventory-table,
    .admin-size-table,
    .mini-table {
        font-size: 0.9rem;
    }
}
.line-showcase-bar {
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--header-bg) 82%, white) 0%, color-mix(in srgb, var(--header-bg) 64%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--primary-dark) 8%, transparent);
}

.line-showcase-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.line-showcase-label {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.line-showcase-track {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0;
}

.line-showcase-track::-webkit-scrollbar {
    display: none;
}

.line-showcase-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    background: color-mix(in srgb, white 82%, var(--header-bg));
    color: var(--primary-dark);
    font-weight: 700;
}

.line-showcase-action {
    margin-left: auto;
    color: var(--primary-dark);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .line-showcase-action {
        margin-left: 0;
    }
}
.line-showcase-link.is-active {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

@media (max-width: 900px) {
    .line-showcase-bar {
        padding: 12px 14px;
        border-radius: 20px;
    }

    .line-showcase-inline {
        align-items: flex-start;
        gap: 10px;
    }

    .line-showcase-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
}
.promo-marquee {
    background: var(--primary-dark);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.promo-marquee-shell {
    overflow: hidden;
}

.promo-marquee-track {
    display: flex;
    gap: 42px;
    min-width: max-content;
    padding: 12px 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    animation: promo-marquee-move 22s linear infinite;
}

.promo-marquee-track span::before {
    content: '\2022';
    margin-right: 12px;
    color: var(--accent);
}

@keyframes promo-marquee-move {
    from { transform: translateX(0); }
    to { transform: translateX(-40%); }
}

.catalog-groups {
    display: grid;
    gap: 34px;
}

.catalog-group {
    display: grid;
    gap: 18px;
}

.catalog-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
}

.catalog-group .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 320px));
    justify-content: start;
}
.catalog-group-head h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.catalog-group-kicker {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.product-copy {
    margin: 0;
}

.product-card-spacer {
    flex: 1;
    min-height: 6px;
}
.product-card-shop {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-media-link {
    display: block;
}

.product-card-visual {
    margin: 18px 18px 0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.03), rgba(31, 41, 55, 0.08));
}

.product-card-shop .product-image,
.product-card-shop .product-art {
    border-radius: 0;
    height: 280px;
}

.product-body-shop {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    flex: 1;
}

.product-sku {
    margin-bottom: -6px;
    font-size: 0.92rem;
    color: var(--muted);
}

.product-card-shop h3 {
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 1.05;
}

.product-thumb-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.product-thumb-dot {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: #fff;
}

.product-thumb-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
}

.product-buy-button {
    margin-top: auto;
    border-radius: 0;
    min-height: 58px;
}

.footer-panel {
    display: grid;
    grid-template-columns: minmax(340px, 1.15fr) minmax(560px, 1.85fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
}

.footer-brand {
    margin-bottom: 18px;
}

.footer-brand-block {
    display: grid;
    gap: 14px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}

.footer-title {
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-links-stack {
    display: grid;
    gap: 12px;
}

.footer-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 34rem;
}

.footer-socials a {
    background: rgba(31, 41, 55, 0.06);
    color: var(--text);
}

@media (max-width: 900px) {
    .footer-panel,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .promo-marquee-track {
        animation-duration: 16s;
    }

    .product-card-shop .product-image,
    .product-card-shop .product-art {
        height: 220px;
    }
}

@media (min-width: 1500px) {
    .container {
        width: calc(100% - clamp(40px, 4vw, 88px));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
        gap: 48px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 28px;
    }

    .footer-panel {
        grid-template-columns: minmax(380px, 1.05fr) minmax(760px, 1.95fr);
    }
}

@media (min-width: 1800px) {
    .container {
        width: calc(100% - clamp(52px, 4vw, 120px));
    }
}
.auth-shell-centered {
    min-height: 100vh;
    padding: 40px 0;
}

.login-shell {
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
}

.auth-card-centered {
    text-align: left;
    padding: clamp(28px, 4vw, 42px);
}

.login-lead {
    max-width: 58rem;
}

.login-tab-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.login-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.login-tab.is-active {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

.login-pane {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.64);
}

.login-pane-head {
    margin-bottom: 18px;
}

.login-pane-head h2 {
    margin-bottom: 6px;
    font-size: 1.4rem;
}

.login-pane-head p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.login-help-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 24px;
}

@media (max-width: 820px) {
    .login-journey-grid {
        grid-template-columns: 1fr;
    }

    .login-help-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

body.has-cart-drawer {
    overflow: hidden;
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 39;
}

.cart-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100vw);
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: color-mix(in srgb, var(--surface-strong) 96%, white);
    border-left: 1px solid rgba(31, 41, 55, 0.08);
    box-shadow: -24px 0 70px rgba(15, 23, 42, 0.16);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 40;
}

.cart-drawer.is-open {
    transform: translateX(0);
}

.cart-drawer-head,
.cart-drawer-foot {
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.cart-drawer-foot {
    border-bottom: none;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-drawer-head h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.cart-drawer-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    background: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
}

.cart-drawer-body {
    overflow-y: auto;
    padding: 20px 22px;
}

.cart-drawer-list {
    display: grid;
    gap: 18px;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 14px;
    align-items: start;
}

.cart-drawer-media {
    width: 96px;
    height: 108px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.05);
    display: grid;
    place-items: center;
    font-size: 2.4rem;
}

.cart-drawer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-drawer-info {
    display: grid;
    gap: 8px;
}

.cart-drawer-info h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.cart-drawer-info p {
    margin-bottom: 0;
    color: var(--muted);
}

.cart-drawer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cart-drawer-qty-form button,
.cart-drawer-remove-form button {
    border: 1px solid rgba(31, 41, 55, 0.12);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    min-width: 38px;
    min-height: 38px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cart-drawer-remove-form button {
    padding: 0 12px;
}

.cart-drawer-qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.cart-drawer-subtotal {
    white-space: nowrap;
    font-size: 1rem;
}

.cart-drawer-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.cart-drawer-note,
.cart-drawer-empty p {
    color: var(--muted);
    line-height: 1.6;
}

.cart-drawer-empty {
    padding: 18px 4px;
}

.cart-drawer-empty h3 {
    margin-bottom: 8px;
}

.cart-drawer-cta {
    display: grid;
    gap: 12px;
}

@media (max-width: 640px) {
    .cart-drawer {
        width: 100vw;
    }

    .cart-drawer-item {
        grid-template-columns: 82px 1fr;
    }

    .cart-drawer-subtotal {
        grid-column: 2;
    }
}

/* Storefront adaptive polish */
body {
    background:
        radial-gradient(circle at 8% 0%, rgba(56, 163, 255, 0.18), transparent 26%),
        radial-gradient(circle at 92% 8%, rgba(11, 99, 206, 0.18), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 244, 255, 0.98) 52%, rgba(229, 239, 255, 1) 100%);
}

.site-header {
    background: color-mix(in srgb, var(--header-bg) 92%, rgba(255, 255, 255, 0.88));
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary-dark) 10%, transparent);
}

.nav-links a {
    position: relative;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: min(8vw, 80px);
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 72%);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: -120px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 18%, transparent) 0%, transparent 72%);
}

.hero-grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.8fr);
    align-items: stretch;
}

.hero h1 {
    color: var(--text);
    max-width: 16ch;
}

.hero h1.hero-title-split {
    max-width: 19ch;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-copy {
    max-width: 62ch;
    color: var(--muted);
}

.hero-card {
    background: linear-gradient(180deg, color-mix(in srgb, white 94%, var(--surface)) 0%, color-mix(in srgb, var(--header-bg) 78%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
}

.hero-card-label {
    color: var(--muted);
    font-weight: 600;
}

.hero-stat strong {
    color: var(--primary-dark);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--accent) 55%, var(--primary)));
    box-shadow: 0 18px 34px color-mix(in srgb, var(--primary) 24%, transparent);
}

.button-secondary {
    background: color-mix(in srgb, white 72%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

.section-soft,
.site-footer {
    background:
        linear-gradient(180deg, color-mix(in srgb, white 82%, var(--footer-bg)) 0%, color-mix(in srgb, white 58%, var(--footer-bg)) 100%);
}

.product-card,
.info-card,
.stock-card,
.summary-card,
.empty-state,
.success-card,
.panel-card,
.cart-drawer {
    border-color: color-mix(in srgb, var(--primary) 14%, transparent);
    box-shadow: 0 24px 54px color-mix(in srgb, var(--primary-dark) 10%, transparent);
}

.catalog-groups {
    display: grid;
    gap: 34px;
}

.catalog-group {
    display: grid;
    gap: 18px;
}

.catalog-group-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
}

.catalog-group .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 320px));
    justify-content: start;
}
.catalog-group-head h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.catalog-group-kicker {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
}

.product-copy {
    margin: 0;
}

.product-card-spacer {
    flex: 1;
    min-height: 6px;
}
.product-card-shop {
    background: linear-gradient(180deg, color-mix(in srgb, white 96%, var(--surface)) 0%, color-mix(in srgb, white 72%, var(--surface)) 100%);
}

.product-card-visual {
    background: linear-gradient(180deg, color-mix(in srgb, var(--header-bg) 74%, white) 0%, color-mix(in srgb, white 90%, var(--surface)) 100%);
}

.product-topline .tag,
.social-links a,
.line-chip {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary-dark);
}

.stock-badge {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--primary-dark);
}

.site-footer {
    border-top: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
}

.cart-drawer-head,
.cart-drawer-foot {
    background: linear-gradient(180deg, color-mix(in srgb, white 90%, var(--surface)) 0%, color-mix(in srgb, white 68%, var(--header-bg)) 100%);
}

.cart-drawer-remove-form button,
.cart-drawer-qty-form button {
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}
/* Hero compact spacing */
.hero {
    padding: 40px 0 20px;
}

.hero-grid {
    align-items: start;
    gap: 18px;
}

.hero-actions {
    margin: 22px 0 10px;
}

.hero-card {
    max-width: 520px;
    justify-self: center;
    padding: 32px 34px;
}

.hero-card-label {
    margin-bottom: 14px;
}

.hero-stat {
    padding: 18px 0;
}

.hero + .section {
    padding-top: 14px;
}
/* Mobile storefront tuning */
@media (max-width: 900px) {
    .hero {
        padding: 24px 0 10px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-card {
        max-width: none;
        justify-self: stretch;
    }

    .nav-user {
        align-self: stretch;
        justify-content: center;
    }
}
/* Final mobile hero fix */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .hero > .container,
    .hero-grid > div {
        min-width: 0;
    }

    .hero-grid > :first-child {
        order: 1;
    }

    .hero-card {
        order: 2;
        width: 100%;
        margin: 0;
        padding: 18px 18px 12px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.8rem);
        line-height: 0.96;
        word-break: normal;
        max-width: none;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-title-line {
        white-space: normal;
    }

    .promo-marquee {
        overflow: hidden;
    }
}

/* Mobile catalog cards full width */
@media (max-width: 900px) {
    .catalog-group .product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: stretch !important;
    }

    .catalog-group .product-card,
    .catalog-group .product-card-shop {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch;
    }
}

.order-history {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.order-history-title {
    margin-bottom: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.order-history-list {
    display: grid;
    gap: 10px;
}

.order-history-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(203, 213, 225, 0.55);
}

.order-history-entry strong {
    display: block;
    margin-bottom: 4px;
}

.order-history-entry p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.order-history-entry span {
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-order-history {
    margin-top: 14px;
}

.cart-drawer {
    height: 100dvh;
    max-height: 100dvh;
}

.cart-drawer-body {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 28px;
}

@media (max-width: 640px) {
    .cart-drawer {
        height: 100dvh;
        max-height: 100dvh;
    }

    .cart-drawer-body {
        padding-bottom: 120px;
    }

    .order-history-entry {
        grid-template-columns: 1fr;
    }

    .order-history-entry span {
        white-space: normal;
    }
}

.success-order-summary {
    margin: 28px auto 0;
    max-width: 980px;
    text-align: left;
}

.success-order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
}

.success-order-block {
    padding: 22px;
    border-radius: 22px;
    background: rgba(248, 250, 252, 0.86);
    border: 1px solid rgba(203, 213, 225, 0.55);
}

.success-order-label {
    margin-bottom: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 920px) {
    .success-order-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cart-drawer-foot {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .cart-drawer-body {
        padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px));
    }

    .cart-drawer-cta {
        gap: 10px;
    }
}

.cart-drawer {
    display: flex;
    flex-direction: column;
    height: 100svh;
    max-height: 100svh;
}

@supports (height: 100dvh) {
    .cart-drawer {
        height: 100dvh;
        max-height: 100dvh;
    }
}

.cart-drawer-head,
.cart-drawer-foot {
    flex: 0 0 auto;
}

.cart-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 640px) {
    .cart-drawer-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.08);
    }

    .cart-drawer-body {
        padding-bottom: 20px;
    }
}

@media (max-width: 640px) {
    .cart-drawer {
        top: 0;
        bottom: 0;
        height: auto;
        max-height: none;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .cart-drawer-head {
        padding: 18px 18px 14px;
    }

    .cart-drawer-foot {
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cart-drawer-summary {
        margin-bottom: 10px;
    }

    .cart-drawer-cta .button {
        min-height: 44px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .cart-drawer-cta {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cart-drawer-cta .button {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 0.96rem;
        white-space: nowrap;
    }
}
