/* ==========================================================================
   Motifevi — Tasarım Sistemi
   Tek kaynak. Sayfalara ait <style> blokları buraya taşındı.
   Marka moru korunmuştur (#6c5ce7).
   ========================================================================== */

/* --- 1. Tokenlar --------------------------------------------------------- */
:root {
    /* Marka */
    --brand-50:  #f4f2ff;
    --brand-100: #e9e5ff;
    --brand-200: #d5ceff;
    --brand-300: #b6a9fb;
    --brand-500: #7d6cf0;
    --brand-600: #6c5ce7;
    --brand-700: #5a49d1;
    --brand-800: #4838ad;

    /* Nötr */
    --ink-900: #15151f;
    --ink-800: #24243a;
    --ink-700: #3c3c54;
    --ink-500: #62627c;
    --ink-400: #8b8ba3;
    --ink-300: #b4b4c6;

    --line:        #e7e7f0;
    --line-strong: #d5d5e3;
    --surface:     #ffffff;
    --surface-2:   #fafafd;
    --canvas:      #f6f6fb;

    /* Anlam */
    --ok-700:  #0b7f58;
    --ok-600:  #0e9f6e;
    --ok-50:   #e6f7f0;
    --warn-600:#b45309;
    --warn-50: #fef4e6;
    --danger-600:#d92d20;
    --danger-50: #fdeceb;

    /* Tipografi */
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', var(--font-body);

    --text-xs:   0.75rem;   /* 12 */
    --text-sm:   0.8125rem; /* 13 */
    --text-base: 0.9375rem; /* 15 */
    --text-md:   1rem;      /* 16 */
    --text-lg:   1.125rem;  /* 18 */
    --text-xl:   1.375rem;  /* 22 */
    --text-2xl:  1.75rem;   /* 28 */
    --text-3xl:  clamp(1.75rem, 1.2rem + 2vw, 2.5rem);

    /* Ölçek */
    --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
    --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;

    --shadow-xs: 0 1px 2px rgba(21, 21, 31, .06);
    --shadow-sm: 0 2px 8px rgba(21, 21, 31, .06);
    --shadow-md: 0 8px 24px rgba(21, 21, 31, .08);
    --shadow-lg: 0 18px 44px rgba(21, 21, 31, .12);

    --container: 1280px;
    --header-h: 68px;

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --- 2. Temel ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.55;
    color: var(--ink-800);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.25;
    letter-spacing: -.015em;
    margin: 0;
}
h1 { font-size: var(--text-3xl); font-weight: 700; }
h2 { font-size: var(--text-2xl); font-weight: 650; }
h3 { font-size: var(--text-lg);  font-weight: 600; }

p { margin: 0 0 var(--sp-4); }

a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-800); }

img { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

::selection { background: var(--brand-200); color: var(--ink-900); }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(var(--sp-4), 3vw, var(--sp-8));
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- 3. Butonlar --------------------------------------------------------- */
.btn {
    --btn-bg: var(--brand-600);
    --btn-fg: #fff;
    --btn-bd: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 10px 18px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid var(--btn-bd);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .12s var(--ease);
    white-space: nowrap;
}
.btn:hover { --btn-bg: var(--brand-700); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

.btn--secondary {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink-800);
    --btn-bd: var(--line-strong);
}
.btn--secondary:hover { --btn-bg: var(--surface-2); --btn-bd: var(--ink-300); --btn-fg: var(--ink-900); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-700); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); }

.btn--soft { --btn-bg: var(--brand-50); --btn-fg: var(--brand-700); --btn-bd: transparent; }
.btn--soft:hover { --btn-bg: var(--brand-100); --btn-fg: var(--brand-800); }

.btn--danger { --btn-bg: var(--danger-50); --btn-fg: var(--danger-600); }
.btn--danger:hover { --btn-bg: #fbdcda; --btn-fg: #a91d15; }

.btn--sm { padding: 7px 13px; font-size: var(--text-sm); border-radius: var(--r-sm); }
.btn--lg { padding: 14px 26px; font-size: var(--text-md); border-radius: var(--r-lg); }
.btn--block { width: 100%; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-500);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.btn-icon:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.btn-icon.is-active { color: var(--danger-600); border-color: #f6cdc9; background: var(--danger-50); }

/* --- 4. Rozet & etiket --------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--r-full);
    background: var(--brand-50);
    color: var(--brand-700);
    white-space: nowrap;
}
.badge--free   { background: var(--ok-50);   color: var(--ok-700); }
.badge--format { background: var(--surface); color: var(--ink-500); border: 1px solid var(--line); font-weight: 500; }
.badge--owned  { background: var(--ink-900); color: #fff; }
.badge--warn   { background: var(--warn-50); color: var(--warn-600); }
.badge--danger { background: var(--danger-50); color: var(--danger-600); }

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-3);
    font-size: var(--text-sm);
    color: var(--ink-500);
}
.meta-row i { color: var(--ink-400); }

/* --- 5. Başlık / header -------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__bar {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -.02em;
    flex-shrink: 0;
}
.brand:hover { color: var(--brand-700); }
.brand img { height: 32px; width: auto; }

.search {
    position: relative;
    flex: 1 1 auto;
    max-width: 520px;
}
.search input {
    width: 100%;
    height: 42px;
    padding: 0 var(--sp-4) 0 42px;
    background: var(--canvas);
    border: 1px solid transparent;
    border-radius: var(--r-full);
    font-size: var(--text-base);
    transition: all .18s var(--ease);
}
.search input::placeholder { color: var(--ink-400); }
.search input:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--brand-300);
    box-shadow: 0 0 0 4px var(--brand-50);
}
.search i {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    pointer-events: none;
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-left: auto;
}
.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink-700);
    border-radius: var(--r-md);
    transition: all .16s var(--ease);
}
.site-nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
.site-nav__link.is-current { color: var(--brand-700); font-weight: 600; }
.site-nav__link i { font-size: 14px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
}

.cart-link { position: relative; }
.cart-link__count {
    position: absolute;
    top: -3px; right: -4px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
    color: #fff; background: var(--brand-600);
    border: 2px solid var(--surface);
    border-radius: var(--r-full);
}

.avatar {
    width: 34px; height: 34px;
    border-radius: var(--r-full);
    object-fit: cover;
    background: var(--brand-100);
    border: 1px solid var(--line);
}
.avatar--lg { width: 72px; height: 72px; }
.avatar--placeholder {
    display: grid; place-items: center;
    color: var(--brand-700);
    font-weight: 700;
    font-family: var(--font-display);
}

/* Menü açılır */
.menu { position: relative; }
.menu__panel {
    position: absolute;
    right: 0; top: calc(100% + 8px);
    min-width: 216px;
    padding: var(--sp-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s var(--ease);
}
.menu.is-open .menu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 9px 12px;
    font-size: var(--text-base);
    color: var(--ink-700);
    border-radius: var(--r-sm);
}
.menu__item:hover { background: var(--brand-50); color: var(--brand-700); }
.menu__item i { width: 16px; text-align: center; color: var(--ink-400); }
.menu__item:hover i { color: var(--brand-600); }
.menu__sep { height: 1px; margin: var(--sp-2) 0; background: var(--line); }

.nav-toggle { display: none; }

/* Kategori şeridi */
.cat-strip {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.cat-strip__inner {
    display: flex;
    gap: var(--sp-1);
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--sp-2) 0;
}
.cat-strip__inner::-webkit-scrollbar { display: none; }
.cat-strip a {
    padding: 7px 14px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink-600, var(--ink-700));
    border-radius: var(--r-full);
    white-space: nowrap;
    transition: all .16s var(--ease);
}
.cat-strip a:hover { background: var(--brand-50); color: var(--brand-700); }
.cat-strip a.is-current { background: var(--brand-600); color: #fff; }

/* --- 6. Ürün kartı ------------------------------------------------------- */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
    gap: var(--sp-5);
}

.p-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.p-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.p-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}
.p-card__media img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8%;
    transition: transform .35s var(--ease);
}
.p-card:hover .p-card__media img { transform: scale(1.05); }

.p-card__flag {
    position: absolute;
    top: var(--sp-3); left: var(--sp-3);
    z-index: 2;
}
.p-card__fav {
    position: absolute;
    top: var(--sp-3); right: var(--sp-3);
    z-index: 2;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    color: var(--ink-400);
    cursor: pointer;
    opacity: 0;
    transition: all .18s var(--ease);
}
.p-card:hover .p-card__fav { opacity: 1; }
.p-card__fav:hover { color: var(--danger-600); border-color: #f6cdc9; }
.p-card__fav.is-active { opacity: 1; color: var(--danger-600); }

.p-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-4);
    flex: 1;
}
.p-card__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.p-card:hover .p-card__title { color: var(--brand-700); }

.p-card__seller {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--ink-500);
}
.p-card__seller:hover { color: var(--brand-700); }

.p-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line);
}

.price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -.02em;
    white-space: nowrap;
}
.price--free { color: var(--ok-600); font-size: var(--text-base); }
.price__old {
    margin-left: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-400);
    text-decoration: line-through;
}

.p-card__stats {
    display: flex;
    gap: var(--sp-3);
    font-size: var(--text-xs);
    color: var(--ink-400);
}
.p-card__stats span { display: inline-flex; align-items: center; gap: 4px; }

/* Kartın tamamını tıklanabilir yapan katman */
.stretch::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- 7. Bölüm başlığı ---------------------------------------------------- */
.section { padding-block: var(--sp-10); }
.section--tight { padding-block: var(--sp-8); }

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
}
.section__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 650;
    color: var(--ink-900);
}
.section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--brand-700);
    white-space: nowrap;
}
.section__link:hover { gap: 10px; }
.section__link i { transition: transform .18s var(--ease); }

/* --- 8. Kart / panel ----------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
}
.card--flush { padding: 0; overflow: hidden; }
.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--line);
}
.card__body { padding: var(--sp-6); }

/* --- 9. Form ------------------------------------------------------------- */
.field { margin-bottom: var(--sp-4); }
.label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-700);
}
.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    font-size: var(--text-base);
    color: var(--ink-900);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-50);
}
.textarea { min-height: 120px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238b8ba3' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.field__hint { margin-top: 5px; font-size: var(--text-sm); color: var(--ink-400); }
.field__error { margin-top: 5px; font-size: var(--text-sm); color: var(--danger-600); }

.input-group { position: relative; }
.input-group .input { padding-left: 42px; }
.input-group > i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    font-size: 14px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: 9px 0;
    cursor: pointer;
    font-size: var(--text-base);
    color: var(--ink-700);
}
.check input { margin: 3px 0 0; accent-color: var(--brand-600); width: 16px; height: 16px; }

/* --- 10. Uyarı kutusu ---------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-radius: var(--r-md);
    font-size: var(--text-base);
    margin-bottom: var(--sp-4);
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert--info    { background: var(--brand-50); color: var(--brand-800); }
.alert--success { background: var(--ok-50);    color: var(--ok-700); }
.alert--warn    { background: var(--warn-50);  color: var(--warn-600); }
.alert--danger  { background: var(--danger-50);color: var(--danger-600); }

/* --- 11. Boş durum ------------------------------------------------------- */
.empty {
    display: grid;
    place-items: center;
    gap: var(--sp-4);
    padding: var(--sp-16) var(--sp-6);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-lg);
}
.empty__icon {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    font-size: 26px;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: var(--r-full);
}
.empty h3 { font-size: var(--text-lg); }
.empty p { color: var(--ink-500); max-width: 44ch; margin: 0; }

/* --- 12. Breadcrumb ------------------------------------------------------ */
.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding-block: var(--sp-4);
    font-size: var(--text-sm);
    color: var(--ink-400);
}
.crumbs a { color: var(--ink-500); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs__sep { color: var(--ink-300); font-size: 10px; }
.crumbs__current { color: var(--ink-800); font-weight: 500; }

/* --- 13. Sayfalama ------------------------------------------------------- */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-10);
}
.pager a, .pager span {
    min-width: 40px; height: 40px;
    display: grid; place-items: center;
    padding: 0 12px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.pager a:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.pager .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* --- 14. Alt bilgi ------------------------------------------------------- */
.site-footer {
    margin-top: var(--sp-16);
    background: var(--ink-900);
    color: var(--ink-300);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: var(--sp-8);
    padding-block: var(--sp-12);
}
.site-footer h4 {
    margin-bottom: var(--sp-4);
    font-size: var(--text-base);
    font-weight: 600;
    color: #fff;
}
.site-footer a { color: var(--ink-300); font-size: var(--text-base); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__brand { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: #fff; margin-bottom: var(--sp-3); }
.site-footer__about { font-size: var(--text-base); color: var(--ink-400); max-width: 38ch; }
.site-footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.site-footer__social a {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .07);
    border-radius: var(--r-full);
    color: #fff;
}
.site-footer__social a:hover { background: var(--brand-600); }
.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding-block: var(--sp-5);
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: var(--text-sm);
    color: var(--ink-400);
}

/* --- 15. Yardımcılar ----------------------------------------------------- */
.stack   { display: grid; gap: var(--sp-4); }
.stack-2 { display: grid; gap: var(--sp-2); }
.row     { display: flex; align-items: center; gap: var(--sp-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.wrap    { flex-wrap: wrap; }
.grow    { flex: 1; }
.muted   { color: var(--ink-500); }
.small   { font-size: var(--text-sm); }
.center  { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }

/* --- 16. Duyarlılık ------------------------------------------------------ */
@media (max-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; }

    .nav-toggle {
        display: grid;
        place-items: center;
        width: 40px; height: 40px;
        background: transparent;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        color: var(--ink-700);
        cursor: pointer;
    }
    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: var(--sp-3);
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: all .2s var(--ease);
    }
    .site-header.is-open .site-nav { transform: translateY(0); opacity: 1; visibility: visible; }
    .site-nav__link { padding: 12px 14px; }

    .search { order: 10; flex-basis: 100%; max-width: none; }
    .site-header__bar { flex-wrap: wrap; height: auto; padding-block: var(--sp-3); gap: var(--sp-3); }
    .search + .site-nav { margin-left: 0; }

    .grid-products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-3); }
    .p-card__body { padding: var(--sp-3); gap: 6px; }
    .p-card__title { font-size: var(--text-sm); min-height: 2.6em; }
    .price { font-size: var(--text-base); }

    .section { padding-block: var(--sp-8); }
    .card { padding: var(--sp-4); }
    .card__head, .card__body { padding: var(--sp-4); }
}

@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .grid-products { grid-template-columns: repeat(2, 1fr); }
    .p-card__fav { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* --- 17. Hero ------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(255, 255, 255, .30), transparent 60%),
        linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 45%, #8b7bf2 100%);
    color: #fff;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -60% 55%;
    height: 320px;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(var(--sp-12), 7vw, var(--sp-20));
    max-width: 720px;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 600;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--r-full);
    backdrop-filter: blur(6px);
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: var(--sp-4);
}
.hero__lead {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, .88);
    max-width: 52ch;
    margin-bottom: var(--sp-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero .btn { --btn-bg: #fff; --btn-fg: var(--brand-700); }
.hero .btn:hover { --btn-bg: var(--brand-50); }
.hero .btn--secondary {
    --btn-bg: rgba(255, 255, 255, .12);
    --btn-fg: #fff;
    --btn-bd: rgba(255, 255, 255, .35);
}
.hero .btn--secondary:hover { --btn-bg: rgba(255, 255, 255, .22); --btn-bd: rgba(255, 255, 255, .5); }

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3) var(--sp-6);
    margin: var(--sp-8) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, .9);
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points i { opacity: .85; }

/* --- 18. Kategori kutuları ---------------------------------------------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: var(--sp-4);
}
.cat-tile {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: all .2s var(--ease);
}
.cat-tile:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.cat-tile__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    margin-bottom: var(--sp-2);
    font-size: 18px;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: var(--r-full);
    transition: all .2s var(--ease);
}
.cat-tile:hover .cat-tile__icon { background: var(--brand-600); color: #fff; }
.cat-tile__name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink-900);
}
.cat-tile__count { font-size: var(--text-sm); color: var(--ink-400); }

/* --- 19. Listeleme düzeni ------------------------------------------------ */
.listing {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
    padding-bottom: var(--sp-12);
}

.filters {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding-bottom: var(--sp-4);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line);
}
.filters__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    font-weight: 650;
    color: var(--ink-900);
}
.filters__group + .filters__group { margin-top: var(--sp-5); }
.filters__label {
    margin-bottom: var(--sp-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.filters__list { list-style: none; margin: 0; padding: 0; }
.filters__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    padding: 7px 10px;
    font-size: var(--text-base);
    color: var(--ink-700);
    border-radius: var(--r-sm);
}
.filters__list a:hover { background: var(--brand-50); color: var(--brand-700); }
.filters__list a.is-active { background: var(--brand-600); color: #fff; font-weight: 600; }
.filters__count { font-size: var(--text-xs); color: var(--ink-400); }
.filters__list a.is-active .filters__count { color: rgba(255, 255, 255, .8); }

.filters__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
    padding: 6px 13px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-700);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    transition: all .16s var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.filters__toggle { display: none; }

.listing__bar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}
.listing__count { margin: 0; font-size: var(--text-base); color: var(--ink-500); }
.listing__count strong { color: var(--ink-900); font-weight: 700; }
.listing__sort { margin-left: auto; }
.listing__sort .select { min-width: 190px; padding-block: 8px; }

@media (max-width: 900px) {
    .listing { grid-template-columns: 1fr; gap: var(--sp-4); }
    .filters {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 80;
        width: min(320px, 88vw);
        border-radius: 0;
        border-width: 0 1px 0 0;
        overflow-y: auto;
        transform: translateX(-102%);
        transition: transform .24s var(--ease);
        box-shadow: var(--shadow-lg);
    }
    .filters.is-open { transform: none; }
    .filters__toggle { display: inline-flex; }
    .listing__sort .select { min-width: 0; }
    .listing__count { display: none; }
}

/* --- 20. Keşif satırı: her zaman tam satır ------------------------------- */
.grid-products--preview { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) {
    .grid-products--preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-products--preview > *:nth-child(n+5) { display: none; }
}
@media (max-width: 900px) {
    .grid-products--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-products--preview > *:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
    .grid-products--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-products--preview > *:nth-child(n+5) { display: none; }
}

/* --- 21. Ürün detay ------------------------------------------------------ */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: var(--sp-10);
    align-items: start;
    padding-bottom: var(--sp-8);
}

.product__image {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product__image img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: var(--sp-8);
}
.product__flag { position: absolute; top: var(--sp-4); left: var(--sp-4); }

.product__title {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
    margin-bottom: var(--sp-4);
}

.product__seller {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    margin-bottom: var(--sp-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink-800);
    background: var(--surface);
}
.product__seller:hover { border-color: var(--brand-200); background: var(--brand-50); }
.product__seller strong { display: block; font-size: var(--text-base); }

.product__buy {
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.product__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--sp-4);
}

.product__trust {
    margin: var(--sp-5) 0 0;
    padding: var(--sp-4) 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
    display: grid;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--ink-500);
}
.product__trust li { display: flex; align-items: center; gap: 10px; }
.product__trust i { color: var(--brand-600); width: 16px; text-align: center; }

.spec {
    margin: var(--sp-5) 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface);
}
.spec__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 11px var(--sp-4);
    font-size: var(--text-base);
}
.spec__row + .spec__row { border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-500); margin: 0; }
.spec dd { margin: 0; font-weight: 500; color: var(--ink-900); }

/* Yorumlar */
.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
.comment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: var(--sp-3);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line);
}
.comments > .comment:first-child { padding-top: 0; border-top: 0; }
.comment__image {
    margin-top: var(--sp-3);
    max-width: 220px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
}

@media (max-width: 900px) {
    .product { grid-template-columns: 1fr; gap: var(--sp-6); }
    .product__image { aspect-ratio: 1 / 1; }
    .product__image img { padding: var(--sp-5); }
}

/* --- 22. Sayfa başlığı --------------------------------------------------- */
.page-head {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding-bottom: var(--sp-6);
}
.page-head__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    flex-shrink: 0;
    font-size: 22px;
    color: var(--brand-600);
    background: var(--brand-50);
    border-radius: var(--r-lg);
}
.page-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: 2px; }
@media (max-width: 560px) {
    .page-head__icon { width: 44px; height: 44px; font-size: 18px; }
}

/* --- 23. Sepet ----------------------------------------------------------- */
.cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-8);
    align-items: start;
    padding-bottom: var(--sp-16);
}
.cart__summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: var(--sp-4);
    align-items: center;
    padding: var(--sp-4) var(--sp-6);
}
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__thumb {
    display: block;
    aspect-ratio: 1;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 6px;
}
.cart-item__title a { color: var(--ink-900); }
.cart-item__title a:hover { color: var(--brand-700); }
.cart-item__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.sum-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 9px 0;
    font-size: var(--text-base);
    color: var(--ink-700);
}
.sum-row--total {
    margin-top: var(--sp-2);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink-900);
}

@media (max-width: 900px) {
    .cart { grid-template-columns: 1fr; }
    .cart__summary { position: static; }
    .cart-item { grid-template-columns: 64px minmax(0, 1fr); padding: var(--sp-4); }
    .cart-item__side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: var(--sp-2);
        border-top: 1px dashed var(--line);
    }
}

/* --- 24. Giriş / kayıt --------------------------------------------------- */
.auth-page { background: var(--canvas); }
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
    gap: 0;
    min-height: 100vh;
    align-items: stretch;
}
.auth__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding: var(--sp-10) var(--sp-6);
}
.auth__card--wide { max-width: 560px; }
.auth__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--ink-900);
}
.auth__brand img { height: 30px; }
.auth__title { font-size: var(--text-2xl); margin-bottom: 6px; }
.auth__sub { color: var(--ink-500); margin-bottom: var(--sp-6); }
.auth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.auth__foot { margin: var(--sp-6) 0 0; text-align: center; color: var(--ink-500); }

.auth__aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-5);
    padding: var(--sp-12) clamp(var(--sp-6), 4vw, var(--sp-16));
    color: #fff;
    background:
        radial-gradient(700px 340px at 80% 0%, rgba(255, 255, 255, .22), transparent 60%),
        linear-gradient(160deg, var(--brand-700), var(--brand-600) 55%, #8b7bf2);
}
.auth__aside h2 { color: #fff; font-size: var(--text-2xl); max-width: 18ch; }
.auth__aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.auth__aside li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--text-md); }
.auth__aside i {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .16);
    border-radius: var(--r-full);
    font-size: 14px;
}

.agreements {
    margin-top: var(--sp-5);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.linkish {
    padding: 0;
    background: none;
    border: 0;
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.linkish:hover { color: var(--brand-800); }

/* Modal */
.modal {
    width: min(560px, 92vw);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    color: var(--ink-800);
}
.modal::backdrop { background: rgba(21, 21, 31, .5); backdrop-filter: blur(2px); }
.modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--line);
}
.modal__head h2 { font-size: var(--text-lg); }
.modal__body { padding: var(--sp-6); max-height: 56vh; overflow-y: auto; }
.modal__body p { font-size: var(--text-base); color: var(--ink-700); }
.modal__foot {
    display: flex;
    justify-content: flex-end;
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth__aside { order: -1; padding-block: var(--sp-8); }
    .auth__aside h2 { font-size: var(--text-xl); }
    .auth__aside li { font-size: var(--text-base); }
    .auth__card { padding-block: var(--sp-8); }
}
@media (max-width: 480px) {
    .auth__grid { grid-template-columns: 1fr; gap: 0; }
}

/* --- 25. Mağaza başlığı -------------------------------------------------- */
.store {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.store__body { flex: 1; min-width: 0; }
.store__body h1 { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem); }
.store__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    margin-top: var(--sp-3);
    font-size: var(--text-base);
    color: var(--ink-500);
}
.store__stats strong { color: var(--ink-900); }
.store__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

@media (max-width: 640px) {
    .store { flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4); }
    .store__actions { width: 100%; }
}

/* --- 26. İçerik blokları ------------------------------------------------- */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-5);
    align-items: start;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-4);
}
.stat {
    display: grid;
    gap: 2px;
    padding: var(--sp-5);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.stat__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-700);
    letter-spacing: -.02em;
}
.stat__label { font-size: var(--text-sm); color: var(--ink-500); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-4);
}
.step {
    position: relative;
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.step__num {
    position: absolute;
    top: calc(-1 * var(--sp-3));
    left: var(--sp-5);
    width: 34px; height: 34px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: var(--brand-600);
    border: 3px solid var(--canvas);
    border-radius: var(--r-full);
}
.step h3 { margin-bottom: var(--sp-2); font-size: var(--text-md); }
.step p { font-size: var(--text-base); color: var(--ink-500); }

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.team__member { display: flex; align-items: flex-start; gap: var(--sp-3); }
.team__member strong { display: block; margin-bottom: 2px; }

/* --- 27. Sonuç ekranı ---------------------------------------------------- */
.result {
    display: grid;
    justify-items: center;
    gap: var(--sp-3);
    padding: var(--sp-10) var(--sp-6);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
}
.result__icon {
    width: 72px; height: 72px;
    display: grid; place-items: center;
    margin-bottom: var(--sp-2);
    font-size: 30px;
    border-radius: var(--r-full);
}
.result h1 { font-size: var(--text-2xl); }
.result p { max-width: 46ch; margin: 0; }
.result--ok   .result__icon { color: var(--ok-600);     background: var(--ok-50); }
.result--wait .result__icon { color: var(--warn-600);   background: var(--warn-50); }
.result--fail .result__icon { color: var(--danger-600); background: var(--danger-50); }

/* --- 28. Kullanıcı paneli ------------------------------------------------ */
.panel {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: var(--sp-8);
    align-items: start;
    padding-block: var(--sp-6) var(--sp-16);
}
.panel__main { min-width: 0; }

.panel-nav {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    display: grid;
    gap: 2px;
    padding: var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}
.panel-nav__link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 10px 12px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--ink-700);
    border-radius: var(--r-sm);
    transition: all .16s var(--ease);
}
.panel-nav__link i { width: 18px; text-align: center; color: var(--ink-400); }
.panel-nav__link:hover { background: var(--brand-50); color: var(--brand-700); }
.panel-nav__link:hover i { color: var(--brand-600); }
.panel-nav__link.is-current { background: var(--brand-600); color: #fff; font-weight: 600; }
.panel-nav__link.is-current i { color: #fff; }

@media (max-width: 900px) {
    .panel { grid-template-columns: 1fr; gap: var(--sp-4); }
    .panel-nav {
        position: static;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .panel-nav::-webkit-scrollbar { display: none; }
    .panel-nav__link { white-space: nowrap; }
    .panel-nav__link span { display: none; }
    .panel-nav__link.is-current span { display: inline; }
}

/* --- 29. Tablo ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}
.table th, .table td {
    padding: 12px var(--sp-6);
    text-align: left;
    white-space: nowrap;
}
.table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.table td { border-bottom: 1px solid var(--line); color: var(--ink-800); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table td .row { flex-wrap: nowrap; }

/* --- 30. Profil ---------------------------------------------------------- */
.profile-head {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}
.profile-avatar {
    display: grid;
    justify-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}
.profile-head__body { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .profile-head { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}

/* --- 31. Yükleme alanı --------------------------------------------------- */
.fieldset {
    margin: var(--sp-5) 0 0;
    padding: var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}
.fieldset legend { padding: 0 6px; }

.dropzone {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: var(--sp-6);
    text-align: center;
    background: var(--surface-2);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.dropzone:hover { border-color: var(--brand-300); background: var(--brand-50); }
.dropzone i { font-size: 22px; color: var(--brand-600); margin-bottom: 4px; }
.dropzone strong { font-size: var(--text-base); color: var(--ink-900); }

/* --- 32. Dar alanlarda kart düzeni --------------------------------------- */
.panel .grid-products--preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) {
    .panel .grid-products--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .panel .grid-products--preview > *:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
    .panel .grid-products--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel .grid-products--preview > *:nth-child(n+5) { display: none; }
}

/* Kart altı: yer daralınca fiyat ve buton alt alta geçsin */
.p-card__foot { flex-wrap: wrap; row-gap: var(--sp-2); }
.p-card__foot > .btn,
.p-card__foot > form { flex: 1 1 auto; }
.p-card__foot > form > .btn { width: 100%; }

/* --- 33. Google ile giriş ------------------------------------------------ */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    width: 100%;
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--ink-800);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    transition: all .18s var(--ease);
}
.btn-google:hover {
    color: var(--ink-900);
    border-color: var(--ink-300);
    background: var(--surface-2);
    box-shadow: var(--shadow-xs);
}
.btn-google svg { flex-shrink: 0; }

.auth-sep {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-5) 0;
    color: var(--ink-400);
    font-size: var(--text-sm);
}
.auth-sep::before,
.auth-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
