*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html:focus-within {
    scroll-behavior: smooth;
}
/* ══════════════════════════════════════
KAZOKU DESIGN TOKENS (refined)
══════════════════════════════════════ */

:root {
    --ink-900: #1a233e;
    --ink-700: rgba(26, 35, 62, .78);
    --muted: rgba(26, 35, 62, .80);
    --surface: #ffffff;
    --surface-2: #f4f5f8;
    --line: rgba(11, 18, 36, .10);
    --line-strong: rgba(11, 18, 36, .22);
    --action: #1e6b3a;
    --action-hover: #175730;
    --checkout: #1a233e;
    --checkout-hover: #0f1628;
    --checkout-ink: #ffffff;
    --accent: #bc7c56;
    --accent-soft: rgba(188, 124, 86, .10);
    --accent-line: rgba(188, 124, 86, .22);
    /*        --shadow-1:     0 2px 8px rgba(11,18,36,.06);*/
    --shadow-1: none;
    --shadow-2: 0 10px 28px rgba(11, 18, 36, .12);
    --focus-ring: 0 0 0 3px rgba(26, 35, 62, .16);
    --radius-sm: 8px;
    --radius-full: 999px;
    --kz-container: 1200px;
    --gap: 28px;
    --action-link: rgba(255, 255, 255, .82);
    --action-link-hover: #ffffff;
    --toast-bg: rgba(26, 35, 62, .92);
    --toast-ink: #fff;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --card-cols: 5;
    --card-gap: 14px;
    --card-w: calc((100% - (var(--card-cols) - 1) * var(--card-gap)) / var(--card-cols));
}
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--ink-900);
    background: var(--surface-2);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.kz-container {
    margin: 0 auto;
    max-width: var(--kz-container);
}
/* ══ HEADER ══ */

.kz-cart-page header {
    background: var(--checkout);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-1);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img {
    height: 30px;
    width: auto;
    display: block;
}
.logo-fallback {
    display: none;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
}
.logo-fallback em {
    font-style: normal;
    color: var(--accent);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 800;
}
.header-nav a {
    color: var(--action-link);
    text-decoration: none;
    transition: color .18s var(--ease), transform .18s var(--ease);
}
.header-nav a:hover {
    color: var(--action-link-hover);
    transform: translateY(-1px);
}
/* ══ PAGE LAYOUT ══ */

.page {
    max-width: var(--kz-container);
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--gap);
    align-items: start;
}
.main-content {
    min-width: 0;
}
.basket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
}
h1 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--ink-900);
    line-height: 1.1;
}
.not-reserved {
    font-size: 15px;
    color: var(--muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.not-reserved::before {
    content: 'ⓘ';
    color: var(--accent);
    font-size: 15px;
}
/* ══ CART ITEMS ══ */

.cart-items {
    list-style: none;
}
.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 18px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    /*    box-shadow: var(--shadow-1);*/
    align-items: start;
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), opacity .18s var(--ease);
}
.cart-item:hover {
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.cart-item.is-removing {
    opacity: 0;
    transform: translateY(8px);
}
.item-img-wrap {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface-2);
}
.item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .22s var(--ease);
}
.item-img-wrap:hover img {
    transform: scale(1.04);
}
.wish-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--accent);
    box-shadow: var(--shadow-1);
    opacity: 0;
    transition: opacity .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.item-img-wrap:hover .wish-btn {
    opacity: 1;
}
.wish-btn:hover {
    box-shadow: var(--focus-ring);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 2px;
}
.item-category {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1px;
}
.item-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.3;
}
.item-meta {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}
.item-delivery {
    font-size: 14px;
    color: var(--muted);
    display: none;
}
.qty-wrap {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-700);
}
.qty-select {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface-2);
    padding: 7px 28px 7px 10px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: var(--ink-900);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231a233e'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    min-width: 76px;
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
    outline: none;
    text-align: center;
}
.qty-select:focus-visible {
    border-color: var(--line-strong);
    box-shadow: var(--focus-ring);
    background: var(--surface);
}
.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 2px;
}
.delete-btn {
    width: 30px;
    height: 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--muted);
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.delete-btn:hover {
    border-color: var(--line-strong);
    box-shadow: var(--focus-ring);
    color: var(--ink-900);
    background: var(--surface-2);
    transform: translateY(-1px);
}
.delete-btn:active {
    transform: translateY(0px);
}
.delete-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--line-strong);
}
.item-price {
    text-align: right;
}
.price-main {
    font-size: 17px;
    font-weight: ;
    color: var(--ink-900);
    letter-spacing: -.01em;
    display: block;
}
.price-main.is-discount {
    color: var(--accent);
    font-weight: 700;
}
.price-original {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: line-through;
    display: block;
    margin-top: 2px;
}
}
.price-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 4px;
}
/* ══ EMPTY STATE ══ */

.empty {
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 26px;
    box-shadow: var(--shadow-1);
}
.empty h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.empty p {
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 14px;
}
.empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    color: var(--checkout);
}
.empty a:hover {
    text-decoration: underline;
}
/* ══ TOTALS ══ */

.totals-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-top: 4px;
    box-shadow: var(--shadow-1);
}
.totals-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--accent);
    font-weight: 750;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.totals-main-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    gap: 12px;
}
.totals-label {
    font-size: 15px;
    font-weight: 900;
    color: var(--ink-900);
    letter-spacing: -.01em;
}
.totals-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -.02em;
}
.coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.coupon-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink-900);
    background: var(--surface-2);
    outline: none;
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.coupon-input::placeholder {
    color: rgba(26, 35, 62, .42);
    font-weight: 400;
}
.coupon-input:focus-visible {
    border-color: var(--line-strong);
    box-shadow: var(--focus-ring);
    background: var(--surface);
}
.coupon-btn {
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: var(--checkout);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: var(--surface);
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.coupon-btn:hover {
    border-color: var(--line-strong);
    box-shadow: var(--focus-ring);
    /*    background: var(--surface-2); */
    transform: translateY(-1px);
}
.coupon-btn:active {
    transform: translateY(0px);
}
.coupon-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
/* ══ BTN ══ */

.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--checkout);
    color: var(--checkout-ink);
    border: 1px solid var(--checkout);
    border-radius: var(--radius-full);
    padding: 13px 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    /*    box-shadow: 0 10px 18px rgba(11,18,36,.14);*/
    transition: box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
    user-select: none;
    gap: 0.45em;
}
.bt-badges {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}
.bt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 12px;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--bg, #ffffff);
    color: rgba(11, 18, 36, 0.82);
}
.text-success {
    color: green;
}
.bt-badge i {
    font-size: 12px;
}
.btn-order:hover {
    color: #fff;
    background: var(--checkout-hover);
    border-color: var(--checkout-hover);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}
.btn-order:active {
    transform: translateY(0px);
}
.btn-order:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.btn-order-top {
    width: auto;
    padding: 9px 22px;
    font-size: 15px;
    min-width: 150px;
}
.order-btn-bottom {
    margin-top: 18px;
}
/* ══ SIDEBAR ══ */

.sidebar {
    position: sticky;
    top: 78px;
}
.usp-list {
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    /*        box-shadow: var(--shadow-1);*/
}
.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-900);
    font-weight: 500;
    transition: background .18s var(--ease);
}
.usp-item:last-child {
    border-bottom: none;
}
.usp-item:hover {
    background: var(--surface-2);
}
.usp-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #000;
}
.payment-section {
    margin-bottom: 8px;
    margin-top: 10px;
}
.payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    justify-content: center;
}
.payment-icon {
    width: auto;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 3px;
    box-shadow: var(--shadow-1);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.payment-icon:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.kz-cart-page .payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.payment-note {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
}
/* ══ RECOMMENDATIONS ══ */

.recs-section {
    overflow: hidden;
    padding: 32px 24px;
}
.recs-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink-900);
    margin-bottom: 18px;
}
.recs-carousel-wrap {
    position: relative;
    --card-cols: 5;
    --card-gap: 14px;
    --card-w: calc((100% - (var(--card-cols) - 1) * var(--card-gap)) / var(--card-cols));
}
.recs-carousel {
    display: flex;
    gap: var(--card-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 2px 8px;
}
.recs-carousel::-webkit-scrollbar {
    display: none;
}
.rec-card {
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    scroll-snap-align: start;
    cursor: pointer;
}
.rec-img {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    position: relative;
    /*    box-shadow: var(--shadow-1);*/
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.rec-card:hover .rec-img {
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.rec-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .22s var(--ease);
}
.rec-card:hover .rec-img img {
    transform: scale(1.03);
}
.rec-wish {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 28px;
    height: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--accent);
    box-shadow: var(--shadow-1);
    opacity: 0;
    transition: opacity .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.rec-card:hover .rec-wish {
    opacity: 1;
}
.rec-wish:hover {
    box-shadow: var(--focus-ring);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}
.rec-category {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}
.rec-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.rec-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -.01em;
}
.rec-price-original {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 5px;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 34px;
    height: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ink-900);
    box-shadow: var(--shadow-2);
    z-index: 2;
    transition: box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), opacity .18s var(--ease), transform .18s var(--ease);
}
.carousel-nav:hover {
    box-shadow: var(--shadow-2), var(--focus-ring);
    border-color: var(--line-strong);
    background: var(--surface-2);
    transform: translateY(-60%) translateY(-1px);
}
.carousel-nav:active {
    transform: translateY(-60%);
}
.carousel-nav:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.carousel-nav[disabled] {
    opacity: .35;
    cursor: not-allowed;
}
.carousel-nav.prev {
    left: -15px;
}
.carousel-nav.next {
    right: -15px;
}
/* ══ TOAST ══ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(12px);
    background: var(--toast-bg);
    color: var(--toast-ink);
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 750;
    font-size: 14px;
    box-shadow: var(--shadow-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    z-index: 999;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0px);
}
@media (max-width: 900px) {
    .recs-carousel-wrap {
        --card-cols: 3;
    }
}
@media (max-width: 600px) {
    .recs-carousel-wrap {
        --card-cols: 2;
    }
}
@media (max-width: 768px) {
    .page {
        grid-template-columns: 1fr;
        padding: 20px 16px 92px;
    }
    .sidebar {
        position: static;
    }
    .btn-order-top {
        display: none;
    }
    .cart-item {
        grid-template-columns: 90px 1fr auto;
        padding: 16px;
    }
    .header-nav {
        display: none;
    }
}
.bt-checkout-subtext {
    display: block;
    font-size: 0.72rem;
    color: #f2e3d2;
    margin-top: 0.08rem;
}
.bt-cart-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.bt-cart-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 13px;
}
.bt-cart-meta-pill strong {
    color: var(--barik-700);
}
li.cart-item.stock {
    opacity: 0.8;
    overflow: hidden;
}
.btn-order.is-disabled {
    background: #c8ccd6;
    border-color: #c8ccd6;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    opacity: .85;
}
.btn-order.is-disabled:hover {
    transform: none;
}
.kz-cart-warning {
    background: #fff3f3;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}
.kz-cart-warning strong {
    font-weight: 800;
}
.rec-cart {
    position: absolute;
    bottom: 7px;
    right: 7px;
    width: 30px;
    height: 30px;
    background: var(--checkout);
    border: 1px solid var(--checkout);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-1);
    opacity: 0;
    transition: opacity .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rec-card:hover .rec-cart {
    opacity: 1;
}
.rec-cart:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}