/* OtoGo mağaza — mobil öncelikli, ortalanmış kabuk */

:root {
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-bg: #f3f7ff;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: rgba(15, 23, 42, 0.06);
    --pastel-lavender: #ede9fe;
    --pastel-mint: #d1fae5;
    --pastel-sky: #e0f2fe;
    --pastel-peach: #ffedd5;
    --radius-xl: 32px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.07);
    --shadow-nav: 0 12px 40px rgba(15, 23, 42, 0.12);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
    --tap-min: 44px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.45;
}

.header-desktop {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.app-shell {
    max-width: 440px;
    margin: 0 auto;
    min-height: 100dvh;
    padding: 0 16px 104px;
    position: relative;
}

.page {
    padding-bottom: 8px;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, var(--color-bg) 70%, transparent);
}

.top-header__brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.top-header--simple .top-header__title {
    flex: 1;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.top-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: var(--tap-min);
    height: var(--tap-min);
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.icon-btn--link {
    text-decoration: none;
}

.icon {
    width: 22px;
    height: 22px;
    color: var(--color-text);
}

.avatar-btn {
    width: var(--tap-min);
    height: var(--tap-min);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #fff;
}

.avatar-btn__img {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #93c5fd, #c4b5fd);
}

.search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-surface);
    border-radius: var(--radius-pill);
    padding: 12px 16px;
    box-shadow: var(--shadow-soft);
}

.search-field input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.95rem;
    min-width: 0;
}

.search-field input::placeholder {
    color: var(--color-text-muted);
}

.filter-btn {
    width: var(--tap-min);
    height: var(--tap-min);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 80;
}

.mobile-drawer-backdrop.is-open {
    opacity: 1;
}

.mobile-category-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    background: #fff;
    z-index: 90;
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    padding: 18px 16px 28px;
    display: flex;
    flex-direction: column;
    border-radius: 0 22px 22px 0;
}

.mobile-category-drawer.is-open {
    transform: translateX(0);
}

.mobile-category-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f7;
    color: var(--color-text);
}

.mobile-category-drawer__head strong {
    font-size: 1.05rem;
}

.mobile-category-drawer__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #334155;
}

.mobile-category-drawer__close svg {
    width: 20px;
    height: 20px;
}

.mobile-category-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    overflow-y: auto;
}

.mobile-category-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 14px;
    color: var(--color-text);
    font-weight: 800;
    background: #fff;
}

.mobile-category-drawer__nav a:active {
    background: #eff6ff;
}

.mobile-category-drawer__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444 45%, #d946ef 72%, #3b82f6);
    padding: 2px;
    color: var(--color-primary);
    font-weight: 900;
    flex: 0 0 auto;
}

.mobile-category-drawer__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #fff;
}

.mobile-category-drawer__icon span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    background-color: #fff;
}

.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 22px 22px 20px;
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.35);
}

.hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero__title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero__text {
    margin: 0 0 14px;
    font-size: 0.92rem;
    opacity: 0.95;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-pill--block {
    width: 100%;
}

.btn-pill--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.45);
}

.hero__visual {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 3rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 8px 0 14px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-head a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.product-card__link {
    display: block;
    height: auto;
}

.product-card__figure {
    height: 120px;
    border-radius: var(--radius-md);
    margin: 12px 12px 0;
    background: var(--pastel-sky);
}

.product-card[data-accent="lavender"] .product-card__figure {
    background: var(--pastel-lavender);
}

.product-card[data-accent="mint"] .product-card__figure {
    background: var(--pastel-mint);
}

.product-card[data-accent="sky"] .product-card__figure {
    background: var(--pastel-sky);
}

.product-card[data-accent="peach"] .product-card__figure {
    background: var(--pastel-peach);
}

.product-card__figure::after {
    content: "🚗";
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 2.4rem;
    opacity: 0.85;
}

.product-card__figure.has-image::after {
    content: none;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.product-card__meta {
    padding: 10px 14px 14px;
}

.product-card__brand {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card__title {
    margin: 4px 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.5rem;
}

.product-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card__price {
    font-weight: 800;
    color: var(--color-text);
}

.product-card__qty-hint {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.product-card--listing {
    padding-bottom: 10px;
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #0f172a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
}

.product-card__wish {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
}

.product-card__wish svg {
    width: 18px;
    height: 18px;
    color: #334155;
}

.product-card__arrow {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 2;
}

.product-card__arrow svg {
    width: 18px;
    height: 18px;
}

.category-strip {
    margin: 0 -16px 18px;
}

.category-strip__list {
    list-style: none;
    margin: 0;
    padding: 0 16px 2px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-strip__list::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 84px;
    scroll-snap-align: start;
}

.category-chip__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #ef4444 45%, #d946ef 72%, #3b82f6);
    padding: 3px;
    font-weight: 800;
    color: var(--color-primary);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    border: 0;
}

.category-chip__icon img,
.category-chip__fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-surface);
}

.category-chip__fallback {
    display: grid;
    place-items: center;
}

.category-chip__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 88px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-chip.is-active .category-chip__icon {
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.category-chip.is-active .category-chip__label {
    color: var(--color-text);
}

.detail-hero {
    text-align: center;
    padding: 12px 16px 0;
    margin: 0;
}

.detail-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.detail-visual__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.detail-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cbd5e1;
}

.detail-dots span.is-active {
    background: var(--color-primary);
    width: 18px;
    border-radius: var(--radius-pill);
}

.detail-sheet {
    background: var(--color-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: 0 -16px;
    padding: 22px 20px 20px;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.06);
}

.detail-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-price-row h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    flex: 1;
}

.detail-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.chip-group {
    margin-bottom: 14px;
}

.chip-group__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-bg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid transparent;
}

.chip.is-active {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-primary-dark);
}

.detail-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0 0 10px;
}

.detail-desc a {
    color: var(--color-primary);
    font-weight: 600;
}

.panel-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    box-shadow: var(--shadow-soft);
}

.cart-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    width: min(400px, calc(100% - 32px));
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-nav);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px 10px;
    z-index: 30;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.bottom-nav__item.is-active {
    color: var(--color-primary);
}

.bottom-nav__icon {
    width: 22px;
    height: 22px;
}

/* Ana sayfa: kahraman + yan kart + promolar (mobilde alt alta) */
.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-side__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.hero-side__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.hero-side__text {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.hero-side__cta {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.hero-side__emoji {
    font-size: 2.5rem;
    opacity: 0.9;
}

.promo-trio {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.promo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

.promo-card--lavender {
    background: var(--pastel-lavender);
}

.promo-card--mint {
    background: var(--pastel-mint);
}

.promo-card--sky {
    background: var(--pastel-sky);
}

.promo-card__title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    max-width: 200px;
}

.promo-card__btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-primary);
}

.promo-card__art {
    font-size: 2rem;
}

.section-head--split {
    flex-wrap: wrap;
    gap: 10px 16px;
}

.product-tabs--desktop {
    display: none;
}

.section-head__link--mobile-only {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-card__rating-line {
    display: none;
}

.product-card__old-price {
    display: none;
}

.product-card__add {
    display: none;
}

.product-card__badge--home {
    display: none;
}

.product-card__cat {
    display: none;
}

/* Ürün Kartı Aksiyon Butonları */
.product-card__actions {
    margin: 6px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
    position: relative;
}

.product-card__btn-add,
.product-card__btn-buy {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.2s;
    width: 100%;
}

.product-card__btn-add {
    background: #f1f5f9;
    color: var(--color-text);
    border: 1px solid #e2e8f0;
}

.product-card__btn-buy {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15);
}

.product-card__btn-add:hover {
    background: #e2e8f0;
}

.product-card__btn-buy:hover {
    background: #059669;
}
