:root {
    --commerce-ink: #172033;
    --commerce-muted: #667085;
    --commerce-line: #d9e2ef;
    --commerce-paper: #ffffff;
    --commerce-canvas: #eef3fa;
    --commerce-brand: #315b9d;
    --commerce-brand-deep: #1d355d;
    --commerce-accent: #78a8ef;
    --commerce-danger: #b42318;
    --commerce-danger-bg: #fff0ee;
    --commerce-success: var(--commerce-brand);
    --commerce-success-bg: #edf4ff;
    --commerce-warning: #8a5711;
    --commerce-warning-bg: #fff7e8;
    --commerce-shadow: 0 28px 80px rgba(29, 53, 93, .16);
    --commerce-radius: 18px;
    --commerce-shell: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body.commerce-body {
    min-width: 320px;
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.commerce-body {
    color: var(--commerce-ink);
    background: var(--commerce-canvas);
}

.commerce-body img {
    display: block;
    max-width: 100%;
}

.commerce-body a {
    color: inherit;
    text-decoration: none;
}

.commerce-body button,
.commerce-body input,
.commerce-body textarea,
.commerce-body select {
    font: inherit;
}

.commerce-body button,
.commerce-body a {
    -webkit-tap-highlight-color: transparent;
}

.commerce-body :where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid rgba(49, 91, 157, .42);
    outline-offset: 3px;
}

.commerce-body [hidden] {
    display: none !important;
}

.commerce-shell {
    width: min(calc(100% - 40px), var(--commerce-shell));
    margin-inline: auto;
}

.commerce-skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: #fff !important;
    background: var(--commerce-brand);
    border-radius: 8px;
    transform: translateY(-160%);
}

.commerce-skip-link:focus {
    transform: translateY(0);
}

.commerce-header {
    position: relative;
    z-index: 20;
    color: var(--commerce-ink);
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(49, 91, 157, .1);
    backdrop-filter: blur(18px);
}

.commerce-header__inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.commerce-brand {
    display: inline-flex;
    min-width: 140px;
    align-items: center;
}

.commerce-brand img {
    width: auto;
    max-width: 176px;
    height: 46px;
    object-fit: contain;
}

.commerce-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #475467;
    font-size: 14px;
    font-weight: 650;
}

.commerce-header__nav > a:not(.commerce-header__login):hover,
.commerce-header__nav > a:not(.commerce-header__login):focus-visible {
    color: var(--commerce-brand);
}

.commerce-header__login,
.commerce-logout button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #fff !important;
    background: var(--commerce-brand);
    border: 1px solid var(--commerce-brand);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 750;
}

.commerce-logout {
    margin: 0;
}

.commerce-account {
    max-width: 190px;
    overflow: hidden;
    color: var(--commerce-brand);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.commerce-main {
    min-height: calc(100vh - 156px);
}

.commerce-footer {
    color: #dce7f6;
    background: var(--commerce-brand-deep);
}

.commerce-footer__inner {
    display: flex;
    min-height: 110px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
}

.commerce-footer__inner p {
    margin: 0;
}

.commerce-footer__links {
    display: flex;
    gap: 22px;
}

.commerce-footer a:hover,
.commerce-footer a:focus-visible {
    color: var(--commerce-accent);
}

.commerce-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #5e7190;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.commerce-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.commerce-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.commerce-button:active:not(:disabled) {
    transform: translateY(0);
}

.commerce-button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.commerce-button--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #294d84 0%, #3e6db0 52%, #5f8fd0 100%);
    border-color: #315b9d;
    box-shadow: 0 14px 30px rgba(49, 91, 157, .25);
}

.commerce-button--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #234576 0%, #365f9d 52%, #557fba 100%);
    box-shadow: 0 17px 36px rgba(49, 91, 157, .34);
}

.commerce-button--secondary {
    color: var(--commerce-brand);
    background: #fff;
    border-color: #bdcbe0;
}

.commerce-button--secondary:hover:not(:disabled) {
    border-color: var(--commerce-brand);
}

.commerce-button--wide {
    width: 100%;
}

.commerce-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5e6b7d;
    font-size: 14px;
    font-weight: 700;
}

.commerce-back-link:hover,
.commerce-back-link:focus-visible {
    color: var(--commerce-brand);
}

.commerce-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
}

.commerce-alert--error {
    color: var(--commerce-danger);
    background: var(--commerce-danger-bg);
    border-color: #f4c4be;
}

.commerce-alert--success {
    color: var(--commerce-success);
    background: var(--commerce-success-bg);
    border-color: #c8d9f2;
}

.commerce-alert--warning {
    color: var(--commerce-warning);
    background: var(--commerce-warning-bg);
    border-color: #ecd29f;
}

.commerce-inline-note {
    padding: 16px;
    color: var(--commerce-warning);
    background: var(--commerce-warning-bg);
    border: 1px solid #ecd29f;
    border-radius: 12px;
    font-size: 14px;
}

.commerce-form {
    width: 100%;
}

.commerce-form-grid {
    display: grid;
    gap: 18px;
}

.commerce-form-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commerce-field {
    min-width: 0;
}

.commerce-field--full {
    grid-column: 1 / -1;
}

.commerce-field label,
.coupon-box > label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 780;
}

.commerce-field label span {
    color: #7d8899;
    font-weight: 500;
}

.commerce-field input,
.commerce-field select,
.commerce-field textarea,
.coupon-box input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--commerce-ink);
    background: #fff;
    border: 1px solid #cdd6e3;
    border-radius: 10px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.commerce-field textarea {
    min-height: 98px;
    resize: vertical;
}

.commerce-field input::placeholder,
.commerce-field textarea::placeholder,
.coupon-box input::placeholder {
    color: #98a2b3;
}

.commerce-field input:hover,
.commerce-field select:hover,
.commerce-field textarea:hover,
.coupon-box input:hover {
    border-color: #a9b6ca;
}

.commerce-field input:focus,
.commerce-field select:focus,
.commerce-field textarea:focus,
.coupon-box input:focus {
    border-color: var(--commerce-brand);
    box-shadow: 0 0 0 4px rgba(49, 91, 157, .12);
}

.commerce-field input[aria-invalid="true"],
.commerce-field select[aria-invalid="true"],
.commerce-field textarea[aria-invalid="true"] {
    border-color: var(--commerce-danger);
    background: #fffafa;
}

[data-delivery-form] .checkout-card > .commerce-form-grid,
[data-delivery-form] .checkout-card > .commerce-field,
[data-invoice-address] > .commerce-field,
[data-invoice-address] > .commerce-form-grid {
    margin-bottom: 18px;
}

[data-adres-secimi] > [role="status"] {
    grid-column: 1 / -1;
}

[data-adres-secimi] > [role="status"]:empty {
    display: none;
}

.commerce-field-error {
    display: block;
    margin-top: 5px;
    color: var(--commerce-danger);
    font-size: 12px;
    font-weight: 650;
}

.commerce-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.commerce-label-row a {
    margin-bottom: 7px;
    color: var(--commerce-brand);
    font-size: 12px;
    font-weight: 750;
}

.commerce-password {
    position: relative;
}

.commerce-password input {
    padding-right: 58px;
}

.commerce-password__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    place-items: center;
    color: #526781;
    background: #f3f6fa;
    border: 1px solid #dbe3ed;
    border-radius: 9px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.commerce-password__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.commerce-password__slash {
    opacity: 0;
    transition: opacity .18s ease;
}

.commerce-password__toggle--visible .commerce-password__slash {
    opacity: 1;
}

.commerce-password__toggle:hover {
    color: var(--commerce-brand);
    background: #e8eef7;
    border-color: #bdcbe0;
}

.commerce-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #5e6b7d;
    cursor: pointer;
    font-size: 13px;
}

.commerce-check input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--commerce-brand);
}

.commerce-check--panel {
    margin: 18px 0;
    padding: 14px;
    background: #f3f6fa;
    border: 1px solid var(--commerce-line);
    border-radius: 10px;
}

.commerce-form-note {
    margin: 12px 0 0;
    color: #718096;
    font-size: 12px;
    line-height: 1.55;
}

.commerce-form-note--center {
    text-align: center;
}

.commerce-secure-note,
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #526781;
    font-size: 12px;
    font-weight: 750;
}

.commerce-secure-note span {
    color: #5f8fd0;
    font-size: 10px;
}

.commerce-toast {
    position: fixed;
    z-index: 100;
    right: 22px;
    bottom: 22px;
    max-width: min(390px, calc(100vw - 44px));
    padding: 14px 17px;
    color: #fff;
    background: var(--commerce-brand-deep);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(29, 53, 93, .25);
    font-size: 14px;
    font-weight: 650;
}

/* Authentication */
.auth-section {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    padding: 48px 0;
    background:
        radial-gradient(circle at 10% 88%, rgba(92, 139, 207, .2), transparent 31%),
        radial-gradient(circle at 90% 8%, rgba(181, 199, 225, .34), transparent 30%),
        linear-gradient(145deg, #f5f7fb 0%, var(--commerce-canvas) 48%, #e6edf7 100%);
}

.auth-shell {
    display: grid;
    min-height: 690px;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    overflow: hidden;
    background: var(--commerce-paper);
    border: 1px solid rgba(65, 88, 122, .16);
    border-radius: 24px;
    box-shadow: var(--commerce-shadow);
}

.auth-story {
    position: relative;
    display: flex;
    min-height: 100%;
    align-items: flex-end;
    overflow: hidden;
    padding: 58px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(160, 193, 239, .3), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, .09), transparent 37%),
        linear-gradient(150deg, #182a49 0%, #2d528d 52%, #597aaa 100%);
}

.auth-story::before,
.auth-story::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(183, 208, 244, .34);
    border-radius: 50%;
}

.auth-story::before {
    top: -145px;
    right: -110px;
    width: 390px;
    height: 390px;
}

.auth-story::after {
    top: -78px;
    right: -44px;
    width: 255px;
    height: 255px;
}

.auth-story__content {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.auth-story .commerce-eyebrow {
    color: #b9d4fa;
}

.auth-story h1 {
    max-width: 430px;
    margin: 0 0 18px;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: 1.03;
}

.auth-story p {
    max-width: 420px;
    margin: 0;
    color: #dce7f6;
    font-size: 17px;
}

.auth-benefits {
    display: grid;
    gap: 13px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    color: #edf4ff;
    font-size: 14px;
    font-weight: 630;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.auth-benefits span {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    color: #234574;
    background: #dbe9fc;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px clamp(38px, 5vw, 78px);
}

.auth-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 42px;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2 {
    margin: 0 0 9px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.auth-heading p {
    margin: 0;
    color: var(--commerce-muted);
    font-size: 14px;
}

.auth-heading a,
.auth-support a {
    color: var(--commerce-brand);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #afbed4;
    text-underline-offset: 3px;
}

.auth-card .commerce-form {
    display: grid;
    gap: 18px;
}

.auth-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    padding-top: 24px;
    color: #718096;
    border-top: 1px solid var(--commerce-line);
    font-size: 12px;
}

.commerce-strength {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
    color: #7d8899;
    font-size: 11px;
}

.commerce-strength::before {
    height: 4px;
    background: linear-gradient(to right, var(--strength-color, #d5dce7) 0 var(--strength, 0%), #e4e9f1 var(--strength, 0%) 100%);
    border-radius: 10px;
    content: "";
}

.commerce-strength span {
    display: none;
}

/* Checkout */
.checkout-hero {
    padding: 24px 0 20px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(160, 193, 239, .3), transparent 31%),
        linear-gradient(150deg, #182a49 0%, #2d528d 52%, #597aaa 100%);
}

.checkout-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 760;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.checkout-progress {
    margin-top: 22px;
}

.checkout-progress ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkout-progress li {
    position: relative;
}

.checkout-progress li::before {
    position: absolute;
    z-index: 0;
    top: 17px;
    right: calc(50% + 19px);
    left: calc(-50% + 19px);
    height: 1px;
    background: rgba(255, 255, 255, .2);
    content: "";
}

.checkout-progress li:first-child::before {
    display: none;
}

.checkout-progress li.is-complete::before,
.checkout-progress li.is-active::before {
    background: var(--commerce-accent);
}

.checkout-progress a {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    font-weight: 700;
}

.checkout-progress a span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #bdcbe0;
    background: #29466f;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
}

.checkout-progress .is-active a,
.checkout-progress .is-complete a {
    color: #fff;
}

.checkout-progress .is-active a span {
    color: var(--commerce-brand-deep);
    background: var(--commerce-accent);
    border-color: var(--commerce-accent);
    box-shadow: 0 0 0 6px rgba(120, 168, 239, .13);
}

.checkout-progress .is-complete a span {
    color: var(--commerce-brand-deep);
    background: #fff;
    border-color: #fff;
}

.checkout-section {
    padding: 42px 0 72px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    align-items: start;
    gap: 28px;
}

.checkout-stack {
    display: grid;
    gap: 22px;
}

.checkout-address-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.checkout-address-summary {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--commerce-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.checkout-address-summary__address,
.selection-card__address {
    white-space: pre-line;
}

.checkout-sidebar {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 14px;
}

.checkout-card,
.order-summary {
    background: var(--commerce-paper);
    border: 1px solid var(--commerce-line);
    border-radius: var(--commerce-radius);
    box-shadow: 0 14px 42px rgba(49, 91, 157, .055);
}

.checkout-card {
    padding: 28px;
}

.checkout-card[data-guest-contact] > p {
    color: var(--commerce-muted);
    font-size: 12px;
    line-height: 1.5;
}

.checkout-card__heading,
.order-summary__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.checkout-card__heading {
    margin-bottom: 24px;
}

.checkout-card__heading h2,
.order-summary__header h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 780;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.checkout-card__heading > a {
    color: var(--commerce-brand);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #afbed4;
    text-underline-offset: 3px;
}

.required-note {
    color: #8491a5;
    font-size: 11px;
}

.cart-card {
    padding: 0;
}

.cart-card > .checkout-card__heading {
    margin: 0;
    padding: 28px 28px 23px;
    border-bottom: 1px solid var(--commerce-line);
}

.cart-list {
    padding: 0 28px;
}

.cart-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 126px 112px;
    align-items: center;
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--commerce-line);
}

.cart-item:last-child {
    border-bottom: 0;
}

.cart-item__image {
    overflow: hidden;
    background: #f2f5f9;
    border-radius: 11px;
}

.cart-item__image img {
    width: 104px;
    height: 124px;
    object-fit: cover;
}

.cart-item__copy h3 {
    margin: 5px 0 7px;
    font-size: 16px;
    font-weight: 760;
    line-height: 1.35;
}

.cart-item__copy h3 a:hover {
    color: var(--commerce-brand);
}

.cart-item__copy small {
    color: #718096;
    font-size: 12px;
}

.cart-item__stock {
    color: var(--commerce-success);
    font-size: 11px;
    font-weight: 800;
}

.cart-item__stock span {
    margin-right: 4px;
    font-size: 8px;
}

.quantity-control {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    min-height: 42px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cdd6e3;
    border-radius: 10px;
}

.quantity-control button {
    padding: 0;
    color: var(--commerce-brand);
    background: #f3f6fa;
    border: 0;
    cursor: pointer;
    font-size: 18px;
}

.quantity-control button:hover {
    background: #e8eef7;
}

.quantity-control input {
    width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
    background: #fff;
    border: 0;
    outline: 0;
    font-size: 13px;
    font-weight: 750;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.cart-item__price {
    text-align: right;
}

.cart-item__price strong {
    display: block;
    font-size: 16px;
}

.cart-item__remove {
    position: relative;
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-top: 9px;
    padding: 0;
    place-items: center;
    color: #a33f36;
    background: #fff5f4;
    border: 1px solid #efceca;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.cart-item__remove:hover,
.cart-item__remove:focus-visible {
    color: #fff;
    background: #a33f36;
    border-color: #a33f36;
    transform: translateY(-1px);
}

.cart-item__remove:focus-visible {
    outline: 3px solid rgba(163, 63, 54, .25);
    outline-offset: 2px;
}

.cart-item__remove::after {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: max-content;
    padding: 6px 9px;
    color: #fff;
    background: var(--commerce-ink);
    border-radius: 6px;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
}

.cart-item__remove:hover::after,
.cart-item__remove:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.cart-item__remove--mobile {
    display: none;
}

.cart-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px 28px;
    background: #f9fafb;
    border-top: 1px solid var(--commerce-line);
    border-radius: 0 0 var(--commerce-radius) var(--commerce-radius);
}

.coupon-box {
    width: min(100%, 390px);
}

.coupon-box > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.coupon-box input {
    border-radius: 10px 0 0 10px;
}

.coupon-box button {
    min-width: 88px;
    color: #fff;
    background: var(--commerce-brand);
    border: 0;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.order-summary {
    margin: 0;
    padding: 24px;
}

.order-summary__count {
    padding: 5px 9px;
    color: #5e6b7d;
    background: #eef3fa;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}

.order-summary__items {
    display: grid;
    gap: 15px;
    max-height: 278px;
    margin: 23px 0;
    padding: 4px 5px 4px 0;
    overflow: auto;
}

.order-summary__item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.order-summary__thumb {
    position: relative;
}

.order-summary__thumb img {
    width: 54px;
    height: 62px;
    object-fit: cover;
    background: #f2f5f9;
    border-radius: 8px;
}

.order-summary__thumb span {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: #fff;
    background: var(--commerce-brand);
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
}

.order-summary__item-copy {
    min-width: 0;
}

.order-summary__item-copy strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-summary__item-copy small {
    color: #8491a5;
    font-size: 10px;
}

.order-summary__item > b {
    font-size: 12px;
    white-space: nowrap;
}

.order-summary__totals {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-top: 19px;
    border-top: 1px solid var(--commerce-line);
}

.order-summary__totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #667085;
    font-size: 13px;
}

.order-summary__totals dt,
.order-summary__totals dd {
    margin: 0;
}

.order-summary__totals dd {
    color: var(--commerce-ink);
    font-weight: 750;
}

.order-summary__totals .order-summary__grand {
    margin-top: 3px;
    padding-top: 15px;
    color: var(--commerce-ink);
    border-top: 1px dashed #cdd6e3;
    font-size: 17px;
    font-weight: 800;
}

.order-summary__grand dd {
    font-size: 20px;
}

.order-summary__tax {
    margin: 7px 0 0;
    color: #8491a5;
    font-size: 10px;
    text-align: right;
}

.commerce-free {
    color: var(--commerce-success);
}

.checkout-trust,
.review-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5e6b7d;
}

.checkout-trust {
    padding: 14px 15px;
    background: #edf4ff;
    border: 1px solid #d9e2ef;
    border-radius: 11px;
}

.checkout-trust > span,
.review-payment > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--commerce-brand);
    background: #dbe9fc;
    border-radius: 50%;
    font-weight: 900;
}

.checkout-trust p,
.review-payment p {
    display: grid;
    margin: 0;
}

.checkout-trust strong,
.review-payment strong {
    font-size: 12px;
}

.checkout-trust small,
.review-payment small {
    color: #718096;
    font-size: 10px;
}

.checkout-address-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.selection-grid + .checkout-address-fields:not([hidden]) {
    margin-top: 24px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.selection-card {
    position: relative;
    display: flex;
    min-height: 135px;
    flex-direction: column;
    padding: 17px 38px 17px 17px;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    cursor: pointer;
}

.selection-card:has(input:checked) {
    background: #f3f6fa;
    border-color: var(--commerce-brand);
    box-shadow: inset 0 0 0 1px var(--commerce-brand);
}

.selection-card:has(input:focus-visible),
.delivery-option:has(input:focus-visible),
.payment-method:has(input:focus-visible),
.bank-card:has(input:focus-visible) {
    outline: 3px solid rgba(49, 91, 157, .35);
    outline-offset: 2px;
}

.selection-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selection-card__mark {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #bdcbe0;
    border-radius: 50%;
}

.selection-card input:checked + .selection-card__mark {
    background: var(--commerce-brand);
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px var(--commerce-brand);
}

.selection-card strong {
    margin-bottom: 8px;
    font-size: 14px;
}

.selection-card small {
    color: #718096;
    font-size: 11px;
    line-height: 1.5;
}

.selection-card--new {
    align-items: center;
    justify-content: center;
    padding: 17px;
    text-align: center;
}

.selection-card__plus {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 9px;
    place-items: center;
    color: var(--commerce-brand);
    background: #eef3fa;
    border-radius: 50%;
    font-size: 20px;
}

.delivery-options,
.payment-methods,
.bank-list {
    display: grid;
    gap: 11px;
}

.delivery-option,
.payment-method,
.bank-card {
    position: relative;
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #d9e2ef;
    border-radius: 11px;
    cursor: pointer;
}

.delivery-option {
    grid-template-columns: 20px minmax(0, 1fr) auto;
}

.delivery-option > input,
.payment-method > input,
.bank-card > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-option:has(input:checked),
.payment-method:has(input:checked),
.bank-card:has(input:checked) {
    background: #edf4ff;
    border-color: var(--commerce-brand);
    box-shadow: inset 0 0 0 1px var(--commerce-brand);
}

.delivery-option__radio,
.payment-method__radio,
.bank-card__mark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 1px solid #bdcbe0;
    border-radius: 50%;
}

.delivery-option input:checked + .delivery-option__radio,
.payment-method input:checked + .payment-method__radio,
.bank-card input:checked + .bank-card__mark {
    background: var(--commerce-brand);
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px var(--commerce-brand);
}

.delivery-option > span:nth-of-type(2),
.payment-method > span:nth-of-type(2),
.bank-card > span:nth-of-type(2) {
    display: grid;
}

.delivery-option strong,
.payment-method strong,
.bank-card strong {
    font-size: 14px;
}

.delivery-option small,
.payment-method small,
.bank-card small {
    color: #718096;
    font-size: 11px;
}

.delivery-option > b {
    color: var(--commerce-brand);
    font-size: 13px;
}

.segmented-control {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 5px;
    background: #eef3fa;
    border-radius: 11px;
}

.segmented-control label {
    cursor: pointer;
}

.segmented-control input {
    position: absolute;
    opacity: 0;
}

.segmented-control span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: #667085;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

.segmented-control input:checked + span {
    color: var(--commerce-brand);
    background: #fff;
    box-shadow: 0 4px 14px rgba(49, 91, 157, .08);
}

.checkout-back {
    justify-content: center;
    margin-top: 3px;
}

.checkout-mobile-action {
    display: none;
}

.payment-method {
    grid-template-columns: 20px minmax(0, 1fr) auto;
}

.card-marks {
    display: flex;
    gap: 5px;
}

.card-marks i {
    display: inline-flex;
    height: 25px;
    align-items: center;
    padding: 0 7px;
    color: #344054;
    background: #eef3fa;
    border-radius: 5px;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.payment-method__icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--commerce-brand);
    background: #eef3fa;
    border-radius: 8px;
    font-weight: 900;
}

.payment-panel {
    position: relative;
}

.card-preview {
    position: relative;
    display: grid;
    width: min(100%, 390px);
    min-height: 220px;
    grid-template-columns: 1fr auto;
    align-content: end;
    gap: 18px;
    margin: 0 auto 28px;
    overflow: hidden;
    padding: 27px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(120, 168, 239,.25), transparent 28%),
        linear-gradient(135deg, #294d84, #1d355d);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 20px;
    box-shadow: 0 22px 46px rgba(29, 53, 93, .22);
}

.card-preview::after {
    position: absolute;
    top: -85px;
    right: -55px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(120, 168, 239,.28);
    border-radius: 50%;
    content: "";
}

.card-preview__chip {
    position: absolute;
    top: 32px;
    left: 27px;
    width: 42px;
    height: 31px;
    background: linear-gradient(135deg, #e4cb86, #b39146);
    border-radius: 7px;
}

.card-preview__number {
    grid-column: 1 / -1;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 650;
    letter-spacing: .12em;
}

.card-preview > span:not(.card-preview__number):not(.card-preview__chip) {
    display: grid;
}

.card-preview small {
    color: #bdcbe0;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.card-preview b {
    overflow: hidden;
    font-size: 11px;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.payment-fields {
    max-width: 620px;
    margin-inline: auto;
    gap: 10px 14px;
}

.payment-card-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: center;
    gap: 24px;
}

.payment-card-layout .card-preview {
    width: 100%;
    max-width: 320px;
    min-height: 180px;
    margin: 0;
    padding: 22px;
    justify-self: center;
    order: 2;
}

.payment-card-layout .card-preview__chip {
    top: 24px;
    left: 22px;
    width: 38px;
    height: 28px;
}

.payment-card-layout .card-preview__number {
    font-size: clamp(15px, 2vw, 18px);
    letter-spacing: .08em;
    white-space: nowrap;
}

.payment-card-layout .payment-fields {
    width: 100%;
    max-width: none;
    margin: 0;
    order: 1;
}

.payment-fields.commerce-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-card[data-payment-panel="kart"] .checkout-card__heading {
    margin-bottom: 16px;
}

.commerce-floating-field {
    position: relative;
}

.commerce-floating-field input {
    min-height: 48px;
    padding: 18px 14px 4px;
}

.commerce-floating-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    margin: 0;
    color: #6f7c8f;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top .16s ease, color .16s ease, font-size .16s ease, transform .16s ease;
}

.commerce-floating-field input::placeholder {
    color: transparent;
}

.commerce-floating-field input:focus::placeholder {
    color: #98a2b3;
}

.commerce-floating-field input:focus + label,
.commerce-floating-field input:not(:placeholder-shown) + label,
.commerce-floating-field input:-webkit-autofill + label {
    top: 7px;
    color: var(--commerce-brand);
    font-size: 10px;
    transform: none;
}

.bank-card {
    grid-template-columns: 20px minmax(110px, .7fr) minmax(180px, 1.3fr);
}

.bank-card code {
    justify-self: end;
    color: #344054;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.review-address {
    color: #5e6b7d;
    font-size: 14px;
}

.review-address strong {
    display: block;
    margin-bottom: 5px;
    color: var(--commerce-ink);
    font-size: 15px;
}

.review-address p {
    margin: 0;
}

.review-products {
    display: grid;
}

.review-products > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--commerce-line);
}

.review-products > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.review-products span {
    display: grid;
}

.review-products strong {
    font-size: 13px;
}

.review-products small {
    color: #8491a5;
    font-size: 11px;
}

.review-products b {
    font-size: 13px;
    white-space: nowrap;
}

.order-terms {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--commerce-line);
    border-radius: 11px;
}

.empty-cart {
    max-width: 700px;
    margin: 18px auto 0;
    padding: 70px 35px;
    background: #fff;
    border: 1px solid var(--commerce-line);
    border-radius: 22px;
    box-shadow: var(--commerce-shadow);
    text-align: center;
}

.empty-cart__icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    background: #eef3fa;
    border-radius: 50%;
}

.empty-cart__icon::before {
    position: absolute;
    top: 25px;
    left: 24px;
    width: 41px;
    height: 31px;
    border: 4px solid var(--commerce-brand);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    content: "";
    transform: skew(-5deg);
}

.empty-cart__icon::after {
    position: absolute;
    top: 21px;
    left: 17px;
    width: 18px;
    height: 4px;
    background: var(--commerce-brand);
    border-radius: 4px;
    content: "";
    transform: rotate(48deg);
}

.empty-cart__icon span::before,
.empty-cart__icon span::after {
    position: absolute;
    bottom: 21px;
    width: 7px;
    height: 7px;
    background: var(--commerce-brand);
    border-radius: 50%;
    content: "";
}

.empty-cart__icon span::before { left: 31px; }
.empty-cart__icon span::after { right: 27px; }

.empty-cart h2 {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -.04em;
}

.empty-cart p {
    max-width: 510px;
    margin: 0 auto 25px;
    color: var(--commerce-muted);
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: .85fr 1.15fr;
    }

    .auth-story {
        padding: 42px;
    }

    .auth-story h1 {
        font-size: 40px;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 20px;
    }

    .cart-item {
        grid-template-columns: 86px minmax(0, 1fr) 112px;
    }

    .cart-item__image img {
        width: 86px;
        height: 106px;
    }

    .cart-item__price {
        grid-column: 2 / -1;
        text-align: left;
    }

    .cart-item__price .cart-item__remove {
        margin: 0 0 0 14px;
    }
}

@media (max-width: 820px) {
    .commerce-header__inner {
        min-height: 70px;
    }

    .commerce-header__nav > a:first-child,
    .commerce-account {
        display: none;
    }

    .auth-section {
        padding: 28px 0 50px;
    }

    .auth-shell {
        display: block;
        min-height: 0;
    }

    .auth-story {
        min-height: 300px;
        padding: 40px;
    }

    .auth-story h1 {
        max-width: 550px;
        font-size: 38px;
    }

    .auth-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-benefits li:last-child {
        display: none;
    }

    .auth-card {
        padding: 42px;
    }

    .checkout-grid {
        display: flex;
        flex-direction: column;
    }

    .checkout-content,
    .checkout-sidebar {
        width: 100%;
    }

    .checkout-sidebar {
        position: static;
    }

    .checkout-desktop-next {
        display: none;
    }

    .checkout-mobile-action {
        display: block;
    }

    .checkout-back {
        order: 10;
    }

    .order-summary__items {
        max-height: none;
    }
}

@media (max-width: 620px) {
    .commerce-shell {
        width: min(calc(100% - 26px), var(--commerce-shell));
    }

    .commerce-header__nav {
        gap: 12px;
    }

    .commerce-header__nav > a:nth-child(2) {
        display: none;
    }

    .commerce-header__login,
    .commerce-logout button {
        min-height: 39px;
        padding: 0 14px;
    }

    .commerce-brand img {
        max-width: 135px;
        height: 40px;
    }

    .commerce-footer__inner {
        flex-direction: column;
        justify-content: center;
        padding: 24px 0;
        text-align: center;
    }

    .auth-shell {
        border-radius: 17px;
    }

    .auth-story {
        min-height: 235px;
        padding: 28px;
    }

    .auth-story h1 {
        font-size: 31px;
    }

    .auth-story p {
        font-size: 14px;
    }

    .auth-benefits {
        display: none;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .auth-card__topline {
        margin-bottom: 30px;
    }

    .commerce-form-grid--3,
    .commerce-form-grid--2,
    .selection-grid,
    .checkout-address-summary-grid {
        grid-template-columns: 1fr;
    }

    .checkout-hero {
        padding: 18px 0 16px;
    }

    .checkout-progress {
        margin-top: 18px;
        overflow: hidden;
    }

    .checkout-progress a {
        font-size: 10px;
    }

    .checkout-progress a b {
        max-width: 68px;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .checkout-section {
        padding: 25px 0 50px;
    }

    .checkout-card,
    .order-summary {
        border-radius: 14px;
    }

    .checkout-card {
        padding: 21px;
    }

    .checkout-card__heading h2,
    .order-summary__header h2 {
        font-size: 20px;
    }

    .cart-card > .checkout-card__heading {
        padding: 22px 20px 18px;
    }

    .cart-card > .checkout-card__heading > a {
        display: none;
    }

    .cart-list {
        padding: 0 20px;
    }

    .cart-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
        padding: 21px 0;
    }

    .cart-item__image img {
        width: 78px;
        height: 96px;
    }

    .cart-item__copy h3 {
        margin-top: 3px;
        font-size: 14px;
    }

    .quantity-control {
        grid-column: 2;
        width: 120px;
    }

    .cart-item__price {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        margin-top: -43px;
    }

    .cart-item__price .cart-item__remove {
        display: none;
    }

    .cart-item__remove--mobile {
        display: inline-grid;
        margin-top: 4px;
    }

    .cart-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 19px 20px 22px;
    }

    .coupon-box {
        width: 100%;
    }

    .payment-method {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .payment-method .card-marks,
    .payment-method .payment-method__icon {
        display: none;
    }

    .bank-card {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .bank-card code {
        grid-column: 2;
        justify-self: start;
    }

    .card-preview {
        min-height: 190px;
        padding: 22px;
    }

    .card-preview__chip {
        top: 26px;
        left: 22px;
    }

    .required-note,
    .secure-badge {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --commerce-line: #8491a5;
    }

    .commerce-button,
    .commerce-field input,
    .commerce-field textarea {
        border-width: 2px;
    }
}
