/* Homepage layout fixes */

/* SEO headings: present in HTML, not shown visually */
.home-seo-headings {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.home-section-header__title {
    margin: 0;
    font-family: "Mulish", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3d4248;
    line-height: 1.2;
}

.home-section-header__link {
    flex-shrink: 0;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3d4248;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-section-header__link:hover {
    color: #111;
}

.home-product-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

/* Home newest products carousel */
.home-newest-products {
    padding-bottom: 0;
}

.home-heta-slider {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.home-heta-slider .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.home-heta-slider .heta-slider {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
    height: auto;
    min-height: 0;
}

@media (max-width: 639px) {
    .home-banner > .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .home-heta-slider .heta-slider {
        border-radius: 0;
        aspect-ratio: 3 / 4;
        width: 100%;
    }
}

@media (min-width: 640px) and (max-width: 991px) {
    .home-heta-slider .heta-slider {
        aspect-ratio: 3 / 4;
    }
}

.home-newest-carousel-wrap {
    position: relative;
    padding: 0 36px;
}

.home-newest-carousel {
    position: relative;
    z-index: 1;
}

.home-newest-carousel.owl-carousel {
    display: block;
}

.home-newest-carousel .owl-stage-outer {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

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

.home-newest-carousel .owl-item {
    display: flex;
    flex-shrink: 0;
    touch-action: pan-y pinch-zoom;
}

.home-newest-carousel__item {
    display: flex;
    width: 100%;
    height: 100%;
}

.home-newest-carousel__item .featured-product.product-card-v2 {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.home-newest-carousel__nav {
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

.home-newest-carousel__nav button.owl-prev,
.home-newest-carousel__nav button.owl-next {
    pointer-events: auto;
    position: absolute !important;
    top: 0 !important;
    transform: translateY(-50%);
    width: 32px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #111 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    z-index: 6;
    opacity: 0.85;
}

.home-newest-carousel__nav button.owl-prev {
    left: 0 !important;
    right: auto !important;
}

.home-newest-carousel__nav button.owl-next {
    right: 0 !important;
    left: auto !important;
}

.home-newest-carousel__nav button.owl-prev::before,
.home-newest-carousel__nav button.owl-next::before {
    display: inline-block;
    font: normal normal normal 28px/1 FontAwesome;
}

.home-newest-carousel__nav button.owl-prev::before {
    content: "\f104";
}

.home-newest-carousel__nav button.owl-next::before {
    content: "\f105";
}

.home-newest-carousel__nav button.owl-prev:hover,
.home-newest-carousel__nav button.owl-next:hover {
    background: transparent !important;
    color: #000 !important;
    opacity: 1;
}

.home-newest-carousel__nav button.disabled {
    opacity: 0.25;
    cursor: default;
}

.home-newest-carousel-wrap.is-nav-hidden .home-newest-carousel__nav,
.home-newest-carousel-wrap.is-nav-hidden .home-newest-carousel__nav button.owl-prev,
.home-newest-carousel-wrap.is-nav-hidden .home-newest-carousel__nav button.owl-next {
    display: none !important;
}

.home-newest-carousel-wrap.is-nav-hidden {
    padding-left: 0;
    padding-right: 0;
}

.home-newest-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 14px;
}

.home-newest-carousel .owl-dots .owl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    margin: 0;
}

.home-newest-carousel .owl-dots .owl-dot.active {
    background: #111;
}

@media (max-width: 767px) {
    .home-newest-carousel-wrap {
        padding: 0 28px;
    }

    .home-newest-carousel__nav button.owl-prev,
    .home-newest-carousel__nav button.owl-next {
        width: 28px !important;
        height: 40px !important;
    }

    .home-newest-carousel__nav button.owl-prev::before,
    .home-newest-carousel__nav button.owl-next::before {
        font-size: 24px;
    }

    /* responsive.css 50%/100% flex kurallarını carousel içinde ez */
    .home-newest-products .home-newest-carousel .owl-item,
    .home-newest-products .home-newest-carousel__item,
    .home-newest-products .home-newest-carousel__item .featured-product.product-card-v2 {
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
    }

    .home-newest-products .home-newest-carousel__item .featured-product.product-card-v2 {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Home blog carousel */
.home-blog-carousel {
    position: relative;
}

.home-blog-carousel .latest-blog-salid.owl-carousel {
    display: block;
}

.home-blog-carousel .owl-stage-outer {
    overflow: hidden;
}

.home-blog-slide {
    height: 100%;
}

.home-blog-slide__inner {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 20px;
    align-items: start;
    height: 100%;
    padding: 0 10px;
}

.home-blog-slide__media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #f5f5f5;
}

.home-blog-slide__media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 260px;
    object-fit: cover;
    display: block;
}

.home-blog-slide__content {
    min-width: 0;
    padding-top: 4px;
}

.home-blog-slide__content .lat-blog-title.end {
    display: block;
    margin-bottom: 10px;
    line-height: 1.35;
}

.home-blog-slide__content .lat-blog-detail {
    max-height: 120px;
    overflow: hidden;
    margin-bottom: 12px;
    line-height: 1.55;
}

.home-blog-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.home-blog-carousel__nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    padding: 0;
    border: 1px solid #3d4248;
    border-radius: 8px;
    background: #3d4248;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    position: static;
    left: auto;
    right: auto;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.home-blog-carousel__nav button:hover {
    background: #111;
    border-color: #111;
    color: #fff;
}

.home-blog-carousel__nav button.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.home-blog-carousel__nav button span {
    display: none !important;
}

.home-blog-carousel__nav button.owl-prev::before,
.home-blog-carousel__nav button.owl-next::before {
    font-family: FontAwesome;
    font-size: 16px;
    line-height: 1;
    position: static;
    top: auto;
    left: auto;
    right: auto;
}

.home-blog-carousel__nav button.owl-prev::before {
    content: "\f060";
}

.home-blog-carousel__nav button.owl-next::before {
    content: "\f061";
}

.latest-blog .owl-nav {
    display: none;
}

.latest-blog .home-blog-carousel__nav button.owl-prev,
.latest-blog .home-blog-carousel__nav button.owl-next {
    border: 1px solid #3d4248 !important;
    background: #3d4248 !important;
    color: #fff !important;
}

.latest-blog .home-blog-carousel__nav button.owl-prev:hover,
.latest-blog .home-blog-carousel__nav button.owl-next:hover {
    border-color: #111 !important;
    background: #111 !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .home-blog-slide__inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-blog-slide__media img {
        max-height: 240px;
    }
}

@media (max-width: 767px) {
    .home-section-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0;
    }

    .home-section-header__link {
        display: none;
    }

    .featured.product-list .home-product-grid > .featured-product.product-card-v2,
    .home-product-grid.product-card-grid > .featured-product.product-card-v2 {
        flex: 0 0 calc(50% - 16px) !important;
        max-width: calc(50% - 16px) !important;
        width: auto !important;
        margin: 0 8px 16px;
    }

    /* Mobilde öne çıkanlar bölümü başına en fazla 2 satır (2 sütun x 2 = 4 ürün) */
    .home-product-grid > .featured-product.product-card-v2:nth-child(n + 5) {
        display: none;
    }
}

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

    .home-section-header__title {
        font-size: 22px;
    }
}

/* Home newsletter */
.home-newsletter {
    padding-bottom: 56px;
}

.home-newsletter__inner {
    text-align: center;
    padding: 56px 32px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 12px;
}

.home-newsletter__title {
    margin: 0 0 12px;
    font-family: "Mulish", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3d4248;
    line-height: 1.3;
}

.home-newsletter__sub {
    margin: 0 auto 28px;
    max-width: 520px;
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.home-newsletter__form {
    max-width: 560px;
    margin: 0 auto;
}

.home-newsletter__field {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.home-newsletter__input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    color: #3d4248;
    outline: none;
    min-width: 0;
}

.home-newsletter__input::placeholder {
    color: #aaa;
}

.home-newsletter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 22px;
    border: none;
    border-left: 1px solid #e0e0e0;
    background: #3d4248;
    color: #fff;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-newsletter__btn:hover {
    background: #111;
}

#newsletter-result {
    margin-top: 12px;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
}

@media (max-width: 767px) {
    .home-newsletter__inner {
        padding: 40px 20px;
    }

    .home-newsletter__title {
        font-size: 22px;
    }

    .home-newsletter__field {
        flex-direction: column;
    }

    .home-newsletter__btn {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }
}

/* =============================================
   Category Wall — separated rectangles
   ============================================= */
.home-category-wall {
    padding: 28px 0 20px;
}

.home-popular-products {
    padding-top: 24px;
}

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

.home-category-wall__item {
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 0;
}

.home-category-wall__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 118%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #453326;
    box-sizing: border-box;
}

.home-category-wall__img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 44px;
    width: 100%;
    height: calc(100% - 44px);
    object-fit: contain;
    object-position: center;
    background: #fff;
    transition: transform 0.3s ease;
}

.home-category-wall__item:hover .home-category-wall__img {
    transform: scale(1.03);
}

.home-category-wall__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    background: #453326;
    border-top: 2px solid #453326;
    box-sizing: border-box;
    font-family: "Mulish", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff6f2;
    text-align: center;
    line-height: 1.25;
}

.home-category-wall__item:hover .home-category-wall__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Tablet ---- */
@media (max-width: 991px) {
    .home-category-wall__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .home-category-wall {
        padding: 20px 0 24px;
    }

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

    .home-category-wall__img-wrap {
        padding-top: 108%;
    }

    .home-category-wall__img {
        bottom: 40px;
        height: calc(100% - 40px);
    }

    .home-category-wall__name {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }
}
