:root {
    --color-brand: #c7312c;
    --color-brand-strong: #9f2824;
    --color-ink: #1c1c23;
    --color-muted: #6b727b;
    --color-border: #e6e6e7;
    --color-surface: #ffffff;
    --color-page: #e8e9ed;
    --color-soft: #f7f7f7;
    --color-info: #1e6ab4;
    --color-success: #1f7f80;
    --color-warning: #cd9b47;
    --color-danger: #bc2031;
    --space-1: 5px;
    --space-2: 10px;
    --space-3: 15px;
    --space-4: 20px;
    --space-6: 30px;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, .08);
    --text-xs: 10px;
    --text-sm: 12px;
    --text-md: 13px;
    --text-lg: 15px;
    --text-xl: 18px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Pelak, IRANSans, Tahoma, sans-serif;
    font-size: var(--text-md);
    line-height: 1.7;
    background: var(--color-page);
    color: var(--color-ink);
}

a {
    color: var(--color-ink);
}

.page-container {
    max-width: 512px;
    min-height: 100dvh;
    height: 100dvh;
    background: var(--color-surface);
    box-shadow: 0 0 16px rgba(0, 0, 0, .10);
    overflow: hidden;
}

header {
    height: 60px;
    padding: 0 var(--space-3);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    display: flex;
    align-items: center;
}

header .row,
header .col-12 {
    width: 100%;
}

header .logo {
    height: 42px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.site-header-bar {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2);
}

.site-menu-toggle,
.product-menu-close {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus,
.product-menu-close:hover,
.product-menu-close:focus {
    border-color: var(--color-brand);
    color: var(--color-brand);
    outline: none;
}

.site-header-title {
    min-width: 0;
    color: var(--color-ink);
    font-size: var(--text-lg);
    font-weight: 800;
    line-height: 1.4;
}

.product-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.product-menu-backdrop.show-up {
    opacity: 1;
    visibility: visible;
}

.product-menu-panel {
    position: fixed;
    top: 0;
    right: max(0px, calc((100vw - 512px) / 2));
    bottom: 0;
    z-index: 91;
    width: min(86vw, 390px);
    max-width: 512px;
    padding: var(--space-3);
    background: var(--color-surface);
    box-shadow: -8px 0 24px rgba(0, 0, 0, .14);
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
}

.product-menu-panel.show-up {
    transform: translateX(0);
    visibility: visible;
}

.product-menu-header {
    min-height: 44px;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.product-menu-header strong {
    font-size: var(--text-lg);
    line-height: 1.4;
}

.product-menu-list {
    margin: 0;
    padding: 0;
}

.product-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.product-menu-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
    min-width: 0;
    flex: 1;
    color: var(--color-ink);
    line-height: 1.5;
}

.product-menu-list a:hover,
.product-menu-list a:focus {
    color: var(--color-brand);
}

.product-menu-type {
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.product-menu-type + .product-menu-type {
    padding-top: var(--space-2);
}

.product-menu-accordion-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-soft);
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.product-menu-accordion-toggle:hover,
.product-menu-accordion-toggle:focus {
    border-color: var(--color-brand);
    color: var(--color-brand);
    outline: none;
}

.product-menu-accordion-toggle i {
    transition: transform .2s ease;
}

.accordion-open > .product-menu-row .product-menu-accordion-toggle i {
    transform: rotate(180deg);
}

.product-menu-link-main {
    font-size: var(--text-lg);
    font-weight: 800;
}

.product-menu-list-sub {
    margin-top: var(--space-1);
    padding-right: var(--space-3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .2s ease;
}

.product-menu-type.accordion-open > .product-menu-list-sub,
.product-menu-category.accordion-open > .product-menu-list-sub {
    max-height: 900px;
    opacity: 1;
    visibility: visible;
}

.product-menu-link-category {
    color: var(--color-ink);
    font-size: var(--text-md);
    font-weight: 700;
}

.product-menu-list-subcategory {
    margin-top: 0;
    padding-right: var(--space-3);
}

.product-menu-link-subcategory {
    color: var(--color-muted) !important;
    font-size: var(--text-sm);
}

.product-menu-link-subcategory:hover,
.product-menu-link-subcategory:focus {
    color: var(--color-brand) !important;
}

.product-menu-loading,
.product-menu-empty {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-soft);
    color: var(--color-muted);
    text-align: center;
}

main {
    top: 60px;
    bottom: 64px;
    padding: var(--space-3);
    background: linear-gradient(180deg, var(--color-surface) 0%, #fafafa 100%);
}

.main-slider {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-soft);
}

.slider-item {
    border-radius: var(--radius-md);
    display: block;
}

.search-container-part {
    height: 46px;
    padding: 0;
}

.search-container {
    position: relative;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    overflow: hidden;
}

.search-container input {
    height: 44px;
    padding: 0 var(--space-3) 0 54px;
    border-radius: 0;
    color: var(--color-ink);
    font-family: inherit;
}

.search-container button {
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--color-brand);
    color: var(--color-surface);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.search-container button:hover,
.search-container button:focus,
.product .add-to-basket:hover,
.product-details .add-to-basket:hover,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-brand-strong);
    color: var(--color-surface);
}

.search-result-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.product-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.compare-product-item .product-item,
.product-item:hover {
    box-shadow: var(--shadow-soft);
}

.product {
    padding: var(--space-2);
    min-height: 100%;
}

.product .count-in-unit,
.product-details .count-in-unit {
    top: var(--space-2);
    right: var(--space-2);
    height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--color-soft);
    color: var(--color-muted);
    font-size: var(--text-xs);
    line-height: 24px;
    position: absolute;
}

.product .product-image,
.product-item .img-product {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: var(--space-4) var(--space-2) var(--space-2);
}

.product-title {
    height: 42px;
    padding: 0;
    margin: 0 0 var(--space-2);
    color: var(--color-ink);
    font-size: var(--text-sm);
    line-height: 1.55;
    text-align: right;
}

.product-price,
.product .product-price,
.product-details .product-price {
    padding: 0;
    margin-bottom: var(--space-2);
    color: var(--color-ink);
    font-weight: 800;
    align-items: center;
}

.price-name {
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-weight: 500;
}

.product .product-price-content {
    margin-right: 0;
    color: var(--color-ink);
}

.item-old-price {
    color: var(--color-muted);
    font-size: var(--text-xs);
}

.product .add-to-basket,
.product-details .add-to-basket,
.btn-primary {
    min-height: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    color: var(--color-surface);
    font-family: inherit;
    font-size: var(--text-md);
    line-height: 1.4;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.btn-light,
.btn-secondary {
    min-height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-soft);
    color: var(--color-ink);
    font-family: inherit;
}

.form-control {
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font-family: inherit;
    font-size: var(--text-md);
}

.form-control:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(199, 49, 44, .10);
}

.login-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04) !important;
    overflow: hidden;
}

.login-card .card-body {
    padding: var(--space-3) !important;
}

.login-part label {
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.login-part-sms .row {
    direction: ltr;
    gap: var(--space-2);
    margin: 0;
}

.login-part-sms .col {
    padding: 0;
}

.login-part-sms input[next-box] {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 0;
    text-align: center;
    font-size: var(--text-lg);
}

.home-tab {
    padding-bottom: var(--space-4);
}

.home-alert {
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    border: 1px solid rgba(30, 106, 180, .20);
    border-right: 4px solid var(--color-info);
    border-radius: var(--radius-md);
    background: rgba(30, 106, 180, .08);
    color: var(--color-ink);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.home-section {
    margin-bottom: var(--space-4);
}

.home-full-bleed {
    margin-right: calc(var(--space-3) * -1);
    margin-left: calc(var(--space-3) * -1);
}

.home-main-slider {
    width: 100%;
    aspect-ratio: 16 / 8;
    background: var(--color-soft);
    overflow: hidden;
}

.home-main-slide,
.home-main-slide img,
.home-banner,
.home-banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-main-slide img,
.home-banner img {
    object-fit: cover;
}

.home-main-pagination {
    bottom: var(--space-2) !important;
}

.home-section-title {
    min-height: 32px;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-section-title strong {
    color: var(--color-ink);
    font-size: var(--text-lg);
    font-weight: 800;
    line-height: 1.4;
}

.home-product-swiper {
    margin-right: calc(var(--space-2) * -1);
    margin-left: calc(var(--space-2) * -1);
    padding: 0 var(--space-2);
    overflow: hidden;
}

.home-product-swiper .swiper-wrapper {
    padding-bottom: var(--space-1);
}

.home-product-swiper .swiper-slide {
    height: auto;
}

.home-product-swiper .product-item {
    height: 100%;
}

.home-product-swiper .product {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-product-swiper .product > div:last-child {
    margin-top: auto;
}

.home-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.home-banner {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    overflow: hidden;
}

.home-wide-banner {
    aspect-ratio: 16 / 6;
    border-radius: 0;
}

.basket-page-panel {
    min-height: 100%;
    padding-bottom: 88px;
}

.checkout-progress {
    margin-bottom: var(--space-3);
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-soft);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.checkout-progress button {
    min-width: 0;
    height: 34px;
    padding: 0 var(--space-1);
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.checkout-progress button.active {
    background: var(--color-surface);
    color: var(--color-brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.basket-page-header {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.basket-page-header h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: var(--text-xl);
    font-weight: 800;
    line-height: 1.4;
}

.basket-page-header span,
.basket-page-total span,
.basket-checkout-bar span {
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.basket-page-total {
    min-width: 132px;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-soft);
    text-align: left;
}

.basket-page-total strong,
.basket-checkout-bar strong {
    display: block;
    color: var(--color-ink);
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.6;
}

.basket-empty-state {
    min-height: 220px;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-align: center;
}

.basket-empty-state i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-soft);
    color: var(--color-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.basket-empty-state strong {
    color: var(--color-ink);
    font-size: var(--text-lg);
    line-height: 1.4;
}

.basket-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.basket-item {
    margin: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: var(--space-2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.basket-item-media {
    width: 92px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background: var(--color-soft);
    overflow: hidden;
}

.basket-item-media a,
.basket-item-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.basket-item-media img {
    padding: var(--space-2);
    object-fit: contain;
}

.basket-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-2);
}

.basket-item-top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.basket-item-title {
    min-width: 0;
    color: var(--color-ink);
    flex: 1;
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.basket-remove,
.basket-plus,
.basket-minus {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.basket-remove:hover,
.basket-remove:focus {
    border-color: var(--color-danger);
    color: var(--color-danger);
    outline: none;
}

.basket-plus:hover,
.basket-plus:focus,
.basket-minus:hover,
.basket-minus:focus {
    border-color: var(--color-brand);
    color: var(--color-brand);
    outline: none;
}

.basket-item-meta {
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.basket-item-meta span {
    min-height: 24px;
    padding: 2px var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--color-soft);
    color: var(--color-muted);
    font-size: var(--text-xs);
    line-height: 20px;
}

.basket-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.basket-quantity {
    height: 36px;
    padding: 0 2px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-soft);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.basket-quantity .basket-plus,
.basket-quantity .basket-minus {
    width: 30px;
    height: 30px;
    border-color: transparent;
    background: transparent;
    flex-basis: 30px;
}

.basket-count {
    min-width: 30px;
    color: var(--color-ink);
    display: inline-block;
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 30px;
    text-align: center;
}

.basket-item-price {
    min-width: 110px;
    color: var(--color-ink);
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
}

.basket-checkout-bar {
    position: fixed;
    right: max(0px, calc((100vw - 512px) / 2));
    bottom: 64px;
    z-index: 11;
    width: min(100%, 512px);
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.basket-checkout-bar .btn {
    width: 148px;
    flex: 0 0 148px;
}

.checkout-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.checkout-section {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.checkout-section-title {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2);
}

.checkout-section-title strong {
    color: var(--color-ink);
    font-size: var(--text-lg);
    font-weight: 800;
    line-height: 1.4;
}

.checkout-section-title span {
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
    text-align: left;
}

.checkout-option-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.checkout-option {
    min-height: 58px;
    margin: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.checkout-option.selected {
    border-color: var(--color-brand);
    background: rgba(199, 49, 44, .04);
}

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

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

.checkout-option > span {
    min-width: 0;
    flex: 1;
}

.checkout-option strong,
.checkout-option small {
    display: block;
}

.checkout-option strong {
    color: var(--color-ink);
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.5;
}

.checkout-option small {
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.checkout-option em {
    color: var(--color-ink);
    font-size: var(--text-sm);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-empty-note,
.checkout-vpn-note,
.checkout-info-note {
    padding: var(--space-2);
    border: 1px solid rgba(205, 155, 71, .35);
    border-right: 4px solid var(--color-warning);
    border-radius: var(--radius-md);
    background: rgba(205, 155, 71, .08);
    color: var(--color-ink);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.checkout-info-note {
    margin-bottom: var(--space-2);
    border-color: rgba(30, 106, 180, .22);
    border-right-color: var(--color-info);
    background: rgba(30, 106, 180, .07);
}

.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.checkout-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.checkout-summary span {
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.checkout-summary strong {
    color: var(--color-ink);
    font-size: var(--text-md);
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
}

.checkout-summary .total {
    margin-top: var(--space-1);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}

.checkout-summary .total span,
.checkout-summary .total strong {
    color: var(--color-brand);
}

.checkout-summary .cashback span,
.checkout-summary .cashback strong {
    color: var(--color-success);
}

.checkout-payment-detail .checkout-info-note {
    margin-bottom: 0;
}

.checkout-coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: var(--space-2);
}

.checkout-coupon .btn {
    height: 44px;
}

.merchant-option img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    flex: 0 0 42px;
}

.merchant-option input {
    order: -1;
}

.alert-holder {
    bottom: -400px;
    z-index: 9999;
}

.alert-holder.show-up {
    bottom: 76px;
}

.alert-box {
    width: calc(100% - 30px);
    max-width: 482px;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-right: 4px solid var(--color-info);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    color: var(--color-ink);
}

.alert-box.successful {
    border-right-color: var(--color-success);
}

.alert-box.failed {
    border-right-color: var(--color-danger);
}

.alert-box .alert-ic {
    font-size: 28px;
}

.alert-box.successful .alert-ic {
    color: var(--color-success);
}

.alert-box.failed .alert-ic {
    color: var(--color-danger);
}

.alert-box .alert-text {
    margin-top: var(--space-1);
    font-size: var(--text-md);
}

.loading-container {
    right: max(0px, calc((100vw - 512px) / 2));
    left: max(0px, calc((100vw - 512px) / 2));
    z-index: 9998;
    background: rgba(28, 28, 35, .38);
    backdrop-filter: blur(2px);
}

.loading-container .loading {
    width: 156px;
    height: auto;
    min-height: 136px;
    padding: var(--space-4) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    color: var(--color-ink);
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-md);
    font-weight: 700;
    line-height: 1.5;
}

.loading-container .loading img {
    width: 58px;
    height: 58px;
    margin: 0;
    object-fit: contain;
}

.loading-container .loading span {
    display: block;
}

footer {
    height: 64px;
    padding: 0 var(--space-2);
    border-top: 1px solid var(--color-border);
    box-shadow: none;
    background: var(--color-surface);
    padding-top: 4px;
}

footer ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    height: 100%;
}

footer ul li {
    height: 100%;
    padding: 0;
}

footer ul li a {
    height: 100%;
    padding: var(--space-2) 0 var(--space-1);
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: var(--text-xs);
    line-height: 1.3;
}

footer li.with-border a {
    border-right: 0;
}

footer ul li a i {
    font-size: 18px;
    line-height: 1;
}

footer ul li a.active,
footer ul li a:hover {
    color: var(--color-brand);
}

@media only screen and (max-width: 768px) {
    body {
        font-size: var(--text-sm);
    }

    header,
    header.fixed-header {
        height: 60px;
    }

    main {
        top: 60px;
        bottom: 64px;
        padding: var(--space-2);
    }

    .home-full-bleed {
        margin-right: calc(var(--space-2) * -1);
        margin-left: calc(var(--space-2) * -1);
    }

    .home-main-slider {
        aspect-ratio: 16 / 8.5;
    }

    .home-wide-banner {
        aspect-ratio: 16 / 7;
    }

    .search-result-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-2);
    }

    .basket-page-panel {
        padding-bottom: 82px;
    }

    .checkout-progress button {
        height: 32px;
        font-size: var(--text-xs);
    }

    .basket-page-header {
        align-items: stretch;
    }

    .basket-page-total {
        min-width: 118px;
    }

    .basket-item {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .basket-item-media {
        width: 82px;
    }

    .basket-item-bottom {
        align-items: flex-start;
        flex-direction: column-reverse;
    }

    .basket-item-price {
        width: 100%;
        min-width: 0;
        text-align: right;
    }

    .basket-checkout-bar {
        bottom: 64px;
        padding: var(--space-2);
    }

    .basket-checkout-bar .btn {
        width: 132px;
        flex-basis: 132px;
    }

    .checkout-section {
        padding: var(--space-2);
    }

    .checkout-section-title {
        flex-direction: column;
        gap: 2px;
    }

    .checkout-section-title span {
        text-align: right;
    }

    .checkout-option {
        align-items: flex-start;
    }

    .checkout-option em {
        white-space: normal;
        text-align: left;
    }

    footer {
        height: 64px;
    }
}
