:root {
    --bg: #fafbfc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: #e8eaed;
    --border-soft: #f0f2f5;
    --text: #1a1d21;
    --text-muted: #5c6370;
    --accent: #0d6efd;
    --accent-hover: #0b5ed7;
    --accent-soft: rgba(13, 110, 253, 0.08);
    --shadow-sm: 0 1px 2px rgba(26, 29, 33, 0.04);
    --shadow-md: 0 8px 24px rgba(26, 29, 33, 0.06);
    --shadow-lg: 0 20px 50px rgba(26, 29, 33, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --font: "Outfit", system-ui, -apple-system, sans-serif;
    --header-h: 72px;
    --hero-periwinkle: #7b8cff;
    --layout-max: 1680px;
    --shop-sidebar-w: 248px;
    --shop-gap: 16px;
    --header-banner-bg: #f4f4f4;
    --header-icon: #1a2744;
    --search-orange: #ea580c;
    --bottom-nav-green: #16a34a;
    --bottom-nav-muted: #64748b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
}

.logo img {
    position: relative;
    width: 210px;
    height: 210px;
    object-fit: contain;
}

/* Header */
.header {
    position: sticky;
    height: 100px;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    top: -50px;
    min-height: var(--header-h);
    flex-wrap: wrap;
}

.header--simple .header__inner {
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
}

.logo:hover {
    text-decoration: none;
    color: var(--text);
}

.logo__mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent) 0%, #4d94ff 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.logo__tld {
    color: var(--accent);
    font-weight: 600;
}

.logo--footer .logo__mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.search {
    flex: 1;
    min-width: 200px;
    max-width: 520px;
    display: flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.search__input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font: inherit;
    color: var(--text);
    background: transparent;
}

.search__input::placeholder {
    color: var(--text-muted);
}

.search__input:focus {
    outline: none;
}

.search__btn {
    border: none;
    padding: 12px 22px;
    background: var(--text);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search__btn:hover {
    background: #2d3238;
}

.header__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

.header__desktop-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--header-icon);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.header__icon-btn:hover {
    background: rgba(26, 39, 68, 0.08);
    color: var(--header-icon);
}

.header__icon-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.header__icon-btn[aria-expanded="true"] {
    background: rgba(26, 39, 68, 0.1);
}

.header__icon-svg {
    display: block;
    flex-shrink: 0;
}

.header__sheet {
    position: fixed;
    inset: 0;
    z-index: 500;
    flex-direction: row;
    align-items: stretch;
}

.header__sheet[hidden] {
    display: none !important;
}

.header__sheet:not([hidden]) {
    display: flex !important;
}

.header__sheet-backdrop {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.header__sheet-panel {
    flex: 0 0 auto;
    width: min(100vw - 48px, 320px);
    max-width: 100%;
    background: var(--surface);
    box-shadow: -10px 0 40px rgba(26, 29, 33, 0.12);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.header__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.header__sheet-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.header__sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--border-soft);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}

.header__sheet-close:hover {
    background: var(--border);
}

.header__sheet-inner {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header__sheet-section-label {
    margin: 0 0 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.search--drawer {
    max-width: none;
    width: 100%;
}

.header__sheet-guest {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header__sheet-guest[hidden],
.header__sheet-auth[hidden] {
    display: none !important;
}

.header__sheet-user-name {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.header__sheet-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header__sheet-links a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background 0.15s;
}

.header__sheet-links a:hover {
    background: var(--accent-soft);
    color: var(--text);
    text-decoration: none;
}

.header__sheet-links a[hidden] {
    display: none !important;
}

.header__sheet-logout {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: start;
    color: #b42318;
    cursor: pointer;
    transition: background 0.15s;
}

.header__sheet-logout:hover {
    background: rgba(180, 35, 24, 0.08);
}

@media (min-width: 901px) {
    .header__search-anchor {
        position: relative;
        flex: 1;
        min-width: 200px;
        max-width: 520px;
    }

    .search-mobile-trigger {
        display: none !important;
    }

    .search--header-desktop {
        display: flex !important;
    }

    .header__desktop-auth {
        display: flex !important;
    }

    .search-panel__mobile-bar {
        display: none !important;
    }

    .search-panel:not([hidden]) {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 120;
        background: var(--surface);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        border: 2px solid var(--search-orange, #ea580c);
        max-height: min(70vh, 560px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .search-panel:not([hidden]) .search-panel__body {
        overflow-y: auto;
        flex: 1;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--border-soft);
    border-color: #dde1e6;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn--block {
    width: 100%;
}

.btn--lg {
    padding: 14px 24px;
    font-size: 1rem;
}

.cart-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cart-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.cart-btn__icon {
    flex-shrink: 0;
}

.cart-btn__badge {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.cart-btn--link {
    text-decoration: none;
    color: inherit;
}

.cart-btn--link:hover {
    text-decoration: none;
    color: inherit;
}

.header__auth-slot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* class display qaydası bəzi brauzerlərdə [hidden]-ı sındıra bilər */
.header__auth-slot[hidden] {
    display: none !important;
}

.header__user-menu {
    position: relative;
}

/* Trigger ilə dropdown arasındakı boşluqda hover kəsiləsin deyə */
.header__user-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    z-index: 199;
}

.header__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    font: inherit;
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.header__user-trigger:hover,
.header__user-menu:hover .header__user-trigger,
.header__user-menu:focus-within .header__user-trigger {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.header__user-chevron {
    flex-shrink: 0;
    opacity: 0.65;
}

.header__user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 208px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 200;
    pointer-events: none;
}

.header__user-menu:hover .header__user-dropdown,
.header__user-menu:focus-within .header__user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header__user-dropdown__link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* display: block yuxarıda [hidden]-ı sındırır; admin linki yalnız adminə görünsün */
.header__user-dropdown__link[hidden] {
    display: none !important;
}

.header__user-dropdown__link:hover {
    background: var(--accent-soft);
    color: var(--text);
}

.header__user-dropdown__btn {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: start;
    color: var(--text);
    cursor: pointer;
}

.header__user-dropdown__btn:hover {
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.header__user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: inherit;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-message {
    min-height: 1.25em;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.form-message--error {
    color: #b42318;
    font-weight: 500;
}

.catalog-msg {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.catalog-msg--error {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.35);
}

.product-card__photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.cart-page {
    padding-top: 32px;
    padding-bottom: 64px;
}

.cart-page__title {
    margin: 0 0 24px;
    font-size: 1.75rem;
}

.cart-page__footer {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.cart-page__total {
    margin: 0;
    font-size: 1.125rem;
}

.cart-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    margin-bottom: 4px;
}

.cart-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table th,
.cart-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}

.cart-table th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: #fafbfc;
}

.cart-table .input.cart-qty {
    width: 72px;
    padding: 8px 10px;
}

.cart-table__old-price {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9em;
    margin-inline-end: 4px;
}

.cart-empty {
    margin: 0;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.link-back {
    color: var(--text-muted);
    font-weight: 500;
}

.link-back:hover {
    color: var(--text);
}

/* Hero — “Axtardığınız / bizdə var!” */
.hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    padding: clamp(40px, 8vw, 72px) 24px clamp(40px, 6vw, 56px);
}

.hero__content {
    text-align: left;
    max-width: none;
    margin: 0;
    min-width: 0;
}

.hero__headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35em;
}

.hero__line1 {
    display: block;
    font-size: clamp(3.25rem, 11vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    color: #000000;
}

.hero__sticker-wrap {
    display: block;
    margin: 0.15em 0 0;
    padding: 0.2em 0;
}

.hero__sticker {
    display: inline-block;
    padding: 0.26em 0.6em 0.3em;
    background: #000000;
    color: var(--hero-periwinkle);
    font-size: clamp(2.75rem, 9.5vw, 6.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    transform: rotate(-2.5deg);
    transform-origin: center center;
}

.hero__sub {
    margin: clamp(24px, 4vw, 40px) 0 0;
    max-width: 32em;
    font-size: clamp(1.125rem, 2.8vw, 1.75rem);
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 14px 16px;
    margin-top: clamp(28px, 5vw, 40px);
}

.hero__visual {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__img {
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: min(72vh, 620px);
    object-fit: contain;
    object-position: center;
    display: block;
    margin-inline-start: auto;
    animation: hereket 5s ease-in-out infinite;
}

@keyframes hereket {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
        /* yuxarı qalxır */
    }

    100% {
        transform: translateY(0px);
        /* geri düşür */
    }
}

.hero-btn {
    --hero-btn-h: 72px;
    --hero-icon-size: calc(var(--hero-btn-h) * 0.66);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: var(--hero-btn-h);
    padding: 12px 36px 12px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    color: var(--hero-periwinkle);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hero-btn:hover {
    text-decoration: none;
    filter: brightness(1.03);
}

.hero-btn:active {
    transform: scale(0.98);
}

.hero-btn--sell {
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-btn--products {
    background: #e5e7eb;
    color: var(--hero-periwinkle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* İkon dairəsi: düymə hündürlüyünün ~66% — şəkildəki proporsiya */
.hero-btn__icon-slot {
    flex-shrink: 0;
    width: var(--hero-icon-size);
    height: var(--hero-icon-size);
    min-width: var(--hero-icon-size);
    min-height: var(--hero-icon-size);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-btn__icon-slot img {
    width: 62%;
    height: 62%;
    max-width: 62%;
    max-height: 62%;
    object-fit: contain;
    display: block;
}

.hero-btn__label {
    padding-inline-end: 4px;
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: clamp(28px, 6vw, 40px);
    }

    .hero__headline,
    .hero__sub,
    .hero__actions {
        transform: none;
    }

    .hero__visual {
        transform: none;
    }

    .hero__img {
        max-width: min(100%, 520px);
        max-height: min(48vh, 420px);
        margin-inline: auto;
    }
}

/* Main layout — geniş, məhsullar sidebar-a yaxın */
.main {
    display: grid;
    grid-template-columns: var(--shop-sidebar-w) minmax(0, 1fr);
    gap: var(--shop-gap);
    column-gap: var(--shop-gap);
    padding-top: 36px;
    padding-bottom: 80px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 12px);
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.sidebar__title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
}

.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list li {
    margin-bottom: 4px;
}

.cat-list__btn {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cat-list__btn:hover {
    background: var(--border-soft);
    color: var(--text);
}

.cat-list__btn.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.sidebar__promo {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.sidebar__promo-title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 1rem;
}

.sidebar__promo-text {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Catalog */
.catalog__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
}

.catalog__sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.select {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.875rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 22px);
}

@media (max-width: 1320px) {
    .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .products {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #dde3eb;
}

.product-card__media {
    aspect-ratio: 1;
    background: linear-gradient(145deg, #f5f7fa 0%, #eef1f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-card__initial {
    font-size: 2.75rem;
    font-weight: 700;
    color: rgba(26, 29, 33, 0.22);
    letter-spacing: -0.04em;
    user-select: none;
}

.product-card__media--elektronika {
    background: linear-gradient(145deg, #e8f1ff 0%, #dceaff 100%);
}

.product-card__media--elektronika .product-card__initial {
    color: rgba(13, 110, 253, 0.35);
}

.product-card__media--geyim {
    background: linear-gradient(145deg, #f5eef8 0%, #ebe3f0 100%);
}

.product-card__media--geyim .product-card__initial {
    color: rgba(123, 31, 162, 0.35);
}

.product-card__media--ev {
    background: linear-gradient(145deg, #eef8f4 0%, #e0f0ea 100%);
}

.product-card__media--ev .product-card__initial {
    color: rgba(25, 135, 84, 0.35);
}

.product-card__media--idman {
    background: linear-gradient(145deg, #fff4e8 0%, #ffe8d6 100%);
}

.product-card__media--idman .product-card__initial {
    color: rgba(204, 102, 0, 0.4);
}

.product-card__media--kitab {
    background: linear-gradient(145deg, #f8f4ee 0%, #efe8dc 100%);
}

.product-card__media--kitab .product-card__initial {
    color: rgba(121, 85, 72, 0.4);
}

.product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.product-card__cat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.product-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.product-card__price {
    margin-top: auto;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.product-card__old-price {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92em;
}

.product-card__vat {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.product-card__btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.product-card__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer__tagline {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer__heading {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    color: var(--text);
    font-size: 0.9375rem;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid var(--border-soft);
    padding: 20px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__bottom p {
    margin: 0;
}

.footer--minimal {
    padding-top: 0;
    margin-top: 0;
}

/* Auth pages */
.page-auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 55%);
}

.auth__card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth__card--wide {
    max-width: 520px;
}

.auth__title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth__subtitle {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth__footer {
    margin: 24px 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    background: #fcfcfd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    background: var(--surface);
}

.form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.form__link {
    font-size: 0.875rem;
    font-weight: 500;
}

.checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox--block {
    display: flex;
    margin-bottom: 24px;
}

.checkbox input {
    margin-top: 3px;
    accent-color: var(--accent);
}

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

    .sidebar {
        position: static;
    }

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

@media (max-width: 900px) {
    :root {
        --header-h: 56px;
    }

    .header {
        height: auto;
        min-height: 0;
        background: var(--header-banner-bg);
        border-bottom-color: #e8e8e8;
    }

    .header__inner {
        top: 0;
        min-height: var(--header-h);
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 0;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
    }

    .header .logo {
        display: none;
    }

    .search--header-desktop {
        display: none !important;
    }

    .header__desktop-auth {
        display: none !important;
    }

    .cart-btn--header-desktop {
        display: none !important;
    }

    .header__toolbar {
        display: none !important;
    }

    .header__search-anchor {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .search-mobile-trigger {
        display: flex !important;
    }

    /* Mobil: istifadəçi menyusu kliklə (header.js — .is-open) */
    .header__user-menu:hover .header__user-dropdown,
    .header__user-menu:focus-within .header__user-dropdown {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        pointer-events: none;
    }

    .header__user-menu.is-open .header__user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .header__user-dropdown {
        min-width: min(240px, calc(100vw - 32px));
    }

    .main {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .hero__inner {
        padding-left: clamp(16px, 4vw, 24px);
        padding-right: clamp(16px, 4vw, 24px);
    }

    .hero-btn {
        --hero-btn-h: 56px;
        flex: 1 1 auto;
        min-width: min(100%, 280px);
    }

    .cart-page__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cart-page__footer .btn {
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }
}

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

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

    .auth__card,
    .auth__card--wide {
        padding: 28px 22px;
    }

    .auth {
        padding: 24px 16px;
    }

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

    .catalog__sort {
        width: 100%;
    }

    .catalog__sort .select {
        flex: 1;
        min-width: 0;
    }

    .cart-page__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

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

    .hero-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-inline: 16px;
    }

    .search__input {
        padding: 10px 14px;
        min-height: 44px;
    }

    .search__btn {
        padding: 10px 16px;
        min-height: 44px;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

/* Axtarış: masaüstü anker + mobil tetik */
.header__search-anchor {
    flex: 1;
    min-width: 0;
    max-width: 520px;
}

.search-mobile-trigger {
    display: none;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font: inherit;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: start;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
}

.search-mobile-trigger__ico {
    flex-shrink: 0;
    color: var(--header-icon);
}

.search-mobile-trigger__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__search-anchor.is-search-open .search--header-desktop {
    border-color: var(--search-orange);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.18);
}

.search-panel__mobile-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.search-panel__back {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    background: var(--border-soft);
    color: var(--text);
    cursor: pointer;
}

.search--panel-mobile {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 4px 0 10px;
    background: #fff;
}

.search-panel__input-icon {
    display: flex;
    color: var(--text-muted);
}

.search__input--panel {
    border: none;
    padding: 10px 8px;
    min-height: 44px;
}

.search-panel__body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.search-panel__auth-links {
    margin: 0 0 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.search-panel__auth-links a {
    color: var(--accent);
    font-weight: 600;
}

.search-panel__section {
    margin-bottom: 22px;
}

.search-panel__section:last-child {
    margin-bottom: 0;
}

.search-panel__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.search-panel__section h3,
.search-panel__section-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.search-panel__text-btn {
    border: none;
    background: none;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 0;
}

.search-panel__text-btn:hover {
    color: var(--text);
}

.search-panel__history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-panel__history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.search-panel__history-remove {
    flex-shrink: 0;
    width: 36px;
    height: 44px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
}

.search-panel__history-term {
    flex: 1;
    text-align: start;
    padding: 12px 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    cursor: pointer;
}

.search-panel__history-empty {
    margin: 0;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-panel__title-ico {
    margin-inline-end: 4px;
}

.search-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-panel__chip {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.search-panel__chip:hover {
    border-color: var(--search-orange);
    color: var(--search-orange);
}

.search-panel__see-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--search-orange);
    text-decoration: none;
}

.search-panel__see-all:hover {
    text-decoration: underline;
}

.search-panel__product-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.search-panel__product-card {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
    color: inherit;
}

.search-panel__product-card:hover {
    text-decoration: none;
    border-color: #d0d7de;
}

.search-panel__product-media {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border-soft);
}

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

.search-panel__product-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: var(--text-muted);
}

.search-panel__product-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.5625rem;
    font-weight: 700;
    text-align: center;
    padding: 2px 4px;
    background: var(--search-orange);
    color: #fff;
    line-height: 1.2;
}

.search-panel__product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-panel__product-body strong {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-panel__product-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--bottom-nav-green);
}

.search-panel__product-old {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-panel__loading,
.search-panel__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .search-panel:not([hidden]) {
        position: fixed;
        inset: 0;
        z-index: 700;
        display: flex !important;
        flex-direction: column;
        background: #fff;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .search-panel__mobile-bar {
        display: flex;
    }
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 400;
    transform: translateZ(0);
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -4px 24px rgba(26, 29, 33, 0.08);
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
}

.bottom-nav__item,
.bottom-nav__fab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
    padding: 4px 2px 0;
    text-decoration: none;
    color: var(--bottom-nav-muted);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item span:last-child,
.bottom-nav__fab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.bottom-nav__item:hover,
.bottom-nav__fab:hover {
    text-decoration: none;
    color: var(--bottom-nav-green);
}

.bottom-nav__item.is-active,
.bottom-nav__fab.is-active {
    color: var(--bottom-nav-green);
}

.bottom-nav__icon {
    flex-shrink: 0;
}

.bottom-nav__icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav__badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.bottom-nav__fab {
    position: relative;
    flex: 0 0 auto;
    padding-top: 0;
    margin-top: -22px;
}

.bottom-nav__fab-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bottom-nav-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.bottom-nav__fab:hover .bottom-nav__fab-inner {
    filter: brightness(1.05);
}

.bottom-nav__fab.is-active .bottom-nav__fab-inner {
    box-shadow: 0 6px 22px rgba(22, 163, 74, 0.55);
}

.bottom-nav__fab-label {
    margin-top: 4px;
    color: var(--bottom-nav-muted);
    font-size: 0.625rem;
    font-weight: 600;
}

.bottom-nav__fab.is-active .bottom-nav__fab-label {
    color: var(--bottom-nav-green);
}

@media (max-width: 900px) {
    .bottom-nav {
        display: flex;
    }

    body:has(.bottom-nav) {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
}

#kateqoriyalar,
#bizde-sat,
#elaqe,
#catalog {
    scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (max-width: 900px) {

    #kateqoriyalar,
    #bizde-sat,
    #elaqe,
    #catalog {
        scroll-margin-top: calc(var(--header-h) + 12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__img {
        animation: none;
    }
}