/* Quick Commerce responsive redesign */
:root {
    --qc-primary: var(--color-primary, #2d6cdf);
    --qc-secondary: var(--color-secondary, #19a974);
    --qc-accent: var(--color-accent, #ffd54f);
    --qc-surface: #ffffff;
    --qc-bg-soft: #f4f8ff;
    --qc-text: #1f2937;
    --qc-muted: #6b7280;
    --qc-border: #e5e7eb;
    --qc-shadow: 0 14px 32px rgba(12, 58, 125, 0.12);
    --qc-radius-xl: 20px;
    --qc-radius-lg: 14px;
    --qc-radius-md: 10px;
}

body {
    background: linear-gradient(180deg, #f1f8ff 0%, #f9fbff 120px, #f7f9fc 100%);
    color: var(--qc-text);
}

/* Contrast corrections to avoid white-on-white collisions */
.qc-theme .block,
.qc-theme .products-view__options,
.qc-theme .products-view__pagination,
.qc-theme .widget,
.qc-theme .widget-filters,
.qc-theme .widget-products,
.qc-theme .card {
    color: #1f2937;
}

.qc-theme .widget-filters,
.qc-theme .products-view__options {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.qc-theme .widget__title,
.qc-theme .products-view__legend,
.qc-theme .products-view__pagination-legend,
.qc-theme .block-header__title,
.qc-theme .block-header__subtitle,
.qc-theme .form-control,
.qc-theme .input-text,
.qc-theme .select2-selection__rendered {
    color: #1f2937;
}

.qc-theme .product-card__name a,
.qc-theme .product-card__prices,
.qc-theme .product-card__price,
.qc-theme .product-card__meta,
.qc-theme .product-card__rating {
    color: #1f2937;
}

.site__header {
    background: transparent;
}

.header__topbar-classic {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header__navbar {
    background: linear-gradient(120deg, var(--qc-primary), #2383de 45%, #21a66d);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(13, 60, 130, 0.24);
}

.header__navbar .main-menu__link,
.header__navbar .phone__title,
.header__navbar .phone__number,
.departments__button-title {
    color: #080707;
}

.departments__button {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
}

.search__input,
.mobile-search__input {
    border-radius: 999px;
    border: 1px solid #d7e0ef;
    background: #fff;
}

.trust-marquee-section {
    background: linear-gradient(90deg, #1f6dd5, #2d8df8);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-marquee-section .marquee-content span {
    color: #fff;
    font-weight: 600;
}

.site__mobile-header {
    box-shadow: 0 8px 24px rgba(15, 59, 125, 0.2);
}

.mobile-header {
    background: linear-gradient(120deg, #1f6dd5, #2e90ff 45%, #19a974);
}

.mobile-currency-bar {
    background: rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.mobile-currency-bar .mcur-item {
    color: rgba(255, 255, 255, 0.92);
}

.mobile-currency-bar .mcur-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.mobile-header__logo img {
    background: #fff;
    border-radius: 10px;
    padding: 4px 8px;
}

.mobile-header .mobile-indicator__icon svg,
.mobile-header .mobile-header__menu-button svg,
.mobile-header .mobile-search__button svg {
    fill: #010101;
}

.mobile-header .mobile-indicator__counter {
    background: #ff4d4f;
}

.qc-home {
    padding-bottom: 18px;
}

.qc-home-hero {
    margin-top: 0px;
}

.qc-quick-meta {
    margin-top: 16px;
}

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

.qc-meta-card {
    background: var(--qc-surface);
    border: 1px solid #e6eefb;
    border-radius: var(--qc-radius-lg);
    box-shadow: var(--qc-shadow);
    padding: 14px;
}

.qc-meta-title {
    color: #0f3b74;
    font-weight: 700;
    font-size: 14px;
}

.qc-meta-sub {
    color: #475569;
    font-size: 12px;
    margin-top: 2px;
}

.qc-quick-categories {
    margin-top: 20px;
}

.qc-chip-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.qc-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--qc-border);
    background: #fff;
    box-shadow: 0 8px 18px rgba(18, 56, 112, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qc-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(18, 56, 112, 0.15);
}

.qc-chip img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 8px;
}

.qc-chip span {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.qc-banner-grid {
    margin-top: 20px;
}

.qc-banner-grid-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.qc-banner-grid-wrap .qc-banner-main,
.qc-banner-grid-wrap .qc-banner-side {
    border-radius: var(--qc-radius-xl);
    overflow: hidden;
    min-height: 180px;
}

.qc-banner-grid-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qc-banner-stack {
    display: grid;
    gap: 12px;
}

.qc-section {
    margin-top: 22px;
}

.qc-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.qc-section-head h2 {
    font-size: 24px;
    margin: 0;
    color: #133d73;
}

.qc-section-head a {
    border-radius: 999px;
    background: #e9f2ff;
    border: 1px solid #c7dfff;
    padding: 6px 14px;
    color: #1e40af;
    font-weight: 600;
    font-size: 13px;
}

.qc-product-grid.products-list--grid--4[data-layout=grid] .products-list__content {
    margin: -8px;
}

.qc-product-grid.products-list--grid--4[data-layout=grid] .products-list__item {
    margin: 8px;
    width: calc((100% - 64px) / 4);
}

.qc-product-carousel .owl-carousel .owl-stage {
    display: flex;
}

.qc-product-carousel .owl-carousel .owl-item {
    display: flex;
    height: auto;
}

.pcm-card {
    border: 1px solid #e4ebf6;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(14, 61, 128, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    background: #fff;
}

.pcm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(14, 61, 128, 0.18);
}

.pcm-img-wrap {
    background: #f4f7fb;
}

.pcm-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.pcm-body {
    padding: 10px;
}

.pcm-title {
    min-height: 40px;
}

.pcm-title a {
    font-size: 14px;
    line-height: 1.35;
}

.pcm-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.pcm-btn {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
}

.pcm-btn--cart {
    background: #e8f2ff;
    color: #1f5eb8;
}

.pcm-btn--buy {
    background: linear-gradient(90deg, #1f6dd5, #1cb077);
    color: #fff;
}

.pcm-price-now {
    color: #0f3b74;
    font-size: 18px;
    font-weight: 800;
}

.pcm-price-old {
    color: #94a3b8;
    font-size: 12px;
}

/* Enforce two-column listing on mobile across filter/wishlist/other pages */
@media (max-width: 575.98px) {
    .products-list--grid--4[data-layout=grid] .products-list__content {
        margin: -6px;
    }

    .products-list--grid--4[data-layout=grid] .products-list__item {
        margin: 6px;
        width: calc((100% - 24px) / 2) !important;
    }

    .products-list__item {
        display: flex;
    }

    .products-list__item .pcm-card,
    .products-list__item .product-card {
        width: 100%;
    }

    .pcm-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .pcm-badge {
        font-size: 9px;
        padding: 2px 5px;
    }

    .pcm-wishlist-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }

    .pcm-cat {
        font-size: 10px;
    }

    .pcm-title {
        min-height: 34px;
    }

    .pcm-title a {
        font-size: 12px;
    }

    .pcm-price-now {
        font-size: 14px;
    }

    .pcm-actions .pcm-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .qc-home .block-slideshow__item {
        min-height: 220px;
        padding: 26px 18px 30px;
        border-radius: 14px;
    }

    .qc-home .block-slideshow__item-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .qc-home .block-slideshow__item-details {
        display: block;
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
        color: #1f2937;
        background: rgba(255, 255, 255, 0.88);
        border-radius: 10px;
        padding: 5px 8px;
    }

    .qc-home .block-slideshow__item-button {
        font-size: 13px;
        padding: 7px 14px;
        margin-top: 14px;
        border-radius: 999px;
    }

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

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

    .qc-chip {
        padding: 8px;
    }

    .qc-chip img {
        width: 30px;
        height: 30px;
    }

    .qc-chip span {
        font-size: 11px;
    }

    .qc-banner-grid-wrap {
        grid-template-columns: 1fr;
    }

    .qc-section-head h2 {
        font-size: 19px;
    }

    .qc-section-head a {
        font-size: 11px;
        padding: 5px 10px;
    }

    .header__topbar-classic {
        display: none;
    }

    .site__mobile-header {
        position: sticky;
        top: 0;
        z-index: 1010;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .qc-quick-meta .qc-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qc-chip-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .qc-product-grid.products-list--grid--4[data-layout=grid] .products-list__item {
        width: calc((100% - 48px) / 3);
    }
}
