/* ==========================================================================
   Responsive
   Breakpoints: 1100px · 900px · 768px · 520px
   ========================================================================== */

/* Desktop default — hamburger gizli
   -------------------------------------------------------------------------- */
.menu-toggle {
    display: none;
}

.related-swiper__pagination {
    display: none;
}

/* Desktop — related swiper'ı grid gibi göster
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
    .related-swiper.swiper {
        overflow: visible;
        margin: 0;
    }

    .related-swiper .related-products__grid.swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 45px;
        transform: none !important;
    }

    .related-swiper .swiper-slide {
        width: auto !important;
        height: auto;
        margin: 0 !important;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .related-swiper .related-products__grid.swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Large — max 1100px
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .menu__list {
        gap: 28px;
    }

    .logo img {
        width: 140px;
    }

    /* Related Products */
    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Category Page */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid--wide {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid--landscape {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet — max 900px
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Header / Mobile Menu */
    header {
        height: 68px;
    }

    .logo img {
        width: 120px;
    }

    .header-buttons {
        gap: 14px;
        align-items: center;
        flex-shrink: 0;
    }

    .header-buttons a img {
        width: 20px;
        height: 20px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: none;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle__line {
        display: block;
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        transition:
            transform 0.25s ease,
            opacity 0.25s ease;
    }

    body.menu-open .menu-toggle__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .menu-toggle__line:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .menu-toggle__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 99;
        display: block;
        max-height: 0;
        overflow: hidden;
        overflow-y: auto;
        background: rgba(15, 18, 24, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: max-height 0.35s ease;
    }

    body.menu-open .menu {
        max-height: min(80vh, 640px);
    }

    body.menu-open {
        overflow: hidden;
    }

    .menu__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 24px;
    }

    .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item__link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        line-height: 1.4;
        font-size: 15px;
        letter-spacing: 0.04em;
    }

    .menu-item__chevron {
        width: 12px;
        height: 8px;
    }

    .menu-dropdown {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        min-width: 0;
        width: 100%;
        padding-top: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu-item.is-open > .menu-dropdown {
        max-height: 420px;
    }

    .menu-dropdown__inner {
        background: transparent;
        color: #fff;
        border: none;
        box-shadow: none;
        padding: 0 0 12px;
    }

    .menu-dropdown__label {
        display: none;
    }

    .menu-dropdown__list {
        padding: 0 0 0 4px;
    }

    .menu-dropdown__link {
        color: rgba(255, 255, 255, 0.72);
        padding: 10px 0;
        font-size: 14px;
        letter-spacing: 0.02em;
        text-transform: none;
    }

    .menu-dropdown__link:hover,
    .menu-dropdown__link:focus-visible {
        color: #fff;
        background: transparent;
        padding-left: 8px;
    }

    .menu-dropdown__all {
        margin: 4px 0 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

    .menu-dropdown__all:hover,
    .menu-dropdown__all:focus-visible {
        color: #c4a574;
    }

    .menu-item.has-dropdown:hover > .menu-dropdown,
    .menu-item.has-dropdown:focus-within > .menu-dropdown {
        transform: none;
    }

    .menu-item.has-dropdown:not(.is-open):hover > .menu-dropdown,
    .menu-item.has-dropdown:not(.is-open):focus-within > .menu-dropdown {
        max-height: 0;
    }

    /* Hero */
    .hero-swiper {
        height: 70vh;
        min-height: 420px;
        max-height: 560px;
    }

    .hero-cta {
        left: 20px;
        right: auto;
        bottom: 56px;
        width: max-content;
        max-width: calc(100% - 40px);
        justify-content: center;
        font-size: 14px;
        padding: 12px 18px;
        white-space: nowrap;
    }

    .hero-swiper .swiper-pagination {
        bottom: 20px !important;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 24px;
    }

    /* Categories */
    .categories-section {
        padding: 48px 0;
    }

    .categories-header {
        margin-bottom: 32px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Featured */
    .featured-section {
        padding: 72px 0 80px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .product-card__image {
        height: auto;
        aspect-ratio: 4 / 3;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    /* About */
    .about-section {
        padding: 56px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-gallery {
        max-width: 100%;
    }

    .about-gallery__image {
        aspect-ratio: 4 / 3;
        margin-bottom: 12px;
    }

    .about-gallery-group-2 {
        top: 0;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    /* Product Detail */
    .product-detail {
        padding: 110px 0 72px;
    }

    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-gallery {
        max-width: 100%;
        margin-right: 0;
    }

    .product-gallery__main-image {
        aspect-ratio: 4 / 5;
    }

    .product-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .product-gallery__thumb {
        width: 88px;
        height: 88px;
        flex-shrink: 0;
    }

    .product-info__title {
        font-size: 32px;
        max-width: 100%;
    }

    .product-info__actions {
        flex-direction: column;
    }

    .product-info__btn-primary {
        max-width: none;
        width: 100%;
        min-height: 39px;
    }

    .product-info__wishlist {
        width: 100%;
        height: 52px;
    }

    .product-info__content-text {
        max-width: 100%;
    }

    .product-info__features {
        gap: 16px 20px;
    }

    .product-tabs {
        padding: 0 0 80px;
    }

    .product-tabs__nav {
        gap: 20px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-tabs__btn {
        flex-shrink: 0;
    }

    .related-products {
        padding-bottom: 72px;
    }

    .related-products__header {
        margin-bottom: 28px;
    }

    .related-swiper {
        overflow: hidden;
        padding-bottom: 36px;
    }

    .related-swiper .related-products__grid {
        display: flex;
        gap: 0;
    }

    .related-swiper .swiper-slide {
        height: auto;
    }

    .related-swiper .related-card {
        height: 100%;
    }

    .related-swiper .related-card__name {
        font-size: 13px;
        line-height: 1.35;
    }

    .related-swiper .related-card__price {
        font-size: 14px;
    }

    .related-swiper .related-card__footer {
        flex-wrap: wrap;
        gap: 8px;
    }

    .related-swiper__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        bottom: 0 !important;
    }

    .related-swiper__pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
        margin: 0 !important;
        background: #d3c7b6;
        opacity: 1;
    }

    .related-swiper__pagination .swiper-pagination-bullet-active {
        background: #8e6e53;
    }

    /* Category Page */
    .category-page {
        padding: 100px 0 64px;
    }

    .category-page__title {
        font-size: 22px;
    }

    .category-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .category-filters {
        width: 100%;
        gap: 12px;
    }

    .category-filter {
        min-width: 0;
        padding: 10px 14px;
    }

    .category-grid {
        gap: 28px 20px;
    }

    .category-grid--wide {
        margin-top: 56px;
        gap: 28px 20px;
    }

    .category-grid--landscape {
        margin-top: 28px;
        gap: 28px 20px;
    }

    .catalog-card__cart {
        transform: translateY(0);
    }

    .catalog-card__badge {
        width: auto;
        min-width: 0;
        padding: 6px 10px;
    }

    /* Footer */
    .site-footer {
        padding-top: 48px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 36px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .footer-cta {
        gap: 32px;
    }

    .footer-bottom {
        align-items: flex-start;
    }

    /* Mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        align-items: stretch;
        justify-content: space-around;
        gap: 2px;
        min-height: 64px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(252, 250, 247, 0.96);
        border-top: 1px solid rgba(142, 110, 83, 0.16);
        box-shadow: 0 -8px 28px rgba(26, 26, 26, 0.08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav__item {
        flex: 1;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 6px 4px;
        border: 0;
        background: transparent;
        color: #6b5e54;
        text-decoration: none;
        font-family: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease;
    }

    .mobile-bottom-nav__icon {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-nav__icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-nav__label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.04em;
        line-height: 1.2;
        white-space: nowrap;
    }

    .mobile-bottom-nav__item.is-active,
    .mobile-bottom-nav__item.is-open,
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:focus-visible {
        color: #8e6e53;
    }

    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
        font-weight: 600;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer {
        padding-bottom: 24px;
    }

    /* Category bottom sheet */
    .mobile-category-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 220;
        pointer-events: none;
    }

    .mobile-category-sheet.is-open {
        pointer-events: auto;
    }

    .mobile-category-sheet__backdrop {
        position: absolute;
        inset: 0;
        border: 0;
        background: rgba(20, 18, 16, 0.45);
        opacity: 0;
        transition: opacity 0.28s ease;
        cursor: pointer;
    }

    .mobile-category-sheet.is-open .mobile-category-sheet__backdrop {
        opacity: 1;
    }

    .mobile-category-sheet__panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: min(78vh, 640px);
        display: flex;
        flex-direction: column;
        background: #fcfaf7;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
        transform: translateY(110%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-category-sheet.is-open .mobile-category-sheet__panel {
        transform: translateY(0);
    }

    .mobile-category-sheet__handle {
        width: 40px;
        height: 4px;
        border-radius: 999px;
        background: rgba(142, 110, 83, 0.28);
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    .mobile-category-sheet__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 20px 14px;
        border-bottom: 1px solid rgba(142, 110, 83, 0.12);
    }

    .mobile-category-sheet__header h2 {
        margin: 0;
        font-family: "Playfair Display", serif;
        font-size: 22px;
        font-weight: 500;
        color: #1a1a1a;
    }

    .mobile-category-sheet__close {
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 50%;
        background: rgba(142, 110, 83, 0.08);
        color: #6b5e54;
        cursor: pointer;
    }

    .mobile-category-sheet__close svg {
        width: 18px;
        height: 18px;
    }

    .mobile-category-sheet__list {
        list-style: none;
        margin: 0;
        padding: 8px 12px 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-category-sheet__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 10px;
        color: #1a1a1a;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    }

    .mobile-category-sheet__link svg {
        width: 14px;
        height: 14px;
        color: #8e6e53;
        flex-shrink: 0;
    }

    .mobile-category-sheet__link.is-active,
    .mobile-category-sheet__link:hover {
        color: #8e6e53;
    }

    .mobile-category-sheet__sublist {
        list-style: none;
        margin: 0;
        padding: 4px 10px 12px 18px;
    }

    .mobile-category-sheet__sublist a {
        display: block;
        padding: 9px 0;
        color: #6b5e54;
        text-decoration: none;
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .mobile-category-sheet__sublist a:hover {
        color: #8e6e53;
    }

    .mobile-category-sheet__empty {
        padding: 24px 12px;
        text-align: center;
        color: #6b5e54;
        font-size: 14px;
    }

    body.category-sheet-open {
        overflow: hidden;
    }

    body.menu-open .mobile-bottom-nav {
        opacity: 0.35;
        pointer-events: none;
    }
}

/* Tablet Small — max 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Categories */
    .categories-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 28px;
    }

    .categories-header__left {
        max-width: 100%;
    }

    .categories-header__desc {
        max-width: 100%;
    }

    /* Featured Products */
    .featured-section {
        padding: 64px 0 72px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }

    .featured-header__title {
        font-size: 22px;
    }

    /* About */
    .about-content__desc {
        margin-bottom: 32px;
    }

    .about-features__item {
        padding: 16px 0 18px 14px;
    }

    /* Category Page */
    .category-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .category-filter {
        flex-shrink: 0;
    }

    .category-sort {
        width: 100%;
        justify-content: flex-start;
    }

    .category-grid,
    .category-grid--wide,
    .category-grid--landscape {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .category-grid--wide {
        margin-top: 40px;
    }

    .catalog-card--wide .catalog-card__body,
    .catalog-card--landscape .catalog-card__body {
        align-items: flex-start;
    }

    /* Product Detail */
    .product-info__title {
        font-size: 28px;
    }

    .product-info__sku,
    .product-info__pricing {
        margin-bottom: 24px;
    }

    .size-option {
        min-width: calc(50% - 5px);
        flex: 1 1 calc(50% - 5px);
        text-align: center;
    }

    .product-info__features {
        justify-content: space-between;
    }

    .product-feature {
        min-width: 72px;
    }

    .related-products__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Mobile — max 520px
   -------------------------------------------------------------------------- */
@media (max-width: 520px) {
    .container {
        padding: 0 16px;
    }

    header {
        height: 60px;
    }

    .logo img {
        width: 108px;
    }

    .header-buttons {
        gap: 12px;
    }

    .menu {
        top: 60px;
    }

    .menu__list {
        padding: 8px 16px 20px;
    }

    /* Hero */
    .hero-swiper {
        height: 62vh;
        min-height: 380px;
    }

    .hero-cta {
        left: 16px;
        right: auto;
        bottom: 52px;
        width: max-content;
        max-width: calc(100% - 32px);
        white-space: nowrap;
        text-align: center;
        font-size: 13px;
        padding: 12px 18px;
        min-height: 40px;
    }

    .hero-swiper .swiper-pagination-bullet {
        width: 18px;
    }

    /* Categories */
    .categories-section {
        padding: 40px 0;
    }

    .categories-header {
        margin-bottom: 24px;
    }

    .categories-header__title {
        font-size: 20px;
    }

    .categories-header__desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card {
        aspect-ratio: 4 / 3;
    }

    .category-card__label {
        left: 14px;
        bottom: 14px;
        font-size: 12px;
    }

    /* Featured */
    .featured-section {
        padding: 48px 0 56px;
    }

    .featured-header__title {
        font-size: 20px;
        line-height: 1.3;
    }

    .product-card__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .product-card__name {
        font-size: 15px;
    }

    .product-card__price {
        font-size: 18px;
    }

    /* About */
    .about-section {
        padding: 48px 0;
    }

    .about-content__title {
        font-size: 22px;
    }

    .about-content__desc {
        margin-bottom: 28px;
    }

    .about-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .about-gallery__image {
        margin-bottom: 10px;
    }

    /* Benefits */
    .benefits-section {
        padding: 40px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefit-item__text {
        max-width: 100%;
    }

    /* Related Products */
    .related-products__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-products__title {
        font-size: 20px;
        line-height: 1.3;
    }

    .related-swiper {
        padding-bottom: 32px;
    }

    .related-swiper .related-card__category {
        font-size: 10px;
    }

    .related-swiper .related-card__name {
        font-size: 12px;
    }

    .related-swiper .related-card__badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    /* Product Detail */
    .product-detail {
        padding: 90px 0 56px;
    }

    .product-info__title {
        font-size: 24px;
        line-height: 1.25;
    }

    .product-info__price {
        font-size: 22px;
    }

    .product-gallery__main-image {
        aspect-ratio: 1 / 1;
    }

    .product-gallery__thumb {
        width: 72px;
        height: 72px;
    }

    .product-gallery__zoom-hint {
        font-size: 11px;
        padding: 8px 10px;
    }

    .product-info__size-options {
        gap: 8px;
    }

    .size-option {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
        padding: 10px 12px;
        font-size: 13px;
    }

    .product-tabs__nav {
        gap: 16px;
        margin-bottom: 24px;
    }

    .product-tabs__panel p {
        font-size: 13px;
    }

    .product-lightbox {
        padding: 12px;
    }

    .product-lightbox__shell {
        height: 85vh;
    }

    .product-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .product-lightbox__toolbar {
        gap: 8px;
    }

    /* Category Page */
    .category-page {
        padding: 90px 0 56px;
    }

    .category-page__header {
        margin-bottom: 24px;
    }

    .category-page__title {
        font-size: 20px;
        line-height: 1.3;
    }

    .category-toolbar {
        margin-bottom: 24px;
    }

    .category-grid,
    .category-grid--wide,
    .category-grid--landscape {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-grid--wide {
        margin-top: 32px;
    }

    .catalog-card__cart {
        transform: translateY(0);
        height: 44px;
        font-size: 11px;
    }

    .catalog-card__body {
        gap: 12px;
    }

    .catalog-card__name {
        font-size: 13px;
    }

    .catalog-card__price {
        font-size: 15px;
    }

    /* Footer */
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand__desc {
        max-width: 100%;
    }

    .footer-cta__card p {
        max-width: 100%;
    }

    .footer-bottom {
        gap: 16px;
        padding: 20px 0 24px;
    }

    .footer-bottom__legal-list {
        justify-content: flex-start;
        gap: 8px 12px;
    }

    .footer-bottom__copy,
    .footer-bottom__credits {
        text-align: left;
    }
}
