/* ==========================================================
   Responsive Styles — Mobile First Approach
   ----------------------------------------------------------
   Breakpoint sistemi:
     xl  >= 1280px (default — desktop)
     lg  <= 1279px (laptop)
     md  <= 1023px (tablet)
     sm  <= 767px  (büyük telefon / küçük tablet)
     xs  <= 479px  (telefon)
     xxs <= 359px  (çok küçük telefon)
   ========================================================== */

/* ----------------------------------------------------------
   GLOBAL OVERFLOW GUARD
   Yatay scroll'u kesinlikle engelle — mobilde sağa kaymayı önle.
   ---------------------------------------------------------- */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

/* Container içindeki kartlar viewport'u aşmasın
   NOT: .container'a max-width: 100% verme — kendi max-width: 1280px değeri korunsun */
.dashboard-content,
.auth-card,
.modal-card,
.global-search-panel {
    max-width: 100%;
}

/* Görseller / iframe / video / svg viewport'u aşmasın */
img,
video,
iframe,
svg,
canvas,
embed,
object {
    max-width: 100%;
}

/* Pre, code, tablo gibi gerçekten geniş içerik için yatay scroll iç container'da yapılsın */
pre,
.code-block {
    max-width: 100%;
    overflow-x: auto;
}

/* ----------------------------------------------------------
   Inline grid override — sayfalarda inline style ile yazılmış
   "grid-template-columns: repeat(3, 1fr)" vb. desktop kuralları
   tablet/mobilde tek sütuna indir.
   ---------------------------------------------------------- */
@media (max-width: 1023px) {
    /* 4 sütun -> 2 sütun */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(5"],
    [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* 3 sütun -> 2 sütun (tablet) */
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) {
    /* Tüm çoklu sütunları mobilde tek sütun yap */
    [style*="grid-template-columns: repeat(2"],
    [style*="grid-template-columns:repeat(2"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(5"],
    [style*="grid-template-columns:repeat(5"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 2fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns:2fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    /* Inline padding'leri mobilde küçült */
    [style*="padding: var(--space-8)"],
    [style*="padding:var(--space-8)"] {
        padding: var(--space-5) !important;
    }
    [style*="padding: var(--space-10)"],
    [style*="padding:var(--space-10)"] {
        padding: var(--space-6) !important;
    }
}

/* Uzun kelimeler / URL'ler taşmasın — break edilsin */
@media (max-width: 767px) {
    p,
    h1, h2, h3, h4, h5, h6,
    .bid-card-title,
    .auction-card-title,
    .page-header h1,
    .section-title,
    [data-description],
    .specs-grid .spec-value,
    .seller-info {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    /* Detail sayfası — grid item'lar viewport içine sıkışsın */
    .detail-grid,
    .detail-grid > div,
    .detail-grid > aside {
        min-width: 0;
        max-width: 100%;
    }

    /* Bid card favori butonu absolute pos sorun yaratmasın */
    .card-favorite {
        position: static !important;
        flex-shrink: 0;
    }
    .bid-status-bar {
        gap: var(--space-2);
    }

    /* Detail-info ve bid-card border-radius mobilde daha küçük */
    .detail-info,
    .bid-card {
        border-radius: var(--radius-lg);
    }

    /* Section padding mobilde daha az */
    section[style*="padding: var(--space-8)"] {
        padding: var(--space-5) 0 !important;
    }

    /* Tüm flex child'lar için defansif min-width:0
       (uzun text ile flex container'ın itildiği klasik sorun çözümü) */
    .seller-info,
    .bid-card-meta,
    .ship-info-row > strong,
    .ship-info-row > span,
    .current-bid-info > * {
        min-width: 0;
    }
}

/* ---------- Touch device optimizasyonları ---------- */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlarda hover state'leri kaldır, scroll'da yapışma olmasın */
    .auction-card:hover,
    .category-card:hover,
    .btn:hover {
        transform: none !important;
    }
    /* Tüm tıklanabilir target'lar min 44x44px (Apple HIG önerisi) */
    .btn,
    .form-control,
    button,
    .dashboard-menu a,
    .panel-tabs button,
    .admin-icon-btn {
        min-height: 40px;
    }
    .btn-icon-only {
        min-width: 40px;
    }
}

/* ---------- Large Desktops (1280px ve altı) ---------- */
@media (max-width: 1279px) {
    :root {
        --container-max: 1100px;
    }
    .hero-title {
        font-size: var(--fs-5xl);
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    .footer-grid > :nth-child(4) {
        display: none;
    }
}

/* ---------- Tablet & Small Desktop (1024px ve altı) ---------- */
@media (max-width: 1023px) {
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: var(--fs-4xl);
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .bid-card {
        position: static;
    }
    .gallery-main {
        height: 400px;
        font-size: 80px;
    }
    .auth-wrapper {
        grid-template-columns: 1fr;
    }
    .auth-visual {
        display: none;
    }

    /* Dashboard / Panel — sidebar mobilde drawer'a dönüşür */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: var(--space-5) 0;
    }
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1100;
        border-radius: 0;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        padding-top: calc(var(--header-height) + var(--space-4));
        border-right: 1px solid var(--color-gray-200);
        box-shadow: var(--shadow-2xl);
    }
    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }
    /* Drawer backdrop */
    .dashboard-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1099;
    }
    .dashboard-sidebar-backdrop.is-open {
        display: block;
    }
    /* Sidebar drawer toggle butonu */
    .panel-sidebar-toggle {
        display: inline-flex !important;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-content {
        border-radius: var(--radius-lg);
        padding: var(--space-5);
    }

    /* Admin dashboard 2 sütun grid'leri tek sütuna */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Inline grid'ler (admin sayfalarındaki 2 kolonlu özet kartlar) */
    .dashboard-content > div[style*="grid-template-columns:1fr 1fr"],
    .dashboard-content > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ---------- Tablet (768px ve altı) ---------- */
@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 var(--space-4);
    }

    /* iOS Safari zoom fix — input font-size 16px+ olmalı */
    input.form-control,
    select.form-control,
    textarea.form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px;
    }

    /* Header */
    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-4);
        gap: var(--space-1);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-gray-200);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        z-index: 999;
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav a {
        padding: var(--space-3) var(--space-4);
        font-size: var(--fs-base);
        border-radius: var(--radius-md);
    }
    .main-nav a:hover {
        background: var(--color-gray-50);
    }
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobilde sadece nav linkleri gizle ama auth butonlarını koru */
    .header-actions .btn:not(.btn-icon-only):not([data-auth-login]):not([data-auth-register]):not([data-auth-profile]) {
        display: none;
    }
    .header-actions [data-auth-login],
    .header-actions [data-auth-register],
    .header-actions [data-auth-profile] {
        padding: 8px 12px;
        font-size: 13px;
    }
    .header-actions [data-auth-register] i,
    .header-actions [data-auth-login] i {
        display: none;
    }

    .trust-bar {
        display: none;
    }

    /* Hero */
    .hero {
        padding: var(--space-12) 0;
    }
    .hero-title {
        font-size: var(--fs-3xl);
        line-height: 1.2;
    }
    .hero-description {
        font-size: var(--fs-base);
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
        padding-top: var(--space-6);
    }
    .hero-stat-number {
        font-size: var(--fs-xl);
    }
    .hero-stat-label {
        font-size: var(--fs-xs);
    }
    .hero-visual {
        display: none;
    }

    /* Sections */
    .section {
        padding: var(--space-12) 0;
    }
    .section-title {
        font-size: var(--fs-3xl);
    }
    .section-description {
        font-size: var(--fs-base);
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    .category-card {
        padding: var(--space-4);
    }
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .auctions-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: var(--space-4);
    }
    .auctions-header {
        flex-direction: column;
        align-items: stretch;
    }
    .auctions-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .auctions-tabs::-webkit-scrollbar {
        display: none;
    }
    .auctions-tabs button {
        flex-shrink: 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta h2 {
        font-size: var(--fs-3xl);
    }
    .cta p {
        font-size: var(--fs-base);
    }
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .footer-col {
        padding-bottom: var(--space-4);
        border-bottom: 1px solid var(--color-gray-200);
    }
    .footer-col:last-child {
        border-bottom: 0;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Page Header / Breadcrumb */
    .page-header {
        padding: var(--space-12) 0 var(--space-8);
    }
    .page-header h1 {
        font-size: var(--fs-3xl);
    }
    .breadcrumb-list {
        font-size: 12px;
        flex-wrap: wrap;
    }

    /* Listing — Filtre sidebar drawer */
    .listing-container {
        grid-template-columns: 1fr !important;
    }
    .filter-mobile-toggle {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
    }
    .filter-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 90vw;
        height: 100vh;
        max-height: none;
        background: var(--color-white);
        z-index: 1100;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.28s ease;
        display: block;
        box-shadow: var(--shadow-2xl);
        border-radius: 0;
        padding: var(--space-5);
    }
    .filter-sidebar.is-open {
        transform: translateX(0);
    }
    .filter-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1099;
    }
    .filter-sidebar-backdrop.is-open {
        display: block;
    }
    .listing-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    .listing-toolbar select,
    .listing-toolbar .form-control {
        width: 100%;
    }

    /* Detay — galeri ve teklif kartı */
    .gallery-main {
        height: 280px;
        font-size: 60px;
        border-radius: var(--radius-lg);
    }
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
    }
    .countdown-timer {
        gap: var(--space-1);
    }
    .timer-unit {
        padding: var(--space-2) var(--space-1);
    }
    .timer-value {
        font-size: var(--fs-lg);
    }
    .timer-label {
        font-size: 10px;
    }
    /* Detail tabs scrollable (HTML class: detail-info-tabs) */
    .detail-tabs,
    .detail-info-tabs,
    .panel-tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap !important;
    }
    .detail-tabs::-webkit-scrollbar,
    .detail-info-tabs::-webkit-scrollbar,
    .panel-tabs::-webkit-scrollbar {
        display: none;
    }
    .detail-tabs button,
    .detail-info-tabs button,
    .panel-tabs button {
        flex-shrink: 0;
        white-space: nowrap;
        padding: var(--space-3);
        font-size: 13px;
    }
    .detail-info-tabs button i {
        margin-right: 4px;
    }

    /* Forms */
    .auth-form-wrapper {
        padding: var(--space-8) var(--space-4);
    }
    .auth-card {
        padding: var(--space-6);
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: var(--space-3);
    }

    /* Specs */
    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    .dashboard-content {
        padding: var(--space-4);
        border-radius: var(--radius-md);
    }
    .panel-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .panel-page-header h2 {
        font-size: var(--fs-xl);
    }

    /* Tablo container — yatay scroll */
    .panel-table-wrap,
    .admin-table-wrap {
        margin-left: calc(-1 * var(--space-4));
        margin-right: calc(-1 * var(--space-4));
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    /* Modal — mobilde tam ekran bottom sheet */
    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    .modal-card {
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        animation: modal-slide-up 0.25s ease-out;
    }
    @keyframes modal-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .modal-body {
        padding: var(--space-4);
    }
    .modal-header {
        padding: var(--space-4);
    }
    .modal-footer {
        padding: var(--space-3) var(--space-4);
        flex-wrap: wrap;
    }
    .modal-footer .btn {
        flex: 1 1 calc(50% - 4px);
    }

    /* Tablo card view içinde main resim & başlık ortalansın */
    .panel-table td .table-product {
        text-align: right;
    }

    /* Wallet hero */
    .wallet-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .wallet-balance-amount {
        font-size: 2rem !important;
    }
    .wallet-actions {
        width: 100%;
        flex-direction: column;
    }
    .wallet-actions .btn {
        width: 100%;
    }

    /* İhale oluştur — stepper mobilde kompakt */
    .stepper {
        gap: var(--space-2);
        overflow-x: auto;
        scrollbar-width: none;
    }
    .stepper::-webkit-scrollbar {
        display: none;
    }
    /* Mobilde sadece dot'lar (rakam) görünür, label gizlenir */
    .stepper .step .label {
        display: none;
    }
    .stepper .step .dot {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .stepper .step {
        flex-shrink: 0;
    }
    /* Step number style (genel) */
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    /* Fotoğraf grid mobilde 2 sütun */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-2);
    }
    /* Stepper actions */
    .step-actions {
        flex-direction: column-reverse;
        gap: var(--space-2);
    }
    .step-actions .btn {
        width: 100%;
    }

    /* Search overlay header */
    .global-search-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    /* Settings tabs scrollable */
    .settings-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .settings-tabs::-webkit-scrollbar {
        display: none;
    }
    .settings-tabs button {
        flex-shrink: 0;
    }

    /* Toast notifications mobilde alt orta */
    .toast-container {
        left: var(--space-3);
        right: var(--space-3);
        bottom: var(--space-3);
        top: auto;
    }
    .toast {
        max-width: 100%;
    }

    /* Bid card mobilde sticky bottom */
    .detail-grid .bid-card {
        position: static;
        margin-top: var(--space-5);
        padding: var(--space-4);
    }
    .bid-card-title {
        font-size: var(--fs-xl);
        line-height: 1.3;
    }
    .current-bid {
        padding: var(--space-4);
    }
    .current-bid-amount {
        font-size: var(--fs-3xl);
        word-break: break-all;
    }
    .current-bid-info {
        flex-wrap: wrap;
        gap: var(--space-2);
        font-size: 12px;
    }
    .bid-input-group {
        flex-direction: column;
    }
    .bid-input-group input {
        width: 100%;
    }
    .bid-input-group .btn {
        width: 100%;
    }
    .bid-quick-options {
        flex-wrap: wrap;
    }
    .bid-quick-options button {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    /* Seller card mobilde stack */
    .seller-card {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    .seller-info {
        flex: 1 1 calc(100% - 76px) !important;
        min-width: 0;
    }
    .seller-card .btn {
        flex: 1 1 100%;
    }

    /* Detail info wrapper içerideki padding'i azalt */
    .detail-info {
        padding: var(--space-4) !important;
    }

    /* Specs grid 1 sütun */
    .specs-grid {
        grid-template-columns: 1fr !important;
    }
    .spec-item {
        font-size: 13px;
    }

    /* Shipping info row daha kompakt */
    .ship-info-row {
        flex-wrap: wrap;
    }
    .ship-info-row > strong {
        flex: 1 0 auto;
    }

    /* Bid history mobilde kompakt */
    .bid-history-list {
        max-height: 280px;
        overflow-y: auto;
    }

    /* Buton sıkıştırma — mobil için */
    .auction-card-actions {
        flex-direction: column;
    }
    .auction-card-actions .btn {
        width: 100%;
    }

    /* Pretty image scaling */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Yardım merkezi grid */
    .help-grid {
        grid-template-columns: 1fr;
    }

    /* İletişim grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Small Phones (479px ve altı) ---------- */
@media (max-width: 479px) {
    :root {
        --fs-4xl: 1.875rem;
        --fs-5xl: 2.25rem;
        --fs-6xl: 2.5rem;
        --space-section: var(--space-10);
    }

    .container {
        padding: 0 var(--space-3);
    }

    .logo {
        font-size: var(--fs-base);
        gap: 6px;
    }
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .logo-icon img {
        height: 32px !important;
        max-width: 110px !important;
    }
    .logo-text span {
        display: inline;
    }
    /* Mobilde "Logo + İsim" modunda her ikisi de yer kaplıyor — eğer logo
       resmi yüklenmişse metin otomatik gizlensin (yalnızca logo görünür).
       Logo yoksa metin görünür (varsayılan davranış). */
    .logo-icon.has-image + .logo-text,
    .logo-icon:has(img) + .logo-text {
        display: none !important;
    }
    /* Mobilde header'da yer tasarrufu: kayıt/profil metnini gizle, sadece ikon kalsın */
    .header-actions [data-auth-register] {
        display: none;
    }
    .header-actions [data-auth-profile] [data-user-name],
    .header-actions [data-auth-profile] span:not([class]) {
        display: none;
    }
    .header-actions [data-auth-profile] {
        padding: 8px 12px !important;
        min-width: 40px;
    }
    .header-actions [data-auth-login] {
        padding: 8px 12px !important;
        font-size: 13px;
    }
    /* Hamburger her zaman EN sağda kalsın */
    .header-actions {
        gap: 4px;
    }
    .mobile-menu-toggle {
        margin-left: 0 !important;
        order: 99;
    }
    /* Header inner içinde logo solda, actions sağda */
    .header-inner {
        gap: var(--space-2);
    }

    /* Hero kompakt */
    .hero {
        padding: var(--space-10) 0 var(--space-8);
    }
    .hero-title {
        font-size: var(--fs-2xl);
    }
    .hero-description {
        font-size: var(--fs-sm);
    }
    .hero-badge {
        font-size: 11px;
        padding: var(--space-1) var(--space-3);
    }

    /* Section başlık tipografi */
    .section {
        padding: var(--space-10) 0;
    }
    .section-title {
        font-size: var(--fs-2xl);
    }
    .section-description {
        font-size: var(--fs-sm);
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }
    .category-card {
        padding: var(--space-3);
    }
    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: var(--space-2);
    }
    .category-name {
        font-size: var(--fs-sm);
    }

    /* İhale kartlar single column */
    .auctions-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    .auction-card-content {
        padding: var(--space-3);
    }
    .auction-card-image {
        height: 180px;
    }

    /* Hero stats compact */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }
    .hero-stats > :last-child {
        grid-column: span 2;
        text-align: center;
    }
    .hero-stat-number {
        font-size: var(--fs-lg);
    }

    /* Detail gallery */
    .gallery-main {
        height: 240px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Form */
    .auth-form-wrapper {
        padding: var(--space-6) var(--space-3);
    }
    .auth-card {
        padding: var(--space-5);
        box-shadow: none;
        border: 1px solid var(--color-gray-200);
    }

    /* Dashboard content */
    .dashboard-content {
        padding: var(--space-3);
    }

    /* CTA */
    .cta {
        padding: var(--space-10) 0;
    }
    .cta h2 {
        font-size: var(--fs-2xl);
    }

    /* Page header */
    .page-header h1 {
        font-size: var(--fs-2xl);
    }
    .page-header p {
        font-size: var(--fs-sm);
    }

    /* Help center */
    .help-card {
        padding: var(--space-4);
    }

    /* Timer compact */
    .timer-value {
        font-size: var(--fs-base);
    }
    .timer-unit {
        padding: 6px 4px;
    }

    /* Badge / counter */
    .badge,
    .auction-card-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Toast */
    .toast {
        padding: var(--space-3);
        font-size: var(--fs-sm);
    }

    /* Footer kompakt */
    .footer-col h4 {
        font-size: var(--fs-base);
    }
    .footer-col ul a {
        font-size: var(--fs-sm);
    }
}

/* ---------- Çok Küçük Telefon (359px ve altı) ---------- */
@media (max-width: 359px) {
    .container {
        padding: 0 var(--space-2);
    }
    .hero-title {
        font-size: var(--fs-xl);
    }
    .section-title {
        font-size: var(--fs-xl);
    }
    .logo-text span {
        display: none;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
    .hero-stats > :last-child {
        grid-column: span 1;
    }
}

/* ---------- Yatay Yön (Landscape) telefon ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        padding: var(--space-8) 0;
    }
    .hero-title {
        font-size: var(--fs-2xl);
    }
    .modal-card {
        max-height: 96vh;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    .site-header,
    .site-footer,
    .trust-bar,
    .hero,
    .cta,
    .breadcrumb,
    .dashboard-sidebar,
    .panel-sidebar-toggle,
    .filter-sidebar,
    .filter-mobile-toggle,
    .modal-backdrop,
    .toast-container,
    .mobile-menu-toggle {
        display: none !important;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    body {
        background: #fff;
        color: #000;
    }
    .auction-card,
    .dashboard-content {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Dark mode (sistemden — opsiyonel future hook) ---------- */
/* @media (prefers-color-scheme: dark) { ... } */
