﻿/* ===============================
   CATEGORY SLIDER
================================ */

.cat-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-slider-main {
    flex: 1 1 auto;
    min-width: 0;
}

.cat-slider-wrap {
    overflow: hidden;
    width: 100%;
}

.cat-slider-track {
    display: flex;
    gap: 18px;
    transition: transform .4s ease;
}

.cat-slider .cat-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: calc((100% - 54px) / 4);
}

.cat-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    flex: 0 0 42px;
}

    .cat-nav:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

.cat-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #d6cec6;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
    opacity: .9;
}

    .cat-dot:hover {
        transform: scale(1.15);
    }

    .cat-dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }

.cat-dots.is-hidden {
    display: none;
}


/* ===============================
   MEGA MENU STRUCTURE
================================ */

.mega-nav {
    position: relative;
    z-index: 200;
    overflow: visible !important;
    background: #fff;
    border-bottom: 1px solid #ececec;
}

    .mega-nav .container {
        display: block;
        overflow: visible !important;
    }

.mega-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 28px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.mega-nav-item {
    position: relative;
    flex: 0 0 auto;
}

.mega-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    line-height: 1.25;
    position: relative;
    z-index: 2;
}

.mega-nav-item.is-featured > .mega-nav-link {
    color: var(--primary);
    font-weight: 700;
}


/* ===============================
   MEGA DROPDOWN PANEL
================================ */

.mega-flyout {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 620px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 3000;
}

.mega-nav-item.is-open > .mega-flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ===============================
   MEGA PANEL LAYOUT
================================ */

.mega-flyout-inner {
    display: grid;
    grid-template-columns: 280px 320px;
    min-height: 320px;
}

.mega-lvl2-list,
.mega-lvl3-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-lvl2-list {
    padding: 10px 0;
    border-right: 1px solid var(--line);
}

.mega-lvl2-item {
    position: relative;
}

.mega-lvl2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
    background: #fff;
}

.mega-lvl2-item:hover > .mega-lvl2-link,
.mega-lvl2-item.is-active > .mega-lvl2-link {
    background: var(--accent-soft);
}

.mega-arrow {
    font-size: 16px;
    opacity: .65;
}


/* ===============================
   SUB GROUP PANEL
================================ */

.mega-lvl3-host {
    position: relative;
    min-height: 100%;
    background: #fff;
}

.mega-lvl3-panel {
    display: none;
    padding: 10px 0;
    height: 100%;
}

    .mega-lvl3-panel.is-active {
        display: block;
    }

.mega-lvl3-head {
    padding: 8px 18px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.mega-lvl3-title {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

.mega-lvl3-link {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text);
    line-height: 1.35;
    background: #fff;
}

    .mega-lvl3-link:hover {
        background: var(--accent-soft);
    }


/* ===============================
   HERO
================================ */

.blk-hero .container {
    overflow: visible;
}

.heroSwiper {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

    .heroSwiper .swiper-slide {
        height: auto;
    }

.hero-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f7f7;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* tamamı görünsün */
    object-position: center center;
    background: #f7f7f7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 480px;
    padding-left: 60px;
}

.heroSwiper .swiper-pagination {
    bottom: 18px !important;
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
    color: #fff;
}

@media (max-width: 991.98px) {
    .hero-card {
        border-radius: 18px;
    }

    .heroSwiper {
        border-radius: 18px;
    }

    .hero-content {
        max-width: 380px;
        padding-left: 32px;
    }
}

@media (max-width: 575.98px) {
    .hero-card {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }

    .heroSwiper {
        border-radius: 14px;
    }

    .hero-content {
        max-width: 280px;
        padding-left: 18px;
    }
}


/* ===============================
   PROMO / SEASONAL HIGHLIGHTS
================================ */

.js-promo-slider .cat-slider-track {
    display: flex;
    gap: 18px;
    transition: transform .4s ease;
}

.js-promo-slider .promo-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: calc((100% - 54px) / 4);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.js-promo-slider .promo-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f6f6f6;
}

    .js-promo-slider .promo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.js-promo-slider .promo-card:hover .promo-image img {
    transform: scale(1.04);
}

.js-promo-slider .promo-body {
    padding: 14px 6px 4px;
}

.js-promo-slider .promo-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.js-promo-slider .promo-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.5;
}

.js-promo-slider .promo-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .js-promo-slider .promo-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 575.98px) {
    .js-promo-slider .promo-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}


/* ===============================
   SEASONAL HIGHLIGHTS SLIDER
================================ */

.promo-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-slider-main {
    flex: 1 1 auto;
    min-width: 0;
}

.promo-slider-wrap {
    overflow: hidden;
    width: 100%;
}

.promo-slider-track {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
    will-change: transform;
}

.promo-card {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: calc((100% - 54px) / 4);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.promo-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f6f6f6;
}

    .promo-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.promo-card:hover .promo-image img {
    transform: scale(1.04);
}

.promo-body {
    padding: 12px 4px 0;
}

.promo-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.promo-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    flex: 0 0 42px;
}

    .promo-nav:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

.promo-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.promo-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #d6cec6;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
    opacity: .9;
}

    .promo-dot:hover {
        transform: scale(1.15);
    }

    .promo-dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }

.promo-dots.is-hidden {
    display: none;
}

@media (max-width: 1199.98px) {
    .promo-card {
        flex: 0 0 calc((100% - 36px) / 3);
        min-width: calc((100% - 36px) / 3);
    }
}

@media (max-width: 767.98px) {
    .promo-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 575.98px) {
    .promo-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .promo-nav {
        display: none;
    }
}


/* ===============================
   PRODUCT SLIDER
================================ */

.prd-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prd-slider-main {
    flex: 1 1 auto;
    min-width: 0;
}

.prd-slider-wrap {
    overflow: hidden;
    width: 100%;
}

.prd-slider-track {
    display: flex;
    gap: 18px;
    transition: transform .45s ease;
    will-change: transform;
}

.prd-card {
    position: relative;
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: calc((100% - 54px) / 4);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.prd-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f6f6f6;
}

    .prd-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .35s ease;
    }

.prd-card:hover .prd-image img {
    transform: scale(1.04);
}

.prd-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

.prd-body {
    padding: 12px 8px 2px;
    text-align: center;
}

.prd-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.prd-price {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-soft);
}

.prd-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    font-size: 24px;
    flex: 0 0 42px;
}

    .prd-nav:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }

.prd-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.prd-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #d6cec6;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
    opacity: .9;
}

    .prd-dot:hover {
        transform: scale(1.15);
    }

    .prd-dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }

.prd-dots.is-hidden {
    display: none;
}

@media (max-width: 1199.98px) {
    .prd-card {
        flex: 0 0 calc((100% - 36px) / 3);
        min-width: calc((100% - 36px) / 3);
    }
}

@media (max-width: 767.98px) {
    .prd-card {
        flex: 0 0 calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 575.98px) {
    .prd-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .prd-nav {
        display: none;
    }
}


/* ===============================
   FEATURED BRANDS (FINAL CLEAN)
================================ */

.blk-brands {
    padding: 28px 0;
}

    .blk-brands .brand-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .blk-brands .brand-card {
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #ffffff;
        color: var(--text);
        font-weight: 700;
        text-align: center;
        letter-spacing: .3px;
        transition: all .2s ease;
    }

        .blk-brands .brand-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(0,0,0,.08);
        }

@media (max-width: 1199.98px) {
    .blk-brands .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .blk-brands .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .blk-brands .brand-grid {
        grid-template-columns: 1fr;
    }
}
