/**
 * Product listing — styled after Amazon.in
 * Ref: https://www.amazon.in/
 */
.ecom-shop {
    --amz-bg: #eaeded;
    --amz-white: #fff;
    --amz-text: #0f1111;
    --amz-muted: #565959;
    --amz-link: #007185;
    --amz-link-hover: #c7511f;
    --amz-orange: #ff9900;
    --amz-orange-dark: #e88b00;
    --amz-yellow: #ffd814;
    --amz-yellow-hover: #f7ca00;
    --amz-yellow-border: #fcd200;
    --amz-deal-red: #cc0c39;
    --amz-price-deal: #b12704;
    --amz-green: #007600;
    --amz-border: #d5d9d9;
    --amz-dark: #232f3e;
    --amz-font: "Amazon Ember", Arial, sans-serif;

    background: var(--amz-bg);
    padding: 88px 0 2.5rem;
    min-height: 60vh;
    font-family: var(--amz-font);
    width: 100%;
    box-sizing: border-box;
    --ecom-gutter: 8px;
}

@media (min-width: 768px) {
    .ecom-shop {
        --ecom-gutter: 12px;
    }
}

/* When hero carousel is present, sit it directly under the fixed header */
.ecom-shop--with-hero {
    padding-top: 0;
}

/* Full-width page container */
.ecom-fluid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: var(--ecom-gutter, 8px);
    padding-right: var(--ecom-gutter, 8px);
    box-sizing: border-box;
}

/* Layout row — sidebar + products side by side */
.ecom-layout-wrap {
    padding-top: 8px;
}

.ecom-layout-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    background: var(--amz-white);
    border: 1px solid var(--amz-border);
    width: 100%;
}

.ecom-layout-sidebar {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
}

.ecom-layout-content {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.ecom-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 14px 14px;
    background: var(--amz-white);
    box-sizing: border-box;
}

/* Breadcrumb — Amazon style */
.ecom-shop__breadcrumb {
    background: var(--amz-white);
    padding: 0.5rem 0;
    font-size: 12px;
    color: var(--amz-muted);
}

.ecom-shop__breadcrumb a {
    color: var(--amz-link);
    text-decoration: none;
}

.ecom-shop__breadcrumb a:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-shop__breadcrumb span {
    margin: 0 0.25rem;
    color: var(--amz-muted);
}

/* Amazon-style search strip */
.ecom-search-hero {
    background: var(--amz-dark);
    padding: 14px 0 18px;
}

.ecom-search-hero__inner {
    display: flex;
    gap: 0;
    max-width: 100%;
}

.ecom-search-hero__scope {
    background: #f3f3f3;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    font-size: 12px;
    color: var(--amz-muted);
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-right: 1px solid #cdcdcd;
}

.ecom-search-hero__form {
    flex: 1;
    display: flex;
}

.ecom-search-hero__input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
    outline: none;
}

.ecom-search-hero__btn {
    background: var(--amz-orange);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecom-search-hero__btn:hover {
    background: var(--amz-orange-dark);
}

.ecom-search-hero__btn svg {
    width: 22px;
    height: 22px;
    fill: var(--amz-dark);
}

/* Split hero — static background + product, rotating text */
.ecom-hero-split {
    margin-top: 88px;
    margin-bottom: 12px;
    padding: 0 var(--ecom-gutter, 8px);
    width: 100%;
    box-sizing: border-box;
}

.ecom-hero-split__shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f7f5 0%, #d4f0ec 45%, #c5ebe6 100%);
    background-size: cover;
    background-position: center;
    min-height: 300px;
    box-shadow: 0 8px 32px rgba(15, 17, 17, 0.08);
}

@media (min-width: 992px) {
    .ecom-hero-split__shell {
        min-height: 360px;
    }
}

.ecom-hero-split__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 80c8-12 20-18 32-12M70 30c10 8 14 22 8 34' stroke='%23ffffff' stroke-width='1.2' fill='none' opacity='.6'/%3E%3C/svg%3E");
    background-size: 140px 140px;
    pointer-events: none;
}

.ecom-hero-split__body {
    position: relative;
    z-index: 1;
    padding: 20px clamp(16px, 3vw, 36px) 28px;
}

.ecom-hero-split__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: center;
    min-height: 220px;
}

@media (min-width: 992px) {
    .ecom-hero-split__grid {
        grid-template-columns: 0.88fr 1.12fr;
        gap: 24px;
        min-height: 300px;
    }
}

.ecom-hero-split__text-col {
    position: relative;
    min-height: 180px;
}

.ecom-hero-split__text-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.ecom-hero-split__text-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .ecom-hero-split__text-slide,
    .ecom-hero-split__product-img,
    .ecom-hero-split__badge {
        transition: none;
    }
}

.ecom-hero-split__tagline {
    font-size: 15px;
    font-weight: 600;
    color: #067d62;
    margin: 0 0 10px;
}

.ecom-hero-split__title {
    font-size: clamp(1.85rem, 4.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    color: #0f2838;
    margin: 0 0 20px;
}

.ecom-hero-split__title-accent {
    color: #0d9488;
}

.ecom-hero-split__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.ecom-hero-split__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0d9488;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ecom-hero-split__cta:hover {
    background: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.ecom-hero-split__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ecom-hero-split__price-label {
    font-size: 14px;
    color: #565959;
}

.ecom-hero-split__price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cc0c39;
}

.ecom-hero-split__visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

@media (min-width: 992px) {
    .ecom-hero-split__visual-col {
        min-height: 280px;
        align-items: flex-end;
        padding-bottom: 4px;
    }
}

.ecom-hero-split__visual {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    .ecom-hero-split__visual {
        max-width: 620px;
        margin-left: auto;
    }
}

@media (min-width: 1200px) {
    .ecom-hero-split__visual {
        max-width: 720px;
    }
}

.ecom-hero-split__product-img {
    width: 100%;
    max-width: min(var(--ecom-hero-product-w, 720px), 100%);
    height: min(var(--ecom-hero-product-h, 500px), 320px);
    max-height: min(var(--ecom-hero-product-h, 500px), 320px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
    opacity: 1;
    transition: opacity 0.55s ease;
}

.ecom-hero-split__product-img.is-fading {
    opacity: 0;
}

@media (min-width: 992px) {
    .ecom-hero-split__product-img {
        height: min(var(--ecom-hero-product-h, 500px), 300px);
        max-height: min(var(--ecom-hero-product-h, 500px), 300px);
    }
}

@media (max-width: 767px) {
    .ecom-hero-split__product-img {
        height: min(var(--ecom-hero-product-h, 500px), 220px);
        max-height: 220px;
    }
}

.ecom-hero-split__badge {
    position: absolute;
    bottom: 6%;
    right: 2%;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 16px;
    border-radius: 50%;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
    opacity: 1;
    transition: opacity 0.55s ease;
}

.ecom-hero-split__badge.is-fading {
    opacity: 0;
}

.ecom-hero-split__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #565959;
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.ecom-hero-split__arrow:hover {
    background: #fff;
    color: #0f1111;
}

.ecom-hero-split__arrow--prev { left: 16px; }
.ecom-hero-split__arrow--next { right: 16px; }

.ecom-hero-split__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.ecom-hero-split__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(15, 40, 56, 0.3);
    cursor: pointer;
}

.ecom-hero-split__dot.is-active {
    background: #0d9488;
    transform: scale(1.15);
}

.ecom-hero-split__indicators {
    display: none;
}

.ecom-shop--with-hero .ecom-hero-split {
    margin-top: 0;
}

.ecom-shop--with-hero {
    padding-top: 0;
}

/* Legacy full-image carousel */
.ecom-hero-carousel {
    background: var(--amz-white);
    margin-top: 88px;
    margin-bottom: 8px;
    line-height: 0;
}

.ecom-hero-carousel .carousel {
    max-width: 100%;
}

.ecom-hero-carousel .carousel-inner {
    border-radius: 0;
    overflow: hidden;
    background: var(--amz-white);
    aspect-ratio: 1920 / 480;
    max-height: 480px;
}

.ecom-hero-carousel .carousel-item {
    aspect-ratio: 1920 / 480;
    width: 100%;
    max-height: 480px;
    height: 100%;
}

.ecom-hero-carousel__link {
    display: block;
    line-height: 0;
    height: 100%;
}

.ecom-hero-carousel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ecom-hero-carousel__control {
    width: 8%;
    opacity: 1;
}

.ecom-hero-carousel__control .carousel-control-prev-icon,
.ecom-hero-carousel__control .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    filter: invert(1) grayscale(100);
}

.ecom-hero-carousel .carousel-indicators {
    margin-bottom: 0.75rem;
}

.ecom-hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(15, 17, 17, 0.35);
    border: none;
}

.ecom-hero-carousel .carousel-indicators .active {
    background-color: var(--amz-orange);
}

/* Category scroller — single row, auto continuous scroll */
.ecom-cat-scroll {
    background: #fff;
    padding: 16px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef2f2;
}

.ecom-cat-scroll__marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.ecom-cat-scroll__marquee-inner {
    display: flex;
    width: max-content;
    animation: ecomCatMarqueeScroll var(--marquee-duration, 50s) linear infinite;
    will-change: transform;
}

.ecom-cat-scroll__marquee:hover .ecom-cat-scroll__marquee-inner {
    animation-play-state: paused;
}

@keyframes ecomCatMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ecom-cat-scroll__marquee-inner {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .ecom-cat-scroll__marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ecom-cat-scroll__track[aria-hidden="true"] {
        display: none;
    }
}

.ecom-cat-scroll__track {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
    padding: 8px 12px 16px;
}

.ecom-cat-scroll__item {
    flex: 0 0 auto;
    width: 108px;
    text-align: center;
    color: inherit;
    cursor: default;
    user-select: none;
}

.ecom-cat-scroll__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #eef9f7 0%, #dff3ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecom-cat-scroll__icon img {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.ecom-cat-scroll__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 768px) {
    .ecom-cat-scroll__item {
        width: 118px;
    }

    .ecom-cat-scroll__icon {
        width: 110px;
        height: 110px;
    }
}

/* Promo category cards — below marquee */
.ecom-promo-cards {
    padding: 8px 0 20px;
    background: #fff;
}

.ecom-promo-cards__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ecom-promo-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 168px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 40, 56, 0.06);
}

.ecom-promo-card--bg-0 {
    background: linear-gradient(135deg, #e8f4fc 0%, #dceefb 100%);
}

.ecom-promo-card--bg-1 {
    background: linear-gradient(135deg, #f5f7f8 0%, #eceff1 100%);
}

.ecom-promo-card--bg-2 {
    background: linear-gradient(135deg, #f0faf8 0%, #e2f5f1 100%);
}

.ecom-promo-card--bg-3 {
    background: linear-gradient(135deg, #f8f6f0 0%, #efebe3 100%);
}

.ecom-promo-card__content {
    flex: 1 1 55%;
    padding: 20px 12px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    min-width: 0;
}

.ecom-promo-card__title {
    font-size: 17px;
    font-weight: 800;
    color: #0f2838;
    line-height: 1.25;
    margin: 0 0 10px;
}

.ecom-promo-card__price {
    margin: 0 0 14px;
    line-height: 1.3;
}

.ecom-promo-card__price-label {
    display: block;
    font-size: 12px;
    color: #5c6b73;
    margin-bottom: 2px;
}

.ecom-promo-card__price-value {
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
}

.ecom-promo-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #0d9488;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ecom-promo-card__cta:hover {
    background: #0f766e;
    color: #fff;
    transform: translateY(-1px);
}

.ecom-promo-card__media {
    flex: 0 0 42%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    pointer-events: none;
    align-self: stretch;
}

.ecom-promo-card__media img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    margin: 0 auto;
}

@media (max-width: 1199px) {
    .ecom-promo-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ecom-promo-cards__grid {
        grid-template-columns: 1fr;
    }

    .ecom-promo-card {
        min-height: 150px;
    }

    .ecom-promo-card__title {
        font-size: 16px;
    }
}

/* Deal of the week */
.ecom-deals {
    padding: 0 0 24px;
    background: #fff;
}

.ecom-deals__shell {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px 20px 16px;
    background: #fff;
}

.ecom-deals__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecom-deals__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2838;
    margin: 0;
}

.ecom-deals__head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecom-deals__view-all {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.ecom-deals__view-all:hover {
    text-decoration: underline;
}

.ecom-deals__nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dde3e6;
    border-radius: 50%;
    background: #fff;
    color: #0f2838;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ecom-deals__nav:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.ecom-deals__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ecom-deals__track-wrap {
    overflow: hidden;
}

.ecom-deals__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.ecom-deals__track::-webkit-scrollbar {
    display: none;
}

.ecom-deals-card {
    flex: 0 0 200px;
    max-width: 200px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ecom-deals-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.2;
}

.ecom-deals-card__badge--sale {
    background: #e11d48;
}

.ecom-deals-card__badge--new {
    background: #f59e0b;
}

.ecom-deals-card__badge--best {
    background: #059669;
}

.ecom-deals-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 10px;
    text-decoration: none;
}

.ecom-deals-card__media img {
    max-height: 110px;
    max-width: 100%;
    object-fit: contain;
}

.ecom-deals-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.ecom-deals-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.ecom-deals-card__title:hover {
    color: #2563eb;
}

.ecom-deals-card__rating {
    font-size: 12px;
    color: #5c6b73;
    margin: 0;
}

.ecom-deals-card__star {
    color: #f59e0b;
}

.ecom-deals-card__reviews {
    color: #8a9499;
}

.ecom-deals-card__sold {
    font-size: 11px;
    color: #5c6b73;
}

.ecom-deals-card__sold-bar {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: #eef2f4;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
}

.ecom-deals-card__sold-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sold-pct, 50%);
    background: #0f2838;
    border-radius: 4px;
}

.ecom-deals-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.ecom-deals-card__price-old {
    font-size: 12px;
    color: #8a9499;
    text-decoration: line-through;
}

.ecom-deals-card__price-now {
    font-size: 15px;
    font-weight: 800;
    color: #0f2838;
}

.ecom-deals-card__price-now small {
    font-size: 11px;
    font-weight: 500;
    color: #8a9499;
}

.ecom-deals-card__cart-form {
    margin: auto 0 0;
    padding-top: 8px;
}

.ecom-deals-card__cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dde3e6;
    border-radius: 10px;
    background: #f5f7f8;
    color: #0f2838;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ecom-deals-card__cart:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #93c5fd;
}

.ecom-deals-card__cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .ecom-deals-card {
        flex: 0 0 170px;
        max-width: 170px;
    }
}

/* Recommended for you + coupon strip */
.ecom-recommended-zone {
    padding: 0 0 24px;
    background: #fff;
}

.ecom-coupon-strip {
    margin-bottom: 16px;
    border: 2px dashed #2563eb;
    border-radius: 12px;
    background: #eff6ff;
    padding: 14px 18px;
}

.ecom-coupon-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ecom-coupon-strip__left,
.ecom-coupon-strip__right {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
    flex: 1 1 200px;
}

.ecom-coupon-strip__left u,
.ecom-coupon-strip__right strong {
    text-decoration-color: #1d4ed8;
}

.ecom-coupon-strip__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s;
}

.ecom-coupon-strip__code:hover {
    background: #1d4ed8;
}

.ecom-coupon-strip__code.is-copied {
    background: #059669;
}

.ecom-recommended__shell {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.ecom-recommended__body {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ecom-recommended__promo-slot {
    flex: 0 0 260px;
    max-width: 260px;
}

.ecom-recommended__promo {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    border-radius: 14px;
    background: linear-gradient(165deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
    text-decoration: none;
    overflow: hidden;
    color: #fff;
}

.ecom-recommended__promo--image-only {
    padding: 0;
    line-height: 0;
}

.ecom-recommended__promo--image-only {
    background: transparent;
}

.ecom-recommended__promo--image-only img {
    width: 100%;
    height: auto;
    min-height: 380px;
    object-fit: contain;
    object-position: center top;
    display: block;
    border-radius: 14px;
}

.ecom-recommended__promo-content {
    padding: 22px 18px 10px;
}

.ecom-recommended__promo-title {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.ecom-recommended__promo-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ecom-recommended__promo-price {
    font-size: 22px;
    font-weight: 800;
}

.ecom-recommended__promo-off {
    font-size: 11px;
    font-weight: 700;
    background: #14b8a6;
    padding: 4px 8px;
    border-radius: 6px;
}

.ecom-recommended__promo-media {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 0 12px 16px;
}

.ecom-recommended__promo-media img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.ecom-recommended__main {
    flex: 1;
    min-width: 0;
}

.ecom-recommended__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ecom-recommended__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2838;
    margin: 0;
}

.ecom-recommended__head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecom-recommended__view-all {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.ecom-recommended__nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dde3e6;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #0f2838;
}

.ecom-recommended__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ecom-recommended__track-wrap {
    overflow: hidden;
}

.ecom-recommended__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.ecom-recommended__track::-webkit-scrollbar {
    display: none;
}

.ecom-recommended-card {
    flex: 0 0 188px;
    max-width: 188px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ecom-recommended-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.ecom-recommended-card__badge--sale {
    background: #e11d48;
}

.ecom-recommended-card__badge--sold {
    background: #059669;
}

.ecom-recommended-card__badge--new {
    background: #f59e0b;
}

.ecom-recommended-card__badge--best {
    background: #7c3aed;
}

.ecom-recommended-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    margin-bottom: 10px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
}

.ecom-recommended-card__media img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

.ecom-recommended-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ecom-recommended-card__off {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}

.ecom-recommended-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecom-recommended-card__rating {
    margin: 0;
    font-size: 11px;
    color: #5c6b73;
}

.ecom-recommended-card__stars {
    color: #f59e0b;
    font-size: 10px;
    letter-spacing: -1px;
}

.ecom-recommended-card__fulfilled {
    font-size: 10px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 999px;
    padding: 3px 8px;
    width: fit-content;
}

.ecom-recommended-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.ecom-recommended-card__price-old {
    font-size: 12px;
    color: #8a9499;
    text-decoration: line-through;
}

.ecom-recommended-card__price-now {
    font-size: 15px;
    font-weight: 800;
    color: #0f2838;
}

.ecom-recommended-card__price-now small {
    font-size: 11px;
    font-weight: 500;
    color: #8a9499;
}

@media (max-width: 991px) {
    .ecom-recommended__body {
        flex-direction: column;
    }

    .ecom-recommended__promo-slot {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .ecom-coupon-strip__inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .ecom-recommended-card {
        flex: 0 0 165px;
        max-width: 165px;
    }
}

/* Featured products — 2×2 grid + promo banner */
.ecom-feat-block {
    padding: 0 0 24px;
    background: #fff;
}

.ecom-feat-block__shell {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.ecom-feat-block__layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.ecom-feat-block__main {
    flex: 1;
    min-width: 0;
}

.ecom-feat-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecom-feat-block__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2838;
    margin: 0;
}

.ecom-feat-block__head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecom-feat-block__view-all {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.ecom-feat-block__view-all:hover {
    text-decoration: underline;
}

.ecom-feat-block__nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dde3e6;
    border-radius: 50%;
    background: #fff;
    color: #0f2838;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ecom-feat-block__nav:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.ecom-feat-block__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ecom-feat-block__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.ecom-feat-block-card {
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ecom-feat-block-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.ecom-feat-block-card__badge--sale {
    background: #e11d48;
}

.ecom-feat-block-card__badge--best {
    background: #7c3aed;
}

.ecom-feat-block-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin-bottom: 8px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
}

.ecom-feat-block-card__media img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.ecom-feat-block-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.ecom-feat-block-card__title {
    font-size: 12px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecom-feat-block-card__title:hover {
    color: #2563eb;
}

.ecom-feat-block-card__rating {
    margin: 0;
    font-size: 11px;
    color: #5c6b73;
}

.ecom-feat-block-card__star {
    color: #f59e0b;
}

.ecom-feat-block-card__reviews {
    color: #8a9499;
}

.ecom-feat-block-card__seller {
    margin: 0;
    font-size: 11px;
    color: #8a9499;
}

.ecom-feat-block-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.ecom-feat-block-card__price-old {
    font-size: 11px;
    color: #8a9499;
    text-decoration: line-through;
}

.ecom-feat-block-card__price-now {
    font-size: 14px;
    font-weight: 800;
    color: #0f2838;
}

.ecom-feat-block-card__price-now small {
    font-size: 10px;
    font-weight: 500;
    color: #8a9499;
}

.ecom-feat-block-card__cart-form {
    margin-top: auto;
    padding-top: 6px;
}

.ecom-feat-block-card__cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #dde3e6;
    border-radius: 10px;
    background: #f5f7f8;
    color: #0f2838;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.ecom-feat-block-card__cart:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #93c5fd;
}

.ecom-feat-block-card__cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ecom-feat-block__promo-wrap {
    flex: 0 0 280px;
    max-width: 280px;
}

.ecom-feat-block__promo {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    border-radius: 14px;
    background: linear-gradient(165deg, #312e81 0%, #1e40af 45%, #059669 100%);
    text-decoration: none;
    overflow: hidden;
    color: #fff;
    position: relative;
}

.ecom-feat-block__promo--image-only {
    padding: 0;
    line-height: 0;
    min-height: 420px;
}

.ecom-feat-block__promo--image-only img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.ecom-feat-block__promo-content {
    padding: 24px 20px 12px;
    position: relative;
    z-index: 2;
}

.ecom-feat-block__promo-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.ecom-feat-block__promo-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ecom-feat-block__promo-price {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ecom-feat-block__promo-off {
    font-size: 12px;
    font-weight: 700;
    background: #14b8a6;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
}

.ecom-feat-block__promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f2838;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
}

.ecom-feat-block__promo-media {
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 12px 16px;
    min-height: 180px;
}

.ecom-feat-block__promo-media img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .ecom-feat-block__layout {
        flex-direction: column;
    }

    .ecom-feat-block__promo-wrap {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .ecom-feat-block__promo {
        min-height: 320px;
    }
}

@media (max-width: 575px) {
    .ecom-feat-block__grid {
        grid-template-columns: 1fr;
    }
}

/* Trending products */
.ecom-trending {
    padding: 0 0 24px;
    background: #fff;
}

.ecom-trending__shell {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px 20px 16px;
    background: #fff;
}

.ecom-trending__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecom-trending__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2838;
    margin: 0;
    flex: 0 0 auto;
}

.ecom-trending__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.ecom-trending__filter {
    border: 1px solid #dde3e6;
    background: #fff;
    color: #0f2838;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.ecom-trending__filter:hover {
    border-color: #93c5fd;
    color: #2563eb;
}

.ecom-trending__filter.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ecom-trending__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f2838 100%);
    text-decoration: none;
    padding: 24px 28px;
    overflow: hidden;
}

.ecom-trending__banner--image-only {
    padding: 0;
    line-height: 0;
    background: #0f172a;
}

.ecom-trending__banner--image-only img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.ecom-trending__banner-text {
    text-align: center;
}

.ecom-trending__banner-title {
    margin: 0 0 6px;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.ecom-trending__banner-price {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #fbbf24;
}

.ecom-trending__track-wrap {
    overflow: hidden;
}

.ecom-trending__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}

.ecom-trending__track::-webkit-scrollbar {
    display: none;
}

.ecom-trending-card {
    flex: 0 0 188px;
    max-width: 188px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ecom-trending-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
}

.ecom-trending-card__badge--new {
    background: #f59e0b;
}

.ecom-trending-card__badge--sold {
    background: #059669;
}

.ecom-trending-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    margin-bottom: 10px;
    background: #f3f4f6;
    border-radius: 8px;
    text-decoration: none;
}

.ecom-trending-card__media img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

.ecom-trending-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.ecom-trending-card__off {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}

.ecom-trending-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ecom-trending-card__title:hover {
    color: #2563eb;
}

.ecom-trending-card__rating {
    margin: 0;
    font-size: 11px;
    color: #5c6b73;
}

.ecom-trending-card__stars {
    color: #f59e0b;
    font-size: 10px;
    letter-spacing: -1px;
}

.ecom-trending-card__reviews {
    color: #8a9499;
}

.ecom-trending-card__fulfilled {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 999px;
    padding: 3px 8px;
    width: fit-content;
}

.ecom-trending-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.ecom-trending-card__price-old {
    font-size: 12px;
    color: #8a9499;
    text-decoration: line-through;
}

.ecom-trending-card__price-now {
    font-size: 15px;
    font-weight: 800;
    color: #0f2838;
}

.ecom-trending-card__price-now small {
    font-size: 11px;
    font-weight: 500;
    color: #8a9499;
}

@media (max-width: 767px) {
    .ecom-trending__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ecom-trending__filters {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .ecom-trending__filters::-webkit-scrollbar {
        display: none;
    }

    .ecom-trending__filter {
        flex: 0 0 auto;
    }

    .ecom-trending-card {
        flex: 0 0 165px;
        max-width: 165px;
    }
}

/* Top selling products */
.ecom-top-selling {
    padding: 0 0 24px;
    background: #fff;
}

.ecom-top-selling__shell {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px 20px 16px;
    background: #fff;
}

.ecom-top-selling__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ecom-top-selling__title {
    font-size: 22px;
    font-weight: 800;
    color: #0f2838;
    margin: 0;
}

.ecom-top-selling__head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecom-top-selling__view-all {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.ecom-top-selling__view-all:hover {
    text-decoration: underline;
}

.ecom-top-selling__nav {
    width: 36px;
    height: 36px;
    border: 1px solid #dde3e6;
    border-radius: 50%;
    background: #fff;
    color: #0f2838;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ecom-top-selling__nav:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.ecom-top-selling__nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.ecom-top-selling__body {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

/* Sticky left promo — stays fixed while product cards scroll horizontally & on page scroll */
.ecom-top-selling__feature-slot {
    flex: 0 0 280px;
    max-width: 280px;
    position: sticky;
    top: 96px;
    align-self: flex-start;
    z-index: 5;
}

.ecom-top-selling__track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ecom-top-selling__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    align-items: stretch;
}

.ecom-top-selling__track::-webkit-scrollbar {
    display: none;
}

.ecom-top-selling__feature {
    width: 100%;
}

.ecom-top-selling__feature-inner {
    height: 100%;
    min-height: 320px;
    background: linear-gradient(160deg, #c7d7f5 0%, #a8c4f0 100%);
    border-radius: 12px;
    padding: 22px 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ecom-top-selling__feature-title {
    font-size: 17px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ecom-top-selling__feature-off {
    font-size: 20px;
    font-weight: 800;
    color: #1e40af;
    margin: 0 0 16px;
}

.ecom-top-selling__feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.12);
    margin-bottom: 12px;
}

.ecom-top-selling__feature-btn:hover {
    background: #f8fafc;
}

.ecom-top-selling__feature-media {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.ecom-top-selling__feature-media img {
    max-height: 130px;
    max-width: 100%;
    object-fit: contain;
}

/* Admin upload: full banner image only (no title / CTA overlay) */
.ecom-top-selling__feature--image-only .ecom-top-selling__feature-image-only {
    display: block;
    height: 100%;
    min-height: 340px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
    box-shadow: 0 4px 16px rgba(15, 40, 56, 0.08);
}

.ecom-top-selling__feature--image-only .ecom-top-selling__feature-image-only img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.ecom-top-selling-card {
    flex: 0 0 200px;
    max-width: 200px;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ecom-top-selling-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    line-height: 1.2;
}

.ecom-top-selling-card__badge--sale {
    background: #e11d48;
}

.ecom-top-selling-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    margin-bottom: 8px;
    text-decoration: none;
}

.ecom-top-selling-card__media img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.ecom-top-selling-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.ecom-top-selling-card__rating {
    font-size: 12px;
    color: #5c6b73;
    margin: 0;
    order: 1;
}

.ecom-top-selling-card__star {
    color: #f59e0b;
}

.ecom-top-selling-card__reviews {
    color: #8a9499;
}

.ecom-top-selling-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #0f2838;
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    order: 2;
}

.ecom-top-selling-card__title:hover {
    color: #2563eb;
}

.ecom-top-selling-card__seller {
    font-size: 11px;
    color: #5c6b73;
    margin: 0;
    order: 3;
}

.ecom-top-selling-card__seller-icon {
    color: #2563eb;
    margin-right: 2px;
}

.ecom-top-selling-card__sold {
    font-size: 11px;
    color: #5c6b73;
    order: 4;
}

.ecom-top-selling-card__sold-bar {
    display: block;
    height: 4px;
    border-radius: 4px;
    background: #eef2f4;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
}

.ecom-top-selling-card__sold-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sold-pct, 50%);
    background: #0f2838;
    border-radius: 4px;
}

.ecom-top-selling-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    order: 5;
}

.ecom-top-selling-card__price-old {
    font-size: 12px;
    color: #8a9499;
    text-decoration: line-through;
}

.ecom-top-selling-card__price-now {
    font-size: 15px;
    font-weight: 800;
    color: #0f2838;
}

.ecom-top-selling-card__price-now small {
    font-size: 11px;
    font-weight: 500;
    color: #8a9499;
}

.ecom-top-selling-card__cart-form {
    margin: auto 0 0;
    padding-top: 8px;
    order: 6;
}

.ecom-top-selling-card__cart {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #dde3e6;
    border-radius: 10px;
    background: #f5f7f8;
    color: #0f2838;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ecom-top-selling-card__cart:hover:not(:disabled) {
    background: #eef2ff;
    border-color: #93c5fd;
}

.ecom-top-selling-card__cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .ecom-top-selling__body {
        flex-direction: column;
    }

    .ecom-top-selling__feature-slot {
        flex: none;
        max-width: 100%;
        width: 100%;
        position: relative;
        top: auto;
    }

    .ecom-top-selling-card {
        flex: 0 0 170px;
        max-width: 170px;
    }
}

/* Today's Deals / Featured — legacy, kept for reference */
.ecom-featured {
    background: var(--amz-white);
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--amz-border);
}

.ecom-featured__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 0 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ecom-featured__title {
    font-size: 21px;
    font-weight: 700;
    color: var(--amz-text);
    margin: 0;
    line-height: 1.2;
}

.ecom-featured__see-all {
    font-size: 13px;
    color: var(--amz-link);
    text-decoration: none;
}

.ecom-featured__see-all:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-featured__scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 12px 0 16px;
    scroll-snap-type: x mandatory;
}

.ecom-featured-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    padding: 0 10px;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid #f0f0f0;
}

.ecom-featured-card:last-child {
    border-right: none;
}

.ecom-featured-card:hover .ecom-featured-card__name {
    color: var(--amz-link-hover);
}

.ecom-featured-card__img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ecom-featured-card__img img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.ecom-featured-card__deal {
    font-size: 11px;
    font-weight: 700;
    color: var(--amz-deal-red);
    margin: 0 0 4px;
}

.ecom-featured-card__name {
    font-size: 13px;
    line-height: 1.35;
    color: var(--amz-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 6px;
}

.ecom-featured-card__price {
    font-size: 18px;
    font-weight: 400;
    color: var(--amz-text);
    margin: 0;
}

.ecom-featured-card__price sup {
    font-size: 11px;
    top: -0.4em;
}

/* Layout */
@media (max-width: 991px) {
    .ecom-layout-row {
        flex-wrap: wrap;
    }

    .ecom-layout-sidebar {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .ecom-layout-content {
        width: 100%;
    }
}

/* Legacy grid alias — keep for compatibility */
.ecom-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    background: var(--amz-white);
    border: 1px solid var(--amz-border);
}

/* Left filters — Amazon refine panel */
.ecom-filters {
    background: var(--amz-white);
    border-right: 1px solid var(--amz-border);
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    border-radius: 0;
}

.ecom-filters__head {
    padding: 12px 14px 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--amz-text);
    border-bottom: 1px solid #e7e7e7;
}

.ecom-filters__head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ecom-filters__hide-btn {
    background: none;
    border: none;
    color: var(--amz-link);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
}

.ecom-filters__hide-btn:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .ecom-filters__hide-btn {
        display: none;
    }
}

.ecom-filter-show-btn {
    display: none;
    background: var(--amz-white);
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

@media (min-width: 992px) {
    .ecom-filter-show-btn:not([hidden]) {
        display: inline-block;
    }

    .ecom-layout-row.filters-hidden .ecom-layout-sidebar {
        display: none;
    }

    .ecom-layout-row.filters-hidden .ecom-layout-content {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

.ecom-filters__clear {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--amz-link);
    text-decoration: none;
    margin-top: 4px;
}

.ecom-filters__clear:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-filter-block {
    padding: 0 14px;
    border-bottom: 1px solid #e7e7e7;
}

.ecom-filter-block:last-child {
    padding-bottom: 10px;
}

.ecom-filter-toggle-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--amz-text);
    text-align: left;
}

.ecom-filter-toggle-section:hover {
    color: var(--amz-link-hover);
}

.ecom-filter-chevron {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--amz-muted);
    border-bottom: 2px solid var(--amz-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}

.ecom-filter-block.is-open .ecom-filter-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.ecom-filter-panel {
    display: none;
    padding-bottom: 14px;
}

.ecom-filter-block.is-open .ecom-filter-panel {
    display: block;
}

.ecom-filter-block__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--amz-text);
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

.ecom-search-row {
    display: flex;
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    overflow: hidden;
}

.ecom-search-row input {
    flex: 1;
    border: none;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
}

.ecom-search-row button {
    background: var(--amz-yellow);
    border: none;
    border-left: 1px solid var(--amz-yellow-border);
    padding: 0 12px;
    font-size: 13px;
    cursor: pointer;
}

.ecom-search-row button:hover {
    background: var(--amz-yellow-hover);
}

.ecom-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.ecom-filter-link {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    text-decoration: none;
    color: var(--amz-text);
    font-size: 13px;
    line-height: 1.4;
}

.ecom-filter-link:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-filter-link.is-active {
    font-weight: 700;
    color: var(--amz-link-hover);
}

.ecom-filter-link .count {
    color: var(--amz-muted);
    font-size: 12px;
}

.ecom-filter-link .brand-tag {
    display: block;
    font-size: 11px;
    color: var(--amz-muted);
}

.ecom-price-row {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.ecom-price-row input {
    flex: 1;
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    box-shadow: 0 1px 2px rgba(15, 17, 17, 0.15) inset;
}

.ecom-btn-apply {
    width: 100%;
    background: var(--amz-yellow);
    border: 1px solid var(--amz-yellow-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--amz-text);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

.ecom-btn-apply:hover {
    background: var(--amz-yellow-hover);
}

.ecom-select {
    width: 100%;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    background: #f0f2f2;
    box-shadow: 0 1px 2px rgba(15, 17, 17, 0.15) inset;
}

/* Results area */
.ecom-toolbar {
    padding: 12px 0;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e7e7e7;
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.ecom-toolbar__title {
    font-size: 15px;
    font-weight: 400;
    color: var(--amz-text);
    margin: 0;
}

.ecom-toolbar__meta {
    font-size: 14px;
    color: var(--amz-muted);
    margin: 0;
}

.ecom-toolbar__meta strong {
    color: var(--amz-text);
}

.ecom-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecom-toolbar__sort-label {
    font-size: 14px;
    color: var(--amz-text);
}

.ecom-toolbar__sort {
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
    background: #f0f2f2;
    box-shadow: 0 1px 2px rgba(15, 17, 17, 0.15) inset;
    min-width: 200px;
}

.ecom-filter-toggle {
    display: none;
    background: var(--amz-white);
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

/* Product grid — equal columns, full width */
.ecom-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e7e7e7;
}

@media (min-width: 640px) {
    .ecom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ecom-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ecom-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .ecom-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.ecom-product-card {
    background: var(--amz-white);
    border: none;
    border-right: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
    border-radius: 0;
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    transition: none;
    height: 100%;
}

.ecom-product-card:hover {
    box-shadow: none;
    z-index: 1;
    outline: 1px solid var(--amz-border);
    outline-offset: -1px;
}

.ecom-product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    width: 100%;
    height: var(--ecom-listing-img-h, 220px);
    min-height: var(--ecom-listing-img-h, 220px);
    margin-bottom: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.ecom-product-card__media img {
    width: 100%;
    max-width: var(--ecom-listing-img-w, 220px);
    height: 100%;
    max-height: var(--ecom-listing-img-h, 220px);
    object-fit: contain;
}

.ecom-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.ecom-badge--off {
    top: 0;
    left: 0;
    color: var(--amz-deal-red);
    background: transparent;
    padding: 0;
}

.ecom-badge--deal {
    display: block;
    position: static;
    color: var(--amz-deal-red);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ecom-product-card__body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ecom-product-card__title {
    font-size: 14px;
    font-weight: 400;
    color: var(--amz-link);
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    min-height: auto;
}

.ecom-product-card__title:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-product-card__snippet {
    display: none;
}

.ecom-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 13px;
}

.ecom-stars {
    display: inline-flex;
    gap: 1px;
}

.ecom-star {
    width: 14px;
    height: 14px;
    background: var(--amz-orange);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ecom-star--empty {
    background: #e0e0e0;
}

.ecom-rating-count {
    color: var(--amz-link);
    font-size: 13px;
}

.ecom-rating-count:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

.ecom-product-card__price-block {
    margin-bottom: 8px;
    flex: 1;
}

.ecom-price-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
}

.ecom-price-current {
    font-size: 21px;
    font-weight: 400;
    color: var(--amz-text);
    line-height: 1.2;
}

.ecom-price-current--deal {
    color: var(--amz-price-deal);
}

.ecom-price-mrp-wrap {
    font-size: 13px;
    color: var(--amz-muted);
}

.ecom-price-mrp-wrap .label {
    margin-right: 2px;
}

.ecom-price-mrp {
    text-decoration: line-through;
}

.ecom-price-off {
    font-size: 13px;
    color: var(--amz-price-deal);
    display: block;
    margin-top: 2px;
}

.ecom-delivery-tag {
    font-size: 12px;
    color: var(--amz-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.ecom-delivery-tag b {
    color: var(--amz-green);
    font-weight: 700;
}

.ecom-stock--out {
    color: var(--amz-price-deal);
    font-size: 12px;
    font-weight: 700;
}

.ecom-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.ecom-btn-cart {
    width: 100%;
    background: var(--amz-yellow);
    border: 1px solid var(--amz-yellow-border);
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--amz-text);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

.ecom-btn-cart:hover:not(:disabled) {
    background: var(--amz-yellow-hover);
}

.ecom-btn-cart:disabled {
    background: #e9e9e9;
    border-color: #ddd;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.ecom-btn-buy {
    width: 100%;
    background: var(--amz-orange);
    border: 1px solid var(--amz-orange-dark);
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--amz-text);
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

.ecom-btn-buy:hover {
    background: var(--amz-orange-dark);
    color: var(--amz-text);
}

.ecom-empty {
    padding: 48px 20px;
    text-align: center;
}

.ecom-pagination {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e7e7e7;
    display: flex;
    justify-content: center;
}

.ecom-pagination .page-link {
    color: var(--amz-text);
    border-color: var(--amz-border);
    font-size: 13px;
}

.ecom-pagination .page-item.active .page-link {
    background: var(--amz-orange);
    border-color: var(--amz-orange);
    color: var(--amz-text);
}

@media (max-width: 991px) {
    .ecom-layout-row {
        flex-wrap: wrap;
    }

    .ecom-layout-sidebar {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .ecom-filter-toggle {
        display: inline-block;
    }

    .ecom-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 88vw);
        height: 100vh;
        z-index: 1050;
        max-height: none;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
    }

    .ecom-filters.is-open {
        display: block;
    }

    .ecom-filters-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .ecom-filters-overlay.is-open {
        display: block;
    }

    .ecom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .ecom-grid {
        grid-template-columns: 1fr;
    }

    .ecom-toolbar__sort {
        min-width: 140px;
    }

    .ecom-product-card__media {
        min-height: 180px;
    }
}
