﻿:root {
    --bg: #f4efe8;
    --bg-2: #ece3d8;
    --ink: #1f1a17;
    --muted: #6c6259;
    --line: #d4c6b6;
    --accent: #b08968;
    --accent-dark: #8c6a50;
    --danger: #8b2d2d;
    --white: #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(41, 28, 18, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, var(--bg), var(--bg-2));
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

.site-bg {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(176, 137, 104, 0.2), transparent 35%), radial-gradient(circle at 80% 10%, rgba(176, 137, 104, 0.15), transparent 38%), radial-gradient(circle at 50% 90%, rgba(85, 60, 41, 0.12), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding-inline: clamp(14px, 2.4vw, 42px);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cormorant Garamond', serif;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(244, 239, 232, 0.92);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}

.site-announcement {
    background: linear-gradient(90deg, #16120f, #2b221b);
    color: #efe3d3;
    font-size: 0.86rem;
}

.site-announcement .container {
    padding: 0.5rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.site-announcement a {
    color: #f2d3b1;
    text-decoration: underline;
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem clamp(20px, 3.2vw, 68px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--white);
    font-size: 0.88rem;
}

.brand-text {
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.header-actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.mobile-cart-link,
.nav-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

.mobile-cart-link {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-cart-link svg {
    width: 20px;
    height: 20px;
    color: var(--ink);
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-toggle {
    display: none;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav,
.auth-nav,
.admin-strip-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.main-nav {
    justify-content: center;
}

.auth-nav {
    justify-content: flex-end;
    padding-right: 0.2rem;
}

.desktop-cart-link {
    display: inline-flex;
}

.main-nav a,
.auth-nav a,
.admin-strip a {
    padding: 0.32rem 0.52rem;
    border-radius: 8px;
}

.main-nav a:hover,
.auth-nav a:hover,
.admin-strip a:hover {
    background: rgba(176, 137, 104, 0.16);
}

.btn-link {
    border: 1px solid var(--line);
}

.btn-link.alt {
    border-color: var(--accent);
}

.hello {
    font-size: 0.9rem;
    color: var(--muted);
}

.admin-strip {
    border-top: 1px solid var(--line);
    background: rgba(31, 26, 23, 0.95);
    color: #f9f4ee;
    font-size: 0.93rem;
}

.admin-strip-inner {
    padding: 0.55rem 0;
}

.site-lead-cta {
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, #fff8ef, #f1e2d1);
}

.site-lead-cta-inner {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.95rem;
    text-align: center;
}

.site-lead-cta p {
    margin: 0;
    color: #3f3229;
    font-size: 0.9rem;
    line-height: 1.35;
}

.site-lead-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #2c211a;
    background: #2c211a;
    color: #f8ecde;
    padding: 0.34rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-lead-cta a:hover {
    background: #4b3a2f;
    border-color: #4b3a2f;
    transform: translateY(-1px);
}

.site-main {
    padding: 1.4rem 0 3rem;
    flex: 1 0 auto;
}

body.app_home .site-main {
    padding-top: 0;
}

.flash-wrap {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.flash-wrap:empty {
    display: none;
    margin-bottom: 0;
}

.flash {
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    font-weight: 500;
}

.flash-success {
    background: #e7f4e7;
    color: #20502a;
}

.flash-error {
    background: #fbe8e8;
    color: #742727;
}

.flash-info {
    background: #e8f0fb;
    color: #22466f;
}

.section {
    margin-top: 1.25rem;
}

.hero {
    padding: 0 0 1rem;
}

.hero-home {
    padding-top: 0;
}

.hero-cover {
    position: relative;
    width: 100%;
    height: 474px;
    min-height: 474px;
    overflow: hidden;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 0.55rem;
    color: #f9efe2;
    background: linear-gradient(180deg, rgba(17, 14, 12, 0.58), rgba(17, 14, 12, 0.22));
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    color: var(--accent-dark);
    margin-bottom: 0.7rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 0.7rem;
    text-wrap: balance;
}

.hero-text {
    max-width: 700px;
    color: rgba(251, 238, 223, 0.9);
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.collections-shell {
    margin-top: 1.6rem;
}

.collection-tabs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding: 0.2rem 0 0.45rem;
}

.collection-tab {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.46rem 0.9rem;
    background: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.collection-tab:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.collection-tab.active {
    background: var(--ink);
    color: #f7eee3;
    border-color: var(--ink);
}

.heart {
    color: #a63a4b;
}

.home-filters {
    justify-content: center;
}

.hero-benefits {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.benefit-card {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.86);
    padding: 0.9rem;
}

.benefit-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.25rem;
}

.benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.btn-main,
.btn-ghost,
.btn-small,
.btn-danger,
.btn-cookie {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    padding: 0.6rem 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-main,
.btn-small,
.btn-cookie {
    background: var(--accent);
    color: #fff;
}

.btn-main:hover,
.btn-small:hover,
.btn-cookie:hover {
    background: var(--accent-dark);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    font-size: 0.86rem;
}

.section-head {
    margin-bottom: 0.8rem;
}

.section-head.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.collection-tile {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(243, 232, 219, 0.9));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.collection-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
}

.collection-link {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.6);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(33, 22, 14, 0.16);
}

.reveal-on-load {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .reveal-on-load {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.js-enabled .reveal-on-load.revealed {
    opacity: 1;
    transform: translateY(0);
}

.product-media {
    display: block;
    aspect-ratio: 1.1;
    background: #efe5d8;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.placeholder.large {
    min-height: 420px;
}

.product-body {
    padding: 0.8rem;
}

.category {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--muted);
}

.product-body h3 {
    margin: 0.2rem 0 0.3rem;
    font-size: 1.35rem;
}

.product-body p {
    color: var(--muted);
    font-size: 0.93rem;
}

.product-foot {
    margin-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.demo-note {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-style: italic;
}

.demo-badge {
    border: 1px dashed var(--accent-dark);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-favorite {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    color: #8f4a58;
    border-radius: 10px;
    min-width: 38px;
    min-height: 34px;
    padding: 0.32rem 0.58rem;
    cursor: pointer;
    font-weight: 700;
}

.btn-favorite.active {
    background: #8f4a58;
    color: #fff;
    border-color: #8f4a58;
}

.catalog-filter,
.auth-form,
.checkout-form,
.admin-form,
.rgpd-form,
.status-form {
    display: grid;
    gap: 0.68rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.catalog-filter {
    grid-template-columns: 1fr 220px auto;
    align-items: end;
}

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

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 6.4rem;
}

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

.sidebar-form {
    margin-bottom: 0;
}

.sidebar-block {
    display: grid;
    gap: 0.45rem;
}

.filter-title {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.category-list-vertical {
    display: grid;
    gap: 0.4rem;
    max-height: 260px;
    overflow: auto;
    padding-right: 0.2rem;
}

.category-filter {
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    background: rgba(255, 255, 255, 0.75);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.category-filter.active {
    background: rgba(31, 26, 23, 0.92);
    color: #f8ede1;
    border-color: rgba(31, 26, 23, 0.92);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.price-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
}

.price-title {
    margin: 0 0 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.price-values {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-weight: 700;
}

.price-ranges {
    position: relative;
    height: 34px;
    margin-top: 0.55rem;
}

.price-ranges input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-ranges input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    background: #cbb9a6;
    border-radius: 999px;
}

.price-ranges input[type="range"]::-moz-range-track {
    height: 3px;
    background: #cbb9a6;
    border-radius: 999px;
}

.price-ranges input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    margin-top: -6px;
    pointer-events: auto;
    cursor: pointer;
}

.price-ranges input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
    cursor: pointer;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.6rem;
    align-items: end;
    margin-top: 0.7rem;
}

.price-inputs label {
    font-size: 0.82rem;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.55rem 0.62rem;
    font: inherit;
    background: #fff;
}

label {
    font-size: 0.9rem;
    color: var(--muted);
}

.form-hint {
    margin: -0.2rem 0 0.2rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.shipping-method-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    gap: 0.45rem;
}

.media-section {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    display: grid;
    gap: 0.65rem;
}

.media-section h3,
.media-section h4 {
    margin-bottom: 0.15rem;
}

.media-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
}

.media-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.55rem;
    max-height: 540px;
    overflow: auto;
    padding-right: 0.15rem;
}

.media-library-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    display: grid;
    gap: 0.4rem;
}

.media-library-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5d7c7;
}

.media-choice {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.media-choice input {
    width: auto;
}

.media-upload-status {
    margin-top: -0.15rem;
    font-weight: 600;
    color: #2b5a35;
}

.media-upload-status.error {
    color: #8b2d2d;
}

.auth-section {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(520px, 100%);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.87);
    border-radius: var(--radius);
    padding: 1rem;
}

.auth-card.wide {
    width: min(720px, 100%);
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-2 .full {
    grid-column: 1 / -1;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-row input {
    width: auto;
}

.product-detail {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.detail-price {
    font-size: 1.35rem;
    color: var(--accent-dark);
}

.detail-form {
    display: grid;
    gap: 0.7rem;
    max-width: 260px;
}

.detail-thumbs {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.detail-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.stock {
    color: var(--muted);
}

.cart-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
}

.cart-head,
.cart-row {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr 0.8fr 0.8fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem;
}

.cart-head {
    background: #ece3d8;
    font-weight: 700;
}

.cart-row {
    border-top: 1px solid var(--line);
}

.inline-form {
    display: flex;
    gap: 0.4rem;
}

.inline-form input {
    max-width: 80px;
}

.cart-summary {
    margin-top: 1rem;
    max-width: 340px;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.cart-summary .total {
    font-size: 1.08rem;
}

.checkout-grid,
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.checkout-summary,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
    padding: 1rem;
}

.checkout-summary p,
.order-detail-grid p {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.order-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.order-card,
.kpi-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    padding: 0.9rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.kpi-card p {
    font-size: 1.45rem;
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
}

.data-table th,
.data-table td {
    padding: 0.65rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.data-table .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.actions-row {
    display: flex;
    gap: 0.6rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(26, 21, 18, 0.96);
    color: #ede3d6;
    margin-top: auto;
    padding-top: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.35rem;
    color: #f5eadc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 1rem;
    padding: 0.8rem 0 1rem;
    font-size: 0.88rem;
    color: #c9b8a6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem 1.2rem;
}

.footer-bottom a {
    color: #f0dcc2;
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(420px, calc(100% - 2rem));
    z-index: 2147483647;
    pointer-events: auto;
}

.cookie-banner.toolbar-offset {
    bottom: 5.2rem;
}

.cookie-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 0.9rem;
    position: relative;
    pointer-events: auto;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.7rem 0;
}

.btn-cookie.light {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}

.cookie-prefs {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.cookie-prefs-toggle:not(:checked) ~ .cookie-prefs {
    display: none;
}

.cookie-prefs-toggle:checked ~ .cookie-prefs {
    display: grid;
}

.cookie-prefs label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cookie-prefs input {
    width: auto;
}

.hidden {
    display: none;
}

.legal ul {
    margin: 0;
    padding-left: 1.2rem;
}

@media (max-width: 980px) {
    .product-detail,
    .checkout-grid,
    .order-detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .hero-cover {
        height: 390px;
        min-height: 390px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi-grid,
    .order-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .catalog-sidebar {
        position: static;
        top: auto;
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.7rem;
        padding: 0.72rem clamp(14px, 4.2vw, 24px);
    }

    .header-actions,
    .mobile-cart-link,
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav,
    .auth-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.42rem;
        padding-top: 0.2rem;
    }

    .site-header.menu-open .main-nav,
    .site-header.menu-open .auth-nav {
        display: flex;
    }

    .main-nav a,
    .auth-nav a,
    .auth-nav .hello {
        width: 100%;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.75);
        border-radius: 10px;
        padding: 0.58rem 0.72rem;
    }

    .desktop-cart-link {
        display: none;
    }

    .catalog-grid,
    .price-inputs {
        grid-template-columns: 1fr;
    }

    .cart-head,
    .cart-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-nav,
    .auth-nav {
        gap: 0.35rem;
    }

    .product-grid,
    .kpi-grid,
    .order-list,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .site-announcement .container {
        gap: 0.35rem;
    }

    .site-lead-cta-inner {
        justify-content: flex-start;
        text-align: left;
        padding: 0.6rem 0;
    }

    .hero-cover {
        height: 320px;
        min-height: 320px;
    }
}
