/* ==========================================================================
   Yula Baby: iç sayfalar (kategori, ürün, sepet, kurumsal sayfalar)
   yula.css üzerine kurulur; aynı belirteçleri kullanır.
   ========================================================================== */

/* 1. Kategori (ürün listesi) --------------------------------------------- */
.y-plp-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 40px); }
.y-plp-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.03em;
    padding-bottom: 0.04em;
}
.y-plp-head .y-meta { margin-top: 10px; }

.y-filterbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 14px 0;
    margin-bottom: clamp(24px, 3vw, 40px);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.y-filterbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.y-select { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.y-select select {
    appearance: none;
    -webkit-appearance: none;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--milk);
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.3s var(--ease);
}
.y-select select:hover { border-color: var(--ink-3); }
.y-select select:focus { outline: none; border-color: var(--ink); }
.y-select .y-icon { position: absolute; right: 12px; width: 14px; height: 14px; pointer-events: none; color: var(--ink-2); }
.y-select--block { display: flex; }
.y-select--block select { width: 100%; }

.y-price-range { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.y-input-sm {
    width: 96px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--milk);
    font-size: 0.85rem;
    color: var(--ink);
}
.y-input-sm::placeholder { color: var(--ink-3); }
.y-input-sm:focus { outline: none; border-color: var(--ink); }

.y-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.85rem; color: var(--ink-2); user-select: none; padding: 0 6px; }
.y-switch__track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: var(--studio);
    border: 1px solid var(--line);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.y-switch__dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--milk);
    transition: transform 0.35s var(--ease);
}
.y-switch input:focus-visible + .y-switch__track { outline: 2px solid var(--taupe); outline-offset: 3px; }

.y-mfilterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.y-mfilterbar__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.y-mfilterbar__btn .y-icon { width: 18px; height: 18px; }

.y-plp-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(32px, 3.4vw, 52px) clamp(10px, 1.1vw, 18px);
    padding-bottom: clamp(72px, 8vw, 120px);
}
@media (max-width: 1100px) { .y-plp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .y-plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 10px; } }

.y-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(56px, 8vw, 110px) 16px;
}
.y-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--taupe);
}
.y-empty__icon .y-icon { width: 26px; height: 26px; }
.y-empty__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.y-empty__desc { margin: 12px 0 26px; max-width: 46ch; font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }

/* Mobil filtre çekmecesi */
.y-fdrawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--line-soft); flex: none; }
.y-fdrawer__group { padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.y-fdrawer__label { display: block; margin-bottom: 12px; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.y-fdrawer__foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-soft); flex: none; background: var(--milk); }
.y-chip {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--milk);
    transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.y-chip:hover { border-color: var(--ink); }
.y-field-sm { position: relative; display: block; }
.y-field-sm input {
    width: 100%;
    height: 44px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--line);
    background: var(--milk);
    font-size: 0.9rem;
}
.y-field-sm input:focus { outline: none; border-color: var(--ink); }
.y-field-sm span[aria-hidden] { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.8rem; color: var(--ink-3); }

/* 2. Ürün detay ------------------------------------------------------------- */
.y-pdp {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
    margin-top: clamp(12px, 2vw, 24px);
}
@media (max-width: 1023px) { .y-pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.y-gallery { display: grid; gap: 12px; }
.y-gallery.has-thumbs { grid-template-columns: 76px minmax(0, 1fr); }
.y-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; max-height: 760px; overflow-y: auto; scrollbar-width: none; }
.y-gallery__thumbs::-webkit-scrollbar { display: none; }
.y-gallery__thumb { position: relative; flex: none; width: 76px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); transition: border-color 0.3s var(--ease); }
.y-gallery__main { position: relative; aspect-ratio: 4 / 5; max-height: 86vh; width: 100%; background: var(--paper); overflow: hidden; }
.y-gallery__zoom { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 0; cursor: zoom-in; background: none; border: 0; }
.y-gallery__zoom img { width: 100%; height: 100%; object-fit: cover; }
.y-gallery__zoomhint {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(250, 250, 249, 0.9);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.y-gallery__zoomhint .y-icon { width: 18px; height: 18px; }
.y-gallery__main:hover .y-gallery__zoomhint { opacity: 1; }
.y-gallery__nav {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(to top, rgba(250, 250, 249, 0.85), rgba(250, 250, 249, 0));
}
.y-gallery__nav .y-icon { width: 18px; height: 18px; }

@media (max-width: 1023px) {
    .y-gallery.has-thumbs { grid-template-columns: minmax(0, 1fr); }
    .y-gallery__thumbs { order: 2; flex-direction: row; max-height: none; overflow-x: auto; }
    .y-gallery__thumb { width: 64px; }
    .y-gallery__main { max-height: none; }
}

.y-pdp__info { padding-top: 4px; }
@media (min-width: 1024px) {
    .y-pdp__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.y-pdp__meta { font-size: var(--fs-meta); color: var(--ink-2); margin-bottom: 10px; }
.y-pdp__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.026em;
}
.y-pdp__color { margin-top: 8px; font-size: 0.9rem; color: var(--ink-2); }
.y-pdp__price { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-variant-numeric: tabular-nums; }
.y-pdp__now { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.01em; }
.y-pdp__was { font-size: 1rem; color: var(--ink-3); }
.y-pdp__vat { margin-top: 4px; font-size: var(--fs-meta); color: var(--ink-3); }
.y-pdp__sizes { margin-top: 30px; }
.y-pdp__sizes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.y-pdp__sizes-head h2 { font-size: 0.875rem; font-weight: 600; }
.y-pdp__sizes-head h2 span { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.y-pdp__guide { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: text-decoration-color 0.3s var(--ease); }
.y-pdp__guide:hover { text-decoration-color: var(--ink); }
.y-pdp__guide .y-icon { width: 16px; height: 16px; }
.y-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.y-size { height: 48px; padding: 0 10px; font-size: 0.9rem; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.y-pdp__ages { margin-top: 12px; font-size: var(--fs-meta); color: var(--ink-3); }
.y-pdp__notice { padding: 16px 18px; background: var(--paper); font-size: 0.9rem; color: var(--ink-2); }
#add-to-cart-btn { margin-top: 22px; }
.y-pdp__service { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.y-pdp__service li { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; color: var(--ink-2); }
.y-pdp__service .y-icon { width: 19px; height: 19px; color: var(--ink); }
.y-pdp__details { margin-top: 32px; border-top: 1px solid var(--line); }

.y-acc { border-bottom: 1px solid var(--line); }
.y-acc__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; text-align: left; background: none; border: 0; cursor: pointer; }
.y-acc__trigger h2 { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.y-acc__icon { display: inline-flex; color: var(--ink-2); }
.y-acc__icon .y-icon { width: 16px; height: 16px; }

.y-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-bottom: 22px; }
.y-facts dt { font-size: var(--fs-meta); color: var(--ink-3); }
.y-facts dd { margin-top: 2px; font-size: 0.9rem; color: var(--ink); }

.y-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(10px, 1.1vw, 18px); }
@media (max-width: 900px) { .y-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 3. Kurumsal / metin sayfaları ----------------------------------------- */
.y-page { padding-bottom: clamp(72px, 9vw, 140px); }
.y-page__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.9rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.032em;
    padding-bottom: 0.04em;
}
.y-page__lede { margin-top: 18px; max-width: 52ch; font-size: var(--fs-lede); line-height: 1.65; color: var(--ink-2); }

.y-prose { max-width: 72ch; font-size: 0.975rem; line-height: 1.75; color: var(--ink-2); }
.y-prose h2, .y-prose h3 { font-family: var(--font-display); color: var(--ink); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.y-prose h2 { font-size: 1.6rem; margin: 2.4em 0 0.6em; }
.y-prose h3 { font-size: 1.25rem; margin: 2em 0 0.5em; }
.y-prose p, .y-prose ul, .y-prose ol { margin: 0 0 1.1em; }
.y-prose ul { list-style: disc; padding-left: 1.2em; }
.y-prose ol { list-style: decimal; padding-left: 1.2em; }
.y-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.y-prose strong { color: var(--ink); font-weight: 600; }

/* 4. Hakkımızda --------------------------------------------------------------- */
.y-about-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(20px, 3vw, 36px); }
.y-about-intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 110px);
    align-items: end;
    padding-bottom: clamp(80px, 10vw, 160px);
}
.y-about-intro__text .y-page__lede { margin-top: 26px; max-width: 58ch; }
.y-about-intro__media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 999px 999px 0 0;
    background: var(--studio);
}
.y-about-intro__media img, .y-about-pillars__media img, .y-about-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.y-about-pillars {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 7vw, 130px);
    align-items: center;
    padding-bottom: clamp(80px, 10vw, 160px);
}
.y-about-pillars__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--studio); }
.y-about-pillars__text { display: grid; gap: clamp(36px, 4vw, 56px); }
.y-about-pillars__text article { padding-top: 22px; border-top: 1px solid var(--line); }
.y-about-pillars__text .y-h3 { margin: 8px 0 12px; }
.y-about-pillars__text p:last-child { color: var(--ink-2); line-height: 1.7; max-width: 60ch; }
.y-about-label { font-size: var(--fs-meta); color: var(--taupe-deep); font-weight: 500; }

.y-about-values { padding-bottom: clamp(80px, 10vw, 150px); }
.y-values {
    list-style: none;
    margin: clamp(28px, 4vw, 48px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px clamp(20px, 3vw, 48px);
    counter-reset: v;
}
.y-values li { padding-top: 20px; border-top: 1px solid var(--ink); }
.y-values h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; }
.y-values p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.65; }

.y-about-strip { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2px; margin-bottom: clamp(64px, 8vw, 120px); }
.y-about-strip figure { aspect-ratio: 4 / 3; overflow: hidden; background: var(--studio); }

@media (max-width: 900px) {
    .y-about-intro, .y-about-pillars { grid-template-columns: minmax(0, 1fr); }
    .y-about-intro__media { width: 88%; margin-inline: auto; }
    .y-about-pillars__media { order: 2; }
    .y-values { grid-template-columns: minmax(0, 1fr); }
    .y-about-strip { grid-template-columns: 1fr 1fr; }
}
