/*
  Aşama 3 (Hepsiburada-benzeri, sade ama dolu) — app.css'i GENİŞLETİR, üzerine yazmaz.
  Renk/ölçü değerleri :root tema token'larından okunur (§12.3); buradaki fallback'ler tema hiç
  basılamazsa devreye girer. Bu dosya App.razor'da app.css'ten SONRA yüklenir.
*/

/* ---------- Genel yardımcılar ---------- */

.sf-btn--ghost {
    background: transparent;
    border-color: var(--c-surface, #f7f7f5);
    color: var(--c-text, #1a1a1a);
}

.sf-btn--ghost:hover {
    border-color: var(--c-primary, #0f6e56);
    text-decoration: none;
}

.sf-btn--light {
    background: #fff;
    color: var(--c-primary, #0f6e56);
    border: none;
}

.sf-btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- Header: arama + öneri dropdown ---------- */

.sf-search-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 34rem;
}

.sf-suggest {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    background: var(--c-background, #fff);
    border: 1px solid var(--c-surface, #f7f7f5);
    border-radius: var(--radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 60;
    overflow: hidden;
}

.sf-suggest__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    color: var(--c-text, #1a1a1a);
    cursor: pointer;
}

.sf-suggest__item:hover,
.sf-suggest__item:focus-visible {
    background: var(--c-surface, #f7f7f5);
    text-decoration: none;
}

.sf-suggest__thumb {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: calc(var(--radius, 8px) / 1.6);
    object-fit: cover;
    background: var(--c-surface, #f7f7f5);
    flex: none;
}

.sf-suggest__name {
    flex: 1 1 auto;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-suggest__price {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.sf-suggest__empty {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    color: var(--c-muted, #6b6b6b);
}

/* ---------- Header: hesabım + sepet ---------- */

.sf-nav__account,
.sf-nav__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.9rem;
    color: var(--c-text, #1a1a1a);
    cursor: pointer;
    padding: 0.4rem 0.3rem;
    position: relative;
}

.sf-nav__account:hover,
.sf-nav__cart:hover {
    color: var(--c-primary, #0f6e56);
}

.sf-cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--c-danger, #c62828);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.sf-cart-badge.is-empty {
    background: var(--c-muted, #6b6b6b);
    opacity: 0.6;
}

/* ---------- Mega menü ---------- */

.sf-catbar__inner {
    align-items: center;
}

.sf-megamenu {
    position: relative;
}

.sf-megamenu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-primary, #0f6e56);
    color: #fff;
    border: none;
    border-radius: calc(var(--radius, 8px) / 1.6);
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.sf-megamenu__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.4rem;
    background: var(--c-background, #fff);
    border: 1px solid var(--c-surface, #f7f7f5);
    border-radius: var(--radius, 8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    padding: 1rem;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    width: max(38rem, 60vw);
    max-width: 90vw;
    z-index: 70;
}

.sf-megamenu:hover .sf-megamenu__panel,
.sf-megamenu:focus-within .sf-megamenu__panel,
.sf-megamenu.is-open .sf-megamenu__panel {
    display: grid;
}

.sf-megamenu__col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.sf-megamenu__root {
    font-weight: 700;
    color: var(--c-text, #1a1a1a);
    margin-bottom: 0.15rem;
}

.sf-megamenu__col a {
    color: var(--c-muted, #6b6b6b);
}

.sf-megamenu__col a:hover,
.sf-megamenu__root:hover {
    color: var(--c-primary, #0f6e56);
}

/* ---------- Hero slider ---------- */

.sf-hero-slider {
    position: relative;
    border-radius: var(--radius, 8px);
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: clamp(11rem, 28vw, 18rem);
}

.sf-hero-slider__track {
    position: relative;
    height: clamp(11rem, 28vw, 18rem);
}

.sf-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    color: #fff;
}

.sf-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.sf-hero-slide--a {
    background: linear-gradient(120deg, var(--c-primary, #0f6e56), var(--c-secondary, #1d9e75));
}

.sf-hero-slide--b {
    background: linear-gradient(120deg, #c62828, #ef6c5c);
}

.sf-hero-slide--c {
    background: linear-gradient(120deg, #1a1a1a, #465569);
}

.sf-hero-slide__content {
    max-width: 32rem;
}

.sf-hero-slide__title {
    color: #fff;
    font-size: clamp(1.4rem, 3.4vw, 2.1rem);
    margin-bottom: 0.5rem;
}

.sf-hero-slide__lead {
    opacity: 0.95;
    margin: 0 0 1.25rem;
}

.sf-hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 5;
}

.sf-hero-slider__arrow--prev {
    left: 0.75rem;
}

.sf-hero-slider__arrow--next {
    right: 0.75rem;
}

.sf-hero-slider__arrow:hover {
    background: #fff;
}

.sf-hero-slider__dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 5;
}

.sf-hero-slider__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.sf-hero-slider__dot.is-active {
    background: #fff;
}

/* ---------- Ürün karüseli ---------- */

.sf-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sf-carousel__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 0.35rem;
    flex: 1 1 auto;
}

.sf-carousel__item {
    flex: 0 0 auto;
    width: 11.5rem;
}

.sf-carousel__arrow {
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid var(--c-surface, #f7f7f5);
    background: var(--c-background, #fff);
    cursor: pointer;
    font-size: 1.15rem;
    display: grid;
    place-items: center;
}

.sf-carousel__arrow:hover {
    border-color: var(--c-primary, #0f6e56);
    color: var(--c-primary, #0f6e56);
}

/* ---------- Ürün kartı ek: yıldız + hızlı sepete ekle ---------- */

.sf-card {
    position: relative;
}

.sf-card__badge--deal {
    background: var(--c-danger, #c62828);
}

.sf-card__quickadd {
    position: absolute;
    right: 0.6rem;
    bottom: 4.6rem;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: none;
    background: var(--c-primary, #0f6e56);
    color: #fff;
    font-size: 1.05rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sf-card:hover .sf-card__quickadd,
.sf-card:focus-within .sf-card__quickadd {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Sepet çekmecesi ---------- */

.sf-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
}

.sf-cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.sf-cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sf-cart-drawer.is-open .sf-cart-drawer__backdrop {
    opacity: 1;
}

.sf-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(26rem, 100%);
    background: var(--c-background, #fff);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.sf-cart-drawer.is-open .sf-cart-drawer__panel {
    transform: translateX(0);
}

.sf-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-surface, #f7f7f5);
}

.sf-cart-drawer__head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.sf-cart-drawer__close {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--c-muted, #6b6b6b);
}

.sf-cart-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 1.25rem;
}

.sf-cart-drawer__empty {
    padding: 2rem 0;
    text-align: center;
    color: var(--c-muted, #6b6b6b);
}

.sf-cart-drawer__foot {
    border-top: 1px solid var(--c-surface, #f7f7f5);
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sf-cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.sf-cart-drawer__checkout {
    text-align: center;
}

/* ---------- Sepet satırı (drawer + sayfa ortak yapı) ---------- */

.sf-cart-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--c-surface, #f7f7f5);
    align-items: center;
}

.sf-cart-row__media {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: calc(var(--radius, 8px) / 1.6);
    overflow: hidden;
    background: var(--c-surface, #f7f7f5);
}

.sf-cart-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cart-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sf-cart-row__name {
    font-size: 0.88rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-cart-row__variant {
    font-size: 0.75rem;
    color: var(--c-muted, #6b6b6b);
}

.sf-cart-row__price {
    font-size: 0.85rem;
    font-weight: 600;
}

.sf-cart-row__remove {
    align-self: start;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
}

.sf-cart-row__remove:hover {
    opacity: 1;
}

/* ---------- Adet steppera ---------- */

.sf-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--c-surface, #f7f7f5);
    border-radius: calc(var(--radius, 8px) / 1.4);
    overflow: hidden;
    width: max-content;
}

.sf-qty__btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--c-surface, #f7f7f5);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.sf-qty__btn:hover {
    background: var(--c-primary, #0f6e56);
    color: #fff;
}

.sf-qty__value {
    min-width: 2.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.sf-qty__input {
    border: none;
    padding: 0;
    font: inherit;
    background: transparent;
    color: var(--c-text, #1a1a1a);
    -moz-appearance: textfield;
}

.sf-qty--lg .sf-qty__btn {
    width: 2.25rem;
    height: 2.25rem;
}

.sf-pdp-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.1rem 0;
    flex-wrap: wrap;
}

.sf-product__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--c-surface, #ddd);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.sf-product__rating span.is-filled,
.sf-product__rating span:nth-child(-n+5).is-filled {
    color: #f2b400;
}

.sf-attrs--compact {
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

/* ---------- Varyant seçici ---------- */

.sf-variants {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sf-variant__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sf-variant__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-muted, #6b6b6b);
}

.sf-variant__values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sf-variant__swatch {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 2px solid var(--c-surface, #f7f7f5);
    background: var(--swatch-color, #ccc);
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.sf-variant__swatch[aria-pressed="true"] {
    border-color: var(--c-primary, #0f6e56);
    outline: 2px solid var(--c-primary, #0f6e56);
    outline-offset: 1px;
}

.sf-variant__chip {
    padding: 0.4rem 0.9rem;
    border-radius: calc(var(--radius, 8px) / 1.4);
    border: 1px solid var(--c-surface, #f7f7f5);
    background: var(--c-background, #fff);
    color: var(--c-text, #1a1a1a);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.sf-variant__chip[aria-pressed="true"] {
    border-color: var(--c-primary, #0f6e56);
    background: var(--c-primary, #0f6e56);
    color: #fff;
}

.sf-variant__hint {
    font-size: 0.8rem;
    color: var(--c-danger, #c62828);
    margin: 0;
    display: none;
}

.sf-variant__hint.is-visible {
    display: block;
}

/* ---------- Sekmeler ---------- */

.sf-tabs {
    margin: 2rem 0;
}

.sf-tabs__head {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--c-surface, #f7f7f5);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.sf-tabs__btn {
    padding: 0.7rem 1.1rem;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.92rem;
    color: var(--c-muted, #6b6b6b);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.sf-tabs__btn.is-active {
    color: var(--c-primary, #0f6e56);
    border-bottom-color: var(--c-primary, #0f6e56);
    font-weight: 600;
}

.sf-tabs__panel[hidden] {
    display: none;
}

/* ---------- Değerlendirmeler ---------- */

.sf-reviews {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 42rem;
}

.sf-review {
    border: 1px solid var(--c-surface, #f7f7f5);
    border-radius: var(--radius, 8px);
    padding: 0.9rem 1.1rem;
}

.sf-review__head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.sf-review__author {
    font-weight: 600;
}

.sf-review__stars {
    color: #f2b400;
    letter-spacing: 0.05em;
}

.sf-review__body {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text, #1a1a1a);
}

/* ---------- AI asistan giriş kartı (ana sayfa) ---------- */

.sf-ai-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--c-surface, #f7f7f5);
    border-radius: var(--radius, 8px);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.sf-ai-card h2 {
    margin-bottom: 0.35rem;
}

.sf-ai-card p {
    margin: 0;
    color: var(--c-muted, #6b6b6b);
}

/* ---------- AI asistan widget (yüzen buton + panel) ---------- */

.sf-ai {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 300;
}

.sf-ai__fab {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 999px;
    border: none;
    background: var(--c-primary, #0f6e56);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
}

.sf-ai__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.85rem);
    width: min(22rem, 92vw);
    max-height: 32rem;
    background: var(--c-background, #fff);
    border-radius: var(--radius, 8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.sf-ai__panel.is-open {
    display: flex;
}

.sf-ai__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--c-primary, #0f6e56);
    color: #fff;
    font-weight: 600;
}

.sf-ai__close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
}

.sf-ai__messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 22rem;
}

.sf-ai__msg {
    padding: 0.55rem 0.8rem;
    border-radius: calc(var(--radius, 8px) / 1.2);
    font-size: 0.88rem;
    max-width: 90%;
    line-height: 1.4;
}

.sf-ai__msg--bot {
    background: var(--c-surface, #f7f7f5);
    align-self: flex-start;
}

.sf-ai__msg--user {
    background: var(--c-primary, #0f6e56);
    color: #fff;
    align-self: flex-end;
}

.sf-ai__msg--products {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    max-width: 100%;
}

.sf-ai__product {
    flex: 0 0 auto;
    width: 6.5rem;
    font-size: 0.75rem;
    color: var(--c-text, #1a1a1a);
    text-align: center;
}

.sf-ai__product img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: calc(var(--radius, 8px) / 1.6);
    background: var(--c-surface, #f7f7f5);
    margin-bottom: 0.25rem;
}

.sf-ai__form {
    display: flex;
    border-top: 1px solid var(--c-surface, #f7f7f5);
}

.sf-ai__form input {
    flex: 1 1 auto;
    border: none;
    padding: 0.75rem 0.9rem;
    font: inherit;
    background: transparent;
    color: var(--c-text, #1a1a1a);
}

.sf-ai__form button {
    border: none;
    background: var(--c-primary, #0f6e56);
    color: #fff;
    width: 3rem;
    cursor: pointer;
    font-size: 1.1rem;
}

/* ---------- Newsletter bandı ---------- */

.sf-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--c-primary, #0f6e56), var(--c-secondary, #1d9e75));
    color: #fff;
    border-radius: var(--radius, 8px);
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
}

.sf-newsletter__text h2 {
    color: #fff;
    margin-bottom: 0.3rem;
}

.sf-newsletter__text p {
    margin: 0;
    opacity: 0.9;
}

.sf-newsletter__form {
    display: flex;
    gap: 0;
    flex: 0 1 24rem;
}

.sf-newsletter__form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius, 8px) 0 0 var(--radius, 8px);
    font: inherit;
}

.sf-newsletter__form button {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    background: var(--c-text, #1a1a1a);
    color: #fff;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- Zengin footer ---------- */

.sf-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0 1.5rem;
}

.sf-footer__col h3 {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
}

.sf-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.sf-footer__col a {
    color: var(--c-muted, #6b6b6b);
}

.sf-footer__col a:hover {
    color: var(--c-primary, #0f6e56);
}

.sf-footer__link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    color: var(--c-muted, #6b6b6b);
    cursor: pointer;
    text-align: left;
}

.sf-footer__link:hover {
    color: var(--c-primary, #0f6e56);
    text-decoration: underline;
}

.sf-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.sf-payment-badge {
    padding: 0.3rem 0.6rem;
    border-radius: calc(var(--radius, 8px) / 1.6);
    background: var(--c-surface, #f7f7f5);
    font-size: 0.75rem;
    color: var(--c-text, #1a1a1a);
}

.sf-footer__social-note {
    margin: 0;
}

.sf-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c-surface, #f7f7f5);
}

.sf-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.8rem;
}

.sf-footer__legal a {
    color: var(--c-muted, #6b6b6b);
}

/* Asistan düğmesi sağ altta; WhatsApp sol altta durur. */
.sf-whatsapp {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 190;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: #0b7a43;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Dar ekranda sola yaslı düğme "Sepete ekle"nin üstüne biner; sağdaki asistan balonunun üzerine alınır. */
@media (max-width: 760px) {
    .sf-whatsapp {
        left: auto;
        right: 1.25rem;
        bottom: 5.5rem;
    }
}

/* Sabit düğme altbilginin son satırını örtmesin. */
.sf-footer {
    padding-bottom: 5rem;
}

@media (max-width: 760px) {
    .sf-footer {
        padding-bottom: 9rem;
    }
}

/* ---------- Sepet sayfası ---------- */

.sf-cart-page__title {
    margin-bottom: 1.25rem;
}

.sf-cart-page {
    display: grid;
    grid-template-columns: 1fr 18rem;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.sf-cart-table {
    display: flex;
    flex-direction: column;
}

.sf-cart-table__row {
    display: grid;
    grid-template-columns: 4rem 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-surface, #f7f7f5);
}

.sf-cart-table__media {
    width: 4rem;
    height: 4rem;
    border-radius: calc(var(--radius, 8px) / 1.6);
    overflow: hidden;
    background: var(--c-surface, #f7f7f5);
}

.sf-cart-table__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-cart-table__info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.sf-cart-table__name {
    font-weight: 500;
    font-size: 0.95rem;
}

.sf-cart-table__variant {
    font-size: 0.8rem;
    color: var(--c-muted, #6b6b6b);
}

.sf-cart-table__remove {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--c-danger, #c62828);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.15rem;
}

.sf-cart-table__unit,
.sf-cart-table__total {
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sf-cart-table__total {
    font-weight: 700;
}

.sf-cart-page__summary {
    border: 1px solid var(--c-surface, #f7f7f5);
    border-radius: var(--radius, 8px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sf-cart-page__summary h2 {
    font-size: 1.05rem;
}

.sf-cart-page__row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.sf-cart-page__checkout {
    width: 100%;
}

/* ---------- Toast ---------- */

.sf-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 0.5rem);
    background: var(--c-text, #1a1a1a);
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: calc(var(--radius, 8px) / 1.2);
    font-size: 0.88rem;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-width: min(24rem, 90vw);
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sf-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Galeri hover-zoom ---------- */

.sf-gallery__main {
    cursor: zoom-in;
}

.sf-gallery__main img {
    transition: transform 0.12s ease-out;
    transform-origin: center center;
}

.sf-gallery__main:hover img {
    transform: scale(1.8);
}

.sf-gallery__thumb {
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.sf-gallery__thumb.is-active {
    border-color: var(--c-primary, #0f6e56);
    border-width: 2px;
}

/* ---------- Mobil ---------- */

@media (max-width: 61rem) {
    .sf-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-cart-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 48rem) {
    .sf-header__inner {
        flex-wrap: wrap;
    }

    .sf-search-wrap {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .sf-megamenu__panel {
        width: 92vw;
        grid-template-columns: repeat(2, 1fr);
    }

    .sf-footer__grid {
        grid-template-columns: 1fr;
    }

    .sf-cart-table__row {
        grid-template-columns: 3.5rem 1fr;
        grid-template-areas:
            "media info"
            "media unit"
            "media qty"
            "media total";
    }

    .sf-cart-table__media {
        grid-area: media;
    }

    .sf-cart-table__info {
        grid-area: info;
    }

    .sf-cart-table__unit {
        grid-area: unit;
    }

    .sf-cart-table__row .sf-qty {
        grid-area: qty;
    }

    .sf-cart-table__total {
        grid-area: total;
    }

    .sf-ai__panel {
        width: 94vw;
        right: -0.5rem;
    }

    /* ---- Mobil: megamenu hover yerine click ---- */
    .sf-megamenu__panel {
        width: 92vw;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ==========================================================================
   MOBİL BREAKPOINT (≤ 480px) — iPhone SE / küçük Android
   ========================================================================== */

@media (max-width: 480px) {

    /* ---------- Header ---------- */

    .sf-header__search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }

    .sf-header__inner {
        min-height: 3.5rem;
        padding: 0.75rem 0;
    }

    .sf-brand__badge {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.75rem;
    }

    .sf-brand__badge--lg {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .sf-nav__cart span,
    .sf-nav__account span {
        display: none;
    }

    /* ---------- Mega menü (dokunmatik uyumlu) ---------- */

    .sf-megamenu__panel {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
        grid-template-columns: 1fr;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        max-height: 75vh;
        overflow-y: auto;
    }

    .sf-megamenu__col {
        padding: 0.25rem 0;
    }

    /* ---------- Hero slider ---------- */

    .sf-hero-slider {
        min-height: clamp(9rem, 30vw, 14rem);
    }

    .sf-hero-slider__track {
        min-height: clamp(9rem, 30vw, 14rem);
    }

    .sf-hero-slide {
        padding: clamp(1rem, 5vw, 1.5rem);
    }

    .sf-hero-slide__title {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
        margin-bottom: 0.35rem;
    }

    .sf-hero-slide__lead {
        font-size: 0.82rem;
        margin: 0 0 0.85rem;
    }

    .sf-hero-slider__arrow {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }

    .sf-hero-slider__arrow--prev {
        left: 0.35rem;
    }

    .sf-hero-slider__arrow--next {
        right: 0.35rem;
    }

    /* ---------- Ürün karüseli ---------- */

    .sf-carousel__item {
        width: 13rem;
    }

    .sf-carousel__arrow {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }

    /* ---------- Ürün kartı ---------- */

    .sf-card__title {
        font-size: 0.82rem;
    }

    .sf-card__body {
        padding: 0.5rem 0.6rem 0.7rem;
        gap: 0.15rem;
    }

    .sf-card__price {
        font-size: 0.85rem;
    }

    .sf-card__compare {
        font-size: 0.75rem;
    }

    .sf-card__vendor {
        font-size: 0.68rem;
    }

    .sf-card__fav {
        width: 28px;
        height: 28px;
        font-size: 15px;
        top: 5px;
        right: 5px;
    }

    /* ---------- Kategori tile'ları ---------- */

    .sf-tiles {
        grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
        gap: 0.6rem;
    }

    .sf-tile {
        padding: 0.85rem 0.6rem;
    }

    /* ---------- Bölüm başlıkları ---------- */

    .sf-section__title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* ---------- AI giriş kartı ---------- */

    .sf-ai-card {
        flex-direction: column;
        text-align: center;
        padding: 1.15rem 1rem;
        margin-bottom: 1.5rem;
    }

    .sf-ai-card h2 {
        font-size: 1.1rem;
    }

    .sf-ai-card p {
        font-size: 0.82rem;
    }

    /* ---------- AI asistan widget ---------- */

    .sf-ai__panel {
        width: 96vw;
        right: -0.25rem;
    }

    .sf-ai__fab {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.2rem;
    }

    /* ---------- Newsletter ---------- */

    .sf-newsletter {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .sf-newsletter__form {
        flex: 1 1 auto;
        width: 100%;
        max-width: 24rem;
    }

    /* ---------- Zengin footer ---------- */

    .sf-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem 0 1rem;
    }

    .sf-footer__col h3 {
        font-size: 0.88rem;
    }

    /* ---------- Sepet sayfası ---------- */

    .sf-cart-table__row {
        grid-template-columns: 3rem 1fr;
        padding: 0.75rem 0;
    }

    .sf-cart-table__media {
        width: 3rem;
        height: 3rem;
    }

    .sf-cart-table__name {
        font-size: 0.82rem;
    }

    .sf-cart-table__variant {
        font-size: 0.7rem;
    }

    .sf-cart-table__unit,
    .sf-cart-table__total {
        font-size: 0.8rem;
    }

    .sf-cart-page__summary {
        padding: 1rem;
    }

    /* ---------- Checkout ---------- */

    .sf-checkout__form {
        gap: 8px;
    }

    .sf-checkout__form label {
        font-size: 13px;
    }

    .sf-checkout__form input,
    .sf-checkout__form textarea {
        padding: 6px 8px;
        font-size: 14px;
    }

    .sf-checkout__section h3 {
        font-size: 14px;
    }

    /* ---------- Varyant seçici ---------- */

    .sf-variant__swatch {
        width: 1.7rem;
        height: 1.7rem;
    }

    .sf-variant__chip {
        padding: 0.3rem 0.7rem;
        font-size: 0.78rem;
    }

    /* ---------- Breadcrumb ---------- */

    .sf-breadcrumb {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }

    /* ---------- Sayfalama ---------- */

    .sf-pager__item {
        min-width: 2rem;
        padding: 0.35rem 0.55rem;
        font-size: 0.82rem;
    }

    /* ---------- Fırsat rozeti (kart) ---------- */

    .sf-card__badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    /* ---------- Sepet satırı (drawer) ---------- */

    .sf-cart-row {
        grid-template-columns: 3rem 1fr auto;
        gap: 0.5rem;
        padding: 0.6rem 0;
    }

    .sf-cart-row__media {
        width: 3rem;
        height: 3rem;
    }

    .sf-cart-row__name {
        font-size: 0.8rem;
    }

    .sf-cart-row__price {
        font-size: 0.78rem;
    }

    /* ---------- Ürün detay ---------- */

    .sf-product__title {
        font-size: 1.25rem;
    }

    .sf-product__price {
        font-size: 1.2rem;
    }

    .sf-btn {
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }

    .sf-pdp-actions {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }

    /* ---------- Liste sayfası ---------- */

    .sf-results__bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* ---------- Koleksiyon ---------- */

    .sf-collection__head {
        padding: 0 0 0.75rem;
    }

    .sf-collection__title {
        font-size: 1.25rem;
    }

    .sf-empty {
        padding: 1.5rem 0.75rem;
    }

    /* ---------- Reviews ---------- */

    .sf-review {
        padding: 0.7rem 0.85rem;
    }

    /* ---------- Tabs ---------- */

    .sf-tabs__btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .sf-tabs__head {
        gap: 0.15rem;
    }
}

/* ---------- C3: config-güdümlü ürün detay yerleşimi (productDetail.galleryPosition) ---------- */

.sf-product--gallery-right .sf-gallery {
    order: 2;
}

.sf-product--gallery-right .sf-product__info {
    order: 1;
}

/* ---------- C3: banner bloğu (pages.home.blocks[banner]) ---------- */

.sf-banner {
    display: block;
    border-radius: var(--radius, 8px);
    overflow: hidden;
}

.sf-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.sf-banner__text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background: var(--c-surface, #f7f7f5);
    color: var(--c-text, #1a1a1a);
    font-weight: 600;
    text-align: center;
}
