/* Mala storefront */
.mala-store {
    --mala-green: #2f9e44;
    --mala-ink: #1a1a1a;
    --mala-muted: #666;
    --mala-line: #ececec;
    --mala-bg: #ffffff;
    background: var(--mala-bg);
    color: var(--mala-ink);
}

.mala-store .container {
    max-width: 1280px;
}

.mala-store .top-navbar {
    background: #1b1b1b !important;
    border-bottom: 0 !important;
    min-height: 28px;
    font-size: 12px;
}

.mala-store .top-navbar a,
.mala-store .top-navbar .opacity-60,
.mala-store .top-navbar .text-reset {
    color: #cfcfcf !important;
}

.mala-store .top-navbar .text-primary {
    display: none !important;
}

.mala-store header.sticky-top,
.mala-store header.z-1020 {
    box-shadow: none;
    border-bottom: 0 !important;
}

.mala-store .logo-bar-area {
    padding: 10px 0;
}

.mala-store .logo-bar-area .input-group .form-control {
    height: 40px;
    border: 1px solid #ccc !important;
    border-right: 0 !important;
    border-radius: 2px 0 0 2px;
    padding-left: 14px;
    background: #fff;
}

.mala-store .logo-bar-area .input-group-append .btn {
    height: 40px;
    border-radius: 0 2px 2px 0;
    background: #222;
    border-color: #222;
    min-width: 64px;
}

.mala-store .logo-bar-area .input-group-append .btn:hover {
    background: #000;
    border-color: #000;
}

.mala-store .nav-box-text,
.mala-store #compare {
    display: none !important;
}

.mala-nav {
    background: #2b2b2b;
}

.mala-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.mala-nav__list li a {
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    text-decoration: none;
}

.mala-nav__list li a:hover {
    background: #1f1f1f;
    color: #fff;
}

.mala-page {
    padding-bottom: 48px;
}

.mala-hero {
    padding: 12px 0 4px;
}

.mala-hero__img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 2px;
    background: #111;
}

.mala-section {
    padding: 20px 0 8px;
}

.mala-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mala-section__head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--mala-ink);
}

.mala-section__more {
    font-size: 13px;
    color: var(--mala-green);
    font-weight: 600;
}

.mala-promo {
    display: grid;
    gap: 12px;
}

.mala-promo--count-1 {
    grid-template-columns: 1fr;
}

.mala-promo--count-2 {
    grid-template-columns: 1fr 1fr;
}

.mala-promo--count-3 {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 420px;
}

.mala-promo--count-3 .mala-promo__tile:nth-child(1) {
    grid-row: 1 / 3;
}

.mala-promo--count-4 {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 420px;
}

.mala-promo--count-4 .mala-promo__tile:nth-child(1) {
    grid-row: 1 / 3;
}

.mala-promo--count-4 .mala-promo__tile:nth-child(2) {
    grid-column: 2 / 4;
}

.mala-promo__tile {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    min-height: 160px;
}

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

.mala-cats {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 12px 8px;
    background: #fff;
    border: 1px solid var(--mala-line);
    border-radius: 2px;
    padding: 18px 8px 14px;
}

.mala-cats__item {
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.mala-cats__icon {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.mala-cats__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mala-cats__label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #444;
    line-height: 1.3;
}

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

.mala-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .15s ease;
}

.mala-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.mala-card__media {
    display: block;
    position: relative;
    background: #fafafa;
}

.mala-card__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.mala-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.mala-card__body {
    padding: 10px 12px 12px;
}

.mala-card__title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    height: 35px;
    overflow: hidden;
    margin: 0 0 10px;
}

.mala-card__title a {
    color: #333;
    text-decoration: none;
}

.mala-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mala-card__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--mala-ink);
}

.mala-card__price del {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.mala-card__cart {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
}

.mala-card__cart:hover {
    color: var(--mala-ink);
}

.mala-stores {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.mala-stores__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid var(--mala-line);
    text-decoration: none;
    color: inherit;
}

.mala-stores__copy h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.mala-stores__copy span {
    font-size: 12px;
    color: #888;
}

.mala-stores__card img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.mala-banner-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mala-banner-row__item {
    display: block;
    overflow: hidden;
    border-radius: 2px;
}

.mala-banner-row__item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.mala-store .footer-policy-bar,
.mala-store .footer-widget .form-inline {
    display: none !important;
}

.mala-store .footer-widget {
    background: #111 !important;
    padding-top: 40px !important;
    padding-bottom: 32px !important;
}

.mala-store .footer-widget h4 {
    color: #fff;
    border-bottom: 0 !important;
    letter-spacing: .04em;
    text-transform: none;
    font-size: 15px;
}

.mala-store .footer-widget a {
    font-size: 13px;
}

/* Goods catalog — /categories */
.goods-hero {
    background: linear-gradient(90deg, #ff8a2a 0%, #ff6a12 55%, #f25a08 100%);
    color: #fff;
    min-height: 168px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.goods-hero::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -36px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.goods-hero__inner {
    position: relative;
    z-index: 1;
    padding: 36px 0;
}

.goods-hero h1 {
    margin: 0 0 8px;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

.goods-hero__crumb {
    font-size: 13px;
    color: rgba(255, 255, 255, .9);
}

.goods-hero__crumb a {
    color: #fff;
    text-decoration: none;
}

.goods-hero__crumb span {
    margin: 0 6px;
}

.goods-body {
    padding: 24px 0 48px;
    background: #f5f5f5;
}

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

.goods-sidebar__card {
    background: #fff;
    border: 1px solid #eee;
}

.goods-sidebar__title {
    margin: 0;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #f0f0f0;
}

.goods-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.goods-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.goods-sidebar__item:hover,
.goods-sidebar__item.is-active {
    background: #fafafa;
    color: #e53935;
}

.goods-sidebar__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

.goods-sidebar__icon img,
.goods-sidebar__icon i {
    width: 18px;
    height: 18px;
    object-fit: contain;
    font-size: 16px;
}

.goods-sidebar__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goods-sidebar__chevron {
    color: #bbb;
    font-size: 12px;
}

.goods-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #eee;
}

.goods-sort__item {
    font-size: 13px;
    color: #444;
    text-decoration: none;
    padding: 4px 0;
}

.goods-sort__item:hover,
.goods-sort__item.is-active {
    color: #e53935;
    font-weight: 600;
}

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

.goods-card {
    background: #fff;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.goods-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.goods-card__media {
    display: block;
    background: #fafafa;
}

.goods-card__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.goods-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.goods-card__title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    margin: 0 0 8px;
}

.goods-card__title a {
    color: #333;
    text-decoration: none;
}

.goods-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.goods-card__sold {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.goods-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.goods-card__buy {
    flex: 1 1 auto;
    height: 32px;
    border: 0;
    background: #2f80ed;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 0 8px;
}

.goods-card__buy:hover {
    background: #1b6fd6;
}

.goods-card__wish {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.goods-card__wish:hover {
    color: #e53935;
    border-color: #e53935;
}

.goods-pagination {
    margin-top: 28px;
}

.goods-empty {
    background: #fff;
    border: 1px solid #eee;
    padding: 48px 16px;
    text-align: center;
    color: #888;
}

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

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

@media (max-width: 991.98px) {
    .mala-hero__img {
        height: 220px;
    }

    .mala-cats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

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

    .mala-promo--count-2,
    .mala-promo--count-3,
    .mala-promo--count-4 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .mala-promo--count-3 .mala-promo__tile:nth-child(1),
    .mala-promo--count-4 .mala-promo__tile:nth-child(1),
    .mala-promo--count-4 .mala-promo__tile:nth-child(2) {
        grid-row: auto;
        grid-column: auto;
    }

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

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

    .goods-hero h1 {
        font-size: 32px;
    }

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

@media (max-width: 575.98px) {
    .mala-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mala-hero__img,
    .mala-banner-row__item img {
        height: 160px;
    }

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

    .mala-stores {
        grid-template-columns: 1fr 1fr;
    }

    .mala-cats__icon {
        width: 32px;
        height: 32px;
    }

    .mala-cats__icon img {
        width: 22px;
        height: 22px;
    }

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

    .goods-card__buy span {
        display: none;
    }
}

/* Customer login / register */
.mala-store .aiz-main-wrapper:has(.mala-auth) {
    background-color: #fff;
}

.mala-auth {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.mala-auth__stage {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    flex: 1 1 auto;
    min-height: calc(100vh - 220px);
}

.mala-auth__aside {
    position: relative;
    background-color: #1b1b1b;
    background-image: var(--mala-auth-image);
    background-size: cover;
    background-position: center;
    min-height: 100%;
    color: #fff;
}

.mala-auth__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, .35) 0%, rgba(10, 10, 10, .78) 100%);
}

.mala-auth__aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 48px 44px;
    max-width: 460px;
}

.mala-auth__kicker {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.mala-auth__aside-title {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.mala-auth__aside-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .84);
    max-width: 34ch;
}

.mala-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #fff;
    border-left: 1px solid #f0f0f0;
}

.mala-auth__card {
    width: 100%;
    max-width: 400px;
    min-width: 0;
}

.mala-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--mala-line);
}

.mala-auth__stage > * {
    min-width: 0;
}

.mala-auth__tab {
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.mala-auth__tab:hover {
    color: var(--mala-ink);
    text-decoration: none;
}

.mala-auth__tab.is-active {
    color: var(--mala-ink);
    border-bottom-color: var(--mala-ink);
}

.mala-auth__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: var(--mala-ink);
}

.mala-auth__subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--mala-muted);
}

.mala-auth__alert {
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 13px;
    color: #9b1c1c;
    background: #fdecec;
    border: 1px solid #f5c2c2;
}

.mala-auth__field {
    margin-bottom: 14px;
}

.mala-auth__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mala-ink);
}

.mala-auth .form-control {
    height: 46px;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 10px 12px;
    font-size: 14px;
    box-shadow: none;
}

.mala-auth .form-control:focus {
    border-color: var(--mala-ink);
    box-shadow: none;
}

.mala-auth .iti {
    width: 100%;
}

.mala-auth__password {
    position: relative;
}

.mala-auth__password .form-control {
    padding-right: 44px;
}

.mala-auth__toggle-pass {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mala-auth__toggle-pass:hover {
    color: var(--mala-ink);
}

.mala-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    font-size: 13px;
    flex-wrap: wrap;
}

.mala-auth__row .aiz-checkbox span {
    opacity: 1;
    color: var(--mala-muted);
}

.mala-auth__link,
.mala-auth__text-btn {
    color: var(--mala-green);
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.mala-auth__link:hover,
.mala-auth__text-btn:hover {
    color: #237a32;
    text-decoration: underline;
}

.mala-auth__switch {
    margin: -6px 0 14px;
    text-align: right;
}

.mala-auth__terms {
    margin: 4px 0 18px;
    font-size: 13px;
    color: var(--mala-muted);
}

.mala-auth__terms .aiz-checkbox {
    display: block;
    white-space: normal;
}

.mala-auth__submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 2px;
    background: #1a1a1a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mala-auth__submit:hover {
    background: #000;
}

.mala-auth__divider {
    position: relative;
    text-align: center;
    margin: 22px 0 16px;
    font-size: 12px;
    color: #999;
}

.mala-auth__divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--mala-line);
}

.mala-auth__divider span {
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 10px;
}

.mala-auth__social {
    display: grid;
    gap: 8px;
}

.mala-auth__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 2px;
    color: var(--mala-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}

.mala-auth__social-btn:hover {
    border-color: #bbb;
    color: var(--mala-ink);
    text-decoration: none;
    background: #fafafa;
}

.mala-auth__social-btn i {
    font-size: 16px;
}

.mala-auth__foot {
    margin: 22px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--mala-muted);
}

.mala-auth__foot a {
    color: var(--mala-green);
    font-weight: 700;
}

.mala-auth__demo {
    margin-top: 18px;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid var(--mala-line);
}

.mala-auth__demo p {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mala-muted);
}

.mala-auth__demo-btn {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mala-auth__demo-btn:hover {
    border-color: #111;
}

@media (max-width: 991.98px) {
    .mala-auth__stage {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mala-auth__aside {
        min-height: 140px;
    }

    .mala-auth__aside-inner {
        display: none;
    }

    .mala-auth__panel {
        border-left: 0;
        padding: 28px 16px 48px;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .mala-auth__aside {
        min-height: 110px;
    }

    .mala-auth__title {
        font-size: 22px;
    }
}
