@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@400;500;600;700&family=Noto+Serif+Georgian:wght@400;500;600;700&display=swap");

:root {
    --lavender-50: #fbf7ff;
    --lavender-100: #f2e6fb;
    --lavender-300: #d8b6ec;
    --iris: #7f4aa0;
    --iris-dark: #4b245f;
    --gold: #c99a3e;
    --gold-soft: #f6e7c4;
    --leaf: #2f6f4e;
    --wine: #7b2e3b;
    --ink: #281f2d;
    --muted: #74697a;
    --line: #e8ddec;
    --surface: #ffffff;
    --danger: #b4232a;
    --success: #1f7a4d;
    --shadow: 0 18px 45px rgba(75, 36, 95, 0.12);
    --font-body: "Noto Sans Georgian", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Noto Serif Georgian", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--lavender-50);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.72;
    text-rendering: geometricPrecision;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    outline: none;
    font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--iris);
    box-shadow: 0 0 0 3px rgba(127, 74, 160, 0.16);
}

label {
    display: grid;
    gap: 7px;
    color: var(--iris-dark);
    font-weight: 500;
}

main {
    min-height: 62vh;
}

.top-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 42px;
    padding: 7px 24px;
    background: var(--iris-dark);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
}

.top-strip__contact,
.top-strip__actions,
.main-nav,
.button-row,
.table-actions,
.status-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-strip__contact {
    justify-content: space-between;
    width: min(780px, calc(100% - 340px));
    min-width: 320px;
}

.top-strip__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.top-strip__link svg {
    width: 16px;
    height: 16px;
    color: var(--gold-soft);
}

.top-strip__actions {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    color: #fff;
}

.icon-link svg,
.btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.cart-link {
    width: 32px;
    justify-content: center;
}

.main-nav .header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-left: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--iris-dark);
    font-weight: 600;
    padding: 8px 13px;
}

.main-nav .header-cart-link:hover,
.main-nav .header-cart-link.is-active {
    border-color: var(--gold-soft);
    background: var(--gold-soft);
}

.header-cart-link svg {
    width: 19px;
    height: 19px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--iris-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

.header-cart-link .header-cart-link__badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    line-height: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    background: rgba(251, 247, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-header .main-nav {
    margin-left: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    text-transform: none;
}

.brand img {
    width: 54px;
    height: 54px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
}

.main-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--iris-dark);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: var(--gold-soft);
    color: var(--wine);
}

.scroll-top-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(75, 36, 95, 0.18);
    border-radius: 50%;
    background: var(--iris-dark);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-button svg {
    width: 20px;
    height: 20px;
}

.social-float {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateY(-50%);
}

.social-float__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-float__link:hover {
    color: #fff;
    transform: translateX(-3px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.social-float__link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-float__link--facebook {
    background: #1877f2;
}

.social-float__link--whatsapp {
    background: #25d366;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--iris-dark);
}

.flash {
    max-width: 1180px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--iris-dark);
}

.flash--success {
    border-color: rgba(31, 122, 77, 0.35);
    color: var(--success);
}

.flash--error,
.flash--warning {
    border-color: rgba(180, 35, 42, 0.35);
    color: var(--danger);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.btn.is-loading {
    cursor: wait;
    opacity: 0.72;
    pointer-events: none;
    transform: none;
}

.btn--primary {
    background: var(--iris);
    color: #fff;
    box-shadow: 0 10px 24px rgba(127, 74, 160, 0.22);
}

.btn--gold {
    background: var(--gold);
    color: #221605;
}

.btn--ghost {
    border-color: var(--line);
    background: #fff;
    color: var(--iris-dark);
}

.btn--danger {
    background: #fff0f0;
    color: var(--danger);
    border-color: #f3c1c4;
}

.btn--full {
    width: 100%;
}

.catalog-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 26px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 26px 24px 48px;
}

.filters {
    align-self: start;
    position: sticky;
    top: 98px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.filters form {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.filters h1 {
    margin: 0;
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--iris-dark);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.catalog-main {
    min-width: 0;
}

.shop-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.shop-intro p,
.eyebrow {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.shop-intro h2,
.section-head h1,
.section-head h2,
.product-info h1,
.page-copy h1,
.article-page h1,
.auth-panel h1,
.auth-panel h2,
.admin-content h1,
.checkout-form h1 {
    margin: 0;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

.shop-intro h2 {
    font-size: 38px;
}

.shop-intro img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--iris-dark);
    box-shadow: var(--shadow);
}

.hero-slider__track {
    position: relative;
    min-height: 340px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    min-height: 340px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(40, 31, 45, 0.78), rgba(75, 36, 95, 0.34) 54%, rgba(40, 31, 45, 0.2));
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    max-width: 620px;
    padding: 42px;
    color: #fff;
}

.hero-slide__content p {
    margin: 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

.hero-slide__content h1 {
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
}

.hero-slide__content span {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.75;
}

.hero-slide__content .btn {
    width: max-content;
    margin-top: 8px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--iris-dark);
    cursor: pointer;
    transform: translateY(-50%);
}

.slider-arrow--prev {
    left: 14px;
}

.slider-arrow--next {
    right: 14px;
}

.slider-dots {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
}

.slider-dots button.is-active {
    background: var(--gold);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.section-head span {
    color: var(--muted);
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.product-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(75, 36, 95, 0.08);
    cursor: pointer;
}

.product-card--new {
    animation: product-card-new 1.6s ease;
}

@keyframes product-card-new {
    0% {
        border-color: rgba(177, 132, 36, 0.8);
        box-shadow: 0 0 0 4px rgba(207, 166, 74, 0.18), 0 12px 28px rgba(75, 36, 95, 0.08);
    }

    100% {
        border-color: var(--line);
        box-shadow: 0 12px 28px rgba(75, 36, 95, 0.08);
    }
}

.product-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--lavender-100);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.product-card__title {
    min-height: 48px;
    color: var(--iris-dark);
    font-weight: 500;
    line-height: 1.35;
}

.stock {
    width: max-content;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 500;
}

.stock--in {
    background: rgba(47, 111, 78, 0.12);
    color: var(--success);
}

.stock--out {
    background: rgba(180, 35, 42, 0.12);
    color: var(--danger);
}

.price-line,
.detail-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.price-line strong,
.detail-price strong {
    color: var(--wine);
    font-size: 21px;
    font-weight: 600;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
}

.discount-badge,
.discount-chip {
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--wine);
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    font-size: 13px;
}

.discount-chip {
    padding: 4px 9px;
}

.product-detail,
.checkout-page,
.account-page,
.content-page,
.blog-page,
.article-page,
.narrow-page,
.related-products {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 54px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 34px;
    align-items: start;
}

.gallery__main {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gallery__thumbs button {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0;
    background: #fff;
    cursor: pointer;
}

.gallery__thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-info,
.checkout-form,
.order-summary,
.auth-panel,
.account-card,
.order-card,
.page-copy,
.contact-map,
.article-page,
.admin-content,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.product-info,
.checkout-form,
.order-summary,
.auth-panel,
.account-card,
.order-card,
.page-copy,
.article-page,
.admin-content,
.empty-state {
    padding: 22px;
}

.meta-list {
    display: grid;
    gap: 8px;
    margin: 20px 0;
}

.meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.meta-list dt {
    color: var(--muted);
}

.meta-list dd {
    margin: 0;
    font-weight: 600;
}

.success-text {
    color: var(--success);
}

.danger-text {
    color: var(--danger);
}

.add-cart-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.description h2 {
    margin-bottom: 6px;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-weight: 600;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.load-more-row {
    display: flex;
    justify-content: center;
    padding-top: 22px;
}

.cart-line {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 95px 120px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.cart-line img {
    width: 86px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-line a {
    display: block;
    color: var(--iris-dark);
    font-weight: 600;
}

.cart-line span {
    color: var(--muted);
}

.cart-list .is-loading {
    opacity: 0.68;
    pointer-events: none;
}

.cart-total,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    font-size: 18px;
}

.checkout-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.checkout-form,
.auth-panel,
.admin-form {
    display: grid;
    gap: 16px;
}

.checkout-form__heading {
    display: grid;
    gap: 8px;
}

.checkout-form__heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.checkout-form__heading p span,
.customer-type-picker legend span,
.checkout-fields label > span[aria-hidden="true"],
.checkout-fields label > span > span[aria-hidden="true"] {
    color: var(--danger);
}

.customer-type-picker {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.customer-type-picker legend {
    margin-bottom: 9px;
    color: var(--iris-dark);
    font-weight: 600;
}

.customer-type-picker__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.customer-type-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.customer-type-option:hover,
.customer-type-option:has(input:checked) {
    border-color: var(--iris);
    background: var(--lavender-50);
    box-shadow: 0 0 0 3px rgba(127, 74, 160, 0.1);
}

.customer-type-option input {
    width: auto;
    margin: 3px 0 0;
    accent-color: var(--iris);
}

.customer-type-option span {
    display: grid;
    gap: 3px;
}

.customer-type-option strong {
    color: var(--iris-dark);
}

.customer-type-option small,
.checkout-fields label small {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.45;
}

.checkout-fields {
    display: grid;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.checkout-fields[hidden] {
    display: none;
}

.checkout-fields h2 {
    margin: 0;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.checkout-fields__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-fields__grid > label {
    align-content: start;
}

.field-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 28px;
}

.checkout-fields input {
    min-height: 52px;
}

.checkout-fields__full {
    grid-column: 1 / -1;
}

.field-optional {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.checkout-submit {
    justify-self: start;
}

.rich-editor {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.rich-editor:focus-within {
    border-color: var(--iris);
    box-shadow: 0 0 0 3px rgba(127, 74, 160, 0.16);
}

.rich-editor--invalid {
    border-color: var(--danger);
}

.rich-editor--invalid:focus-within {
    box-shadow: 0 0 0 3px rgba(180, 35, 42, 0.14);
}

.rich-editor__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding: 8px;
    background: var(--lavender-50);
}

.rich-editor__select,
.rich-editor__button {
    width: auto;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--iris-dark);
    font-weight: 600;
}

.rich-editor__select {
    min-width: 132px;
    padding: 6px 10px;
}

.rich-editor__button {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    padding: 6px 9px;
    cursor: pointer;
}

.rich-editor__button:hover,
.rich-editor__select:hover {
    border-color: var(--lavender-300);
    background: var(--gold-soft);
}

.rich-editor__surface {
    min-height: 220px;
    padding: 14px;
    color: var(--ink);
    font-weight: 400;
    line-height: 1.75;
    outline: none;
}

.rich-editor__surface:empty::before {
    content: "დაწერეთ ტექსტი...";
    color: var(--muted);
}

.rich-editor__surface h2,
.rich-editor__surface h3,
.rich-editor__surface h4 {
    margin: 0 0 10px;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

.rich-editor__surface p,
.rich-content p {
    margin: 0 0 12px;
}

.rich-editor__surface blockquote,
.rich-content blockquote {
    margin: 14px 0;
    border-left: 3px solid var(--gold);
    padding: 6px 0 6px 14px;
    color: var(--iris-dark);
}

.rich-editor__surface ul,
.rich-editor__surface ol,
.rich-content ul,
.rich-content ol {
    margin: 10px 0 14px;
    padding-left: 24px;
}

.rich-editor__source {
    display: none;
}

.rich-content {
    color: #3a3140;
    line-height: 1.85;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 18px 0 8px;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

.rich-content a {
    color: var(--iris);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.order-summary {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 12px;
}

.order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.auth-page {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    width: min(1120px, calc(100% - 48px));
    margin: 34px auto 54px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-visual {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 640px;
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(75, 36, 95, 0.12), rgba(75, 36, 95, 0.82)),
        url("https://images.unsplash.com/photo-1525310072745-f49212b5ac6d?auto=format&fit=crop&w=1100&q=80") center/cover;
    color: #fff;
}

.auth-visual img {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    object-fit: cover;
}

.auth-visual .eyebrow {
    color: var(--gold-soft);
}

.auth-visual h1 {
    max-width: 460px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-visual p:last-child {
    max-width: 450px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}

.auth-card {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: 30px;
}

.auth-forms {
    display: grid;
    gap: 18px;
    max-height: 500px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-padding-top: 0;
    scroll-snap-type: y mandatory;
    padding-right: 4px;
}

.auth-forms::-webkit-scrollbar {
    width: 8px;
}

.auth-forms::-webkit-scrollbar-track {
    background: var(--lavender-50);
    border-radius: 999px;
}

.auth-forms::-webkit-scrollbar-thumb {
    background: var(--lavender-300);
    border-radius: 999px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--lavender-50);
    padding: 6px;
}

.auth-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 7px;
    color: var(--iris-dark);
    font-weight: 600;
}

.auth-tabs a:hover,
.auth-tabs a.is-active,
.auth-tabs a:target {
    background: #fff;
    color: var(--wine);
    box-shadow: 0 8px 22px rgba(75, 36, 95, 0.08);
}

.auth-panel--compact {
    min-height: 500px;
    align-content: start;
    border: 1px solid var(--line);
    box-shadow: none;
    padding: 20px;
    scroll-margin-top: 0;
    scroll-snap-align: start;
}

.auth-panel--compact:target {
    border-color: rgba(201, 154, 62, 0.55);
}

#login-form.auth-panel--compact {
    align-content: center;
}

.auth-heading {
    display: grid;
    gap: 4px;
}

.auth-heading h2 {
    margin: 0;
}

.auth-heading span,
.auth-actions a {
    color: var(--muted);
    font-size: 14px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-actions a {
    color: var(--iris);
    font-weight: 600;
}

.auth-switch-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-switch-note a {
    color: var(--iris);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 24px 54px;
}

.account-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
}

.account-card {
    align-self: start;
    display: grid;
    gap: 12px;
}

.account-card p {
    margin: 0;
    color: var(--iris-dark);
    font-weight: 600;
}

.account-card span {
    color: var(--muted);
}

.account-menu,
.account-content,
.account-section {
    display: grid;
    gap: 14px;
}

.account-menu {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--iris-dark);
    font-weight: 500;
}

.account-menu a:hover,
.account-menu a.is-active {
    background: var(--gold-soft);
    color: var(--wine);
}

.account-menu svg {
    width: 18px;
    height: 18px;
}

.account-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 22px;
}

.account-profile-form {
    align-content: start;
}

.auth-panel--code {
    max-width: 520px;
    margin: 0 auto;
}

.auth-panel--code input[name="code"] {
    font-size: 24px;
    text-align: center;
}

.auth-note {
    margin: 0;
    color: var(--muted);
}

.order-history {
    display: grid;
    gap: 14px;
}

.order-card {
    display: grid;
    gap: 10px;
}

.order-card__head,
.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.order-detail-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.order-detail-card h2 {
    margin: 0;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.order-detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.order-detail-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.order-detail-list dt {
    color: var(--muted);
    font-weight: 600;
}

.order-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--iris-dark);
    font-weight: 600;
}

.invoice-page {
    display: grid;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 24px 54px;
}

.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.invoice-document {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding: 26px;
    background: var(--lavender-50);
}

.invoice-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.invoice-brand img {
    width: 78px;
    height: 78px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    object-fit: cover;
}

.invoice-brand div,
.invoice-title {
    display: grid;
    gap: 4px;
}

.invoice-brand strong {
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 24px;
}

.invoice-brand span,
.invoice-title time {
    color: var(--muted);
    font-size: 13px;
}

.invoice-title {
    justify-items: end;
    text-align: right;
}

.invoice-title > span {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
}

.invoice-title strong {
    color: var(--iris-dark);
    font-size: 20px;
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 24px 26px;
}

.invoice-parties section {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.invoice-parties h2 {
    margin: 0 0 14px;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 20px;
}

.invoice-parties dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.invoice-parties dl div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.invoice-parties dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.invoice-parties dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--iris-dark);
    font-size: 14px;
    font-weight: 600;
}

.invoice-items {
    margin: 0 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invoice-items table {
    min-width: 920px;
}

.invoice-items thead {
    background: var(--iris-dark);
    color: #fff;
}

.invoice-items th {
    color: #fff;
}

.invoice-items td,
.invoice-items th {
    padding: 11px 10px;
    white-space: nowrap;
}

.invoice-items td:first-child,
.invoice-items th:first-child {
    min-width: 210px;
    white-space: normal;
}

.invoice-discount,
.invoice-summary__discount {
    color: var(--danger);
}

.invoice-summary {
    display: grid;
    gap: 8px;
    width: min(390px, calc(100% - 52px));
    margin: 22px 26px 26px auto;
}

.invoice-summary div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0;
}

.invoice-summary__total {
    border-top: 2px solid var(--gold);
    color: var(--iris-dark);
    font-size: 18px;
}

.invoice-footer {
    padding: 18px 26px;
    background: var(--iris-dark);
    color: #fff;
    text-align: center;
}

.invoice-footer p {
    margin: 0 0 3px;
    font-weight: 700;
}

.invoice-footer span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.content-page {
    display: grid;
    gap: 22px;
}

.content-page--contact {
    grid-template-columns: minmax(0, 1fr) 430px;
}

.content-page--contact .contact-map {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-card {
    display: grid;
    gap: 7px;
    min-height: 136px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.contact-card svg {
    width: 24px;
    height: 24px;
    color: var(--gold);
}

.contact-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.contact-card strong {
    overflow-wrap: anywhere;
    color: var(--iris-dark);
    font-size: 17px;
    font-weight: 600;
}

.page-copy p,
.article-page p {
    color: #3a3140;
    font-size: 17px;
    line-height: 1.85;
}

.contact-map {
    overflow: hidden;
    min-height: 360px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card div {
    padding: 16px;
}

.blog-card time,
.article-page time {
    color: var(--gold);
    font-weight: 600;
}

.blog-card h2 {
    margin: 7px 0;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
}

.article-page img {
    width: 100%;
    max-height: 460px;
    border-radius: 8px;
    margin-bottom: 18px;
    object-fit: cover;
}

.admin-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 20px;
    width: calc(100% - 100px);
    max-width: none;
    margin: 0 auto;
    padding: 30px 0 54px;
}

.admin-nav {
    align-self: start;
    position: sticky;
    top: 98px;
    display: grid;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    box-shadow: var(--shadow);
}

.admin-nav a {
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--iris-dark);
    font-weight: 500;
}

.admin-nav a:hover {
    background: var(--lavender-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.stats-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: var(--lavender-50);
}

.stats-grid span {
    color: var(--muted);
    font-weight: 500;
}

.stats-grid strong {
    display: block;
    color: var(--wine);
    font-size: 30px;
    font-weight: 700;
}

.admin-filters {
    display: grid;
    align-items: end;
    gap: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: var(--lavender-50);
}

.admin-filters--products {
    grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(145px, 1fr)) auto;
}

.admin-filters--categories {
    grid-template-columns: minmax(240px, 2fr) minmax(230px, 1fr) auto;
}

.admin-filters__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-table-empty {
    padding: 30px 16px;
    color: var(--muted);
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

.table-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.order-row--completed {
    background: #fff0f0;
}

.order-row--completed td {
    border-bottom-color: #f3c1c4;
}

.order-row--completed td:first-child {
    border-left: 4px solid var(--danger);
    color: var(--danger);
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--iris-dark);
    font-size: 14px;
    font-weight: 600;
}

.table-thumb {
    width: 86px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-line input {
    width: 18px;
    height: 18px;
}

.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.filter-manager,
.filter-group-card,
.filter-option-list,
.product-filter-fields {
    display: grid;
    gap: 14px;
}

.filter-manager__new,
.filter-group-card,
.product-filter-fields {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--lavender-50);
    padding: 16px;
}

.filter-group-card {
    padding: 0;
    overflow: hidden;
}

.filter-group-card__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 24px;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.filter-group-card__summary::-webkit-details-marker {
    display: none;
}

.filter-group-card__summary svg {
    width: 20px;
    height: 20px;
    color: var(--iris);
    transition: transform 0.2s ease;
}

.filter-group-card[open] .filter-group-card__summary svg {
    transform: rotate(180deg);
}

.filter-group-card__title {
    overflow: hidden;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-group-card__meta,
.filter-group-card__badge {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 10px;
    white-space: nowrap;
}

.filter-group-card__badge.is-visible {
    border-color: rgba(70, 154, 103, 0.28);
    background: rgba(70, 154, 103, 0.12);
    color: #2f7650;
}

.filter-group-card__body {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding: 16px;
}

.product-filter-fields h2 {
    margin: 0;
    color: var(--iris-dark);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
}

.filter-option-form,
.filter-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px auto;
    gap: 10px;
}

.filter-option-list {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.admin-image-grid img,
.admin-preview {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.admin-image-grid img {
    aspect-ratio: 1 / 1;
}

.admin-image-grid--manage {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.admin-image-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-image-card img {
    border: 0;
    border-radius: 0;
}

.image-delete-button {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--danger);
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(40, 31, 45, 0.18);
}

.image-delete-button input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.image-delete-button input:checked + span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
}

.image-main-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    color: var(--iris-dark);
    font-size: 13px;
    font-weight: 500;
}

.image-main-radio input {
    width: 16px;
    height: 16px;
}

.admin-preview {
    max-width: 420px;
    aspect-ratio: 16 / 9;
}

.empty-state {
    text-align: center;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px) auto 150px;
    gap: 26px;
    align-items: end;
    padding: 28px 24px;
    background: var(--iris-dark);
    color: #fff;
}

.footer-info h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: none;
}

.footer-info p {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.78);
}


.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
    margin-top: 12px;
}

.footer-newsletter {
    justify-self: center;
    width: 100%;
    max-width: 540px;
}

.newsletter .btn {
    min-height: 42px;
    padding-left: 10px;
    padding-right: 10px;
}

.footer-links {
    display: grid;
    gap: 7px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
}

.top-ge-counter {
    justify-self: end;
    display: grid;
    place-items: center;
    width: 124px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.top-ge-counter iframe,
.top-ge-counter img,
#top-ge-counter-container {
    max-width: 100%;
}

@media (max-width: 980px) {
    .catalog-shell,
    .product-detail,
    .checkout-page,
    .account-page,
    .auth-page,
    .content-page--contact,
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        width: auto;
        margin: 0;
        padding: 30px 24px 54px;
    }

    .filters,
    .order-summary,
    .admin-nav {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .content-page--contact .contact-map {
        grid-column: auto;
        grid-row: auto;
    }

    .auth-visual {
        min-height: 360px;
    }

    .catalog-shell {
        display: flex;
        flex-direction: column;
    }

    .catalog-main {
        display: contents;
    }

    .hero-slider {
        order: 1;
    }

    .filters {
        order: 2;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .filters form {
        width: 100%;
        min-width: 0;
    }

    .catalog-main .section-head {
        order: 3;
    }

    .product-grid,
    .empty-state {
        order: 4;
    }

    .load-more-row {
        order: 5;
    }
}

@media (max-width: 1200px) and (min-width: 761px) {
    .admin-filters--products,
    .admin-filters--categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-filters__actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .customer-type-picker__options,
    .checkout-fields__grid {
        grid-template-columns: 1fr;
    }

    .checkout-fields__full {
        grid-column: auto;
    }

    .checkout-fields {
        padding: 15px;
    }

    .checkout-submit {
        width: 100%;
    }

    .invoice-toolbar,
    .invoice-header {
        align-items: stretch;
        flex-direction: column;
    }

    .invoice-toolbar .btn {
        width: 100%;
    }

    .invoice-title {
        justify-items: start;
        text-align: left;
    }

    .invoice-parties {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .invoice-parties dl div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .invoice-items {
        margin-right: 18px;
        margin-left: 18px;
    }

    .invoice-summary {
        width: auto;
        margin-right: 18px;
        margin-left: 18px;
    }

    .top-strip {
        align-items: center;
        justify-content: center;
        min-height: 50px;
        padding: 8px 14px;
    }

    .top-strip__contact,
    .top-strip__actions {
        position: static;
        width: auto;
        min-width: 0;
        justify-content: center;
        transform: none;
    }

    .top-strip__contact {
        gap: 10px;
    }

    .top-strip__actions {
        margin-left: 0;
    }

    .top-strip__link,
    .top-strip__auth {
        justify-content: center;
        width: 38px;
        height: 38px;
        min-height: 38px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

    .top-strip__link span,
    .top-strip__auth span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .top-strip__link svg,
    .top-strip__auth svg {
        width: 18px;
        height: 18px;
    }

    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 10px;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav .header-cart-link {
        justify-content: flex-start;
        margin-left: 0;
        padding: 8px 10px;
    }

    .shop-intro,
    .auth-grid,
    .site-footer,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .shop-intro img {
        width: 112px;
        height: 112px;
    }

    .hero-slider__track,
    .hero-slide {
        min-height: 300px;
    }

    .hero-slide__content {
        padding: 30px 22px 52px;
    }

    .hero-slide__content h1 {
        font-size: 32px;
    }

    .cart-line {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .cart-line input,
    .cart-line strong {
        grid-column: 2;
    }

    .form-grid,
    .auth-form-grid,
    .newsletter,
    .filter-row,
    .filter-option-form,
    .filter-option-row,
    .filter-option-list,
    .admin-filters,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-filters__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filters__actions .btn {
        width: 100%;
    }

    .filters input,
    .filters select,
    .filters .btn {
        max-width: 100%;
    }

    .auth-page {
        width: calc(100% - 28px);
        margin-top: 18px;
    }

    .auth-card,
    .auth-visual {
        padding: 22px;
    }

    .auth-forms {
        max-height: 560px;
    }

    .auth-panel--compact {
        min-height: 560px;
    }

    .auth-visual h1 {
        font-size: 30px;
    }

    .auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-group-card__summary {
        grid-template-columns: minmax(0, 1fr) 24px;
    }

    .filter-group-card__meta,
    .filter-group-card__badge {
        justify-self: flex-start;
    }

    .filter-group-card__summary svg {
        grid-column: 2;
        grid-row: 1 / span 3;
        justify-self: end;
    }
}

@media (max-width: 480px) {
    .top-strip,
    .site-header,
    .catalog-shell,
    .product-detail,
    .checkout-page,
    .account-page,
    .content-page,
    .blog-page,
    .article-page,
    .narrow-page,
    .related-products,
    .admin-shell,
    .site-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .brand span {
        font-size: 19px;
    }

    .section-head,
    .order-card__head,
    .order-item {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 640px) {
    .social-float {
        right: 10px;
        gap: 10px;
    }

    .social-float__link {
        width: 38px;
        height: 38px;
    }

    .social-float__link svg {
        width: 20px;
        height: 20px;
    }
}

@media print {
    .top-strip,
    .site-header,
    .site-footer,
    .social-float,
    .scroll-top-button,
    .invoice-toolbar,
    .flash {
        display: none !important;
    }

    body {
        background: #fff;
        font-size: 12px;
    }

    .invoice-page {
        max-width: none;
        padding: 0;
    }

    .invoice-document {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .invoice-items {
        overflow: visible;
    }

    .invoice-items table {
        min-width: 0;
    }

    .invoice-items td,
    .invoice-items th {
        padding: 7px 5px;
        font-size: 10px;
    }
}

