/* Flash deals: urgent, calm and high contrast. */
.ceed-theme .ceed-flash-deals {
    color: var(--ceed-white);
    background: var(--ceed-primary);
}
.ceed-theme .ceed-flash-deals .flash-deals-wrapper { padding-block: var(--ceed-space-8); }
.ceed-theme .ceed-flash-deals .flash-deal-view-all-web { margin-inline: 0; }
.ceed-theme .ceed-flash-deals .flash-deal-text h2,
.ceed-theme .ceed-flash-deals .flashdeal-responsive h2,
.ceed-theme .ceed-flash-deals h3,
.ceed-theme .ceed-flash-deals h5 { color: var(--ceed-white) !important; }
.ceed-theme .ceed-flash-deals .view-all-btn-text { color: var(--ceed-white); }
.ceed-theme .ceed-flash-deals .view-all-btn-text:hover { color: var(--ceed-primary-soft); }
.ceed-theme .ceed-flash-deals .countdown-background {
    padding: var(--ceed-space-4) !important;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: var(--ceed-radius-md);
}
.ceed-theme .ceed-flash-deals .flash-deal-countdown { gap: var(--ceed-space-2); }
.ceed-theme .ceed-flash-deals .cz-countdown-days,
.ceed-theme .ceed-flash-deals .cz-countdown-hours,
.ceed-theme .ceed-flash-deals .cz-countdown-minutes,
.ceed-theme .ceed-flash-deals .cz-countdown-seconds {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    min-width: 52px;
    font-variant-numeric: tabular-nums;
}
.ceed-theme .ceed-flash-deals .flash-deal-countdown > span > .cz-countdown-value {
    min-width: 2ch;
    color: var(--ceed-white);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
.ceed-theme .ceed-flash-deals .cz-countdown-text { margin-top: var(--ceed-space-1); color: var(--ceed-primary-soft); font-size: 11px !important; line-height: 16px; }
.ceed-theme .ceed-flash-deals .progress { height: 4px; margin-top: var(--ceed-space-4); overflow: hidden; background: rgb(255 255 255 / 18%); border-radius: var(--ceed-radius-pill); }
.ceed-theme .ceed-flash-deals .flash-deal-progress-bar { background: var(--ceed-accent); }
.ceed-theme .ceed-flash-deals .ceed-product-card { background: var(--ceed-white); }
.ceed-theme .ceed-flash-deals .owl-nav button { color: var(--ceed-primary) !important; background: var(--ceed-white) !important; }

/* Deal of the day and latest products form one editorial block. */
.ceed-theme .ceed-daily-discovery { background: var(--ceed-bg); }
.ceed-theme .ceed-deal-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: var(--ceed-space-6);
    overflow: hidden;
    background: var(--ceed-primary-soft) !important;
    border: 1px solid var(--ceed-border);
    border-radius: var(--ceed-radius-lg);
}
.ceed-theme .ceed-deal-feature .recommended-product-card { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); align-items: center; gap: var(--ceed-space-6); }
.ceed-theme .ceed-deal-feature .recommended-product-card > div { margin: 0 !important; padding: 0 !important; }
.ceed-theme .ceed-deal-feature__image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--ceed-surface); border-radius: var(--ceed-radius-md); }
.ceed-theme .ceed-deal-feature h2 { color: var(--ceed-primary) !important; font: var(--ceed-font-h3); }
.ceed-theme .ceed-deal-feature h3 { display: -webkit-box; overflow: hidden; color: var(--ceed-text); font: var(--ceed-font-h3); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ceed-theme .ceed-deal-feature h4 .text-accent { color: var(--ceed-primary) !important; font-size: 22px !important; }
.ceed-theme .ceed-deal-feature .btn--primary { min-height: 44px; color: var(--ceed-white); background: var(--ceed-primary); border-radius: var(--ceed-radius-sm) !important; }
.ceed-theme .ceed-daily-discovery .latest-product-margin { height: 100%; padding: var(--ceed-space-5); background: var(--ceed-surface); border: 1px solid var(--ceed-border); border-radius: var(--ceed-radius-lg); }
.ceed-theme .ceed-daily-discovery .latest-product-margin .product-single-hover { border: 1px solid var(--ceed-border); border-radius: var(--ceed-radius-md); box-shadow: none; }

/* Related discovery is cohesive without hiding either data source. */
.ceed-theme .ceed-discovery-grid { margin-top: var(--ceed-space-8); padding-top: var(--ceed-space-6); border-top: 1px solid var(--ceed-border); }
.ceed-theme .ceed-discovery-column .ceed-commerce-panel { background: var(--ceed-surface); border: 1px solid var(--ceed-border); }
.ceed-theme .ceed-commerce-section--deals { background: var(--ceed-primary-soft); }
.ceed-theme .ceed-commerce-section--deals .__featured-deal-wrap { padding: var(--ceed-space-6); border-radius: var(--ceed-radius-lg); }

/* Promotional media creates breathing room between dense commerce groups. */
.ceed-theme .ceed-promo { padding-block: var(--ceed-space-8); }
.ceed-theme .ceed-promo--primary { background: var(--ceed-surface); }
.ceed-theme .ceed-promo--secondary { background: var(--ceed-bg); }
.ceed-theme .ceed-promo__link { display: block; overflow: hidden; background: var(--ceed-surface-muted); border-radius: var(--ceed-radius-lg); }
.ceed-theme .ceed-promo__image { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; object-fit: contain; }
.ceed-theme .ceed-promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ceed-space-4); }
.ceed-theme .ceed-promo-grid .ceed-promo__image { aspect-ratio: 2 / 1; }

/* Secondary brand and category discovery. */
.ceed-theme .ceed-brand-section { background: var(--ceed-surface); }
.ceed-theme .ceed-brand-rail .__brand-item { display: grid; place-items: center; min-height: 84px; padding: var(--ceed-space-3); background: var(--ceed-surface); border: 1px solid var(--ceed-border); border-radius: var(--ceed-radius-md); }
.ceed-theme .ceed-brand-rail .__brand-item img { max-width: 100%; max-height: 54px; object-fit: contain; }
.ceed-theme .ceed-legacy-discovery { background: var(--ceed-bg); }
.ceed-theme .ceed-legacy-discovery + .ceed-legacy-discovery { padding-top: 0; }
.ceed-theme .ceed-legacy-discovery .__shadow-2 { box-shadow: none !important; }
.ceed-theme .ceed-legacy-discovery .__p-20px { border: 1px solid var(--ceed-border); border-radius: var(--ceed-radius-lg) !important; }

@media (max-width: 991px) {
    .ceed-theme .ceed-deal-feature .recommended-product-card { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ceed-theme .ceed-flash-deals .flash-deals-wrapper { padding-block: var(--ceed-space-6); }
    .ceed-theme .ceed-flash-deals .flash-deal-countdown { gap: var(--ceed-space-1); }
    .ceed-theme .ceed-flash-deals .cz-countdown-days,
    .ceed-theme .ceed-flash-deals .cz-countdown-hours,
    .ceed-theme .ceed-flash-deals .cz-countdown-minutes,
    .ceed-theme .ceed-flash-deals .cz-countdown-seconds { min-width: 38px; }
    .ceed-theme .ceed-flash-deals .flash-deal-countdown > span > .cz-countdown-value { font-size: 18px !important; }
    .ceed-theme .ceed-deal-feature { padding: var(--ceed-space-4); }
    .ceed-theme .ceed-deal-feature .recommended-product-card { gap: var(--ceed-space-4); }
    .ceed-theme .ceed-promo { padding-block: var(--ceed-space-6); }
    .ceed-theme .ceed-promo__image { aspect-ratio: 16 / 7; }
    .ceed-theme .ceed-promo-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
    .ceed-theme .ceed-promo-grid > * { flex: 0 0 84%; scroll-snap-align: start; }
    .ceed-theme .ceed-promo-grid .ceed-promo__image { aspect-ratio: 2 / 1; }
    .ceed-theme .ceed-commerce-section--deals .__featured-deal-wrap { padding: var(--ceed-space-4); }
}

@media (prefers-reduced-motion: reduce) {
    .ceed-theme .ceed-promo-grid { scroll-behavior: auto; }
}
