/* ============================================================
   WebTay — SADECE Mobil (768px ve altı)
   Masaüstüne dokunmaz — tüm kurallar media query içinde
   ============================================================ */

@media (max-width: 768px) {

    .desktop-only { display: none !important; }
    .mobile-only { display: block; }

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

    body {
        overflow-x: hidden;
        background: #f3f4f6;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    body.drawer-open { overflow: hidden; }

    .container {
        max-width: 100%;
        padding: 0 14px;
    }

    .main-content {
        min-height: auto;
        padding: 12px 0 20px;
        background: #f3f4f6;
    }

    .page-card,
    .block-card {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .auth-page {
        margin: 8px 0 16px;
        padding: 24px 18px;
        max-width: 100%;
    }

    .auth-page h2 {
        font-size: 1.35rem;
    }

    .block-card--hero {
        padding: 20px 16px;
    }

    .home-page {
        gap: 12px;
    }

    /* ── Yardımcı sınıflar ── */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 12px;
        background: #fff;
    }

    .comparison-table {
        min-width: 520px;
        margin-top: 0;
        font-size: 0.8rem;
    }

    .legal-page {
        background: #fff;
        border-radius: 14px;
        padding: 18px 16px;
        max-width: 100% !important;
        line-height: 1.7;
        font-size: 0.9rem;
    }

    .legal-page h2 { font-size: 1.15rem !important; text-align: left !important; }
    .legal-page h3 { margin-top: 16px; }
    .legal-page ul { padding-left: 18px; }

    .legal-updated { color: #64748b; font-size: 0.85rem; margin-bottom: 12px; }

    .firma-kutu {
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }

    .payment-result-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .product-selected-banner {
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        color: #fff;
        padding: 14px;
        border-radius: 12px;
        margin-bottom: 16px;
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .product-selected-banner .banner-icon {
        font-size: 1.75rem;
        flex-shrink: 0;
    }

    .catalog-header {
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .catalog-header h2 { margin: 0; text-align: left; font-size: 1.15rem !important; }
    .catalog-header p { margin: 4px 0 0; color: #64748b; font-size: 0.85rem; }

    .catalog-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .catalog-filters::-webkit-scrollbar { display: none; }

    .products-showcase {
        background: #f9fafb;
        color: #111827;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin: 24px 0;
        padding: 20px 16px;
    }

    .products-showcase .showcase-title {
        text-align: left;
        font-size: 1.15rem;
        margin-bottom: 8px;
        color: #111827;
    }

    .products-showcase .showcase-desc {
        text-align: center;
        font-size: 0.9rem;
        opacity: 0.95;
        margin-bottom: 20px;
    }

    .products-showcase .showcase-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px;
    }

    .products-showcase .showcase-card {
        padding: 18px 16px !important;
        text-align: left !important;
    }

    .products-showcase .showcase-card .sc-icon {
        font-size: 2rem !important;
        margin-bottom: 8px !important;
    }

    .products-showcase .showcase-card .sc-title {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .products-showcase .showcase-card .sc-desc {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        opacity: 0.9;
    }

    .products-showcase .showcase-card .sc-price {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
    }

    .products-showcase .showcase-card .sc-note {
        font-size: 0.8rem !important;
        opacity: 0.75;
    }

    .products-showcase .showcase-cta {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 0.95rem !important;
        box-sizing: border-box;
    }

    .projects-showcase { margin: 16px 0; }
    .projects-showcase .showcase-title { text-align: center; margin-bottom: 8px; }
    .projects-showcase .showcase-desc { text-align: center; color: #64748b; font-size: 0.9rem; margin-bottom: 16px; }

    .projects-showcase .projects-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 24px;
    }

    /* ── Üst Bar ── */
    .m-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        height: 56px;
        padding: 0 12px;
        padding-top: env(safe-area-inset-top, 0px);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }

    .m-topbar-btn {
        width: 40px;
        height: 40px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111827;
        border-radius: 8px;
        cursor: pointer;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m-topbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #111827;
        flex: 1;
        min-width: 0;
    }

    .m-topbar-brand img {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        object-fit: cover;
    }

    .m-topbar-brand span {
        font-weight: 700;
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m-topbar-cart {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        text-decoration: none;
        color: #111827;
        flex-shrink: 0;
    }

    .m-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        background: #ef4444;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m-badge:empty,
    .m-badge[data-count="0"] { display: none; }

    /* ── Yan Menü (Drawer) ── */
    .m-drawer {
        position: fixed;
        inset: 0;
        z-index: 9999;
        pointer-events: none;
        visibility: hidden;
    }

    .m-drawer.open {
        pointer-events: auto;
        visibility: visible;
    }

    .m-drawer-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .m-drawer.open .m-drawer-backdrop { opacity: 1; }

    .m-drawer-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 85vw);
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .m-drawer.open .m-drawer-panel { transform: translateX(0); }

    .m-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: #fff;
        color: #111827;
        border-bottom: 1px solid #e5e7eb;
    }

    .m-drawer-head strong { font-size: 1rem; font-weight: 600; }

    .m-drawer-close {
        width: 36px;
        height: 36px;
        border: 1px solid #e5e7eb;
        background: #fff;
        color: #111827;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
    }

    .m-drawer-links {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .m-drawer-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        color: #1e293b;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.95rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .m-drawer-links a:active { background: #f8fafc; }

    .m-drawer-links a.active {
        background: #f9fafb;
        color: #111827;
        font-weight: 600;
    }

    .m-drawer-links .m-drawer-section {
        padding: 12px 18px 6px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #94a3b8;
    }

    .m-drawer-cta {
        padding: 14px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .m-drawer-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
    }

    .m-drawer-cta .m-cta-phone {
        background: #111827;
        color: #fff;
    }

    .m-drawer-cta .m-cta-wa {
        background: #fff;
        color: #111827;
        border: 1px solid #e5e7eb;
    }

    /* ── Alt Tab Bar ── */
    .m-tabbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        display: flex;
        align-items: stretch;
        background: #fff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    }

    .m-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 4px;
        text-decoration: none;
        color: #64748b;
        font-size: 0.65rem;
        font-weight: 600;
        border: none;
        background: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .m-tab-label { font-size: 0.65rem; font-weight: 600; }

    .m-tab.active {
        color: #111827;
    }

    /* Mobilde yukarı çık butonu gösterme (alt tab bar ile çakışır) */
    .back-to-top {
        display: none !important;
    }

    /* ── Hero ── */
    .hero {
        padding: 8px 0 24px;
        margin-bottom: 0;
        text-align: left;
        border-radius: 0;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 8px;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        padding: 14px 20px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
    }

    /* ── İstatistikler ── */
    .statistics {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px;
    }

    .stat-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px 12px;
        text-align: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .stat-number { font-size: 1.6rem !important; }
    .stat-label { font-size: 0.75rem; }

    .trust-strip {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }

    .trust-strip-item {
        padding: 10px 8px;
        font-size: 0.72rem;
    }

    /* ── Başlıklar ── */
    h2 {
        font-size: 1.25rem !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }

    .section-subtitle {
        text-align: left !important;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    /* ── Hizmet Kartları ── */
    .services-preview,
    .features-grid,
    .portfolio-grid,
    .technologies,
    .tech-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .service-card,
    .feature-box,
    .portfolio-item {
        background: #fff;
        border-radius: 14px;
        padding: 18px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        border: 1px solid #e2e8f0 !important;
        transform: none !important;
    }

    .service-card h3,
    .feature-box h3 { font-size: 1rem; }

    .service-features { display: none; }

    .service-card p,
    .feature-box p {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .portfolio-item {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .portfolio-image { font-size: 2rem !important; min-width: auto !important; }

    /* ── Showcase (ürün kartları) ── */
    .projects-showcase .projects-grid > div {
        transform: none !important;
        border-radius: 14px !important;
    }

    /* ── Ürünler sayfası: catalog.css yönetir ── */

    /* ── Hizmetler ── */
    .services { grid-template-columns: 1fr !important; }

    .service-detail {
        background: #fff;
        border-radius: 14px;
        padding: 16px !important;
        margin-bottom: 12px;
        border-left: 4px solid #0f3460;
    }

    .table-responsive {
        margin: 12px -14px;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .comparison-table { min-width: 520px; font-size: 0.8rem; }
    .comparison-table th,
    .comparison-table td { padding: 10px 8px; }

    /* ── İletişim ── */
    .contact-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .contact-form-container,
    .contact-info {
        background: #fff;
        border-radius: 14px;
        padding: 16px !important;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px !important;
        padding: 14px !important;
        border-radius: 10px !important;
    }

    .product-selected-banner {
        border-radius: 12px;
        padding: 14px;
        margin-bottom: 16px;
    }

    /* ── E-ticaret sayfaları ── */
    .cart-page,
    .odeme-page,
    .orders-page,
    .profil-page {
        max-width: 100% !important;
    }

    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        background: #fff;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .page-header h2 {
        font-size: 1.2rem !important;
        margin: 0 !important;
    }

    .page-header .actions,
    .odeme-page .actions {
        width: 100%;
        margin-top: 10px;
    }

    .page-header .actions a,
    .odeme-page .actions a,
    .page-header .actions button {
        width: 100%;
        text-align: center;
        padding: 12px !important;
    }

    .layout { grid-template-columns: 1fr !important; gap: 12px !important; }

    .card {
        border-radius: 14px !important;
        padding: 16px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    }

    .cart-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
        background: #f8fafc;
        border-radius: 10px;
        padding: 12px !important;
        margin-bottom: 8px;
        border-bottom: none !important;
    }

    .cart-item button { width: 100%; padding: 12px !important; }

    .row { flex-direction: column !important; gap: 10px !important; }

    .odeme-page .grid { grid-template-columns: 1fr !important; }

    .form-group input,
    .form-group select {
        font-size: 16px !important;
        padding: 14px !important;
    }

    .btn, .btn-primary, .btn-outline, .btn-danger {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
        border-radius: 12px !important;
        min-height: 48px;
    }

    .btn.full, .btn-primary.full { width: 100%; }

    .info-row { flex-direction: column !important; gap: 2px; }

    .orders-page .item {
        border-radius: 12px;
        padding: 14px !important;
    }

    .orders-page .item-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .profil-page .actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .profil-page .actions .btn { width: 100%; text-align: center; }

    /* ── Yasal / auth sayfaları ── */
    .legal-page {
        background: #fff;
        border-radius: 14px;
        padding: 18px 16px;
        max-width: 100% !important;
        font-size: 0.9rem;
    }

    .legal-page h2 { font-size: 1.15rem !important; }

    .payment-result-actions {
        flex-direction: column;
    }

    .payment-result-actions a {
        width: 100% !important;
        text-align: center !important;
        padding: 14px !important;
        margin: 0 !important;
    }

    /* Login / register formları */
    .login-page .card,
    .register-page .card,
    .forgot-page .card {
        border-radius: 14px;
        margin: 0;
    }

    /* ── Footer (kompakt) ── */
    .footer {
        margin-bottom: 0;
        padding: 24px 0 20px;
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .footer-section h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .footer-section ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .footer-section a {
        font-size: 0.88rem !important;
        display: block;
        padding: 4px 0;
    }

    .footer-policy-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 16px !important;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .footer-policy-links a {
        display: block !important;
        padding: 10px 8px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 8px !important;
        color: rgba(255,255,255,0.9) !important;
        text-decoration: none !important;
        font-size: 0.78rem !important;
        text-align: center !important;
        line-height: 1.3;
    }

    .footer-contact { font-size: 0.8rem; }
    .footer-contact p { margin-bottom: 10px; }

    .footer-bottom { font-size: 0.75rem; padding-top: 16px; }
    .footer-bottom p { margin: 4px 0; line-height: 1.4; }

    .footer-payments { gap: 6px; }
    .payment-badge { font-size: 0.65rem; padding: 4px 8px; }

    /* Güvenlik rozetleri */
    .tech-category,
    .tech-stack {
        background: #fff;
        border-radius: 14px;
        padding: 16px !important;
        margin-bottom: 12px;
    }

    .tech-badge {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    /* ── FAQ ── */
    .faq-item {
        background: #fff;
        border-radius: 12px;
        padding: 14px !important;
        margin-bottom: 8px;
    }

    /* ── Butonlar genel ── */
    .btn-link, .btn-center {
        display: block;
        text-align: center;
        padding: 14px;
        background: #fff;
        border-radius: 12px;
        margin: 12px 0;
    }

    .btn-primary, .btn-secondary {
        border-radius: 12px !important;
    }

    /* ── Hakkımızda ── */
    .firma-bilgi-grid { grid-template-columns: 1fr !important; }

    /* Güvenlik rozetleri */
    .footer-security { flex-direction: column !important; gap: 4px !important; }

    /* ── Hesap sayfaları ── */
    .account-form .form-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .account-header-actions {
        width: 100%;
    }

    .account-header-actions .btn-outline {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .account-footer-actions {
        flex-direction: column;
    }

    .account-footer-actions .btn-outline,
    .account-footer-actions .btn-danger {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .orders-controls {
        justify-content: space-between;
    }

    .orders-table thead {
        display: none;
    }

    .orders-table tbody tr {
        display: block;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
    }

    .orders-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 14px;
        border: none;
    }

    .orders-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        color: #6b7280;
        flex-shrink: 0;
    }

    .orders-table tbody td:last-child {
        justify-content: flex-end;
        padding-top: 10px;
    }

    .orders-table tbody td:last-child::before {
        display: none;
    }

    .order-detail-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
