/* ---------- Tablet ve altı (≤991) ---------- */
@media (max-width: 991.98px) {
    :root {
        --ep-navbar-height: 72px;
    }

    .container {
        max-width: 100%;
    }

    .ep-home-about-content {
        padding-left: 0;
        padding-top: 40px;
    }

    .ep-stats-card {
        flex-wrap: wrap;
        gap: 24px;
        padding: 28px 24px;
    }

    .ep-stat-item {
        flex: 0 0 calc(50% - 12px);
    }

    .ep-stat-divider {
        display: none;
    }

    .ep-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ep-cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 36px 28px;
    }

    .ep-cta-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ep-product-image-wrapper {
        flex: 0 0 160px;
    }

    .ep-contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ep-contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ep-contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ep-about-cards-top .col-lg-6,
    .ep-about-cards-bottom .col-lg-3 {
        margin-bottom: 16px;
    }

    .ep-section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .ep-hero-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .ep-footer {
        padding: 56px 0 24px;
    }

    /* Yatay scroll önleme — reveal animasyonları */
    .ep-reveal-left,
    .ep-reveal-right {
        transform: translateY(32px);
    }

    .ep-reveal-left.is-visible,
    .ep-reveal-right.is-visible {
        transform: translateY(0);
    }

    /* Navbar — mobil menü */
    .ep-navbar .ep-navbar-brand {
        padding: 0;
    }

    .ep-navbar .navbar-collapse {
        position: fixed;
        top: var(--ep-navbar-height);
        left: 0;
        right: 0;
        z-index: 1031;
        padding: 8px 16px 16px;
        margin-top: 0;
        border-top: 1px solid var(--ep-border-light);
        background: rgba(255, 252, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--ep-shadow-md);
        max-height: calc(100dvh - var(--ep-navbar-height));
        overflow-y: auto;
    }

    .ep-navbar .ep-navbar-nav {
        width: 100%;
        gap: 2px;
    }

    .ep-navbar .ep-nav-item {
        width: 100%;
    }

    .ep-navbar .ep-nav-item.active .ep-nav-link:not(.ep-nav-link-cta)::after {
        display: none;
    }

    .ep-navbar .ep-dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        text-align: left;
    }

    .ep-navbar > .container {
        justify-content: space-between;
    }

    .ep-navbar .navbar-toggler {
        margin-left: auto;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1.5px solid var(--ep-border) !important;
        border-radius: var(--ep-radius-sm) !important;
        padding: 6px 10px !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .ep-navbar .navbar-toggler:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .ep-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(61, 52, 43, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 22px !important;
        height: 22px !important;
    }

    .ep-navbar .ep-navbar-nav .ep-nav-item {
        margin-left: 0;
        margin-right: 0;
    }

    .ep-navbar .ep-dropdown-menu {
        min-width: 100% !important;
        margin: 4px 0 6px !important;
        padding: 6px !important;
        transform: none !important;
        transition: none !important;
        position: static !important;
        float: none !important;
        border: 1px solid var(--ep-border) !important;
        border-radius: var(--ep-radius-sm) !important;
        box-shadow: none !important;
        background: var(--ep-bg-warm) !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .ep-navbar .ep-nav-item.dropdown.show .ep-dropdown-menu {
        display: block !important;
    }

    .ep-navbar .ep-dropdown-item {
        padding: 11px 14px !important;
    }
}

/* ---------- Büyük telefon (≤767) ---------- */
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .ep-hero {
        min-height: 100dvh;
    }

    .ep-hero-content {
        padding: 36px 0 44px;
    }

    .ep-hero-scroll {
        display: none;
    }

    .ep-hero-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .ep-hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .ep-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .ep-stats-strip {
        margin-top: -20px;
    }

    .ep-stats-card {
        padding: 20px 16px;
    }

    .ep-stat-number {
        font-size: 24px;
    }

    .ep-product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Anasayfa — kompakt yatay kart */
    .ep-product-card-modern {
        flex-direction: row;
        align-items: stretch;
    }

    .ep-product-card-modern-media {
        flex: 0 0 100px;
        width: 100px;
        height: auto;
        min-height: 100px;
        align-self: stretch;
    }

    .ep-product-card-modern-media img {
        height: 100%;
        min-height: 100px;
    }

    .ep-product-card-modern-media::after {
        display: none;
    }

    .ep-product-card-modern-body {
        padding: 14px 16px 14px 0;
        justify-content: center;
    }

    .ep-product-card-modern-body h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .ep-product-card-modern-body p {
        font-size: 13px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
    }

    .ep-product-card-modern-link {
        margin-top: 4px;
        font-size: 12px;
    }

    .ep-product-card-modern-tag {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }

    /* Yatay ürün kartları — kompakt liste görünümü */
    .ep-product-card-horizontal {
        flex-direction: row;
        align-items: stretch;
    }

    .ep-product-image-wrapper {
        flex: 0 0 108px;
        width: 108px;
        min-height: 108px;
        align-self: stretch;
    }

    .ep-product-image {
        width: 100%;
        height: 100%;
        min-height: 108px;
        max-height: 132px;
        object-fit: cover;
    }

    .ep-product-content {
        padding: 14px 16px 14px 12px;
        min-width: 0;
    }

    .ep-product-title {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .ep-product-text {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.5;
    }

    .ep-product-text-two {
        font-size: 12px;
        padding-left: 10px;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ep-product-arrow {
        margin-top: 8px;
        font-size: 12px;
        opacity: 1;
        transform: translateX(0);
    }

    .ep-home-products .col-lg-6.mb-4 {
        margin-bottom: 12px !important;
    }

    .ep-home-abouts {
        padding: 44px 0;
    }

    .ep-home-products,
    .ep-home-cta {
        padding: 44px 0;
    }

    .ep-home-products.mt-5,
    .ep-home-products.ep-page-content {
        margin-top: 0 !important;
        padding-top: 40px;
    }

    .ep-home-about-image {
        height: 260px !important;
    }

    .ep-section-header {
        margin-bottom: 28px;
    }

    .ep-about-banner {
        min-height: 220px;
    }

    .ep-about-banner .container {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .ep-about-banner-content {
        padding-top: 0;
        padding-bottom: 0;
    }

    .ep-about-whoareu {
        padding: 36px 0;
    }

    .ep-about-cards {
        padding: 40px 0 36px;
    }

    .ep-about-cards-top {
        margin-bottom: 16px;
    }

    .ep-contact-page {
        padding: 36px 0 48px;
    }

    .ep-contact-form-wrapper {
        padding: 22px 18px;
    }

    .ep-contact-map-wrap {
        margin-top: 28px;
    }

    .ep-contact-info-grid,
    .ep-contact-form-grid {
        grid-template-columns: 1fr;
    }

    .ep-contact-hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ep-contact-hours-item strong {
        text-align: left;
        white-space: normal;
    }

    .ep-cta-wrapper {
        padding: 28px 20px;
    }

    .ep-footer {
        padding: 44px 0 20px;
    }
}

/* ---------- Telefon (≤575) ---------- */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ep-navbar .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .ep-navbar .ep-navbar-logo {
        max-height: calc(var(--ep-navbar-height) - 16px);
    }

    .ep-navbar .ep-navbar-nav .ep-nav-link {
        font-size: 15px;
        padding: 10px 12px !important;
        border-radius: var(--ep-radius-sm);
    }

    .ep-navbar .ep-nav-link-cta {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        display: block;
    }

    .ep-navbar .ep-dropdown-item {
        font-size: 14px;
        padding: 10px 14px !important;
    }

    .ep-hero {
        min-height: 100dvh;
    }

    .ep-hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .ep-hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .ep-hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .ep-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .ep-stat-item {
        flex: 0 0 100%;
    }

    .ep-feature-pills {
        flex-wrap: wrap;
    }

    .ep-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .ep-cta-btn {
        width: 100%;
        text-align: center;
    }

    .ep-about-banner-title {
        font-size: clamp(1.65rem, 6vw, 2.1rem);
    }

    .ep-about-banner .container {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .ep-home-abouts,
    .ep-home-products,
    .ep-home-cta {
        padding: 36px 0;
    }

    .ep-home-products.ep-page-content {
        padding-top: 32px;
    }

    .ep-about-whoareu {
        padding: 28px 0;
    }

    .ep-about-cards {
        padding: 32px 0 28px;
    }

    .ep-about-cards-bottom .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Anasayfa ürün kartları — kompakt yatay */
    .ep-product-grid {
        gap: 12px;
    }

    .ep-product-card-modern {
        flex-direction: row;
        align-items: stretch;
    }

    .ep-product-card-modern-media {
        flex: 0 0 96px;
        width: 96px;
        height: auto;
        min-height: 96px;
        align-self: stretch;
    }

    .ep-product-card-modern-media img {
        height: 100%;
        min-height: 96px;
    }

    .ep-product-card-modern-media::after {
        display: none;
    }

    .ep-product-card-modern-tag {
        top: 6px;
        left: 6px;
        font-size: 10px;
        padding: 3px 7px;
    }

    .ep-product-card-modern-body {
        padding: 12px 14px 12px 0;
        justify-content: center;
    }

    .ep-product-card-modern-body h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .ep-product-card-modern-body p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 6px;
    }

    .ep-product-card-modern-link {
        margin-top: 4px;
        font-size: 12px;
    }

    /* Liste ürün kartları — daha küçük görsel */
    .ep-product-image-wrapper {
        flex: 0 0 88px;
        width: 88px;
        min-height: 88px;
    }

    .ep-product-image {
        min-height: 88px;
        max-height: 110px;
    }

    .ep-product-content {
        padding: 12px 14px 12px 10px;
    }

    .ep-product-title {
        font-size: 15px;
    }

    .ep-about-card img {
        height: 160px;
        object-fit: cover;
    }

    .ep-footer .col-lg-4,
    .ep-footer .col-md-6,
    .ep-footer .col-md-12 {
        text-align: center;
    }

    .ep-footer-contact li,
    .ep-footer-links li {
        justify-content: center;
    }

    .ep-fab {
        right: 14px;
        bottom: 14px;
    }

    .ep-fab .ep-fab-button {
        width: 52px;
        height: 52px;
    }

    .ep-fab .ep-fab-button-label {
        display: none;
    }

    .ep-fab.active .ep-fab-button-label {
        display: none;
    }
}

/* ---------- Küçük telefon (≤374) ---------- */
@media (max-width: 374.98px) {
    body {
        font-size: 14px;
    }

    .ep-navbar .ep-navbar-logo {
        max-height: calc(var(--ep-navbar-height) - 14px);
    }

    .ep-hero-title {
        font-size: 1.65rem;
    }

    .ep-hero-description {
        font-size: 14px;
    }

    .ep-section-title {
        font-size: 1.35rem;
    }

    .ep-home-about-image {
        height: 240px !important;
    }

    .ep-product-card-modern-media {
        flex-basis: 84px;
        width: 84px;
        min-height: 84px;
    }

    .ep-product-card-modern-media img {
        min-height: 84px;
    }

    .ep-product-image-wrapper {
        flex: 0 0 80px;
        width: 80px;
        min-height: 80px;
    }

    .ep-product-image {
        min-height: 80px;
        max-height: 96px;
    }

    .ep-contact-form-wrapper {
        padding: 18px 14px;
    }

    .ep-contact-form .form-control {
        height: 44px;
        font-size: 14px;
    }

    .ep-fab .ep-fab-item {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .ep-navbar .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ep-navbar .ep-navbar-nav .ep-nav-item {
        margin-left: 4px;
        margin-right: 4px;
    }

    .ep-navbar .ep-navbar-nav .ep-nav-link {
        font-size: 14px;
        padding: 8px 10px !important;
    }

    .ep-navbar .ep-navbar-logo {
        max-height: calc(var(--ep-navbar-height) - 16px);
    }

    .ep-navbar .ep-dropdown-menu {
        position: absolute !important;
    }

    .ep-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ep-hero-title {
        font-size: 2.75rem;
    }

    .ep-contact-layout {
        gap: 24px;
    }
}

/* ---------- Masaüstü (≥1200) ---------- */
@media (min-width: 1200px) {
    .ep-navbar .ep-navbar-logo {
        max-height: calc(var(--ep-navbar-height) - 16px);
    }

    .ep-navbar .ep-navbar-nav .ep-nav-item {
        margin-left: 8px;
        margin-right: 8px;
    }

    .ep-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .container {
        max-width: 1140px;
    }

    .ep-hero-content {
        max-width: 720px;
    }
}

/* ---------- Geniş masaüstü (≥1400) ---------- */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }

    .ep-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ep-hero-title {
        font-size: 3.25rem;
    }
}
