/* MK-02 — Collection / PLP */

body.theme-makesy .mk-breadcrumb {
    padding-block: 1rem;
    border-bottom: 1px solid var(--mk-border);
    font-size: 0.75rem;
    font-weight: 300;
}

body.theme-makesy .mk-breadcrumb__list {
    --bs-breadcrumb-divider-color: var(--mk-muted);
}

body.theme-makesy .mk-breadcrumb .breadcrumb-item a {
    color: var(--mk-muted);
}

body.theme-makesy .mk-breadcrumb .breadcrumb-item.active {
    color: var(--mk-brown);
}

body.theme-makesy .mk-plp {
    padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
}

body.theme-makesy .mk-plp-hero {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 768px) {
    body.theme-makesy .mk-plp-hero {
        grid-template-columns: 1fr auto;
    }
}

/* .mk-plp-hero__title — see makesy-storefront.css (Cormorant Garamond section titles) */

body.theme-makesy .mk-plp-hero__desc {
    margin-top: 0.75rem;
    max-width: 42rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mk-muted);
    line-height: 1.55;
}

body.theme-makesy .mk-plp-hero__desc p {
    margin: 0 0 0.75em;
}

body.theme-makesy .mk-plp-hero__desc p:last-child {
    margin-bottom: 0;
}

body.theme-makesy .mk-plp-hero__media img {
    width: 100%;
    max-width: 280px;
    border-radius: var(--mk-radius-lg, 0.625rem);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

body.theme-makesy .mk-plp-subnav {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mk-border);
    overflow-x: visible;
}

body.theme-makesy .mk-plp-subnav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-makesy .mk-plp-subnav__link {
    font-size: 0.875rem;
    color: var(--mk-brown);
    white-space: nowrap;
}

body.theme-makesy .mk-plp-subnav__link.is-active,
body.theme-makesy .mk-plp-subnav__link {
    transition: color 0.2s ease-in-out;
}

body.theme-makesy .mk-plp-subnav__link:hover {
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-plp-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1200px) {
    body.theme-makesy .mk-plp-layout {
        grid-template-columns: 288px minmax(0, 1fr);
        gap: 3rem;
    }
}

/* —— Kategori ağacı (yan menü) —— */
body.theme-makesy .mk-plp-cat-nav {
    padding: 0.75rem;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg, 0.625rem);
    background: var(--mk-surface, #fff);
}

body.theme-makesy .mk-plp-cat-nav__all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--mk-brown);
    border-radius: calc(var(--mk-radius-lg, 0.625rem) - 2px);
    transition: background 0.2s ease, color 0.2s ease;
}

body.theme-makesy .mk-plp-cat-nav__all:hover {
    background: rgba(116, 104, 94, 0.06);
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-plp-cat-nav__all.is-active {
    background: rgba(116, 104, 94, 0.1);
    color: var(--mk-brown);
}

body.theme-makesy .mk-plp-cat-nav__roots,
body.theme-makesy .mk-plp-cat-nav__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-makesy .mk-plp-cat-nav__item--root {
    border-top: 1px solid var(--mk-border);
}

body.theme-makesy .mk-plp-cat-nav__item--root:first-child {
    border-top: none;
}

body.theme-makesy .mk-plp-cat-nav__row {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

body.theme-makesy .mk-plp-cat-nav__link {
    flex: 1;
    min-width: 0;
    display: block;
    padding: 0.65rem 0.5rem 0.65rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--mk-brown);
    border-radius: calc(var(--mk-radius-lg, 0.625rem) - 2px);
    transition: background 0.2s ease, color 0.2s ease;
}

body.theme-makesy .mk-plp-cat-nav__link--root {
    font-family: var(--mk-font-display, var(--mk-font));
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

body.theme-makesy .mk-plp-cat-nav__link--solo {
    padding-right: 0.75rem;
}

body.theme-makesy .mk-plp-cat-nav__link--child {
    padding: 0.45rem 0.5rem 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--mk-muted);
    border-left: 2px solid transparent;
    border-radius: 0 calc(var(--mk-radius-lg, 0.625rem) - 2px) calc(var(--mk-radius-lg, 0.625rem) - 2px) 0;
}

body.theme-makesy .mk-plp-cat-nav__link:hover {
    color: var(--mk-link-hover);
    background: rgba(116, 104, 94, 0.05);
}

body.theme-makesy .mk-plp-cat-nav__link.is-active {
    color: var(--mk-brown);
    font-weight: 500;
    background: rgba(116, 104, 94, 0.08);
}

body.theme-makesy .mk-plp-cat-nav__link--child.is-active {
    border-left-color: var(--mk-brown);
    color: var(--mk-brown);
}

body.theme-makesy .mk-plp-cat-nav__toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    margin: 0.35rem 0.25rem 0.35rem 0;
    padding: 0;
    border: none;
    border-radius: calc(var(--mk-radius-lg, 0.625rem) - 2px);
    background: transparent;
    color: var(--mk-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.theme-makesy .mk-plp-cat-nav__toggle:hover {
    background: rgba(116, 104, 94, 0.08);
    color: var(--mk-brown);
}

body.theme-makesy .mk-plp-cat-nav__toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

body.theme-makesy .mk-plp-cat-nav__toggle .bi {
    display: block;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

body.theme-makesy .mk-plp-cat-nav__toggle--sm {
    width: 1.75rem;
    margin-block: 0.2rem;
}

body.theme-makesy .mk-plp-cat-nav__collapse {
    padding-bottom: 0.25rem;
}

body.theme-makesy .mk-plp-cat-nav__sub {
    padding-left: 0.35rem;
}

body.theme-makesy .mk-plp-cat-nav__sub--deep {
    padding-left: 0.75rem;
    border-left: 1px solid var(--mk-border);
    margin-left: 0.75rem;
}

body.theme-makesy .mk-plp-filters__title {
    margin: 0 0 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mk-muted);
}

body.theme-makesy .mk-plp-filters__title--brands {
    margin-top: 1.5rem;
}

body.theme-makesy .mk-plp-filters__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.theme-makesy .mk-plp-filters__list--brands {
    padding: 0 0.25rem;
}

body.theme-makesy .mk-plp-filters__link {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mk-brown);
    transition: color 0.2s ease-in-out;
}

body.theme-makesy .mk-plp-filters__link.is-active {
    color: var(--mk-brown);
    font-weight: 500;
}

body.theme-makesy .mk-plp-filters__link:hover {
    color: var(--mk-link-hover);
}

body.theme-makesy .mk-plp-filters__search {
    margin-top: 1.5rem;
}

body.theme-makesy .mk-plp-filters__search-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mk-muted);
}

body.theme-makesy .mk-plp-filters__search-row {
    display: flex;
    gap: 0.5rem;
}

body.theme-makesy .mk-plp-filters__search-input {
    flex: 1;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg, 0.625rem);
    font-family: var(--mk-font);
}

body.theme-makesy .mk-plp-filters__search-btn {
    min-width: 44px;
    padding-inline: 0.75rem;
}

body.theme-makesy .mk-plp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mk-border);
    margin-bottom: 1rem;
}

body.theme-makesy .mk-plp-toolbar__count {
    margin: 0;
    flex: 1;
    font-size: 0.875rem;
    color: var(--mk-muted);
}

body.theme-makesy .mk-plp-toolbar__sort-select {
    min-height: 44px;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius-lg, 0.625rem);
    background-color: #fff;
    font-family: var(--mk-font);
    font-size: 0.875rem;
    color: var(--mk-brown);
}

body.theme-makesy .mk-btn--ghost {
    background: transparent;
    border: 1px solid var(--mk-brown);
    color: var(--mk-brown);
    border-radius: 3.75rem;
    min-height: 44px;
    padding-inline: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--mk-btn-font-family);
    font-size: var(--mk-btn-font-size);
    font-weight: var(--mk-btn-font-weight);
    letter-spacing: var(--mk-btn-letter-spacing);
    text-transform: var(--mk-btn-text-transform);
    transition:
        background-color 0.2s ease-in-out,
        color 0.2s ease-in-out,
        border-color 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
    body.theme-makesy .mk-btn--ghost:hover {
        background: #fff;
        color: var(--mk-brown);
        box-shadow: inset 0 0 0 1.25px #fff;
    }
}

body.theme-makesy .mk-plp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

body.theme-makesy .mk-plp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 3.75rem;
    border: 1px solid var(--mk-border);
    font-size: 0.75rem;
    color: var(--mk-brown);
    background: #fff;
}

body.theme-makesy .mk-plp-chip:hover {
    border-color: var(--mk-brown);
}

body.theme-makesy .mk-plp-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mk-muted);
}

body.theme-makesy .mk-plp-pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

body.theme-makesy .mk-plp-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: 50%;
    border: 1px solid transparent;
    font-size: 0.875rem;
    color: var(--mk-brown);
}

body.theme-makesy .mk-plp-pagination__link.is-active {
    background: var(--mk-brown);
    color: #fff;
}

body.theme-makesy .mk-plp-pagination__link:hover:not(.is-active) {
    border-color: var(--mk-border);
}

/* Product cards — görsel 3:4, object-fit cover, eşit kart yüksekliği */
body.theme-makesy {
    --mk-product-media-ratio: 3 / 4;
}

body.theme-makesy .mk-plp-grid.mk-plp-grid--collection {
    --mk-plp-media-ratio: 3 / 4;
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 2rem;
    align-items: stretch;
}

body.theme-makesy .mk-plp-grid.mk-plp-grid--collection > [class*='col'] {
    display: flex;
}

@media (max-width: 991.98px) {
    body.theme-makesy .mk-plp-grid.mk-plp-grid--collection > .col {
        flex: 0 0 auto;
        width: 50%;
        max-width: 50%;
    }
}

body.theme-makesy .mk-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

body.theme-makesy .mk-product-card__media {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: var(--mk-product-media-ratio, 3 / 4);
    max-height: none;
    border-radius: 12px;
    overflow: hidden;
    background: #ebe6e1;
    isolation: isolate;
}

body.theme-makesy .mk-product-card__image-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

body.theme-makesy .mk-product-card__image,
body.theme-makesy .mk-product-card .card-img-top.mk-product-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

body.theme-makesy .mk-product-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

body.theme-makesy .mk-product-card .ratings {
    display: none !important;
}

@media (min-width: 700px) {
    body.theme-makesy .mk-plp-grid.mk-plp-grid--collection {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 3rem;
    }
}

body.theme-makesy .mk-product-card__body,
body.theme-makesy .mk-plp-grid .mk-product-card__body {
    border: none !important;
    padding: 10px 0 0;
    text-align: left;
}

body.theme-makesy .mk-product-card__title,
body.theme-makesy .mk-product-card .product-short-title {
    margin: 0 0 4px;
    font-family: var(--mk-font);
    font-size: var(--theme-product-card-title-size, 12px);
    line-height: 1.35;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
}

body.theme-makesy .mk-product-card .mk-plp-card__title-link {
    color: var(--mk-brown, #502c1e);
    text-decoration: none;
    font-weight: inherit;
}

body.theme-makesy .mk-product-card .mk-plp-card__title-link:hover {
    color: var(--mk-brown, #502c1e);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.theme-makesy .mk-product-card__excerpt {
    margin: 0 0 6px;
    font-family: var(--mk-font);
    font-size: var(--theme-product-card-excerpt-size, 11px);
    line-height: 1.45;
    font-weight: 400;
    color: var(--mk-muted, #8a7a72);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.theme-makesy .mk-product-card__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    margin: 0;
}

body.theme-makesy .mk-product-card .mk-plp-price--current {
    font-family: var(--mk-font);
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600 !important;
    color: var(--mk-brown, #502c1e) !important;
    opacity: 1;
}

body.theme-makesy .mk-product-card .mk-plp-price--compare {
    font-size: 12px;
    font-weight: 400 !important;
    text-decoration: line-through;
    color: var(--mk-muted, #8a7a72) !important;
    opacity: 1;
}

/* Favori — görsel sağ üst (Makesy vitrin) */
body.theme-makesy .mk-product-card__wish {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--mk-brown, #502c1e);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, color 0.15s ease;
}

body.theme-makesy .mk-product-card__wish:hover {
    color: var(--mk-brown, #502c1e);
    transform: scale(1.06);
}

body.theme-makesy .mk-product-card__wish.active {
    color: var(--mk-brown, #502c1e);
}

/* Ürün etiketleri (admin / otomatik kurallar) */
body.theme-makesy .mk-product-card__media .kf-product-badges {
    z-index: 4;
    pointer-events: none;
}

body.theme-makesy .mk-product-card__media .kf-product-badge {
    padding: 5px 10px;
    border-radius: 999px;
    font-family: var(--mk-font);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

body.theme-makesy .mk-product-card__media:has(.mk-product-card__wish) .kf-product-badges--top-right {
    right: 48px;
    max-width: calc(100% - 58px);
}

/* İndirim rozeti — sağ alt (etiket yoksa legacy %) */
body.theme-makesy .mk-product-card__media > .ribban {
    top: auto;
    left: auto;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.04em;
    background-color: var(--mk-brown, #502c1e);
    z-index: 3;
}

/* Sepet + hızlı görüntüle — hover, koyu yuvarlak ikonlar */
body.theme-makesy .mk-product-card__actions {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    gap: 8px;
    margin: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    z-index: 4;
    background: transparent;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.theme-makesy .mk-product-card:hover .mk-product-card__actions,
body.theme-makesy .mk-product-card:focus-within .mk-product-card__actions {
    visibility: visible;
    opacity: 1;
}

body.theme-makesy .mk-product-card__action {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(45, 28, 22, 0.92);
    color: #fff !important;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 18, 14, 0.28);
    transition: background 0.2s ease, transform 0.15s ease;
}

body.theme-makesy .mk-product-card__action:hover {
    background: var(--mk-brown, #502c1e);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Eski tema .product-options şeridini katalog kartında devre dışı */
body.theme-makesy .mk-product-card--catalog .product-options {
    width: auto;
    background: transparent;
    padding: 0;
}

body.theme-makesy .mk-plp-filter-drawer .offcanvas-header {
    border-bottom: 1px solid var(--mk-border);
}

body.theme-makesy .sg-shop-filter-toggle {
    display: none !important;
}

/* Alt kategori vitrin */
body.theme-makesy .mk-plp-layout--subcategory-landing .mk-plp-main {
    grid-column: 1 / -1;
    max-width: 100%;
}

body.theme-makesy .mk-subcategory-landing {
    margin-bottom: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--mk-radius-lg, 0.625rem);
    background: var(--mk-cream);
}

body.theme-makesy .mk-subcategory-landing__lead {
    margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mk-muted);
}

body.theme-makesy .mk-subcategory-landing__grid {
    display: grid;
    grid-template-columns: repeat(var(--mk-subcat-columns, 4), minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
    overflow: visible;
    scroll-snap-type: none;
}

@media (max-width: 991.98px) {
    body.theme-makesy .mk-subcategory-landing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.theme-makesy .mk-subcategory-landing__card {
        scroll-snap-align: none;
    }
}

body.theme-makesy .mk-subcategory-landing__card {
    display: block;
    text-decoration: none;
    color: inherit;
}

body.theme-makesy .mk-subcategory-landing__media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--mk-radius-lg, 0.625rem);
    background: var(--mk-ivory);
    border: 1px solid var(--mk-frame);
}

body.theme-makesy .mk-subcategory-landing__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

@media (hover: hover) {
    body.theme-makesy .mk-subcategory-landing__card:hover .mk-subcategory-landing__img {
        transform: scale(1.03);
    }
}

body.theme-makesy .mk-subcategory-landing .mk-subcategory-landing__label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem);
    margin: 0;
    padding: 0.35rem 0.65rem;
    font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    color: var(--mk-brown);
    background: rgba(255, 252, 248, 0.94);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    body.theme-makesy .mk-subcategory-landing__card:hover .mk-subcategory-landing__label {
        color: var(--mk-terracotta, var(--theme-color-accent, #ab6047));
    }
}

body.theme-makesy .mk-plp-subnav__link.is-active {
    color: var(--mk-accent);
    font-weight: 700;
}
