/*
 * Modern homepage layer.
 * All colors are derived from the existing SiteSettings CSS variables so the
 * homepage follows admin-configured primary/secondary/background colors.
 */
.home-modern {
    --home-primary: var(--primary-color, #ef394e);
    --home-secondary: var(--secondary-color, #6c757d);
    --home-page: var(--background-color, #ffffff);
    --home-primary-soft: #fff1f3;
    --home-primary-medium: #ffd9de;
    --home-secondary-soft: #f3f4f6;
    --home-surface: #ffffff;
    --home-surface-raised: #ffffff;
    --home-media: #f8fafc;
    --home-border: #e8ecf1;
    --home-text: #20242b;
    --home-muted: #727984;
    --home-primary-contrast: #ffffff;
    --home-sale: #e11d48;
    --home-sale-deep: #be123c;
    --home-sale-soft: #fff1f2;
    --home-sale-border: #fecdd3;
    --home-sale-glow: rgba(225, 29, 72, .24);
    --home-shadow: 0 14px 40px rgba(24, 32, 44, .07);
    --home-shadow-hover: 0 18px 46px rgba(24, 32, 44, .12);
    --home-radius-xl: 28px;
    --home-radius-lg: 22px;
    --home-radius-md: 16px;
    position: relative;
    overflow: hidden;
    padding: 20px 0 0;
    color: var(--home-text);
    background: var(--home-page);
}

@supports (color: color-mix(in srgb, #000 50%, #fff)) {
    .home-modern {
        --home-primary-soft: color-mix(in srgb, var(--home-primary) 11%, var(--home-page));
        --home-primary-medium: color-mix(in srgb, var(--home-primary) 24%, var(--home-page));
        --home-secondary-soft: color-mix(in srgb, var(--home-secondary) 9%, var(--home-page));
        --home-border: color-mix(in srgb, var(--home-secondary) 16%, transparent);
        --home-sale-soft: color-mix(in srgb, var(--home-sale) 9%, var(--home-page));
        --home-sale-border: color-mix(in srgb, var(--home-sale) 30%, var(--home-page));
        --home-sale-glow: color-mix(in srgb, var(--home-sale) 24%, transparent);
    }
}

.home-modern::before,
.home-modern::after {
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    content: '';
    filter: blur(4px);
    opacity: .55;
}

.home-modern::before {
    top: 320px;
    right: -260px;
    background: radial-gradient(circle, var(--home-primary-soft) 0%, transparent 68%);
}

.home-modern::after {
    top: 1080px;
    left: -260px;
    background: radial-gradient(circle, var(--home-secondary-soft) 0%, transparent 68%);
}

.home-modern > * {
    position: relative;
    z-index: 1;
}

.home-modern a {
    text-decoration: none;
}

.home-modern__hero-container {
    max-width: 1560px;
    padding-right: 28px;
    padding-left: 28px;
}

.home-modern__content {
    padding-top: 24px;
    padding-bottom: 68px;
}

/* Hero */
.home-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 32px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-hero__slider,
.home-hero__slide,
.home-hero__link {
    min-height: 0;
}

.home-hero__slide {
    position: relative;
    overflow: hidden;
}

.home-hero__link {
    position: relative;
    display: block;
    overflow: hidden;
}

.home-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.2, .75, .3, 1);
}

.home-modern .slider_main .owl-stage-outer {
    border-radius: 31px;
}

.home-modern .slider_main .owl-nav,
.home-modern .slider_main .owl-dots {
    display: none !important;
}

.home-modern .slider_main .owl-item .home-hero__image {
    opacity: .94;
    transform: scale(1.018);
    transition:
        opacity .75s ease,
        transform 1.05s cubic-bezier(.2, .72, .2, 1);
}

.home-modern .slider_main .owl-item.active .home-hero__image {
    opacity: 1;
    transform: scale(1);
}

.home-hero__progress {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, .4);
    pointer-events: none;
}

.home-hero__progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--home-primary);
    box-shadow: 0 0 12px var(--home-primary-medium);
    transform: scaleX(0);
    transform-origin: right center;
}

.home-hero__progress-bar.is-running {
    animation: homeHeroProgress var(--home-hero-progress-duration, 6000ms) linear forwards;
}

.home-hero:hover .home-hero__progress-bar.is-running {
    animation-play-state: paused;
}

@keyframes homeHeroProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.home-hero--fallback {
    display: flex;
    min-height: 380px;
    align-items: center;
    padding: 48px clamp(28px, 6vw, 90px);
    background:
        radial-gradient(circle at 12% 30%, var(--home-secondary-soft), transparent 34%),
        linear-gradient(135deg, var(--home-primary-soft), var(--home-surface) 64%);
}

.home-hero-fallback__content {
    max-width: 650px;
}

.home-hero-fallback__content h1 {
    margin: 6px 0 12px;
    color: var(--home-text);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.45;
}

.home-hero-fallback__content p {
    margin: 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 2;
}

.home-hero-fallback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

.home-button--primary {
    background: var(--home-primary);
    color: var(--home-primary-contrast) !important;
    box-shadow: 0 9px 24px var(--home-primary-medium);
}

.home-button--ghost {
    border: 1px solid var(--home-border);
    background: var(--home-surface);
    color: var(--home-text) !important;
}

/* Shared headings */
.home-section {
    margin-top: 34px;
}

.home-section-heading,
.home-modern .home-product-showcase__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px 18px;
    border: 0;
    background: transparent;
}

.home-section-heading h2,
.home-modern .home-product-showcase__title {
    margin: 0;
    color: var(--home-text) !important;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 900;
    line-height: 1.6;
}

.home-section-heading__link,
.home-modern .home-product-showcase__more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--home-muted) !important;
    font-size: 12px;
    font-weight: 800;
    transition: color .2s ease, transform .2s ease;
}

.home-section-heading__link:hover,
.home-modern .home-product-showcase__more:hover {
    color: var(--home-primary) !important;
    transform: translateX(-2px);
}

/* Keep featured-card headings clear of the rounded top corners. */
.home-modern .home-featured-products__header,
.home-modern .home-featured-products__latest-header {
    padding: 18px 22px 16px;
}

/* Circular database shortcuts. Center the actual database item count instead of
 * reserving an empty seventh column when six shortcuts are configured. */
.home-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-shortcuts--carousel {
    display: block;
    overflow: hidden;
    padding: 18px 12px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.home-shortcuts--carousel:active {
    cursor: grabbing;
}

.home-shortcuts--carousel .owl-stage {
    display: flex;
    align-items: flex-start;
}

.home-shortcuts--carousel .owl-item {
    display: flex;
    justify-content: center;
}

.home-shortcuts--carousel .home-shortcut {
    width: 100%;
    min-width: 0;
    max-width: 132px;
    flex: none;
}

.home-shortcuts--carousel .owl-nav,
.home-shortcuts--carousel .owl-dots {
    display: none !important;
}

.home-shortcut {
    display: flex;
    width: min(132px, calc((100% - 72px) / 7));
    min-width: 100px;
    flex: 0 1 132px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 8px 4px;
    border-radius: 18px;
    color: var(--home-text) !important;
    transition: background .2s ease, transform .2s ease;
}

.home-shortcut:hover {
    background: var(--home-primary-soft);
    transform: translateY(-2px);
}

.home-shortcut__media {
    display: flex;
    width: clamp(58px, 6vw, 78px);
    height: clamp(58px, 6vw, 78px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 50%;
    background: var(--home-media);
    box-shadow: 0 8px 20px rgba(26, 34, 45, .06);
}

.home-shortcut__media img {
    width: 100%;
    height: 100%;
    padding: 4px;
    border-radius: inherit;
    object-fit: cover;
}

.home-shortcut__title {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.7;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Database banners */
.home-banner-grid {
    display: grid;
    align-items: start;
    gap: 14px;
    margin-top: 34px;
}

.home-banner-grid--small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-banner-grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-banner-card,
.home-single-banner__link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-lg);
    background: var(--home-surface);
    box-shadow: none;
    isolation: isolate;
}

.home-banner-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}

.home-banner-card--large img {
    height: auto;
}

.home-banner-card:hover img,
.home-single-banner__link:hover img {
    transform: scale(1.025);
}

/* Product areas */
.home-section--featured {
    margin-top: 26px;
}

.home-modern .home-featured-products {
    gap: 16px;
    margin-bottom: 0;
}

.home-modern .home-featured-products__spotlight,
.home-modern .home-featured-products__latest,
.home-modern .home-product-showcase {
    overflow: hidden;
    border: 1px solid var(--home-border) !important;
    border-radius: var(--home-radius-xl) !important;
    background: var(--home-surface) !important;
    box-shadow: var(--home-shadow);
}

.home-modern .home-product-showcase {
    margin: 0;
    padding: 0 18px 18px;
}

.home-section--accent {
    position: relative;
    padding: 18px;
    overflow: hidden;
    border: 2px solid var(--home-sale-border);
    border-radius: calc(var(--home-radius-xl) + 6px);
    background:
        radial-gradient(circle at 92% 0%, var(--home-sale-glow) 0, transparent 34%),
        linear-gradient(135deg, var(--home-sale-soft), var(--home-surface) 58%, var(--home-sale-soft));
    box-shadow: 0 18px 48px rgba(190, 18, 60, .10);
}

.home-section--accent::before {
    position: absolute;
    top: -55px;
    left: -38px;
    width: 150px;
    height: 150px;
    border: 28px solid rgba(225, 29, 72, .06);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.home-section--accent .home-product-showcase {
    border-color: transparent !important;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: none;
    backdrop-filter: blur(7px);
}

.home-modern .home-product-showcase--discounted .home-product-showcase__heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-modern .home-product-showcase__sale-kicker {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--home-sale), var(--home-sale-deep));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 7px 18px var(--home-sale-glow);
}

.home-modern .home-product-showcase--discounted .home-product-showcase__title {
    color: var(--home-sale-deep) !important;
}

.home-modern .home-product-showcase--discounted .home-product-showcase__more {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--home-sale-border);
    border-radius: 999px;
    background: var(--home-sale-soft);
    color: var(--home-sale-deep) !important;
}

.home-modern .home-product-showcase--discounted .home-product-showcase__more:hover {
    border-color: var(--home-sale);
    background: var(--home-sale);
    color: #fff !important;
}

.home-modern .home-product-carousel {
    margin-top: 0;
}

.home-modern .home-product-card {
    border-color: var(--home-border);
    border-radius: 19px;
    background: var(--home-surface-raised);
    box-shadow: none;
}

.home-modern .home-product-card:hover {
    border-color: var(--home-primary-medium);
    box-shadow: var(--home-shadow-hover);
    transform: translateY(-4px);
}

.home-modern .home-product-card__image-wrap,
.home-modern .home-featured-slide__image-wrap,
.home-modern .home-latest-product__image-wrap {
    background: var(--home-media);
}

.home-modern .home-product-card__title,
.home-modern .home-featured-slide__title,
.home-modern .home-latest-product__title {
    color: var(--home-text);
}

.home-modern .home-product-card__title a:hover,
.home-modern .home-featured-slide__title a:hover,
.home-modern .home-latest-product__title a:hover {
    color: var(--home-primary);
}

.home-modern .current_price > span,
.home-modern .current_price > span span,
.home-modern .amount.current_price,
.home-modern .amount.current_price span {
    color: var(--home-primary) !important;
    -webkit-text-fill-color: var(--home-primary) !important;
}

.home-modern .home-product-card__badge--discount {
    min-height: 32px;
    gap: 4px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, var(--home-sale-deep));
    color: #fff;
    font-size: 9px;
    line-height: 1;
    box-shadow: 0 8px 20px var(--home-sale-glow);
    animation: homeDiscountBadgeGlow 3s ease-in-out infinite;
}

.home-modern .home-product-card__badge--discount i {
    font-size: 10px;
}

.home-modern .home-product-card__badge--discount strong {
    font-size: 12px;
    font-weight: 950;
}

.home-modern .home-product-card__badge--discount span {
    font-weight: 900;
}

.home-modern .home-product-card--discounted {
    border-color: var(--home-sale-border);
    box-shadow: 0 8px 24px rgba(190, 18, 60, .06);
}

.home-modern .home-product-card--discounted::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 20px;
    left: 20px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, var(--home-sale), transparent);
    content: '';
    pointer-events: none;
}

.home-modern .home-product-card--discounted:hover {
    border-color: var(--home-sale);
    box-shadow: 0 18px 42px rgba(190, 18, 60, .16);
}

.home-modern .home-product-card--discounted .home-product-card__image-wrap {
    background:
        radial-gradient(circle at 82% 10%, rgba(225, 29, 72, .08), transparent 36%),
        var(--home-media);
}

.home-modern .home-product-card--discounted .home-product-card__price del,
.home-modern .home-featured-slide--discounted .home-featured-slide__price del,
.home-modern .home-latest-product__price--discounted del {
    width: max-content;
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--home-sale-soft);
    color: #8d6670;
    text-decoration-color: var(--home-sale);
    text-decoration-thickness: 1.5px;
}

.home-modern .home-product-card--discounted .home-product-card__price .current_price,
.home-modern .home-featured-slide--discounted .home-featured-slide__price .current_price,
.home-modern .home-latest-product__price--discounted .current_price {
    color: var(--home-sale-deep) !important;
    -webkit-text-fill-color: var(--home-sale-deep) !important;
}

.home-modern .home-product-card--discounted .home-product-card__price .current_price {
    font-size: 15px;
}

.home-modern .home-featured-slide--discounted {
    border-radius: 22px;
    background: linear-gradient(118deg, var(--home-sale-soft), transparent 42%);
}

.home-modern .home-featured-slide--discounted .home-featured-slide__price .current_price {
    font-size: 24px;
}

.home-modern .home-latest-product__price {
    display: flex;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.home-modern .home-latest-product__price del {
    font-size: 10px;
}

@keyframes homeDiscountBadgeGlow {
    0%, 100% { box-shadow: 0 7px 18px var(--home-sale-glow); transform: translateY(0); }
    50% { box-shadow: 0 10px 26px rgba(225, 29, 72, .38); transform: translateY(-1px); }
}

.home-modern .home-product-card__badge--stock {
    background: rgba(32, 36, 43, .88);
    background: color-mix(in srgb, var(--home-text) 86%, transparent);
    color: var(--home-surface);
}

.home-modern .home-product-card__cart.search_icon_cart {
    background: var(--home-primary-soft) !important;
    color: var(--home-primary) !important;
    -webkit-text-fill-color: var(--home-primary) !important;
}

.home-modern .home-product-card__cart.search_icon_cart:hover:not(:disabled) {
    background: var(--home-primary) !important;
    color: var(--home-primary-contrast) !important;
    -webkit-text-fill-color: var(--home-primary-contrast) !important;
    box-shadow: 0 8px 18px var(--home-primary-medium);
}

.home-modern .home-featured-slide__meta span {
    border-color: var(--home-border);
    color: var(--home-muted);
}

.home-modern .home-featured-slide__meta i {
    color: var(--home-primary);
}

.home-modern .home-featured-slide__action {
    border-color: var(--home-border);
    background: var(--home-surface-raised);
    color: var(--home-text);
}

.home-modern .home-featured-slide__action:hover {
    border-color: var(--home-primary-medium);
    color: var(--home-primary);
}

.home-modern .home-featured-carousel__control {
    border-color: var(--home-border);
    background: var(--home-surface-raised);
    color: var(--home-text);
}

.home-modern .home-featured-carousel__indicators li {
    background: var(--home-border);
}

.home-modern .home-featured-carousel__indicators li.active,
.home-modern .home-latest-progress .slide-progress {
    background: var(--home-primary);
}

.home-modern .home-latest-progress {
    background: var(--home-border);
}

.home-modern .home-product-showcase .owl-carousel .owl-nav .owl-prev,
.home-modern .home-product-showcase .owl-carousel .owl-nav .owl-next,
.home-modern .home-brand-section .owl-carousel .owl-nav .owl-prev,
.home-modern .home-brand-section .owl-carousel .owl-nav .owl-next,
.home-modern .home-blog-section .owl-carousel .owl-nav .owl-prev,
.home-modern .home-blog-section .owl-carousel .owl-nav .owl-next {
    border: 1px solid var(--home-border) !important;
    background: var(--home-surface-raised) !important;
    color: var(--home-text) !important;
    box-shadow: var(--home-shadow);
}

/* Categories */
.home-taxonomy {
    padding: 22px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.home-category-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 12px 9px 13px;
    border: 1px solid var(--home-border);
    border-radius: 18px;
    background: var(--home-surface-raised);
    color: var(--home-text) !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-category-card:hover {
    border-color: var(--home-primary-medium);
    background: var(--home-primary-soft);
    box-shadow: 0 10px 24px rgba(24, 32, 44, .06);
    transform: translateY(-3px);
}

.home-category-card__media {
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: var(--home-media);
}

.home-category-card__media img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.home-category-card__title {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.8;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-category-card__arrow {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--home-surface);
    color: var(--home-primary);
    font-size: 9px;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.home-category-card:hover .home-category-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Brands */
.home-brand-section {
    padding: 22px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-xl);
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
}

.home-modern .home-brand-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.home-modern .home-brand-carousel .owl-item {
    display: flex;
}

.home-brand-card {
    display: flex;
    width: 100%;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    background: var(--home-surface-raised);
    color: var(--home-text) !important;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-brand-card:hover {
    border-color: var(--home-primary-medium);
    background: var(--home-primary-soft);
    transform: translateY(-2px);
}

.home-brand-card__media {
    display: flex;
    width: 100%;
    height: 64px;
    align-items: center;
    justify-content: center;
}

.home-modern .home-brand-card__media img {
    width: auto !important;
    max-width: 100%;
    height: 100% !important;
    object-fit: contain;
    filter: saturate(.9);
}

.home-brand-card__title {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Single wide campaign banner */
.home-single-banner {
    margin-top: 34px;
}

.home-single-banner__link img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    transition: transform .4s ease;
}

/* Blog */
.home-blog-section {
    padding: 42px 0 55px;
    border-top: 1px solid var(--home-border);
    background: var(--home-secondary-soft);
}

.home-section-heading--blog {
    padding-bottom: 20px;
}

.home-modern .home-blog-carousel .owl-stage {
    display: flex;
}

.home-modern .home-blog-carousel .owl-item {
    display: flex;
    padding: 1px 0 10px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-blog-card {
    display: flex !important;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: var(--home-surface);
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-blog-card:hover {
    border-color: var(--home-primary-medium);
    box-shadow: var(--home-shadow-hover);
    transform: translateY(-3px);
}

.home-blog-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--home-media);
}

.home-modern .Blog-carousel .home-blog-card__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-blog-card:hover .home-blog-card__media img {
    transform: scale(1.035);
}

.home-blog-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px 16px 16px;
}

.home-blog-card__meta {
    display: flex;
    color: var(--home-muted);
    font-size: 10px;
}

.home-blog-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-blog-card__meta i {
    color: var(--home-primary);
}

.home-blog-card h3 {
    min-height: 53px;
    margin: 8px 0 14px;
    overflow: hidden;
    color: var(--home-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-blog-card h3 a {
    color: inherit !important;
}

.home-blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--home-primary) !important;
    font-size: 11px;
    font-weight: 800;
}

/* Loading/interaction state shared with existing cart behavior. */
.home-modern .search_icon_cart.is-loading,
.home-modern .search_icon_cart.disabled {
    cursor: not-allowed;
    opacity: .5;
    pointer-events: none;
}

/* Laptop / tablet */
@media (max-width: 1199.98px) {
    .home-modern__hero-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .home-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-modern {
        padding-top: 12px;
    }

    .home-modern__hero-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .home-modern__content {
        padding-top: 18px;
        padding-bottom: 48px;
    }

    .home-hero {
        border-radius: 24px;
    }

    .home-modern .slider_main .owl-stage-outer {
        border-radius: 23px;
    }

    .home-hero__image {
        height: auto;
    }

    .home-shortcuts {
        gap: 8px;
        padding: 14px;
    }

    .home-shortcuts:not(.home-shortcuts--carousel) {
        display: flex;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .home-shortcuts:not(.home-shortcuts--carousel)::-webkit-scrollbar {
        display: none;
    }

    .home-shortcuts:not(.home-shortcuts--carousel) .home-shortcut {
        width: 98px;
        min-width: 98px;
        flex: 0 0 98px;
        scroll-snap-align: start;
    }

    .home-shortcuts--carousel {
        padding-right: 8px;
        padding-left: 8px;
    }

    .home-shortcut__media {
        width: 64px;
        height: 64px;
    }

    .home-banner-grid--small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .home-taxonomy,
    .home-brand-section {
        padding: 18px;
    }

    .home-modern .home-featured-products {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Mobile: two-up product browsing and compact banners/controls. */
@media (max-width: 767.98px) {
    .home-modern__hero-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .home-modern__content {
        padding-right: 10px;
        padding-left: 10px;
    }

    .home-hero__slider,
    .home-hero__slide,
    .home-hero__link {
        min-height: 0;
    }

    .home-hero__image {
        height: auto;
    }




    .home-section {
        margin-top: 24px;
    }

    .home-section-heading,
    .home-modern .home-product-showcase__header {
        align-items: center;
        padding-bottom: 13px;
    }

    .home-section-heading h2,
    .home-modern .home-product-showcase__title {
        font-size: 17px;
    }

    .home-section-heading__link,
    .home-modern .home-product-showcase__more {
        font-size: 10px;
    }

    .home-modern .home-featured-products__header,
    .home-modern .home-featured-products__latest-header {
        padding: 14px 14px 12px;
    }

    .home-section--accent {
        padding: 10px;
        border-radius: 22px;
    }

    .home-modern .home-product-showcase {
        padding: 0 9px 10px;
        border-radius: 20px !important;
    }

    .home-banner-grid {
        gap: 8px;
        margin-top: 24px;
    }

    .home-banner-card,
    .home-single-banner__link {
        border-radius: 16px;
    }


    .home-banner-grid--large {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .home-category-card {
        padding: 8px 6px 10px;
        border-radius: 14px;
    }

    .home-category-card__media {
        border-radius: 11px;
    }

    .home-category-card__title {
        margin-top: 7px;
        font-size: 10px;
    }

    .home-category-card__arrow {
        display: none;
    }

    .home-taxonomy,
    .home-brand-section {
        padding: 14px 10px;
        border-radius: 20px;
    }

    .home-single-banner {
        margin-top: 24px;
    }

    .home-single-banner__link img {
        min-height: 0;
    }


    .home-blog-section {
        padding: 30px 0 40px;
    }

    .home-blog-section .container {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 575.98px) {
    .home-banner-grid--small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-banner-card img,
    .home-banner-card--large img {
        height: auto;
    }

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

    .home-modern .home-featured-slide {
        padding-right: 12px;
        padding-left: 12px;
    }

    .home-modern .home-product-card__body {
        padding-right: 9px;
        padding-left: 9px;
    }

    .home-modern .home-product-card__title {
        font-size: 10.5px;
    }
}

@media (max-width: 380px) {
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-banner-grid--small {
        grid-template-columns: minmax(0, 1fr);
    }
}


@media (max-width: 575.98px) {
    .home-section--accent {
        padding: 9px;
        border-width: 1px;
    }

    .home-modern .home-product-showcase--discounted .home-product-showcase__heading {
        gap: 7px;
    }

    .home-modern .home-product-showcase__sale-kicker {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 8px;
    }

    .home-modern .home-product-card__badge--discount {
        min-height: 28px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .home-modern .home-product-card__badge--discount strong {
        font-size: 10px;
    }

    .home-modern .home-product-card--discounted .home-product-card__price .current_price {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__progress-bar.is-running {
        animation-duration: 1ms;
    }

    .home-modern *,
    .home-modern *::before,
    .home-modern *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-modern .home-product-card__badge--discount {
        animation: none;
    }
}
