﻿/* ============================================================
   Kobiadam - Responsive Ek Stiller
   ============================================================ */

/* XL+ Ekranlar (1400px+) */
@media (min-width: 1400px) {
    .hero-content .hero-title,
    .hero-content h1,
    .hero-content h2,
    .rich-hero-title {
        font-size: 2.75rem;
    }
}

/* LG Ekranlar (992px - 1199px) */
@media (max-width: 1199.98px) {
    .kobiadam-hero-section .swiper-slide {
        min-height: 460px;
    }
    .hero-content {
        padding: 50px 0;
    }
    .rich-hero {
        padding: 60px 0 50px;
    }
    .rich-hero-title {
        font-size: 2rem;
    }
    .rich-hero-visual {
        min-height: 280px;
    }
    .advantages-grid {
        gap: 12px;
    }
}

/* MD Ekranlar (768px - 991px) */
@media (max-width: 991.98px) {
    .kobiadam-hero-section .swiper-slide {
        min-height: 420px;
    }
    .hero-content .hero-title,
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.75rem;
    }
    .hero-content .hero-subtitle,
    .hero-content p {
        font-size: 0.95rem;
    }
    .kobiadam-hero-section .swiper-button-next,
    .kobiadam-hero-section .swiper-button-prev {
        display: none;
    }
    /* Rich hero - tek kolon */
    .rich-hero {
        padding: 50px 0 40px;
    }
    .rich-hero-title {
        font-size: 1.75rem;
    }
    .rich-hero-desc {
        font-size: 0.95rem;
        max-width: none;
    }
    .rich-hero-content {
        text-align: center;
    }
    .rich-hero-content .hero-buttons {
        justify-content: center;
    }
    .rich-hero-stats {
        justify-content: center;
    }
    .rich-hero .kobiadam-breadcrumb {
        margin-left: auto;
        margin-right: auto;
    }
    /* Avantajlar 2x2 grid */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rich-hero-title--compact {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    /* WooCommerce */
    .product-info-box {
        margin-top: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Mağaza sidebar */
    .kobiadam-shop-sidebar {
        display: none;
    }

    /* Ürün detay butonlar */
    .product-actions-row {
        flex-wrap: wrap;
    }

    .product-actions-row .kobiadam-add-favorite {
        flex: 1 1 100%;
    }
}

/* SM Ekranlar (576px - 767px) */
@media (max-width: 767.98px) {
    .kobiadam-hero-section .swiper-slide {
        min-height: auto;
    }
    .hero-content {
        padding: 40px 0;
        text-align: center;
    }
    .hero-content .hero-title,
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .hero-content .hero-subtitle,
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
    /* Rich hero mobile */
    .rich-hero {
        padding: 40px 0 30px;
    }
    .rich-hero-title {
        font-size: 1.5rem;
    }
    .rich-hero-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .rich-hero-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    .rich-hero-stats {
        gap: 16px;
    }
    .rich-hero-stats .stat-number {
        font-size: 1.2rem;
    }
    .rich-hero--compact {
        padding: 32px 0 24px;
    }
    .rich-hero-title--compact {
        font-size: 1.35rem;
    }
    /* Avantajlar tek kolon */
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .advantage-card {
        padding: 14px;
    }
    .advantage-card strong {
        font-size: 13px;
    }
    .advantage-card small {
        font-size: 11px;
    }
    .advantage-icon {
        width: 40px;
        height: 40px;
    }
    .advantage-icon .material-symbols-outlined {
        font-size: 20px;
    }
    /* Page hero eski uyumluluk */
    .kobiadam-page-hero {
        padding: 28px 0 20px;
    }
    /* WooCommerce Detay */
    .product-info-box {
        padding: 20px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-price-amount {
        font-size: 22px;
    }

    .kobiadam-product-tabs .nav-tabs .nav-link {
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Ürün özellik kutuları */
    .product-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Ürün kartları */
    .kobiadam-product-card .product-card-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .kobiadam-product-card .product-card-buy {
        width: 100%;
        justify-content: center;
    }

    /* Sepet */
    .woocommerce-cart .woocommerce table.shop_table td.product-thumbnail {
        display: none;
    }

    /* İletişim */
    .contact-card {
        padding: 20px !important;
    }

    /* SSS */
    .kobiadam-faq-accordion .accordion-button {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* XS Ekranlar (320px - 575px) */
@media (max-width: 575.98px) {
    .kobiadam-hero-section .swiper-slide {
        min-height: auto;
    }
    .hero-content .hero-title,
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.35rem;
    }
    .rich-hero-title {
        font-size: 1.25rem;
    }
    .rich-hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
    .rich-hero-stats .stat-divider {
        display: none;
    }
    .rich-hero-stats .stat-number {
        font-size: 1.1rem;
    }
    .rich-hero--compact {
        padding: 24px 0 18px;
    }
    .rich-hero-title--compact {
        font-size: 1.15rem;
    }
    /* Avantajlar tek kolon */
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .advantage-card {
        padding: 12px;
    }
    .product-price-amount {
        font-size: 20px;
    }

    .swiper-pagination {
        bottom: 10px !important;
    }

    /* Ürün detay */
    .product-info-box {
        padding: 16px;
    }

    .product-actions-row .btn {
        font-size: 11px;
        padding: 6px 10px;
    }

    .product-price-box {
        padding: 14px;
    }

    /* Kategori tabları */
    .product-tab-nav {
        gap: 4px;
    }

    .product-tab-nav .nav-link {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Mega Menü Responsive */
@media (max-width: 991.98px) {
    .categories-mega-menu,
    .kobiadam-categories-dropdown .dropdown-menu {
        min-width: unset;
        max-width: 100%;
        padding: 16px;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 575.98px) {
    .mega-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Ürün Tab Responsive */
@media (max-width: 767.98px) {
    .kobiadam-product-tabs .tab-content {
        padding: 20px 16px;
    }

    .kobiadam-product-tabs .nav-tabs .nav-link .tab-label {
        display: none;
    }

    .kobiadam-product-tabs .nav-tabs .nav-link {
        padding: 10px 14px;
    }

    .installment-table {
        font-size: 12px;
    }

    .installment-table thead th,
    .installment-table tbody td {
        padding: 8px 10px;
    }
}


/* ============================================================
   MÜŞTERİ PANELİ & WOOCOMMERCE RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 991.98px) {
    /* My Account sidebar mobilde üstte */
    .account-sidebar {
        position: static;
        margin-bottom: 16px;
    }

    .account-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-link {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--kobiadam-border);
        padding: 10px 16px;
        font-size: 13px;
    }

    .account-nav-link .nav-arrow {
        display: none;
    }

    .account-nav-link.active {
        border-left: none;
        border-bottom: 3px solid var(--kobiadam-primary);
    }

    /* Cart */
    .cart-coupon .form-control {
        width: 140px;
    }

    /* Checkout */
    .checkout-order-review {
        position: static;
    }

    .cart-totals-section {
        position: static;
    }

    /* Thankyou */
    .thankyou-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .account-content {
        padding: 16px;
    }

    .account-user-card {
        padding: 14px;
    }

    /* Dashboard */
    .dashboard-stat-card {
        padding: 14px;
    }

    .stat-number {
        font-size: 16px;
    }

    /* Orders */
    .order-card-body {
        flex-wrap: wrap;
    }

    .order-items-preview {
        order: -1;
        width: 100%;
    }

    /* Order Detail */
    .order-detail-title-row {
        flex-direction: column;
    }

    .invoice-top {
        flex-direction: column;
        gap: 12px;
    }

    .invoice-info {
        text-align: left;
    }

    /* Cart */
    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-item-top {
        flex-wrap: nowrap;
    }

    .cart-item-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-coupon {
        width: 100%;
    }

    .cart-coupon .form-control {
        width: 100%;
        flex: 1;
    }

    /* Checkout */
    .checkout-section-body .form-row {
        flex: 1 1 100%;
    }

    /* Auth */
    .auth-card {
        padding: 24px 20px;
    }

    .auth-register {
        border-left: none;
        border-top: 1px solid var(--kobiadam-border);
    }

    /* Thankyou */
    .thankyou-info-grid {
        grid-template-columns: 1fr;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .thankyou-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tickets */
    .ticket-card-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ticket-card-badges {
        margin-top: 8px;
    }

    .ticket-detail-title-row {
        flex-direction: column;
    }

    .ticket-message {
        flex-direction: column;
    }
}


/* ============================================================
   TEKLİF AL SAYFASI RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .quote-hero {
        padding: 50px 0 40px;
    }

    .quote-hero-title {
        font-size: 1.8rem;
    }

    .quote-hero-visual {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-form-card {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .quote-hero {
        padding: 40px 0 30px;
    }

    .quote-hero-title {
        font-size: 1.5rem;
    }

    .quote-hero-stats {
        gap: 16px;
    }

    .quote-hero-stats .stat-number {
        font-size: 1.2rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .features-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-form-card {
        padding: 20px 16px;
    }

    .quote-steps-card,
    .quote-contact-card {
        padding: 24px 20px;
    }
}

/* ============================================================
   ÜRÜN DETAY — YENİ BÖLÜMLER RESPONSİVE
   ============================================================ */

@media (max-width: 991.98px) {
    .product-cta-inner {
        padding: 32px 28px;
    }

    .product-cta-buttons {
        justify-content: flex-start;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-products-section {
        padding: 28px;
    }

    .product-tabs-section {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .product-addons-section {
        padding: 20px 16px;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .product-cta-inner {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .product-cta-content h3 {
        font-size: 1.25rem;
    }

    .product-cta-buttons {
        flex-direction: column;
    }

    .product-cta-buttons .btn-hero-primary,
    .product-cta-buttons .btn-hero-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .related-products-header h2 {
        font-size: 1.25rem;
    }

    .related-products-section {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .product-tabs-section {
        padding: 16px 12px;
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .product-extras-section {
        padding: 12px 14px;
    }

    .addons-header {
        flex-direction: column;
        gap: 10px;
    }

    .addon-card-inner {
        padding: 12px;
        gap: 10px;
    }

    .addon-price {
        font-size: 13px;
    }

    .product-cta-inner {
        padding: 20px 16px;
    }

    .product-cta-content h3 {
        font-size: 1.1rem;
    }
}

/* ============================================================
   ÜRÜN DETAY — YENİ LAYOUT RESPONSİVE
   ============================================================ */
@media (max-width: 991.98px) {
    .product-info-box {
        position: static;
    }

    .product-trust-badges {
        flex-wrap: wrap;
    }

    .product-features-section {
        padding: 20px;
    }

    .cart-alert-actions {
        flex-direction: column;
    }

    .cart-alert-box.has-addons {
        max-width: 460px;
        padding: 24px 20px;
    }

    .cart-suggestions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .product-info-box {
        padding: 20px;
        border-radius: 14px;
    }

    .product-price-row {
        padding: 12px 14px;
    }

    .product-price-row .product-price-amount {
        font-size: 20px;
    }

    .product-features-section {
        padding: 16px;
        border-radius: 14px;
    }

    .product-features-pills {
        gap: 6px;
    }

    .feature-pill {
        font-size: 11px;
        padding: 5px 10px;
    }

    .product-bottom-actions {
        gap: 4px;
    }

    .btn-action {
        font-size: 11px;
        padding: 5px 10px;
    }

    .product-demo-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .btn-demo {
        padding: 12px 16px;
        font-size: 14px;
    }

    .cart-alert-box {
        padding: 28px 24px;
    }

    .cart-alert-box.has-addons {
        padding: 20px 16px;
        max-width: 90%;
    }

    .popup-addon-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .popup-addon-icon {
        width: 30px;
        height: 30px;
    }

    .popup-addon-icon .material-symbols-outlined {
        font-size: 16px;
    }

    .popup-addon-info strong {
        font-size: 12px;
    }

    .popup-addon-price {
        font-size: 12px;
    }

    .cart-alert-addons-list {
        max-height: 180px;
    }

    .kobiadam-cart-suggestions {
        padding: 16px;
        border-radius: 12px;
    }

    .cart-suggestion-card {
        flex-wrap: wrap;
        padding: 12px;
    }

    .suggestion-card-action {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        margin-top: 4px;
    }
}

@media (max-width: 575.98px) {
    .product-trust-badges {
        gap: 4px;
    }

    .trust-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .cart-alert-icon .material-symbols-outlined {
        font-size: 44px;
    }

    .popup-addon-info small {
        display: none;
    }

    .cart-suggestions-header > .material-symbols-outlined {
        display: none;
    }
}

/* ============================================================
   BAYILIK SAYFASI RESPONSİVE
   ============================================================ */
@media (max-width: 767.98px) {
    .bayilik-package-card {
        padding: 20px !important;
    }

    .bayilik-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .bayilik-intro-visual {
        min-height: 280px !important;
    }
}
