:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #eef2f7;
    --text: #141922;
    --muted: #647189;
    --border: #dbe2ec;
    --accent: #8d73ff;
    --accent-strong: #6b49ff;
    --accent-ink: #0f0b1e;
    --danger: #cd3a3a;
    --success: #1f8b4d;
    --shadow: 0 18px 40px rgba(17, 26, 42, 0.09);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 11px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.bg-orb .orb-one {
    background: radial-gradient(circle at 35% 35%, rgba(141, 115, 255, 0.72), rgba(141, 115, 255, 0));
}

.bg-orb .orb-two {
    background: radial-gradient(circle at 30% 35%, rgba(105, 89, 255, 0.35), rgba(105, 89, 255, 0));
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Exo 2", "Noto Sans Georgian", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% -10%, rgba(141, 115, 255, 0.35) 0%, rgba(141, 115, 255, 0) 55%),
        radial-gradient(circle at 75% 25%, rgba(109, 93, 255, 0.3) 0%, rgba(109, 93, 255, 0) 45%),
        var(--bg);
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    z-index: -1;
    pointer-events: none;
    filter: blur(1px);
}

.orb-one {
    width: 360px;
    height: 360px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 214, 90, 0.72), rgba(255, 214, 90, 0));
}

.orb-two {
    width: 340px;
    height: 340px;
    right: -140px;
    bottom: 45px;
    background: radial-gradient(circle at 30% 35%, rgba(165, 188, 235, 0.35), rgba(165, 188, 235, 0));
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.18;
    letter-spacing: 0.01em;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

.container {
    width: min(1260px, 94vw);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 0;
    backdrop-filter: none;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.8rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 176px;
}

.site-wordmark {
    display: block;
    width: 176px;
    height: 54px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 10px 22px rgba(13, 18, 28, 0.24));
}


.topbar-search {
    flex: 1 1 440px;
    max-width: 540px;
    position: relative;
}

.topbar-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.35rem;
    border-radius: 18px;
    border: 1px solid rgba(107, 73, 255, 0.08);
    background: #fff;
    box-shadow: none;
    position: relative;
}

.topbar-search-input {
    border: 0;
    padding: 0.72rem 0.86rem;
    background: transparent;
    box-shadow: none;
}

.topbar-search-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.topbar-search-button {
    min-height: 44px;
    padding-inline: 1rem;
    white-space: nowrap;
}

.topbar-search-form.is-open {
    border-color: rgba(107, 73, 255, 0.18);
    box-shadow: 0 10px 24px rgba(18, 25, 37, 0.08);
}

.topbar-search-suggestions {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 45;
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 18px;
    border: 1px solid rgba(107, 73, 255, 0.18);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 22px 40px rgba(18, 25, 37, 0.14);
    backdrop-filter: blur(10px);
    max-height: min(420px, 62vh);
    overflow-y: auto;
}

.topbar-search-suggestions[hidden] {
    display: none !important;
}

.search-suggestion-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: linear-gradient(180deg, rgba(141, 115, 255, 0.12), rgba(141, 115, 255, 0.06));
    transform: translateY(-1px);
}

.search-suggestion-media {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f8;
    display: grid;
    place-items: center;
}

.search-suggestion-media.is-placeholder {
    padding: 0.45rem;
    color: #5f6d87;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.search-suggestion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-suggestion-copy {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #182335;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-meta {
    color: #67758d;
    font-size: 0.8rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-price {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.search-suggestion-state {
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    color: #607089;
    font-size: 0.88rem;
    background: #f5f8fd;
}

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.48rem 0.84rem;
    border-radius: 999px;
    font-weight: 700;
    background: transparent;
    color: var(--text);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    border-color: var(--border);
    background: #fff;
    outline: none;
}

.cart-link {
    background: #fff7d8;
    border-color: #f4dc8f;
}

.inline-logout-form {
    margin: 0;
}

.logout-link-button {
    cursor: pointer;
    font-family: inherit;
}

.badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    padding: 0 0.35rem;
    color: #fff;
    background: var(--accent-ink);
}

.page-content {
    padding: 1.2rem 0 3.2rem;
    flex: 1 0 auto;
    animation: pageReveal 0.35s ease;
}

@keyframes pageReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.message {
    border-radius: var(--radius-sm);
    padding: 0.72rem 0.92rem;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 29, 50, 0.06);
}

.message.success {
    color: #1f6b3f;
    border-color: #afddc0;
    background: #e8f7ee;
}

.message.warning {
    border-color: #f4d182;
    background: #fff5dd;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: 0.7rem;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 0.9rem;
    margin-bottom: 1rem;
    background:
        linear-gradient(145deg, rgba(141, 115, 255, 0.28) 0%, rgba(141, 115, 255, 0.08) 48%, rgba(255, 255, 255, 1) 48%),
        #fff;
}

.landing-hero {
    background:
        linear-gradient(145deg, rgba(255, 226, 137, 0.28) 0%, rgba(141, 115, 255, 0.12) 46%, rgba(255, 255, 255, 1) 46%),
        #fff;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    padding: 0.4rem 0.35rem;
}

.hero-label {
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.34rem 0.62rem;
    color: var(--accent-ink);
    background: rgba(141, 115, 255, 0.38);
}

.hero-copy h1 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    max-width: 18ch;
}

.hero-subtitle {
    max-width: 44ch;
    color: #263248;
    font-size: 1.03rem;
}

.hero-copy .button {
    width: fit-content;
}

.hero-panel {
    border-radius: var(--radius-md);
    padding: 0.95rem;
    background: linear-gradient(145deg, #140b2c, #251540);
    color: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 0.72rem;
    align-content: center;
}

.hero-panel-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.hero-panel-text {
    color: rgba(255, 255, 255, 0.73);
}

.landing-hero-panel {
    align-content: space-between;
}

.landing-hero-count {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    line-height: 1;
    font-weight: 800;
    color: #fff3be;
}

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

.filters {
    position: sticky;
    top: 98px;
}

.filters h2 {
    margin-bottom: 0.8rem;
}

.filter-form {
    display: grid;
    gap: 0.58rem;
}

.filter-panel {
    border-radius: 16px;
}

.filter-panel summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border: 1px solid rgba(67, 44, 146, 0.3);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(141, 115, 255, 0.22), rgba(71, 45, 148, 0.08));
    box-shadow: 0 8px 20px rgba(83, 57, 166, 0.25);
}

.filter-panel summary::-webkit-details-marker {
    display: none;
}

.filter-panel summary .filter-icon {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
}

.filter-panel summary .filter-icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-strong);
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.filter-panel summary[aria-expanded="true"] .filter-icon span:first-child {
    transform: translateY(2px);
}

.filter-panel summary[aria-expanded="true"] .filter-icon span:last-child {
    transform: translateY(-2px);
}

.filter-panel[open] summary .filter-icon {
    filter: brightness(1.1);
}

.filter-panel form {
    padding: 0.9rem 1rem 1rem;
}

.filter-section {
    border: 1px solid rgba(115, 94, 255, 0.2);
    border-radius: 18px;
    padding: 0.95rem;
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(141, 115, 255, 0.08));
    box-shadow: 0 18px 34px rgba(20, 12, 40, 0.15);
}

.filter-section[open] summary {
    border-bottom: 1px solid #d5dfe9;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #2f3d56;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-option input[type="radio"] {
    accent-color: var(--accent-strong);
}

.filter-option:hover {
    background: rgba(141, 115, 255, 0.1);
    color: #1a1937;
}

.price-range {
    display: grid;
    gap: 0.4rem;
}

.price-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}

.filter-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.products {
    display: grid;
    gap: 0.9rem;
}

.products-header {
    border-radius: var(--radius-lg);
    padding: 1rem 1.05rem;
    background: linear-gradient(140deg, #171d28, #27324a);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.products-header h2 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.products-header p {
    margin-top: 0.38rem;
    color: rgba(255, 255, 255, 0.76);
}

.products-header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-sort-form {
    display: flex;
    justify-content: flex-end;
    min-width: 280px;
}

.catalog-sort-panel {
    display: grid;
    gap: 0.48rem;
    padding: 0.72rem;
    min-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
        rgba(16, 18, 36, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 28px rgba(12, 18, 32, 0.14);
}

.catalog-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.catalog-sort-label::before {
    content: "";
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe49b, #8f78ff);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.catalog-sort-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.catalog-sort-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.86);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.catalog-sort-chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
}

.catalog-sort-chip:focus-visible {
    outline: 2px solid rgba(255, 228, 155, 0.92);
    outline-offset: 2px;
}

.catalog-sort-chip.is-active {
    background: linear-gradient(135deg, #fff2bc, #a695ff);
    color: #231f36;
    box-shadow:
        0 10px 24px rgba(73, 60, 132, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dce3ef;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: cardRise 0.38s ease both;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px rgba(19, 30, 48, 0.13);
}

.product-card:nth-child(2n) {
    animation-delay: 0.05s;
}

.product-card:nth-child(3n) {
    animation-delay: 0.09s;
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-media {
    display: grid;
    gap: 0.55rem;
    padding: 0.62rem 0.62rem 0;
}

.product-card-gallery {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-muted);
}

.product-image-link {
    display: block;
}

.product-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: var(--surface-muted);
}

.product-card-nav {
    width: 32px;
    height: 32px;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-card:hover .product-card-nav,
.product-card:focus-within .product-card-nav,
.product-card-media.has-gallery:hover .product-card-nav,
.product-card-media.has-gallery:focus-within .product-card-nav {
    opacity: 1;
}

.product-card-dots {
    justify-content: center;
    padding-bottom: 0.1rem;
}

.product-image.placeholder {
    display: grid;
    place-content: center;
    color: var(--muted);
}

.product-content {
    display: grid;
    gap: 0.55rem;
    padding: 0.92rem;
}

.product-content.compact {
    grid-template-rows: auto auto auto 1fr;
    height: 100%;
}

.product-card-meta {
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.meta-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.meta-link:hover,
.meta-link:focus-visible {
    color: var(--accent-strong);
    border-color: currentColor;
    outline: none;
}

.product-card-name {
    font-size: 1rem;
    line-height: 1.3;
    min-height: 2.55rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.price {
    font-size: 1.37rem;
    font-weight: 800;
}

.product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.availability-pill,
.track-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.68rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.availability-in {
    background: rgba(31, 139, 77, 0.12);
    color: #1f8b4d;
}

.availability-low {
    background: rgba(233, 170, 58, 0.14);
    color: #9f5f00;
}

.availability-out {
    background: rgba(205, 58, 58, 0.12);
    color: #c03939;
}

.muted-button,
.muted-button[disabled] {
    background: #eef2f7;
    color: #617086;
    box-shadow: none;
    cursor: not-allowed;
}

.muted-button:hover,
.muted-button:focus-visible {
    transform: none;
    box-shadow: none;
    background: #eef2f7;
}

.add-form {
    display: flex;
    align-items: center;
    gap: 0.52rem;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.card-action-form {
    display: block;
}

.card-action-form .button {
    width: 100%;
    min-height: 42px;
}

.product-detail-page {
    display: grid;
    gap: 1rem;
}

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

.product-detail-media,
.product-detail-content {
    min-height: 100%;
}

.product-detail-content {
    display: grid;
    gap: 0.72rem;
}

.product-detail-price {
    font-size: clamp(1.65rem, 2.8vw, 2rem);
    font-weight: 800;
}

.product-detail-stock {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.product-stock-count {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.detail-out-of-stock {
    display: flex;
}

.meta,
.desc,
.muted {
    color: var(--muted);
}

.product-gallery {
    display: grid;
    gap: 0.75rem;
}

.product-gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-muted);
}

.gallery-slide {
    display: none;
}

.gallery-slide.is-active {
    display: block;
}

.gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.gallery-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(38, 46, 66, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-dot:hover {
    transform: scale(1.08);
    background: rgba(78, 70, 143, 0.4);
}

.gallery-dot.is-active {
    background: linear-gradient(135deg, #fff2bc, #8f78ff);
    box-shadow: 0 0 0 4px rgba(143, 120, 255, 0.12);
}

.gallery-dot:focus-visible {
    outline: 2px solid rgba(255, 228, 155, 0.92);
    outline-offset: 2px;
}

.product-detail-image {
    width: 100%;
    min-height: 325px;
    object-fit: cover;
    display: block;
}

.product-detail-image[data-lightbox-image] {
    cursor: zoom-in;
}

.product-detail-image[data-lightbox-image]:focus-visible {
    outline: 3px solid rgba(143, 120, 255, 0.9);
    outline-offset: -3px;
}

body.lightbox-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(9, 14, 23, 0.9);
    backdrop-filter: blur(7px);
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox-panel {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 1140px);
    max-height: 100%;
}

.image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 2.5rem);
    border-radius: 12px;
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

.image-lightbox-close,
.image-lightbox-nav {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 18, 29, 0.76);
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.image-lightbox-close:hover,
.image-lightbox-nav:hover {
    background: rgba(65, 50, 132, 0.92);
    transform: scale(1.06);
}

.image-lightbox-close:focus-visible,
.image-lightbox-nav:focus-visible {
    outline: 3px solid #fff2bc;
    outline-offset: 3px;
}

.image-lightbox-close {
    top: 0.7rem;
    right: 0.7rem;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
}

.image-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 2.3rem;
    line-height: 1;
    transform: translateY(-50%);
}

.image-lightbox-nav:hover {
    transform: translateY(-50%) scale(1.06);
}

.image-lightbox-nav.prev {
    left: 0.7rem;
}

.image-lightbox-nav.next {
    right: 0.7rem;
}

.image-lightbox-counter {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
    padding: 0.35rem 0.68rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 18, 29, 0.76);
    font-size: 0.88rem;
    font-weight: 700;
}

.product-detail-image.placeholder {
    display: grid;
    place-content: center;
    min-height: 260px;
    color: var(--muted);
    background: var(--surface-muted);
    border-radius: var(--radius-md);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: rgba(20, 25, 34, 0.75);
    font-size: 1.12rem;
    line-height: 1;
}

.gallery-nav.prev {
    left: 0.58rem;
}

.gallery-nav.next {
    right: 0.58rem;
}

.detail-block {
    display: grid;
    gap: 0.5rem;
}

.detail-block h2 {
    font-size: 1.05rem;
}

.related-products-section {
    display: grid;
    gap: 0.8rem;
}

.feature-list {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.34rem;
}

.back-link {
    width: fit-content;
}

.cart-page {
    display: grid;
    gap: 0.9rem;
}

.cart-table-wrapper {
    overflow: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.table-offset {
    margin-top: 0.82rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cart-table th,
.cart-table td {
    text-align: left;
    padding: 0.72rem 0.55rem;
    border-bottom: 1px solid #e7edf4;
    vertical-align: top;
}

.cart-table thead th {
    background: #f5f8fd;
    color: #2c3850;
    position: sticky;
    top: 0;
    z-index: 1;
}

.cart-product {
    display: flex;
    gap: 0.62rem;
}

.cart-product img,
.thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--surface-muted);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

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

.checkout-form {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.74rem;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.captcha-field {
    gap: 0.6rem;
}

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

.captcha-image {
    border-radius: 12px;
    border: 1px solid rgba(131, 121, 255, 0.4);
    width: 240px;
    max-width: 100%;
    height: 82px;
    object-fit: contain;
    box-shadow: 0 10px 22px rgba(25, 18, 43, 0.3);
}

.captcha-refresh {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
}

.account-page {
    display: grid;
    gap: 1.2rem;
}

.account-page .account-hero {
    border-radius: 20px;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(141, 115, 255, 0.3), rgba(60, 8, 75, 0.85));
    color: #fff;
    box-shadow: 0 22px 42px rgba(8, 2, 24, 0.35);
}

.account-badges {
    display: none;
}

.account-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.account-card {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(120, 96, 255, 0.25);
    background: #120d25;
    color: #fff;
    box-shadow: 0 18px 40px rgba(6, 0, 20, 0.55);
    display: grid;
    gap: 0.8rem;
}

.account-card header h2 {
    margin: 0;
}

.account-card header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.account-card .field input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.account-card .field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.account-card .form-errors {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem;
}

.account-card .button {
    justify-self: stretch;
}

.account-card button {
    width: 100%;
}

.summary-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.42rem;
}

.summary-row {
    margin-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.summary-row.total {
    padding-top: 0.67rem;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.success-box {
    display: grid;
    gap: 0.58rem;
}

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

.success-actions form {
    margin: 0;
}

.success-box ul {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.3rem;
}

.empty-state {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 1.8rem 0.8rem;
}

.empty-state-query {
    color: var(--muted);
    font-size: 0.95rem;
}

.track-order-page {
    display: grid;
    gap: 1rem;
}

.track-order-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1rem;
    align-items: start;
    background:
        linear-gradient(145deg, rgba(141, 115, 255, 0.22) 0%, rgba(141, 115, 255, 0.06) 48%, rgba(255, 255, 255, 1) 48%),
        #fff;
}

.track-order-form {
    display: grid;
    gap: 0.7rem;
}

.track-order-result {
    display: grid;
    gap: 1rem;
}

.track-order-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

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

.track-order-stat {
    display: grid;
    gap: 0.28rem;
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff, #f2f6fb);
    border: 1px solid #dde6f1;
}

.track-order-stat span {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.track-order-items {
    display: grid;
    gap: 0.55rem;
}

.track-order-status.status-new {
    background: rgba(141, 115, 255, 0.15);
    color: #6b49ff;
}

.track-order-status.status-confirmed {
    background: rgba(27, 111, 214, 0.12);
    color: #1b6fd6;
}

.track-order-status.status-delivered {
    background: rgba(31, 139, 77, 0.12);
    color: #1f8b4d;
}

.track-order-status.status-fake {
    background: rgba(205, 58, 58, 0.12);
    color: #c03939;
}

.input,
.qty-input,
select,
textarea {
    width: 100%;
    border: 1px solid #cad5e6;
    border-radius: var(--radius-sm);
    padding: 0.62rem 0.72rem;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input:focus,
.qty-input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #b193ff;
    box-shadow: 0 0 0 3px rgba(134, 112, 255, 0.25);
}

.topbar-search-input,
.topbar-search-input:focus {
    appearance: none;
    -webkit-appearance: none;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent;
    outline: none;
}

.qty-input {
    max-width: 85px;
}

.button {
    border: 0;
    text-decoration: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 42px;
    padding: 0.58rem 0.95rem;
    border-radius: 11px;
    font-weight: 700;
    background: linear-gradient(180deg, #b9a1ff, var(--accent));
    color: #0f0b1e;
    box-shadow: 0 10px 20px rgba(96, 65, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 23px rgba(96, 65, 255, 0.3);
    background: linear-gradient(180deg, #c3b7ff, var(--accent-strong));
    outline: none;
}

.button.light {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.button.light:hover,
.button.light:focus-visible {
    border-color: #bbc7d9;
    box-shadow: 0 10px 20px rgba(23, 33, 49, 0.09);
}

.button.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: none;
}

.form-errors,
.errorlist {
    color: var(--danger);
}

.errorlist {
    margin: 0;
    padding-left: 1.05rem;
}

.site-footer {
    margin-top: auto;
    background: linear-gradient(160deg, #121925, #1e2635);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.35rem 0 1.7rem;
}

.footer-col {
    display: grid;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-col h3 {
    font-size: 0.95rem;
    color: #fff;
}

.footer-legal-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.legal-page {
    display: grid;
    gap: 1rem;
}

.legal-hero {
    padding: 1.4rem;
    background:
        radial-gradient(circle at top right, rgba(195, 183, 255, 0.28), transparent 24%),
        linear-gradient(135deg, #f7fafe, #edf3fb);
}

.legal-lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.legal-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.legal-card,
.legal-contact {
    display: grid;
    gap: 0.6rem;
    padding: 1.1rem;
}

.legal-card h2,
.legal-contact h2 {
    margin: 0;
    font-size: 1.04rem;
}

.legal-card p,
.legal-contact p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-contact-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.maintenance-body {
    min-height: 100vh;
}

.maintenance-shell {
    width: min(760px, 92vw);
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.maintenance-card {
    width: 100%;
    display: grid;
    gap: 1rem;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(107, 73, 255, 0.12);
    background:
        radial-gradient(circle at top right, rgba(255, 213, 90, 0.2), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.98));
    box-shadow: 0 28px 54px rgba(17, 26, 42, 0.12);
}

.maintenance-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.maintenance-brand img {
    width: 64px;
    height: 64px;
    display: block;
}

.maintenance-brand div {
    display: grid;
    gap: 0.2rem;
}

.maintenance-brand strong {
    font-size: 1.15rem;
}

.maintenance-brand span {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintenance-kicker {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7e63f4;
}

.maintenance-card h1 {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    max-width: 14ch;
}

.maintenance-copy {
    max-width: 56ch;
    color: #394861;
    font-size: 1.02rem;
    line-height: 1.75;
}

.maintenance-contact {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(107, 73, 255, 0.12);
    color: #4f607c;
}

.site-chat-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    justify-items: end;
    gap: 0.75rem;
}

.site-chat-panel[hidden],
.site-chat-auth[hidden],
.site-chat-thread[hidden],
.site-chat-feedback[hidden] {
    display: none !important;
}

.site-chat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe17b, #f7be2f);
    color: #1e2736;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(247, 190, 47, 0.34);
    position: relative;
    cursor: pointer;
}

.site-chat-toggle__icon {
    width: 28px;
    height: 28px;
    display: block;
}

.site-chat-toggle__pulse {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2fbf63;
    box-shadow: 0 0 0 6px rgba(47, 191, 99, 0.22);
}

.site-chat-panel {
    width: min(390px, calc(100vw - 24px));
    padding: 1rem;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    max-height: min(620px, calc(100vh - 96px));
    border-radius: 24px;
    border: 1px solid rgba(15, 25, 43, 0.08);
    background:
        radial-gradient(circle at top right, rgba(255, 213, 90, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    box-shadow: 0 28px 54px rgba(17, 26, 42, 0.18);
    overflow: hidden;
}

.site-chat-widget.is-connected .site-chat-panel {
    height: min(620px, calc(100vh - 96px));
    grid-template-rows: auto auto minmax(0, 1fr);
}

.site-chat-panel__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
}

.site-chat-panel__header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.site-chat-panel__header p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.site-chat-panel__eyebrow {
    margin: 0 0 0.25rem !important;
    color: #7561ff !important;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-chat-close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: rgba(16, 25, 42, 0.06);
    color: #192334;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    justify-self: end;
    position: relative;
    z-index: 2;
}

.site-chat-feedback,
.site-chat-status {
    padding: 0.75rem 0.85rem;
    border-radius: 16px;
    font-size: 0.92rem;
}

.site-chat-feedback {
    grid-row: 2;
}

.site-chat-status {
    background: #f4f7fb;
    color: #43536d;
}

.site-chat-feedback {
    background: #fff3f1;
    color: #a43a2f;
}

.site-chat-feedback.is-success {
    background: #effaf2;
    color: #21683a;
}

.site-chat-auth,
.site-chat-compose {
    display: grid;
    gap: 0.8rem;
}

.site-chat-field {
    display: grid;
    gap: 0.35rem;
}

.site-chat-field span {
    font-size: 0.84rem;
    font-weight: 700;
    color: #33425a;
}

.site-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.site-chat-widget.is-connected .site-chat-thread {
    grid-row: 3;
    flex: 1 1 auto;
    align-self: stretch;
}

.site-chat-messages {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.7rem;
    min-height: 0;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.site-chat-widget.is-connected .site-chat-messages {
    min-height: 0;
    max-height: none;
}

.site-chat-empty {
    padding: 1rem;
    border-radius: 16px;
    background: #f4f7fb;
    color: var(--muted);
    text-align: center;
}

.site-chat-message {
    display: flex;
    align-items: flex-start;
}

.site-chat-message--customer {
    justify-content: flex-end;
}

.site-chat-message__bubble {
    width: fit-content;
    max-width: min(86%, 320px);
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(17, 26, 42, 0.08);
    word-break: break-word;
}

.site-chat-message--customer .site-chat-message__bubble {
    background: linear-gradient(180deg, #b9a1ff, #8f78ff);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.site-chat-message--admin .site-chat-message__bubble {
    background: #fff;
    color: #172133;
    border: 1px solid rgba(17, 26, 42, 0.08);
    border-bottom-left-radius: 6px;
}

.site-chat-message__bubble p {
    margin: 0;
    line-height: 1.55;
}

.site-chat-message__time {
    font-size: 0.75rem;
    opacity: 0.78;
    justify-self: end;
}

.site-chat-compose {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
    margin-top: auto;
    flex-shrink: 0;
    z-index: 1;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(17, 26, 42, 0.08);
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.18), rgba(247, 250, 255, 0.98) 28%);
}

.site-chat-compose__input {
    min-height: 56px;
    height: 56px;
    max-height: 56px;
    resize: none;
    overflow-y: auto;
}

.site-chat-send {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #8f78ff, #6d53f3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 26px rgba(109, 83, 243, 0.28);
    cursor: pointer;
}

.site-chat-send:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.site-chat-send svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1080px) {
    .topbar-inner {
        flex-wrap: wrap;
    }

    .topbar-search {
        order: 3;
        width: 100%;
        max-width: none;
    }

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

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

    .filters {
        position: static;
    }

    .product-detail-layout,
    .track-order-hero,
    .checkout-layout,
    .account-layout,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 280px;
    }

    .cart-summary {
        flex-direction: column;
        align-items: stretch;
    }

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

@media (max-width: 780px) {
    .topbar {
        position: static;
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-search {
        width: 100%;
    }

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

    .topbar-search-button {
        width: auto;
    }

    .search-suggestion-item {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .search-suggestion-price {
        grid-column: 2;
        justify-self: start;
    }

    .button,
    .button.light,
    .button.danger,
    .muted-button {
        width: 100%;
    }

    .inline-form {
        display: grid;
        gap: 0.5rem;
    }

    .add-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .products-header-top,
    .track-order-result-head,
    .success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-sort-form {
        min-width: 0;
        width: 100%;
    }

    .catalog-sort-panel {
        min-width: 0;
    }

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

    .maintenance-card {
        padding: 1.45rem;
    }

    .site-chat-widget {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .site-chat-panel {
        width: 100%;
    }

    .site-chat-widget.is-connected .site-chat-panel {
        height: min(540px, calc(100vh - 76px));
    }
}

@media (max-width: 560px) {
    .topbar-search-form {
        grid-template-columns: 1fr;
    }

    .topbar-search-button {
        width: 100%;
    }

    .topbar-search-suggestions {
        max-height: min(360px, 58vh);
    }

    .hero-copy h1 {
        font-size: 1.5rem;
    }

    .catalog-sort-chip {
        width: 100%;
        justify-content: center;
    }

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

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

    .nav-link {
        width: 100%;
        justify-content: center;
    }

    .back-link {
        width: 100%;
    }

    .site-chat-toggle {
        width: 64px;
    }

    .site-chat-panel__header {
        grid-template-columns: 1fr;
    }

    .site-chat-close {
        width: 40px;
    }

    .site-chat-message__bubble {
        max-width: 100%;
    }

    .site-chat-widget.is-connected .site-chat-panel {
        height: min(500px, calc(100vh - 44px));
    }
}
