@font-face {
    font-family: "IRANSans";
    src: url("../fonts/iransans/IRANSansWeb_Light.woff2") format("woff2"), url("../fonts/iransans/IRANSansWeb_Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/iransans/IRANSansWeb.woff2") format("woff2"), url("../fonts/iransans/IRANSansWeb.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/iransans/IRANSansWeb_Medium.woff2") format("woff2"), url("../fonts/iransans/IRANSansWeb_Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSans";
    src: url("../fonts/iransans/IRANSansWeb_Bold.woff2") format("woff2"), url("../fonts/iransans/IRANSansWeb_Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Yekan";
    src: url("../fonts/yekan.woff") format("woff"), url("../fonts/yekan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #F97316;
    --brand-600: #EA580C;
    --brand-700: #C2410C;
    --brand-50: #FFF7ED;
    --brand-100: #FFEDD5;
    --brand-200: #FED7AA;
    --ink: #1F2937;
    --ink-2: #4B5563;
    --muted: #8B93A1;
    --line: #E8EAEE;
    --bg: #F6F7F9;
    --card: #FFFFFF;
    --success: #16A34A;
    --success-soft: #ECFDF3;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --warning: #B45309;
    --warning-soft: #FFFBEB;
    --info: #2563EB;
    --info-soft: #EFF6FF;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 20px rgba(17, 24, 39, .05);
    --shadow-lg: 0 12px 40px rgba(17, 24, 39, .14);
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

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

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

body {
    font-family: "IRANSans", "Yekan", Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink);
    background: var(--bg);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

strong, b, th {
    font-weight: 700;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.6;
    font-weight: normal;
}

.ico {
    flex-shrink: 0;
    vertical-align: middle;
}

.ltr {
    direction: ltr;
    unicode-bidi: plaintext;
    display: inline-block;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.main {
    flex: 1;
    padding-bottom: 32px;
}

.topbar {
    background: #1F2937;
    color: #D1D5DB;
    font-size: 12.5px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 36px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .topbar-item:last-child {
        margin-right: auto;
    }

    .topbar-item .ico {
        color: var(--brand);
    }

.header {
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 0 var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

    .logo img {
        height: 46px;
        width: auto;
    }

.icon-btn {
    background: none;
    border: 0;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    color: var(--ink);
}

    .icon-btn:hover {
        background: var(--bg);
    }

.menu-toggle {
    display: none;
}

.search {
    position: relative;
    flex: 1;
    max-width: 640px;
    display: flex;
}

    .search input {
        width: 100%;
        height: 46px;
        border: 1.5px solid var(--line);
        background: var(--bg);
        border-radius: 12px;
        padding: 0 16px 0 52px;
        outline: none;
        transition: border-color .2s, background .2s;
    }

        .search input:focus {
            border-color: var(--brand);
            background: #fff;
        }

    .search button {
        position: absolute;
        left: 5px;
        top: 5px;
        height: 36px;
        width: 42px;
        border: 0;
        border-radius: 9px;
        background: var(--brand);
        color: #fff;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

        .search button:hover {
            background: var(--brand-600);
        }

.suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 60;
    max-height: 70vh;
    overflow-y: auto;
}

    .suggest a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 10px;
        border-radius: 9px;
    }

        .suggest a:hover, .suggest a.active {
            background: var(--brand-50);
        }

    .suggest img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        border-radius: 8px;
        background: #fff;
        border: 1px solid var(--line);
    }

    .suggest .s-title {
        flex: 1;
        font-size: 13.5px;
    }

    .suggest .s-price {
        font-size: 12.5px;
        color: var(--brand-700);
        white-space: nowrap;
    }

    .suggest .s-cat {
        color: var(--ink-2);
    }

        .suggest .s-cat .ico {
            color: var(--brand);
        }

    .suggest .s-empty {
        padding: 12px;
        color: var(--muted);
        text-align: center;
    }

    .suggest .s-all {
        justify-content: center;
        color: var(--brand-700);
        border-top: 1px solid var(--line);
        margin-top: 4px;
        border-radius: 0 0 9px 9px;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    list-style: none;
}

    .btn-ghost:hover {
        border-color: var(--brand-200);
        background: var(--brand-50);
    }

    .btn-ghost::-webkit-details-marker {
        display: none;
    }

.account {
    position: relative;
}

.account-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 70;
}

    .account-menu a, .account-menu button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 9px 12px;
        border-radius: 9px;
        border: 0;
        background: none;
        cursor: pointer;
        text-align: right;
    }

        .account-menu a:hover, .account-menu button:hover {
            background: var(--brand-50);
            color: var(--brand-700);
        }

    .account-menu form {
        margin: 0;
        border-top: 1px solid var(--line);
        margin-top: 4px;
        padding-top: 4px;
    }

.cart-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
}

    .cart-btn:hover {
        background: var(--brand-600);
    }

.badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
}

    .badge[hidden] {
        display: none;
    }

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

.nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 46px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .nav-inner::-webkit-scrollbar {
        display: none;
    }

.nav-link {
    padding: 8px 12px;
    border-radius: 9px;
    white-space: nowrap;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .nav-link:hover {
        color: var(--brand-700);
        background: var(--brand-50);
    }

.nav-offer {
    color: var(--brand-700);
}

.mega {
    position: static;
}

.mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 0;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-700);
    cursor: pointer;
    white-space: nowrap;
    margin-left: 8px;
}

.mega-panel {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 24px max(16px, calc((100vw - var(--container)) / 2 + 16px));
    max-height: 70vh;
    overflow-y: auto;
    z-index: 55;
}

.mega:hover .mega-panel, .mega:focus-within .mega-panel, .mega.open .mega-panel {
    display: block;
}

.mega-grid {
    column-width: 200px;
    column-gap: 28px;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    break-inside: avoid;
    margin-bottom: 20px;
}

.mega-singles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

    .mega-grid:empty + .mega-singles, .mega-singles:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .mega-singles a {
        padding: 6px 14px;
        border-radius: 20px;
        background: var(--bg);
        color: var(--ink-2);
        font-size: 13.5px;
    }

        .mega-singles a:hover {
            background: var(--brand-50);
            color: var(--brand-700);
        }

.mega-col a {
    color: var(--ink-2);
    font-size: 13.5px;
    padding: 2px 0;
}

    .mega-col a:hover {
        color: var(--brand-700);
    }

.mega-col .mega-title {
    color: var(--ink);
    font-size: 14.5px;
    padding-bottom: 6px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--brand-100);
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
}

    .drawer[hidden] {
        display: none;
    }

.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .45);
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 88vw);
    background: #fff;
    display: flex;
    flex-direction: column;
    animation: slideIn .22s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: none;
    }
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

    .drawer-head img {
        height: 38px;
        width: auto;
    }

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 24px;
}

.drawer-link, .drawer-group summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    list-style: none;
}

    .drawer-link:hover, .drawer-group summary:hover {
        background: var(--brand-50);
    }

    .drawer-link .ico {
        color: var(--brand);
    }

    .drawer-group summary::-webkit-details-marker {
        display: none;
    }

    .drawer-group summary::after {
        content: "";
        margin-right: auto;
        width: 7px;
        height: 7px;
        border-left: 2px solid var(--muted);
        border-bottom: 2px solid var(--muted);
        transform: rotate(-45deg);
        transition: transform .2s;
    }

.drawer-group[open] summary::after {
    transform: rotate(135deg);
}

.drawer-group a {
    display: block;
    padding: 7px 28px 7px 12px;
    color: var(--ink-2);
    font-size: 13.5px;
    border-radius: 8px;
}

    .drawer-group a:hover {
        color: var(--brand-700);
    }

.drawer-sep {
    margin: 14px 12px 6px;
    font-size: 12px;
    color: var(--muted);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 16px 0 0;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-soft);
    color: #166534;
    border-color: #BBF7D0;
}

.alert-danger {
    background: var(--danger-soft);
    color: #991B1B;
    border-color: #FECACA;
}

.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: #FDE68A;
}

.alert-info {
    background: var(--info-soft);
    color: #1E40AF;
    border-color: #BFDBFE;
}

.alert a {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .1s;
}

    .btn:hover {
        background: var(--brand-600);
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.btn-outline {
    background: #fff;
    color: var(--brand-700);
    border-color: var(--brand-200);
}

    .btn-outline:hover {
        background: var(--brand-50);
    }

.btn-light {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--line);
}

    .btn-light:hover {
        background: #EEF0F3;
    }

.btn-dark {
    background: #1F2937;
}

    .btn-dark:hover {
        background: #111827;
    }

.btn-block {
    width: 100%;
}

.btn-sm {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
}

.btn-lg {
    height: 52px;
    font-size: 15.5px;
}

.link {
    color: var(--brand-700);
}

    .link:hover {
        text-decoration: underline;
    }

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-pad {
    padding: 20px;
}

.section-title {
    font-size: 18px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title::before {
        content: "";
        width: 4px;
        height: 20px;
        border-radius: 4px;
        background: var(--brand);
    }

.page-head {
    margin: 24px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

    .page-head h1 {
        font-size: 20px;
    }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    margin: 18px 0 14px;
}

    .crumbs a:hover {
        color: var(--brand-700);
    }

    .crumbs .ico {
        opacity: .6;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .field label {
        font-size: 13px;
        color: var(--ink-2);
    }

    .field .req {
        color: var(--danger);
    }

    .input, .field input, .field select, .field textarea {
        width: 100%;
        height: 46px;
        border: 1.5px solid var(--line);
        border-radius: 11px;
        padding: 0 14px;
        background: #fff;
        outline: none;
        transition: border-color .2s, box-shadow .2s;
    }

    .field textarea {
        height: auto;
        min-height: 110px;
        padding: 10px 14px;
        resize: vertical;
    }

        .input:focus, .field input:focus, .field select:focus, .field textarea:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
        }

    .field .hint {
        font-size: 12px;
        color: var(--muted);
    }

.field-error, .field-validation-error {
    font-size: 12px;
    color: var(--danger);
}

.input-validation-error {
    border-color: var(--danger) !important;
}

.validation-summary-errors ul {
    margin: 0;
    padding-right: 18px;
}

.hp {
    position: absolute;
    right: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hero {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 16px;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    aspect-ratio: 920 / 290;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

    .slider-dots button {
        width: 9px;
        height: 9px;
        border-radius: 6px;
        border: 0;
        background: rgba(255, 255, 255, .7);
        cursor: pointer;
        padding: 0;
        transition: width .25s, background .25s;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    }

        .slider-dots button.active {
            width: 24px;
            background: var(--brand);
        }

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .9);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity .2s;
}

.slider:hover .slider-nav {
    opacity: 1;
}

.slider-prev {
    right: 12px;
}

.slider-next {
    left: 12px;
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

    .hero-side a {
        border-radius: var(--radius);
        overflow: hidden;
        background: #fff;
        box-shadow: var(--shadow);
        display: block;
        position: relative;
        min-height: 0;
    }

    .hero-side img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s;
    }

    .hero-side a:hover img {
        transform: scale(1.03);
    }

.cats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.cat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 8px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 13.5px;
    transition: transform .2s, box-shadow .2s;
}

    .cat-chip:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
        color: var(--brand-700);
    }

    .cat-chip span.cat-ico {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        background: var(--brand-50);
        color: var(--brand);
    }

.rail {
    margin-top: 32px;
}

.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .rail-head h2 {
        font-size: 18px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .rail-head h2::before {
            content: "";
            width: 4px;
            height: 20px;
            border-radius: 4px;
            background: var(--brand);
        }

.rail-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-700);
    font-size: 13px;
}

.rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 14px) / 5);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
}

    .rail-track > * {
        scroll-snap-align: start;
    }

.rail-offer {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
    border-radius: 20px;
    padding: 18px 18px 6px;
}

    .rail-offer .rail-head h2, .rail-offer .rail-more {
        color: #fff;
    }

        .rail-offer .rail-head h2::before {
            background: #fff;
        }

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

.pcard {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    min-width: 0;
}

    .pcard:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

.pcard-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: #fff;
}

    .pcard-media img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.pcard-off {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    padding: 1px 9px;
    border-radius: 20px;
}

.pcard-body {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pcard-brand {
    font-size: 11.5px;
    color: var(--muted);
    direction: ltr;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.pcard-title {
    font-size: 13.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 47px;
}

    .pcard-title:hover {
        color: var(--brand-700);
    }

.pcard-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.pcard-price {
    display: flex;
    flex-direction: column;
}

    .pcard-price del {
        font-size: 12px;
        color: var(--muted);
    }

    .pcard-price strong {
        font-size: 15px;
        color: var(--ink);
        white-space: nowrap;
    }

    .pcard-price small {
        font-size: 11px;
        color: var(--muted);
    }

.pcard-add {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 0;
    background: var(--brand-50);
    color: var(--brand-700);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

    .pcard-add:hover {
        background: var(--brand);
        color: #fff;
    }

    .pcard-add.loading {
        opacity: .5;
        pointer-events: none;
    }

.brands {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-pill {
    padding: 8px 16px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 13px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

    .brand-pill:hover {
        border-color: var(--brand);
        color: var(--brand-700);
    }

    .brand-pill small {
        color: var(--muted);
        direction: ltr;
    }

.wide-banner {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow);
}

    .wide-banner img {
        display: block;
        width: 100%;
    }

.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.gallery {
    padding: 16px;
}

.gallery-main {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

    .gallery-main img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

    .gallery-thumbs button {
        width: 66px;
        height: 66px;
        border-radius: 10px;
        border: 1.5px solid var(--line);
        background: #fff;
        padding: 4px;
        cursor: pointer;
        flex-shrink: 0;
    }

        .gallery-thumbs button.active {
            border-color: var(--brand);
        }

    .gallery-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.p-info {
    padding: 22px;
}

    .p-info h1 {
        font-size: 20px;
        line-height: 1.8;
    }

.p-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-2);
}

    .p-meta a {
        color: var(--brand-700);
    }

.p-code {
    direction: ltr;
    display: inline-block;
}

.p-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

    .p-summary h3 {
        font-size: 14.5px;
        margin-bottom: 8px;
    }

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

    .spec-list li {
        display: flex;
        gap: 8px;
        font-size: 13.5px;
    }

        .spec-list li span:first-child {
            color: var(--muted);
            min-width: 110px;
        }

.buy-box {
    padding: 20px;
    position: sticky;
    top: 140px;
}

.buy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--ink-2);
}

    .buy-row .ico {
        color: var(--brand);
    }

.buy-price {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

    .buy-price del {
        color: var(--muted);
        font-size: 13px;
    }

    .buy-price strong {
        font-size: 24px;
    }

    .buy-price small {
        font-size: 13px;
        color: var(--muted);
    }

.off-badge {
    background: var(--brand);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    padding: 0 10px;
}

.buy-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fav-btn.active {
    color: var(--danger);
    border-color: #FECACA;
    background: var(--danger-soft);
}

    .fav-btn.active .ico {
        fill: currentColor;
    }

.soldout {
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: var(--danger-soft);
    color: var(--danger);
}

.tabs {
    margin-top: 24px;
}

.tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 0 12px;
    overflow-x: auto;
}

    .tab-bar button {
        background: none;
        border: 0;
        padding: 14px 16px;
        cursor: pointer;
        color: var(--ink-2);
        border-bottom: 2.5px solid transparent;
        margin-bottom: -1px;
        white-space: nowrap;
    }

        .tab-bar button.active {
            color: var(--brand-700);
            border-bottom-color: var(--brand);
        }

.tab-panel {
    padding: 22px;
    display: none;
}

    .tab-panel.active {
        display: block;
    }

.rich {
    line-height: 2.1;
    text-align: justify;
    overflow-wrap: anywhere;
}

    .rich img {
        border-radius: 10px;
    }

    .rich table {
        width: 100%;
        border-collapse: collapse;
    }

    .rich td, .rich th {
        border: 1px solid var(--line);
        padding: 6px 10px;
    }

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

    .video-wrap iframe, .video-wrap video {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        border: 0;
    }

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .spec-table th, .spec-table td {
        padding: 12px 14px;
        text-align: right;
        border-bottom: 1px solid var(--line);
        font-weight: normal;
        vertical-align: top;
    }

    .spec-table th {
        width: 32%;
        color: var(--ink-2);
        background: var(--bg);
    }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

    .tags a {
        font-size: 12.5px;
        padding: 4px 12px;
        border-radius: 20px;
        background: var(--bg);
        color: var(--ink-2);
    }

        .tags a:hover {
            background: var(--brand-50);
            color: var(--brand-700);
        }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(17, 24, 39, .88);
    display: grid;
    place-items: center;
    padding: 20px;
}

    .lightbox[hidden] {
        display: none;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 90vh;
        background: #fff;
        border-radius: 12px;
    }

    .lightbox button {
        position: absolute;
        top: 16px;
        left: 16px;
        color: #fff;
        background: rgba(255, 255, 255, .12);
        border: 0;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

.search-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.filters {
    padding: 6px 0;
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.filter-group {
    border-bottom: 1px solid var(--line);
}

    .filter-group:last-child {
        border-bottom: 0;
    }

    .filter-group summary {
        padding: 14px 18px;
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

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

        .filter-group summary::after {
            content: "";
            width: 7px;
            height: 7px;
            border-left: 2px solid var(--muted);
            border-bottom: 2px solid var(--muted);
            transform: rotate(-45deg);
            transition: transform .2s;
        }

    .filter-group[open] summary::after {
        transform: rotate(135deg);
    }

.filter-body {
    padding: 0 18px 14px;
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .filter-body input[type="search"] {
        height: 38px;
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 0 10px;
        margin-bottom: 6px;
        outline: none;
    }

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13.5px;
}

    .check input {
        width: 17px;
        height: 17px;
        accent-color: var(--brand);
        flex-shrink: 0;
    }

    .check small {
        margin-right: auto;
        color: var(--muted);
        direction: ltr;
    }

.filter-actions {
    padding: 14px 18px;
    display: flex;
    gap: 8px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin-bottom: 14px;
}

    .toolbar .lbl {
        color: var(--muted);
        font-size: 13px;
        display: inline-flex;
        gap: 6px;
        align-items: center;
    }

.sort-link {
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--ink-2);
}

    .sort-link:hover {
        color: var(--brand-700);
    }

    .sort-link.active {
        background: var(--brand-50);
        color: var(--brand-700);
    }

.toolbar .count {
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border-radius: 20px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 12.5px;
    border: 1px solid var(--brand-100);
}

    .chip .ico {
        opacity: .7;
    }

.filter-open {
    display: none;
}

.empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--ink-2);
}

    .empty .ico {
        color: var(--brand-200);
        margin-bottom: 12px;
    }

    .empty h3 {
        font-size: 17px;
        margin-bottom: 6px;
        color: var(--ink);
    }

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
}

    .pager a, .pager span {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        border-radius: 10px;
        background: #fff;
        border: 1px solid var(--line);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 13.5px;
    }

        .pager a:hover {
            border-color: var(--brand);
            color: var(--brand-700);
        }

        .pager a.active {
            background: var(--brand);
            border-color: var(--brand);
            color: #fff;
        }

    .pager .pager-gap {
        border: 0;
        background: none;
    }

.steps {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 24px 0;
    gap: 0;
}

    .steps li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        position: relative;
        color: var(--muted);
        font-size: 13px;
    }

        .steps li::before {
            content: "";
            position: absolute;
            top: 20px;
            right: 50%;
            width: 100%;
            height: 2px;
            background: var(--line);
            z-index: 0;
        }

        .steps li:first-child::before {
            display: none;
        }

        .steps li.done::before, .steps li.current::before {
            background: var(--brand);
        }

.step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}

.steps li.done .step-dot {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.steps li.current .step-dot {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: 0 0 0 5px var(--brand-50);
}

.steps li.current, .steps li.done {
    color: var(--ink);
}

.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.summary {
    padding: 20px;
    position: sticky;
    top: 140px;
}

    .summary h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

.sum-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--ink-2);
}

    .sum-row.total {
        border-top: 1px dashed var(--line);
        margin-top: 6px;
        padding-top: 14px;
        color: var(--ink);
        font-size: 15px;
    }

        .sum-row.total strong {
            color: var(--brand-700);
            font-size: 18px;
        }

.summary .btn {
    margin-top: 14px;
}

.summary .note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.cart-list {
    display: flex;
    flex-direction: column;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

    .cart-item:last-child {
        border-bottom: 0;
    }

    .cart-item img {
        width: 96px;
        height: 96px;
        object-fit: contain;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff;
    }

    .cart-item h3 {
        font-size: 14px;
        line-height: 1.8;
    }

        .cart-item h3 a:hover {
            color: var(--brand-700);
        }

    .cart-item .meta {
        font-size: 12.5px;
        color: var(--muted);
        display: flex;
        gap: 6px;
        align-items: center;
        margin-top: 4px;
    }

    .cart-item .unit {
        font-size: 12.5px;
        color: var(--muted);
    }

.cart-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

    .cart-side strong {
        font-size: 15.5px;
        white-space: nowrap;
    }

.qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    height: 40px;
}

    .qty button {
        width: 38px;
        height: 100%;
        border: 0;
        background: #fff;
        cursor: pointer;
        display: grid;
        place-items: center;
        color: var(--brand-700);
    }

        .qty button:hover {
            background: var(--brand-50);
        }

    .qty input {
        width: 42px;
        height: 100%;
        border: 0;
        text-align: center;
        outline: none;
        -moz-appearance: textfield;
    }

        .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    .qty form {
        display: contents;
    }

.remove-btn {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-size: 12.5px;
    padding: 4px;
}

    .remove-btn:hover {
        color: var(--danger);
    }

.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .2s;
}

    .option:hover {
        border-color: var(--brand-200);
    }

    .option:has(input:checked) {
        border-color: var(--brand);
        background: var(--brand-50);
    }

    .option input {
        margin-top: 6px;
        width: 18px;
        height: 18px;
        accent-color: var(--brand);
        flex-shrink: 0;
    }

    .option .opt-ico {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        background: var(--brand-50);
        color: var(--brand);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .option:has(input:checked) .opt-ico {
        background: var(--brand);
        color: #fff;
    }

    .option strong {
        display: block;
        font-size: 15px;
    }

    .option span.desc {
        display: block;
        font-size: 13px;
        color: var(--ink-2);
    }

    .option .opt-price {
        margin-right: auto;
        white-space: nowrap;
        color: var(--brand-700);
    }

.bank-card {
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

    .bank-card::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(249, 115, 22, .35);
        top: -90px;
        left: -60px;
    }

    .bank-card .bank-name {
        font-size: 15px;
        display: flex;
        gap: 8px;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .bank-card .bank-number {
        direction: ltr;
        font-size: 22px;
        letter-spacing: 2px;
        margin: 18px 0 6px;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .bank-card .bank-desc {
        font-size: 13px;
        opacity: .85;
        position: relative;
        z-index: 1;
    }

.copy-btn {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.result {
    text-align: center;
    padding: 40px 24px;
}

.result-ico {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}

    .result-ico.ok {
        background: var(--success-soft);
        color: var(--success);
    }

    .result-ico.fail {
        background: var(--danger-soft);
        color: var(--danger);
    }

.result h1 {
    font-size: 21px;
    margin-bottom: 8px;
}

.result-table {
    max-width: 440px;
    margin: 20px auto;
    text-align: right;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.auth-wrap {
    min-height: calc(100vh - 380px);
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.auth {
    width: 100%;
    max-width: 430px;
    padding: 32px 28px;
}

.auth-logo {
    display: block;
    margin: 0 auto 18px;
    height: 50px;
    width: auto;
}

.auth h1 {
    font-size: 19px;
    text-align: center;
}

.auth p.lead {
    text-align: center;
    color: var(--ink-2);
    margin: 6px 0 22px;
    font-size: 13.5px;
}

.auth .mobile-input {
    direction: ltr;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1.5px;
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

    .otp-boxes input {
        width: 54px;
        height: 60px;
        text-align: center;
        font-size: 24px;
        border: 1.5px solid var(--line);
        border-radius: 12px;
        outline: none;
    }

        .otp-boxes input:focus {
            border-color: var(--brand);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
        }

.auth-foot {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

    .auth-foot button {
        background: none;
        border: 0;
        color: var(--brand-700);
        cursor: pointer;
        padding: 0;
    }

        .auth-foot button:disabled {
            color: var(--muted);
            cursor: default;
        }

.auth .terms {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    margin-top: 18px;
}

.account-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 24px;
}

.account-nav {
    padding: 10px;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

    .account-user .avatar {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--brand-50);
        color: var(--brand);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .account-user strong {
        display: block;
        font-size: 14px;
    }

    .account-user span {
        font-size: 12.5px;
        color: var(--muted);
        direction: ltr;
        display: inline-block;
    }

.account-nav a, .account-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    width: 100%;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: right;
}

    .account-nav a:hover, .account-nav button:hover {
        background: var(--bg);
    }

    .account-nav a.active {
        background: var(--brand-50);
        color: var(--brand-700);
    }

.account-nav form {
    margin: 0;
}

.orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order {
    overflow: hidden;
}

    .order summary {
        list-style: none;
        cursor: pointer;
        padding: 16px 20px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        gap: 12px;
        align-items: center;
    }

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

        .order summary .k {
            font-size: 12px;
            color: var(--muted);
            display: block;
        }

        .order summary .v {
            font-size: 13.5px;
        }

        .order summary .chev {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            background: var(--bg);
            display: grid;
            place-items: center;
            transition: transform .2s;
        }

    .order[open] summary .chev {
        transform: rotate(180deg);
    }

.order-body {
    border-top: 1px solid var(--line);
    padding: 14px 20px 18px;
}

.order-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
}

    .order-line:last-child {
        border-bottom: 0;
    }

    .order-line img {
        width: 56px;
        height: 56px;
        object-fit: contain;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #fff;
    }

    .order-line .t {
        font-size: 13.5px;
    }

    .order-line .m {
        font-size: 12px;
        color: var(--muted);
    }

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.status-ok {
    background: var(--success-soft);
    color: var(--success);
}

.status-wait {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-bad {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-info {
    background: var(--info-soft);
    color: var(--info);
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.fav-item {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .fav-item img {
        aspect-ratio: 1 / 1;
        object-fit: contain;
        width: 100%;
    }

    .fav-item a.t {
        font-size: 13.5px;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.info-page {
    margin-top: 24px;
}

    .info-page h1 {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .info-page h2 {
        font-size: 16.5px;
        margin: 22px 0 8px;
        color: var(--brand-700);
    }

    .info-page p, .info-page li {
        text-align: justify;
        color: var(--ink-2);
        line-height: 2.1;
    }

.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.faq summary {
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

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

    .faq summary::after {
        content: "+";
        color: var(--brand);
        font-size: 20px;
        line-height: 1;
    }

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    padding: 0 18px 14px;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.contact-box {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .contact-box .ci {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: var(--brand-50);
        color: var(--brand);
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .contact-box h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .contact-box p, .contact-box a {
        margin: 0;
        color: var(--ink-2);
        font-size: 13.5px;
        display: block;
    }

.notfound {
    text-align: center;
    padding: 50px 16px;
}

    .notfound img {
        max-width: 360px;
        width: 100%;
    }

.features {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 26px;
    padding-bottom: 26px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .feature .ico {
        color: var(--brand);
    }

    .feature strong {
        display: block;
        font-size: 14.5px;
    }

    .feature span {
        font-size: 12.5px;
        color: var(--muted);
    }

.footer {
    background: #111827;
    color: #9CA3AF;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

    .footer-col h4 {
        color: #fff;
        font-size: 15px;
        margin-bottom: 6px;
    }

    .footer-col a:hover {
        color: var(--brand);
    }

.footer-logo {
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    height: auto;
    width: 170px;
}

.footer-about p {
    line-height: 2;
    margin: 8px 0 0;
}

.footer-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .footer-line .ico {
        color: var(--brand);
    }

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding: 14px 0;
    font-size: 12.5px;
    text-align: center;
}

.bottom-nav {
    display: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 32px);
    font-size: 13.5px;
}

    .toast[hidden] {
        display: none;
    }

    .toast a {
        color: var(--brand);
        white-space: nowrap;
    }

    .toast.error {
        background: var(--danger);
    }

        .toast.error a {
            color: #fff;
            text-decoration: underline;
        }

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

    .buy-box {
        grid-column: 1 / -1;
        position: static;
    }

    .rail-track {
        grid-auto-columns: calc((100% - 3 * 14px) / 4);
    }

    .cats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px 12px;
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .logo img {
        height: 38px;
    }

    .search {
        order: 10;
        flex: 1 0 100%;
        max-width: none;
    }

        .search input {
            height: 44px;
        }

    .hide-sm {
        display: none !important;
    }

    .btn-ghost {
        padding: 0 11px;
    }

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

    .hero-side {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

        .hero-side a {
            aspect-ratio: 2 / 1;
        }

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

    .filters {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(340px, 90vw);
        max-height: none;
        z-index: 110;
        border-radius: 0;
        transform: translateX(100%);
        transition: transform .25s;
        top: 0;
    }

        .filters.open {
            transform: none;
            box-shadow: var(--shadow-lg);
        }

    .filter-open {
        display: inline-flex;
    }

    .filters-head {
        display: flex !important;
    }

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

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

    .summary {
        position: static;
    }

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

    .account-nav {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding: 6px;
    }

        .account-nav .account-user {
            display: none;
        }

        .account-nav a, .account-nav button {
            white-space: nowrap;
            width: auto;
        }

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

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

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

    .topbar-item:nth-child(2) {
        display: none;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .bottom-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -4px 20px rgba(17, 24, 39, .06);
        z-index: 90;
        padding-bottom: env(safe-area-inset-bottom);
    }

        .bottom-nav a, .bottom-nav button {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2px;
            height: 62px;
            font-size: 11.5px;
            color: var(--muted);
            background: none;
            border: 0;
            cursor: pointer;
        }

        .bottom-nav .active {
            color: var(--brand);
        }

        .bottom-nav .bn-icon {
            position: relative;
            display: inline-flex;
        }

    .toast {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .filter-overlay.open {
        display: block;
    }
}

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

    .rail-track {
        grid-auto-columns: 46%;
    }

    .cats {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

        .cats::-webkit-scrollbar {
            display: none;
        }

    .cat-chip {
        flex: 0 0 96px;
        padding: 12px 4px;
        font-size: 12px;
    }

        .cat-chip span.cat-ico {
            width: 44px;
            height: 44px;
        }

    .grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

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

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 14px;
    }

        .cart-item img {
            width: 76px;
            height: 76px;
        }

    .cart-side {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

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

        .order summary .chev {
            grid-column: 1 / -1;
            justify-self: center;
            width: 100%;
            height: 26px;
        }

    .steps li .step-label {
        font-size: 11px;
    }

    .step-dot {
        width: 36px;
        height: 36px;
    }

    .steps li::before {
        top: 17px;
    }

    .page-head h1 {
        font-size: 18px;
    }

    .p-info, .gallery, .buy-box, .card-pad, .summary {
        padding: 16px;
    }

    .tab-panel {
        padding: 16px;
    }

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

    .slider-nav {
        display: none;
    }

    .auth {
        padding: 26px 18px;
    }

    .otp-boxes input {
        width: 48px;
        height: 54px;
    }

    .topbar-inner {
        gap: 12px;
        justify-content: space-between;
    }

    .topbar-item:last-child {
        margin-right: 0;
    }

    .pcard-body {
        padding: 0 10px 10px;
    }

    .pcard-media {
        padding: 10px;
    }

    .pcard-price strong {
        font-size: 14px;
    }

    .pcard-add {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 400px) {
    .otp-boxes {
        gap: 6px;
    }

        .otp-boxes input {
            width: 44px;
        }
}

.filters-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .45);
    z-index: 105;
}

.rail-offer .rail {
    margin-top: 0;
}
