/*
 * DigiMarket storefront skin for SDCommerce.
 * The theme deliberately uses the active store's own catalogue, content and branding.
 */
@font-face {
    font-family: "DigiMarket";
    src: url("../fonts/Vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 500;
    font-display: swap;
}

@font-face {
    font-family: "DigiMarket";
    src: url("../fonts/Vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

.dm-body {
    --dm-red: var(--sdc-main, #ef4056);
    --dm-red-dark: #d82f46;
    --dm-cyan: var(--sdc-orange, #19bfd3);
    --dm-ink: #23254e;
    --dm-text: #3f4064;
    --dm-muted: #81858b;
    --dm-line: #e0e0e2;
    --dm-canvas: #f5f5f5;
    --dm-paper: #fff;
    --main-color: var(--dm-red);
    --main-color-50: #fff1f2;
    --main-color-100: #ffe4e7;
    --main-color-200: #fecdd3;
    --main-color-300: #fda4af;
    --main-color-400: #fb7185;
    --main-color-500: #f43f5e;
    --main-color-600: var(--dm-red);
    --main-color-700: var(--dm-red-dark);
    --main-color-800: #bd2139;
    --main-color-900: #981b30;
    --main-50: #fff1f2;
    --main-100: #ffe4e7;
    --main-200: #fecdd3;
    --main-300: #fda4af;
    --main-400: #fb7185;
    --main-500: #f43f5e;
    --main-600: var(--dm-red);
    --main-700: var(--dm-red-dark);
    --main-800: #bd2139;
    --main-900: #981b30;
    margin: 0;
    color: var(--dm-text);
    background: var(--dm-paper);
    font-family: var(--sdc-font-body, "DigiMarket"), Vazirmatn, Tahoma, sans-serif !important;
    font-size: 14px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.dm-body button,
.dm-body input,
.dm-body select,
.dm-body textarea {
    font-family: inherit !important;
}

.dm-body a {
    color: inherit;
}

.dm-body img {
    max-width: 100%;
}

.dm-body .container-lg {
    width: min(100% - 32px, 1336px);
    max-width: 1336px;
    margin-inline: auto;
    padding-inline: 0;
}

.dm-body .bg-main-600,
.dm-body .btn-main {
    background-color: var(--dm-red) !important;
}

.dm-body .text-main-600,
.dm-body .hover-text-main-600:hover {
    color: var(--dm-red) !important;
}

.dm-body .border-main-600,
.dm-body .hover-border-main-600:hover {
    border-color: var(--dm-red) !important;
}

.dm-body .dm-main {
    min-height: 42vh;
    background: var(--dm-paper);
}

/* Built-in homepage preset: wide campaign hero and a compact catalog rail. */
.dm-body .dm-home-slider {
    position: relative;
    overflow: hidden;
    background: #e4f5fb;
}

.dm-body .dm-home-slider__slide {
    color: #23254e;
    background: linear-gradient(110deg, #e4f5fb, #cfe9f1);
}

.dm-body .dm-home-slider__track:not(.slick-initialized):not(.sdc-carousel-ready) > .dm-home-slider__slide:not(:first-child) {
    display: none;
}

.dm-body .dm-home-slider__track > .slick-arrow {
    display: none !important;
}

.dm-body .dm-home-slider__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
    width: min(100% - 64px, 1200px);
    margin-inline: auto;
    gap: 32px;
}

.dm-body .dm-home-slider__content {
    padding-block: 32px 54px;
}

.dm-body .dm-home-slider__content h2 {
    color: #23254e !important;
    font-size: clamp(25px, 3.1vw, 42px);
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 12px;
}

.dm-body .dm-home-slider__content p {
    color: #3f4064 !important;
    font-size: 16px;
    margin-bottom: 24px;
}

.dm-body .dm-home-slider__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 8px;
    color: #fff !important;
    background: #23254e;
    font-weight: 700;
}

.dm-body .dm-home-slider__media {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
}

.dm-body .dm-home-slider__media img {
    display: block;
    width: auto;
    height: 400px;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.dm-body .dm-home-slider__controls {
    position: absolute;
    inset-inline-start: max(24px, calc((100% - 1200px) / 2));
    bottom: 12px;
    display: flex;
    gap: 8px;
}

.dm-body .dm-home-slider__controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e2;
    border-radius: 50%;
    background: #fff;
    color: #23254e;
    font-size: 26px;
}

.dm-body .sdc-homepage .dm-preset-rail > .container-lg {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 20px;
}

.dm-body .sdc-homepage .dm-preset-rail .section-heading {
    margin: 0;
    text-align: center;
}

.dm-body .sdc-homepage .dm-preset-rail .section-heading > div {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dm-body .sdc-homepage .dm-preset-rail .section-heading h2 {
    font-size: 27px;
    line-height: 1.8;
}

.dm-body .sdc-homepage .dm-preset-shortcuts .feature-item__thumb {
    width: 64px;
}

.dm-body .sdc-homepage .feature.dm-preset-shortcuts {
    padding-block: 10px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .sdc-product-card {
    min-height: 310px;
    padding: 10px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__thumb {
    height: 132px;
    margin-bottom: 6px;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__thumb img {
    width: 132px !important;
    height: 132px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__content {
    margin-top: 4px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__content .title {
    margin-block: 4px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__cart {
    margin-top: 4px !important;
}

.dm-body .sdc-homepage .dm-preset-rail .product-card__content > form[data-cart-add-form] {
    padding-top: 4px;
}

.dm-body .sdc-homepage .dm-preset-categories .section-heading {
    text-align: center;
}

.dm-body .sdc-homepage .dm-preset-categories .section-heading > div {
    justify-content: center;
}

/* Avoid inherited 620px skipped-content placeholders below a short brand row. */
.dm-body .sdc-homepage .sdc-homepage__section {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
}

.dm-body .sdc-homepage .dm-preset-banners .promotional-banner-item {
    padding: 0 !important;
}

.dm-body .sdc-homepage .dm-preset-banners .promotional-banner-item__content {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dm-body .sdc-homepage .dm-preset-banners .promotional-banner-item::after {
    background: linear-gradient(180deg, transparent 5%, rgba(0, 0, 0, .76));
}

@media (max-width: 991px) {
    .dm-body .sdc-homepage .dm-preset-shortcuts .sdc-category-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding-block-end: 8px;
        scrollbar-width: none;
    }
    .dm-body .sdc-homepage .dm-preset-shortcuts .feature-item {
        flex: 0 0 76px;
        width: 76px !important;
    }
    .dm-body .sdc-homepage .dm-preset-shortcuts .feature-item__content h3 a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

@media (max-width: 639px) {
    .dm-body .dm-home-slider__inner {
        min-height: 260px;
        width: calc(100% - 32px);
        grid-template-columns: 1.15fr 1fr;
        gap: 12px;
    }
    .dm-body .dm-home-slider__content { padding-block: 20px 65px; }
    .dm-body .dm-home-slider__content h2 { font-size: 21px; margin-bottom: 8px; }
    .dm-body .dm-home-slider__content p { font-size: 12px; margin-bottom: 12px; }
    .dm-body .dm-home-slider__link { padding-inline: 12px; gap: 10px; font-size: 12px; }
    .dm-body .dm-home-slider__media img { height: 260px; }
    .dm-body .sdc-homepage .dm-preset-rail > .container-lg { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
    .dm-body .sdc-homepage .dm-preset-rail .section-heading h2 { font-size: 21px; }
    .dm-body .sdc-homepage .dm-preset-rail .section-heading a { font-size: 11px; }
    .dm-body .sdc-homepage .dm-preset-shortcuts .sdc-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dm-body .sdc-homepage .dm-preset-shortcuts .feature-item__thumb { width: 60px; }
}

/* Header */
.dm-body #header-topbar-text {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-red) !important;
    font-size: 12px;
    font-weight: 700;
}

.dm-body > .header-top {
    display: none !important;
}

.dm-body .header-middle {
    position: relative;
    padding-block: 0 !important;
    z-index: 120;
    border-bottom: 0 !important;
    background: var(--sdc-surface, #fff) !important;
    box-shadow: none;
}

.dm-body .header-middle .header-inner {
    min-height: 72px;
    gap: 24px;
    padding-block: 12px 8px;
}

.dm-body .header-middle .logo {
    width: 150px;
    min-width: 150px;
}

.dm-body .header-middle .brand-logo-pair--responsive {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
}

.dm-body .header-middle .brand-logo-pair img {
    width: 100%;
    height: 44px;
    object-fit: contain;
    object-position: right center;
}

.dm-body .header-middle .form-location-wrapper {
    flex: 1 1 640px;
    max-width: 640px;
}

.dm-body .header-middle .storefront-search-category {
    width: 100%;
    height: 44px;
    overflow: hidden;
    border: 0;
    border-radius: 8px !important;
    background: var(--sdc-surface-muted, #f0f0f1);
}

.dm-body .header-middle .storefront-search-category > select,
.dm-body .header-middle .storefront-search-category .select2-container {
    display: none !important;
}

.dm-body .header-middle .search-form__wrapper {
    display: block !important;
    width: 100%;
}

.dm-body .header-middle .search-form__input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 16px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: var(--dm-text);
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px;
}

.dm-body .header-middle .search-form__input::placeholder {
    color: #a1a3a8;
}

.dm-body .header-middle .search-form__wrapper button {
    inset-inline-start: auto !important;
    inset-inline-end: 8px !important;
    left: auto !important;
    right: 8px !important;
    width: 32px;
    height: 32px;
    color: var(--sdc-muted, #81858b) !important;
    background: transparent !important;
    font-size: 21px;
}

.dm-body .header-middle .header-right > div {
    gap: 10px !important;
}

.dm-account-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--dm-line);
    border-radius: 8px;
    color: var(--dm-ink) !important;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dm-account-action i {
    font-size: 21px;
}

.dm-body .header-middle .header-right .item-hover {
    width: 36px;
    min-height: 40px;
    justify-content: center;
}

.dm-body .header-middle .header-right .item-hover > span:last-child {
    display: none !important;
}

.dm-body .header-middle .header-right .item-hover__text {
    color: var(--sdc-text, #424750) !important;
    font-size: 24px !important;
}

.dm-body > header.header {
    position: relative;
    z-index: 110;
    min-height: 42px;
    border-bottom: 1px solid var(--dm-line) !important;
    background: var(--sdc-surface, #fff) !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.dm-body > header.header .header-inner {
    min-height: 42px;
}

.dm-body > header.header .header-right > a[href^="tel:"] {
    color: var(--dm-muted) !important;
    background: transparent !important;
    font-size: 12px !important;
    padding: 8px 0 !important;
    min-height: 42px;
}

.dm-body .header-middle .header-inner { justify-content: flex-start; }
.dm-body .header-middle .header-right { margin-inline-start: auto; }

.dm-body > header.header .category__button {
    min-height: 42px;
    padding: 0 4px 0 18px !important;
    border: 0 !important;
    color: var(--sdc-text, #3f4064) !important;
    font-size: 13px;
    font-weight: 700 !important;
}

.dm-body > header.header .category__button .icon {
    font-size: 21px !important;
}

.dm-body > header.header .nav-menu {
    gap: 0 !important;
}

.dm-body > header.header .nav-menu > li > a,
.dm-body > header.header .nav-menu > li > button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px !important;
    color: #62666d !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.dm-body > header.header .nav-menu > li > a::after {
    content: "";
    position: absolute;
    right: 10px;
    left: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--dm-red);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.dm-body > header.header .nav-menu > li > a:hover::after {
    transform: scaleX(1);
}

.dm-superapp,
.dm-mobile-address,
.dm-bottom-nav {
    display: none;
}

/* Homepage sections */
.dm-body .sdc-homepage {
    padding-block: 0 28px;
    overflow: clip;
}

.dm-body .sdc-homepage__section + .sdc-homepage__section {
    margin-block-start: 16px !important;
}

.dm-body .sdc-homepage .section-heading {
    margin-bottom: 18px;
}

.dm-body .sdc-homepage .section-heading h2 {
    color: var(--dm-ink);
    font-size: 21px;
    font-weight: 800;
}

.dm-body .sdc-homepage__section--slider .banner,
.dm-body .sdc-homepage__section--hero .delivery-section {
    padding-top: 0;
}

.dm-body .sdc-homepage__section--slider .banner .container-lg,
.dm-body .sdc-homepage__section--hero .delivery-section .container-lg {
    width: min(100% - 32px, 1336px);
}

.dm-body .sdc-homepage__section--slider .banner-item,
.dm-body .sdc-homepage__section--hero .delivery {
    min-height: 360px;
    overflow: hidden;
    border-radius: 16px !important;
    background: #f2f2f2;
}

.dm-body .sdc-homepage__section--slider .banner-item__thumb img,
.dm-body .sdc-homepage__section--hero .sdc-hero-background img {
    object-fit: cover;
}

.dm-body .sdc-homepage__section--slider .banner-item__title,
.dm-body .sdc-homepage__section--hero h2 {
    font-size: clamp(26px, 3vw, 46px) !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
}

.dm-body .sdc-homepage__section--slider .banner-item__description,
.dm-body .sdc-homepage__section--hero p {
    max-width: 580px;
    font-size: 15px !important;
}

.dm-body .sdc-homepage__section--slider .btn,
.dm-body .sdc-homepage__section--hero .btn {
    min-height: 42px;
    padding-inline: 22px;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 700;
}

.dm-body .sdc-homepage__section--servicebox .service-box-section {
    padding-block: 10px !important;
}

.dm-body .sdc-service-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.dm-body .sdc-service-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    text-align: center;
    background: transparent;
}

.dm-body .sdc-service-item__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--dm-red) !important;
    background: #f2f2f2;
    font-size: 27px !important;
}

.dm-body .sdc-service-item h2 {
    margin: 0 !important;
    color: var(--sdc-text, #3f4064);
    font-size: 12px !important;
    font-weight: 700;
}

.dm-body .sdc-service-item p {
    display: none;
}

.dm-body .sdc-homepage__section--productgrid .product {
    margin-top: 0 !important;
}

.dm-body .sdc-homepage__section--productgrid .product > .container-lg {
    overflow: hidden;
    padding: 20px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4056, #e6123d);
}

.dm-body .sdc-homepage__section--productgrid .section-heading h2,
.dm-body .sdc-homepage__section--productgrid .section-heading span,
.dm-body .sdc-homepage__section--productgrid .section-heading p,
.dm-body .sdc-homepage__section--productgrid .section-heading a {
    color: #fff !important;
}

.dm-body .sdc-homepage__section--productgrid .row {
    flex-wrap: nowrap !important;
    gap: 2px !important;
    margin: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .65) transparent;
}

.dm-body .sdc-homepage__section--productgrid .row > div {
    width: 190px !important;
    min-width: 190px;
    max-width: 190px;
    flex: 0 0 190px !important;
    padding: 0 !important;
    scroll-snap-align: start;
}

.dm-body .sdc-homepage__section--productgrid .sdc-product-card {
    min-height: 342px;
    margin: 0;
    padding: 14px 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--sdc-surface, #fff);
    box-shadow: none !important;
}

.dm-body .sdc-homepage__section--productgrid .row > div:first-child .sdc-product-card {
    border-radius: 0 8px 8px 0 !important;
}

.dm-body .sdc-homepage__section--productgrid .row > div:last-child .sdc-product-card {
    border-radius: 8px 0 0 8px !important;
}

.dm-body .sdc-homepage__section--productgrid .product-card__thumb {
    height: 154px;
    margin-bottom: 10px;
}

.dm-body .sdc-homepage__section--productgrid .product-card__thumb img {
    width: 154px !important;
    height: 154px !important;
    object-fit: contain;
}

.dm-body .sdc-homepage__section--productgrid .product-card__price {
    min-height: 27px;
    margin-bottom: 8px !important;
    text-align: left;
    direction: rtl;
}

.dm-body .sdc-homepage__section--productgrid .product-card__price > span:first-child {
    color: var(--sdc-text, #3f4064) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.dm-body .sdc-homepage__section--productgrid .product-card__content .title {
    min-height: 44px;
    margin: 8px 0 !important;
    color: var(--sdc-text, #23254e);
    font-size: 12px !important;
    line-height: 1.85;
    font-weight: 600 !important;
}

.dm-body .sdc-homepage__section--productgrid .product-card__cart {
    min-height: 34px;
    margin-top: 10px !important;
    padding: 6px 10px !important;
    border: 1px solid var(--dm-red);
    border-radius: 8px !important;
    color: var(--dm-red) !important;
    background: var(--sdc-surface, #fff) !important;
    font-size: 11px;
}

.dm-body .sdc-homepage__section--productgrid .product-card__cart:hover {
    color: #fff !important;
    background: var(--dm-red) !important;
}

.dm-body .sdc-homepage__section--categorygrid .feature {
    padding-block: 24px !important;
}

.dm-body .sdc-category-grid {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px 12px;
}

.dm-body .sdc-category-grid .feature-item {
    width: auto !important;
    min-width: 0;
}

.dm-body .sdc-category-grid .feature-item__thumb {
    width: min(100%, 120px);
    aspect-ratio: 1;
    height: auto;
    margin-inline: auto;
    overflow: hidden;
    border: 0;
    background: var(--sdc-surface-muted, #f5f5f5);
}

.dm-body .sdc-category-grid .feature-item__thumb img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.dm-body .sdc-category-grid .feature-item__content {
    margin-top: 8px !important;
}

.dm-body .sdc-category-grid .feature-item__content h3 {
    margin: 0 !important;
    color: var(--sdc-text, #3f4064);
    font-size: 12px !important;
    font-weight: 700;
}

.dm-body .sdc-category-grid .feature-item__content > span {
    display: none;
}

.dm-body .sdc-homepage__section--bannerrow .promotional-banner {
    padding-top: 0 !important;
}

.dm-body .sdc-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dm-body .sdc-promo-column {
    width: auto !important;
}

.dm-body .promotional-banner-item {
    min-height: 220px;
    border-radius: 16px !important;
    isolation: isolate;
}

.dm-body .promotional-banner-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .48));
    pointer-events: none;
}

.dm-body .promotional-banner-item__content {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 22px !important;
}

.dm-body .promotional-banner-item__title,
.dm-body .promotional-banner-item__content p {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.dm-body .promotional-banner-item__title {
    margin: 0;
    font-size: 19px !important;
    line-height: 1.6;
}

.dm-body .promotional-banner-item__content p {
    margin-top: 4px !important;
    font-size: 12px !important;
}

.dm-body .promotional-banner-item__content .btn {
    min-height: 34px;
    margin-top: 10px !important;
    padding: 5px 12px;
    border-radius: 8px !important;
    color: var(--sdc-text, #3f4064) !important;
    background: var(--sdc-surface, #fff) !important;
    font-size: 11px;
}

.dm-body .sdc-homepage__section--brandrow .brand {
    padding-block: 0 !important;
}

.dm-body .sdc-homepage__section--brandrow .brand-inner {
    padding: 20px !important;
    border: 1px solid var(--dm-line);
    border-radius: 16px !important;
    background: var(--sdc-surface, #fff) !important;
}

.dm-body .brand-slider {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dm-body .brand-slider .brand-item {
    min-width: 150px;
    min-height: 86px;
    display: grid !important;
    place-items: center;
    padding: 12px 18px;
    border-inline-end: 1px solid var(--dm-line);
    color: var(--sdc-text, #3f4064);
    background: var(--sdc-surface, #fff);
}

.dm-body .brand-slider .brand-item img {
    width: 112px;
    height: 54px;
    object-fit: contain;
}

.dm-body .sdc-homepage__section--tabproductgrid .container-lg,
.dm-body .sdc-homepage__section--countdown .container-lg {
    padding: 20px;
    border: 1px solid var(--dm-line);
    border-radius: 16px;
    background: var(--sdc-surface, #fff);
}

.dm-body .sdc-homepage__section--countdown .flash-sales {
    padding-top: 0 !important;
}

.dm-body .sdc-homepage__section--countdown .flash-sales > .container-lg {
    padding: 20px 16px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #ef4056, #e6123d);
}

.dm-body .sdc-homepage__section--countdown .section-heading h2,
.dm-body .sdc-homepage__section--countdown .section-heading a,
.dm-body .sdc-homepage__section--countdown .section-heading span {
    color: #fff !important;
}

.dm-body .flash-sales__slider {
    display: flex !important;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .65) transparent;
}

.dm-body .flash-sales__slider > div {
    width: 210px !important;
    min-width: 210px;
    flex: 0 0 210px !important;
    scroll-snap-align: start;
}

.dm-body .flash-sales__slider .flash-sales-item {
    min-height: 330px;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 14px 12px;
    border-radius: 0 !important;
    color: var(--dm-text);
    background: var(--sdc-surface, #fff);
}

.dm-body .flash-sales__slider > div:first-child .flash-sales-item {
    border-radius: 0 8px 8px 0 !important;
}

.dm-body .flash-sales__slider > div:last-child .flash-sales-item {
    border-radius: 8px 0 0 8px !important;
}

.dm-body .flash-sales__slider .flash-sales-item__bg {
    display: none !important;
}

.dm-body .flash-sales__slider .flash-sales-item__thumb {
    width: 100%;
    height: 156px;
    display: grid !important;
    place-items: center;
}

.dm-body .flash-sales__slider .flash-sales-item__thumb img {
    width: 156px;
    height: 156px;
    object-fit: contain;
}

.dm-body .flash-sales__slider .flash-sales-item__content {
    width: 100%;
    margin: 0 !important;
}

.dm-body .flash-sales__slider .flash-sales-item__content h3 {
    min-height: 48px;
    margin: 0 0 8px !important;
    overflow: hidden;
    color: var(--sdc-text, #23254e);
    font-size: 12px !important;
    line-height: 2;
    font-weight: 700;
}

.dm-body .flash-sales__slider .countdown-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
}

.dm-body .flash-sales__slider .countdown-list__item {
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    padding: 3px 1px;
    border-radius: 4px;
    color: #62666d !important;
    background: var(--sdc-surface-muted, #f0f0f1);
    font-size: 8px !important;
    line-height: 1.25;
    text-align: center;
}

.dm-body .flash-sales__slider .countdown-list__item span {
    color: var(--sdc-text, #3f4064);
    font-size: 11px;
    font-weight: 800;
}

.dm-body .flash-sales__slider .flash-sales-item__content .btn {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    margin-top: 10px !important;
    padding: 6px 10px;
    border: 1px solid var(--dm-red);
    border-radius: 8px !important;
    color: var(--dm-red) !important;
    background: var(--sdc-surface, #fff) !important;
    font-size: 11px;
}

/* Catalogue */
.dm-body .breadcrumb {
    padding-block: 14px !important;
    border-bottom: 1px solid #f0f0f1;
    background: var(--sdc-surface, #fff) !important;
}

.dm-body .breadcrumb h1 {
    font-size: 16px !important;
    font-weight: 700;
}

.dm-body .shop {
    padding-block: 30px 48px !important;
    background: var(--sdc-surface, #fff);
}

.dm-body .shop-sidebar {
    position: sticky;
    top: 16px;
}

.dm-body .shop-sidebar__box {
    margin-bottom: 14px !important;
    padding: 20px !important;
    border-color: var(--dm-line) !important;
    border-radius: 12px !important;
    background: var(--sdc-surface, #fff);
}

.dm-body .shop-sidebar__box h6 {
    color: var(--sdc-text, #3f4064);
    font-size: 16px !important;
}

.dm-body .shop .list-grid-wrapper {
    gap: 0 !important;
    border-top: 1px solid #f0f0f1;
    border-right: 1px solid #f0f0f1;
}

.dm-body .shop .list-grid-wrapper .sdc-product-card {
    margin: 0;
    padding: 18px !important;
    border-width: 0 0 1px 1px !important;
    border-color: #f0f0f1 !important;
    border-radius: 0 !important;
    background: var(--sdc-surface, #fff);
    box-shadow: none;
}

.dm-body .shop .list-grid-wrapper .sdc-product-card:hover {
    z-index: 2;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
}

.dm-body .shop .product-card__thumb {
    height: 210px;
    background: var(--sdc-surface, #fff) !important;
}

.dm-body .shop .product-card__thumb img {
    width: 100% !important;
    height: 100%;
    object-fit: contain;
}

.dm-body .shop .product-card__content .title {
    min-height: 52px;
    color: var(--sdc-text, #3f4064);
    font-size: 13px !important;
    line-height: 2;
}

.dm-body .shop .product-card__price {
    text-align: left;
}

.dm-body .shop .product-card__cart {
    border-radius: 8px !important;
}

/* Product details, account, cart and checkout */
.dm-body .product-details {
    padding-block: 32px 56px !important;
}

.dm-body .product-details__thumb-slider,
.dm-body .product-details__sidebar {
    border-color: var(--dm-line) !important;
    border-radius: 12px !important;
    background: var(--sdc-surface, #fff);
}

.dm-body .product-details__sidebar {
    background: #f7f7f8;
}

.dm-body .product-details__sidebar .btn,
.dm-body #productAddToCartForm button[type="submit"] {
    border-radius: 8px !important;
    background: var(--dm-red) !important;
}

.dm-body .cart,
.dm-body .checkout-address-stage {
    background: var(--sdc-surface, #fff);
}

.dm-body .cart-shell,
.dm-body .checkout-address-stage__container {
    padding-block: 32px 48px;
}

.dm-body :is(.cart-card, .cart-summary, .checkout-summary__card, .checkout-address-card, .account-card) {
    border-color: var(--dm-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.dm-body :is(.checkout-primary-button, .cart-primary-button) {
    border-radius: 8px !important;
    background: var(--dm-red) !important;
}

.dm-body .auth-page,
.dm-body .login-area,
.dm-body .account-page {
    background: var(--sdc-surface, #fff);
}

.dm-body :is(.auth-card, .login-card, .account-card) {
    border-color: var(--dm-line) !important;
    border-radius: 12px !important;
}

/* Footer */
.dm-body .footer {
    position: relative;
    margin-top: 34px;
    padding-block: 38px 24px !important;
    border-top: 1px solid var(--dm-line);
    background: var(--sdc-surface, #fff);
}

.dm-body .footer .body-bottom-bg {
    display: none;
}

.dm-body .footer-item-wrapper {
    gap: 24px;
}

.dm-body .footer-item__title {
    color: var(--sdc-text, #3f4064);
    font-size: 16px;
    font-weight: 800;
}

.dm-body .footer-menu a,
.dm-body .footer p {
    color: var(--sdc-muted, #81858b) !important;
    font-size: 13px;
}

.dm-body .bottom-footer {
    padding-block: 6px !important;
    border-top: 1px solid #f0f0f1;
    color: var(--sdc-muted, #81858b);
    background: var(--sdc-surface, #fff) !important;
    font-size: 11px;
}

@media (max-width: 1199px) {
    .dm-body .header-middle .header-inner {
        flex-wrap: nowrap;
    }

    .dm-body .header-middle .form-location-wrapper {
        display: flex !important;
        flex-basis: auto;
        max-width: none;
    }

    .dm-body .header-middle .storefront-search-category {
        display: flex !important;
    }

    .dm-body .sdc-service-row,
    .dm-body .sdc-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .dm-body {
        padding-bottom: 64px;
        background: var(--sdc-surface, #fff);
    }

    .dm-body .container-lg {
        width: min(100% - 24px, 100%);
    }

    .dm-superapp {
        height: 52px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        border-bottom: 1px solid #f0f0f1;
        background: var(--sdc-surface, #fff);
    }

    .dm-superapp a {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1px;
        color: var(--sdc-muted, #81858b);
        font-size: 9px;
        line-height: 1.3;
    }

    .dm-superapp a + a::before {
        content: "";
        position: absolute;
        inset-block: 9px;
        inset-inline-start: 0;
        width: 1px;
        background: var(--sdc-surface-muted, #f0f0f1);
    }

    .dm-superapp a.is-active {
        color: var(--dm-red);
    }

    .dm-superapp i {
        font-size: 20px;
    }

    .dm-body .header-middle {
        position: sticky;
        top: 0;
        box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    }

    .dm-body .header-middle .header-inner {
        min-height: 64px;
        gap: 10px;
        padding-block: 8px;
    }

    .dm-body .header-middle .logo {
        width: 42px;
        min-width: 42px;
    }

    .dm-body .header-middle .brand-logo-pair--responsive {
        width: 42px;
        height: 42px;
    }

    .dm-body .header-middle .brand-logo-pair__light,
    .dm-body .header-middle .brand-logo-pair__dark {
        display: none !important;
    }

    .dm-body .header-middle .brand-logo-pair__compact {
        width: 40px !important;
        height: 40px !important;
        display: block !important;
        object-fit: contain;
    }

    .dm-body .header-middle .search-form__input {
        height: 44px;
        font-size: 11px;
    }

    .dm-body > header.header {
        display: none !important;
    }

    .dm-mobile-address {
        min-height: 52px;
        display: grid;
        grid-template-columns: 28px 1fr 20px;
        align-items: center;
        gap: 8px;
        padding: 7px 14px;
        border-bottom: 1px solid #f0f0f1;
        color: var(--sdc-text, #3f4064) !important;
        background: var(--sdc-surface, #fff);
    }

    .dm-mobile-address > i:first-child {
        color: #f9a825;
        font-size: 22px;
    }

    .dm-mobile-address > i:last-child {
        color: var(--sdc-muted, #81858b);
        font-size: 16px;
    }

    .dm-mobile-address span {
        display: flex;
        flex-direction: column;
    }

    .dm-mobile-address strong {
        color: var(--sdc-text, #3f4064);
        font-size: 11px;
    }

    .dm-mobile-address small {
        color: #a1a3a8;
        font-size: 9px;
    }

    .dm-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        height: 64px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--dm-line);
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
        backdrop-filter: blur(12px);
    }

    .dm-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--sdc-muted, #81858b);
        font-size: 9px;
        font-weight: 600;
    }

    .dm-bottom-nav a.is-active {
        color: var(--sdc-text, #3f4064);
    }

    .dm-bottom-nav i {
        font-size: 22px;
    }

    .dm-body .sdc-homepage__section--slider .banner .container-lg,
    .dm-body .sdc-homepage__section--hero .delivery-section .container-lg {
        width: 100%;
    }

    .dm-body .sdc-homepage__section--slider .banner-item,
    .dm-body .sdc-homepage__section--hero .delivery {
        min-height: 250px;
        border-radius: 0 !important;
    }

    .dm-body .sdc-homepage__section--slider .banner-item__title,
    .dm-body .sdc-homepage__section--hero h2 {
        font-size: 25px !important;
    }

    .dm-body .sdc-service-row {
        display: flex;
        gap: 12px;
        padding-bottom: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dm-body .sdc-service-row::-webkit-scrollbar {
        display: none;
    }

    .dm-body .sdc-service-item {
        min-width: 76px;
        flex: 0 0 76px;
    }

    .dm-body .sdc-service-item__icon {
        width: 48px;
        height: 48px;
    }

    .dm-body .sdc-homepage__section--productgrid .product > .container-lg {
        width: calc(100% - 16px);
        padding: 12px 8px;
        border-radius: 12px;
    }

    .dm-body .sdc-homepage__section--productgrid .section-heading {
        margin-bottom: 10px;
        padding-inline: 5px;
    }

    .dm-body .sdc-homepage__section--productgrid .section-heading h2 {
        font-size: 16px;
    }

    .dm-body .sdc-homepage__section--productgrid .row > div {
        width: 160px !important;
        min-width: 160px;
        max-width: 160px;
        flex-basis: 160px !important;
    }

    .dm-body .sdc-homepage__section--productgrid .sdc-product-card {
        min-height: 306px;
        padding: 10px !important;
    }

    .dm-body .sdc-homepage__section--productgrid .product-card__thumb,
    .dm-body .sdc-homepage__section--productgrid .product-card__thumb img {
        width: 132px !important;
        height: 132px !important;
    }

    .dm-body .sdc-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px 8px;
    }

    .dm-body .sdc-category-grid .feature-item__thumb {
        width: 92px;
    }

    .dm-body .sdc-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dm-body .promotional-banner-item,
    .dm-body .promotional-banner-item__content {
        min-height: 190px;
    }

    .dm-body .shop {
        padding-block: 18px 36px !important;
    }

    .dm-body .shop > .container-lg > .row {
        margin-inline: 0 !important;
    }

    .dm-body .dm-main .row.g-4 {
        margin-inline: 0 !important;
    }

    .dm-body .shop-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1002;
        width: min(88vw, 360px);
        padding: 18px;
        overflow-y: auto;
        background: var(--sdc-surface, #fff);
    }

    .dm-body .footer {
        padding-bottom: 28px !important;
    }
}

@media (max-width: 575px) {
    .dm-body .container-lg {
        width: calc(100% - 20px);
    }

    .dm-body #header-topbar-text {
        min-height: 32px;
        padding-inline: 36px !important;
        font-size: 10px;
    }

    .dm-body .sdc-homepage__section + .sdc-homepage__section {
        margin-block-start: 12px !important;
    }

    .dm-body .sdc-homepage__section--slider .banner-item,
    .dm-body .sdc-homepage__section--hero .delivery {
        min-height: 210px;
        padding: 12px !important;
    }

    .dm-body .sdc-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dm-body .sdc-category-grid .feature-item__thumb {
        width: 82px;
    }

    .dm-body .sdc-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dm-body .promotional-banner-item,
    .dm-body .promotional-banner-item__content {
        min-height: 145px;
    }

    .dm-body .promotional-banner-item__content {
        padding: 12px !important;
    }

    .dm-body .promotional-banner-item__title {
        font-size: 14px !important;
    }

    .dm-body .promotional-banner-item__content p,
    .dm-body .promotional-banner-item__content .btn {
        display: none !important;
    }

    .dm-body .shop .product-card__thumb {
        height: 154px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dm-body *,
    .dm-body *::before,
    .dm-body *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
