/* DosthaneSepet live recovery fixes */
.header .top-promo-link {
    display: block;
    width: 100%;
    background: #fff;
}

.header .top-promo-image {
    display: block;
    width: 100%;
    max-height: 90px;
    object-fit: cover;
}

.home .main > .container {
    padding-top: 1.5rem;
}

.home .intro-wrapper {
    margin-left: 0 !important;
    margin-bottom: 2rem;
}

.home .intro-wrapper .row {
    align-items: stretch;
}

.home .intro-slide,
.home .intro-slide.banner {
    min-height: 360px;
    border-radius: 1rem;
    overflow: hidden;
}

.home .intro-slide .banner-content {
    z-index: 2;
}

.home .intro-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.55) 0%, rgba(17, 24, 39, 0.15) 55%, rgba(17, 24, 39, 0.05) 100%);
}

.home .intro-slide > * {
    position: relative;
    z-index: 2;
}

.home .category-banner.banner,
.home .category-banner img,
.home .category-banner-wrapper .banner,
.home .category-banner-wrapper .banner img {
    border-radius: 1rem;
    overflow: hidden;
}

.home .category-banner img,
.home .category-banner-wrapper .banner img {
    width: 100%;
    min-height: 180px;
    object-fit: cover;
}

.home .shop-default-category,
.home .product-wrapper,
.home .category-banner-wrapper,
.home .post-wrapper,
.home .brands-wrapper {
    clear: both;
}

.home .shop-default-category {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.home .category-ellipse {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 1.2rem;
    padding: 1.4rem 1rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.home .category-ellipse .category-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-bottom: 1rem;
}

.home .category-ellipse .category-media img {
    width: auto;
    max-width: 100%;
    max-height: 110px;
    object-fit: contain;
}

.home .product-wrap {
    height: 100%;
}

.home .product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 1.2rem;
    padding: 1.4rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.home .product .product-media {
    border-radius: .8rem;
    background: #f8f8f8;
    overflow: hidden;
}

.home .product .product-media > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.home .product .product-media img {
    width: auto;
    max-width: 100%;
    max-height: 190px;
    object-fit: contain;
}

.home .product .product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 1.2rem;
}

.home .product .product-name {
    min-height: 4.8rem;
    margin-bottom: .8rem;
    font-size: 1.6rem;
    line-height: 1.45;
}

.home .product .product-price {
    margin-top: auto;
    font-size: 1.7rem;
    font-weight: 700;
    color: #111827;
}

.home .title-link-wrapper {
    margin-top: 2rem;
}

.home .post-wrapper,
.home .brands-wrapper {
    margin-top: 1rem;
}

.header-middle .header-search,
.header-middle .cart-dropdown,
.header-middle .wishlist,
.header-middle .header-call {
    position: relative;
    z-index: 10;
}

@media (max-width: 991px) {
    .header .top-promo-image {
        max-height: 56px;
    }

    .home .intro-slide,
    .home .intro-slide.banner {
        min-height: 280px;
    }

    .home .product .product-media > a {
        min-height: 150px;
    }

    .home .product .product-media img {
        max-height: 140px;
    }
}

@media (max-width: 575px) {
    .home .main > .container {
        padding-top: 1rem;
    }

    .home .intro-slide,
    .home .intro-slide.banner {
        min-height: 220px;
    }

    .home .intro-slide .banner-content {
        padding: 1.6rem !important;
    }

    .home .category-ellipse {
        padding: 1rem .8rem;
    }

    .home .category-ellipse .category-media {
        height: 82px;
    }

    .home .product {
        padding: 1rem;
    }

    .home .product .product-media > a {
        min-height: 120px;
    }

    .home .product .product-media img {
        max-height: 110px;
    }

    .home .product .product-name {
        min-height: 4.2rem;
        font-size: 1.4rem;
    }
}


/* Homepage static grid rescue */
.home .home-story-grid,
.home .home-product-grid,
.home .home-blog-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.home .home-story-grid > *,
.home .home-product-grid > *,
.home .home-blog-grid > * {
    padding-left: 10px;
    padding-right: 10px;
}

.home .home-product-grid .product-wrap,
.home .home-story-grid .category-wrap,
.home .home-blog-grid .post {
    width: 100%;
}

.home .home-product-grid .product {
    position: relative;
}

.home .home-product-grid .product-action-vertical {
    opacity: 1;
    visibility: visible;
    top: 1rem;
    right: 1rem;
}

.home .home-product-grid .product-details {
    text-align: left;
}

.home .home-product-grid .product-name a,
.home .home-blog-grid .post-title a,
.home .home-story-grid .category-name a {
    color: #111827;
}

.home .home-product-grid .product-price,
.home .home-product-grid .new-price {
    display: block;
    color: #ff6b00;
}

.home .home-product-grid .btn-product-icon {
    background: rgba(255,255,255,.95);
}

.home .home-product-grid .btn-product-icon.w-icon-search::before,
.home .home-product-grid .btn-product-icon.w-icon-heart::before,
.home .home-product-grid .btn-product-icon.w-icon-cart::before {
    color: #111827;
}

.home .home-product-grid .product:hover {
    transform: translateY(-4px);
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.home .home-blog-grid .post,
.home .home-blog-grid .post-media,
.home .home-blog-grid .post img {
    border-radius: 1rem;
}

.home .home-blog-grid .post {
    background: #fff;
    border: 1px solid #ececec;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

@media (max-width: 575px) {
    .home .home-product-grid,
    .home .home-story-grid,
    .home .home-blog-grid {
        margin-left: -6px;
        margin-right: -6px;
    }

    .home .home-product-grid > *,
    .home .home-story-grid > *,
    .home .home-blog-grid > * {
        padding-left: 6px;
        padding-right: 6px;
    }

    .home .home-product-grid .product-action-vertical {
        top: .7rem;
        right: .7rem;
    }

    .home .home-product-grid .product-price,
    .home .home-product-grid .new-price {
        font-size: 1.5rem;
    }
}

/* ===== Homepage premium refresh ===== */
.home .intro-wrapper {
    position: relative;
    margin-bottom: 4rem;
}

.home .intro-wrapper::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -18px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0) 72%);
    pointer-events: none;
}

.home .intro-slide,
.home .category-banner.banner,
.home .category-banner-wrapper .banner,
.home .section-intro-card,
.home .home-product-card,
.home .home-story-card,
.home .home-blog-grid .post {
    animation: dsFadeUp .75s ease both;
}

.home .section-intro-card {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.2rem 2.4rem;
    border-radius: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

.home .section-intro-card::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 125, 0, 0.18) 0%, rgba(255, 125, 0, 0) 72%);
    pointer-events: none;
}

.home .section-intro-card--glow {
    background: linear-gradient(135deg, #fff7ef 0%, #ffffff 52%, #f4f8ff 100%);
}

.home .section-intro-card--dark {
    background: linear-gradient(135deg, #10182a 0%, #17223a 100%);
    border-color: rgba(255,255,255,.08);
}

.home .section-intro-card--dark .section-title,
.home .section-intro-card--dark .section-subtitle,
.home .section-intro-card--dark .section-kicker,
.home .section-intro-card--dark .section-mini-note {
    color: #fff;
}

.home .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 125, 0, 0.1);
    color: #ff7d00;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.home .section-title {
    font-size: clamp(2.3rem, 2.4vw, 3.4rem);
    line-height: 1.15;
    color: #101827;
    margin-bottom: .8rem;
}

.home .section-subtitle,
.home .section-mini-note {
    color: #526071;
    font-size: 1.45rem;
    line-height: 1.7;
    max-width: 70rem;
}

.home .home-mini-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .8rem;
    max-width: 33rem;
}

.home .home-mini-trust span,
.home .section-mini-note {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
    font-weight: 600;
}

.home .section-link-btn {
    position: relative;
    z-index: 1;
    min-width: 18rem;
}

.home .home-story-card {
    position: relative;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.home .home-story-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 125, 0, 0.18), rgba(31, 100, 255, 0.08));
    opacity: 0;
    transition: opacity .28s ease;
    z-index: 0;
}

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

.home .home-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-color: rgba(255, 125, 0, 0.2);
}

.home .home-story-card:hover::before {
    opacity: 1;
}

.home .home-story-card__caption {
    margin: .6rem 0 0;
    color: #6b7280;
    font-size: 1.25rem;
    font-weight: 600;
}

.home .home-product-grid {
    row-gap: 1.6rem;
}

.home .home-product-card-wrap {
    display: flex;
}

.home .home-product-card {
    position: relative;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 2rem;
    padding: 1.4rem;
    overflow: hidden;
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.home .home-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
    pointer-events: none;
}

.home .home-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 46px rgba(15, 23, 42, 0.12);
    border-color: rgba(255, 125, 0, 0.22);
}

.home .home-product-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: 1rem;
    min-height: 3.4rem;
}

.home .home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .95rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.home .home-badge--soft {
    background: rgba(16, 24, 39, 0.06);
    color: #253245;
}

.home .home-badge--stock.is-in {
    background: rgba(16, 185, 129, 0.12);
    color: #0b8a60;
}

.home .home-badge--stock.is-low {
    background: rgba(245, 158, 11, 0.14);
    color: #c77600;
}

.home .home-badge--stock.is-out {
    background: rgba(239, 68, 68, 0.12);
    color: #c73232;
}

.home .home-product-card__media {
    position: relative;
    min-height: 23rem;
    border-radius: 1.6rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 125, 0, 0.16), transparent 36%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    margin-bottom: 1.4rem;
}

.home .home-product-card__image-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 23rem;
    padding: 1.2rem;
}

.home .home-product-card__media img {
    width: auto;
    max-width: 100%;
    max-height: 19rem;
    object-fit: contain;
    transition: transform .35s ease;
}

.home .home-product-card:hover .home-product-card__media img {
    transform: scale(1.06) translateY(-4px);
}

.home .home-product-card__glow {
    position: absolute;
    inset: auto auto 16px 50%;
    transform: translateX(-50%);
    width: 68%;
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16,24,39,0.18) 0%, rgba(16,24,39,0) 72%);
    z-index: 1;
}

.home .home-product-card__actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.home .home-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    color: #111827;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.home .home-icon-btn:hover,
.home .home-icon-btn.is-active {
    transform: translateY(-2px) scale(1.04);
    background: #ff7d00;
    color: #fff;
}

.home .home-product-card__details {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.home .home-product-card__meta {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.home .home-product-card__title {
    min-height: 5.2rem;
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.45;
}

.home .home-product-card__title a {
    color: #101827;
}

.home .home-product-card__desc {
    min-height: 4.6rem;
    margin: 0;
    color: #5f6b7b;
    font-size: 1.34rem;
    line-height: 1.65;
}

.home .home-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    margin-top: .4rem;
}

.home .home-price-current {
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
}

.home .home-price-old {
    color: #94a3b8;
    font-size: 1.35rem;
    text-decoration: line-through;
}

.home .home-price-discount {
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255, 125, 0, 0.1);
    color: #ff7d00;
    font-size: 1.1rem;
    font-weight: 700;
}

.home .home-product-card__footer {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-top: auto;
    padding-top: .4rem;
}

.home .home-product-card__button {
    width: 100%;
    justify-content: center;
    min-height: 4.6rem;
    border-width: 0;
    background: linear-gradient(135deg, #111827 0%, #263449 100%);
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.18);
}

.home .home-product-card__button:hover {
    background: linear-gradient(135deg, #ff7d00 0%, #ff9d2f 100%);
}

.home .home-product-card__hint {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: 600;
}

.home .home-spotlight--popular .home-product-card {
    background: linear-gradient(180deg, #151f33 0%, #1b2944 100%);
    border-color: rgba(255,255,255,0.06);
}

.home .home-spotlight--popular .home-product-card__meta,
.home .home-spotlight--popular .home-product-card__desc,
.home .home-spotlight--popular .home-product-card__hint {
    color: rgba(255,255,255,0.76);
}

.home .home-spotlight--popular .home-product-card__title a,
.home .home-spotlight--popular .home-price-current,
.home .home-spotlight--popular .home-icon-btn {
    color: #fff;
}

.home .home-spotlight--popular .home-icon-btn {
    background: rgba(17,24,39,0.55);
}

.home .home-spotlight--popular .home-product-card__media {
    background:
        radial-gradient(circle at top right, rgba(255, 125, 0, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

.home .home-blog-grid .post {
    position: relative;
    height: 100%;
    border-radius: 1.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
}

.home .home-blog-grid .post:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 42px rgba(15, 23, 42, 0.12);
}

.home .home-blog-grid .post-media img {
    width: 100%;
    min-height: 20rem;
    object-fit: cover;
}

.home .home-blog-grid .post-details {
    padding: 1.8rem;
}

.home .home-blog-grid .post-title {
    min-height: 5rem;
}

.home .category-banner-wrapper .banner,
.home .banner.banner-fixed.br-sm {
    transition: transform .3s ease, box-shadow .3s ease;
}

.home .category-banner-wrapper .banner:hover,
.home .banner.banner-fixed.br-sm:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.12);
}

@keyframes dsFadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1199px) {
    .home .section-intro-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .home .home-mini-trust {
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .home .section-intro-card {
        padding: 1.8rem;
        border-radius: 1.4rem;
    }

    .home .section-title {
        font-size: 2rem;
    }

    .home .section-subtitle,
    .home .section-mini-note {
        font-size: 1.3rem;
    }

    .home .home-product-card {
        padding: 1rem;
        border-radius: 1.4rem;
    }

    .home .home-product-card__media,
    .home .home-product-card__image-link {
        min-height: 16rem;
    }

    .home .home-product-card__media img {
        max-height: 13rem;
    }

    .home .home-product-card__title {
        min-height: 4.6rem;
        font-size: 1.45rem;
    }

    .home .home-product-card__desc {
        min-height: auto;
        font-size: 1.22rem;
    }

    .home .home-product-card__button {
        min-height: 4rem;
        font-size: 1.25rem;
    }

    .home .home-mini-trust span {
        width: 100%;
        justify-content: center;
    }
}


/* Emergency visibility recovery for homepage product cards */
.home .home-product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 0;
}
.home .home-product-grid > .product-wrap,
.home .home-product-grid > [class*="col-"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.home .home-product-card__meta,
.home .home-product-card__title,
.home .home-product-card__title a,
.home .home-product-card__desc,
.home .home-product-card__price,
.home .home-product-card__footer,
.home .home-product-card__hint,
.home .home-product-card__button {
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}
.home .home-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
}
.home .home-product-card__footer {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.home .home-product-card__button {
    width: 100%;
    text-align: center;
}
