
/* =====================================================
   RANA İŞİTME MERKEZİ
   ÜRÜNLER SAYFASI - RESPONSIVE CSS
   ===================================================== */

:root {
    --rana-red: #c92335;
    --rana-red-dark: #a91d2c;
    --rana-text: #292929;
    --rana-muted: #707070;
    --rana-bg: #f7f7f7;
    --rana-border: #e9e9e9;
    --rana-white: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
    color: var(--rana-text);
    background: #fff;
    font-family: 'Poppins', sans-serif;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ÜST BİLGİ */

/* Diğer sayfalarla aynı kırmızı şerit: style.css'teki beyaz linkler
   açık gri zeminde okunmuyordu (telefon/e-posta görünmüyordu). */
.top-bar {
    background: var(--rana-red, #c92335);
    border-bottom: 0;
    color: #fff;
    font-size: 13px;
}

.top-bar .container {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* MENÜ */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
}

.navbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo,
.navbar .logo {
    flex-shrink: 0;
    color: var(--rana-red);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rana-red);
}

.nav-links a.nav-appointment,
.nav-links .appointment-link {
    display: inline-block;
    background: var(--rana-red);
    color: #fff;
    padding: 12px 19px;
    border-radius: 6px;
}

.nav-links a.nav-appointment:hover {
    background: var(--rana-red-dark);
    color: #fff;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: #fff5f6;
    color: var(--rana-red);
    font-size: 23px;
    cursor: pointer;
}

/* HERO */

.product-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(115deg, #fff 0%, #fff7f7 100%);
    padding: 76px 0 68px;
    border-top: 1px solid #f4eeee;
}

.product-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 390px;
    height: 390px;
    border: 65px solid rgba(201, 35, 53, .045);
    border-radius: 50%;
    right: -125px;
    top: -180px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-copy {
    flex: 1;
    min-width: 0;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rana-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.hero-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--rana-red);
}

.hero-copy h1 {
    margin: 0 0 20px;
    color: #242424;
    font-size: clamp(36px, 5vw, 55px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    font-weight: 800;
}

.hero-copy h1 span {
    color: var(--rana-red);
}

.hero-copy p {
    max-width: 610px;
    margin: 0;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    width: 310px;
    flex-shrink: 0;
}

.hero-stat {
    min-width: 0;
    padding: 23px 18px;
    background: #fff;
    border: 1px solid #f0e4e5;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40, 20, 20, .035);
}

.hero-stat strong {
    display: block;
    color: var(--rana-red);
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 5px;
}

.hero-stat span {
    display: block;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

/* KATALOG */

.product-catalog {
    padding: 75px 0 85px;
    background: #fff;
}

.catalog-heading {
    margin-bottom: 34px;
}

.catalog-heading .eyebrow {
    color: var(--rana-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.catalog-heading h2 {
    margin: 9px 0 10px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.3;
    letter-spacing: -.8px;
    color: #262626;
}

.catalog-heading p {
    max-width: 750px;
    margin: 0;
    color: #777;
    font-size: 15px;
    line-height: 1.7;
}

.product-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.product-sidebar {
    position: sticky;
    top: 20px;
    min-width: 0;
}

.sidebar-card {
    min-width: 0;
    padding: 24px 21px;
    background: #fff;
    border: 1px solid var(--rana-border);
    border-radius: 12px;
    margin-bottom: 17px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .035);
}

.sidebar-card h3 {
    margin: 0 0 17px;
    font-size: 16px;
    font-weight: 750;
    color: #292929;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-card h3 i {
    color: var(--rana-red);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #626262;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.45;
}

.filter-option input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--rana-red);
    cursor: pointer;
}

.filter-option:hover {
    color: var(--rana-red);
}

.filter-empty {
    color: #999;
    font-size: 13px;
}

.clear-filters {
    width: 100%;
    border: 1px solid #f0c9ce;
    background: #fff7f8;
    color: var(--rana-red);
    border-radius: 7px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.clear-filters:hover {
    color: #fff;
    background: var(--rana-red);
    border-color: var(--rana-red);
}

/* ÜRÜN SONUÇLARI */

.product-results {
    min-width: 0;
    width: 100%;
}

.product-results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.product-results-top p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.product-results-top strong {
    color: #292929;
}

#urunler-listesi {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

#urunler-listesi > * {
    min-width: 0;
    max-width: 100%;
}

.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #edc4c9;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.product-card-image {
    width: 100%;
    height: 220px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    overflow: hidden;
}

.product-card-image img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.045);
}

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
}

.product-card-category {
    color: var(--rana-red);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 9px;
}

.product-card h3 {
    overflow-wrap: anywhere;
    margin: 0 0 10px;
    color: #292929;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 750;
}

.product-card-description {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 16px;
    overflow-wrap: anywhere;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.product-brand {
    color: #777;
    font-size: 12px;
    font-weight: 600;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #36834c;
    font-size: 11px;
    font-weight: 700;
}

.product-stock.unavailable {
    color: #a66b36;
}

.product-detail-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 12px 15px;
    border: 0;
    border-radius: 6px;
    background: var(--rana-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease;
}

.product-detail-button:hover {
    background: var(--rana-red-dark);
    color: #fff;
}

.products-message {
    grid-column: 1 / -1;
    padding: 45px 20px;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 12px;
    color: #777;
    line-height: 1.7;
}

.products-message i {
    display: block;
    margin-bottom: 12px;
    color: var(--rana-red);
    font-size: 28px;
}

/* BİLGİLENDİRME */

.product-detail-section {
    padding: 75px 0;
    background: #f8f8f8;
}

.article-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 42px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .035);
}

.article-card h2 {
    margin: 0 0 20px;
    color: #292929;
    font-size: 29px;
    line-height: 1.3;
}

.article-card h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 15px;
    background: var(--rana-red);
}

.article-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.9;
    margin: 0 0 15px;
}

/* ÜRÜN MODALI */

.product-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 20, 20, .68);
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    position: relative;
    width: min(850px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
}

.close-product-modal {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    font-size: 22px;
    cursor: pointer;
}

.product-modal-image-wrap {
    min-width: 0;
    min-height: 350px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.product-modal-image-wrap img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.product-modal-info {
    min-width: 0;
    padding: 55px 35px 35px;
}

.product-modal-info .modal-category {
    color: var(--rana-red);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-modal-info h2 {
    overflow-wrap: anywhere;
    margin: 12px 0;
    font-size: 27px;
    line-height: 1.3;
}

.product-modal-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.product-modal-info .modal-stock {
    display: inline-block;
    margin: 8px 0 15px;
    padding: 7px 11px;
    border-radius: 5px;
    background: #edf7ef;
    color: #36834c;
    font-size: 12px;
    font-weight: 700;
}

/* FOOTER */

.footer {
    width: 100%;
    background: #242424;
    color: #fff;
    padding: 55px 0 25px;
}

.footer a {
    color: #ddd;
}

.footer a:hover {
    color: #fff;
}

.footer h3,
.footer h4 {
    color: #fff;
}

.footer p,
.footer li,
.footer span {
    color: #c9c9c9;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.13);
    margin-top: 30px;
    padding-top: 20px;
    color: #c9c9c9;
    font-size: 13px;
}

/* YUKARI ÇIK */

#scrollTopBtn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    width: 45px;
    height: 45px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--rana-red);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(201, 35, 53, .25);
}

/* ÖN YÜKLEYİCİ */

#preloader {
    background: #fff;
}

/* TABLET */

@media (max-width: 1050px) {
    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .product-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    #urunler-listesi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-inner {
        gap: 30px;
    }

    .hero-stats {
        width: 285px;
    }
}

/* MOBİL */

@media (max-width: 760px) {
    .container {
        width: calc(100% - 30px);
    }

    .top-bar {
        display: none;
    }

    .navbar {
        min-height: 70px;
    }

    .hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        padding: 15px 22px 25px;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 12px 20px rgba(0,0,0,.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .nav-links.nav-active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 13px 5px;
        font-size: 14px;
    }

    .nav-links a.nav-appointment,
    .nav-links .appointment-link {
        text-align: center;
        margin-top: 8px;
    }

    .product-hero {
        padding: 52px 0;
    }

    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 8vw, 40px);
        letter-spacing: -1px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-stats {
        width: 100%;
        min-width: 0;
    }

    .product-catalog {
        padding: 52px 0;
    }

    .product-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .product-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .sidebar-card {
        margin: 0;
        padding: 18px 14px;
    }

    .sidebar-card:last-of-type {
        grid-column: 1 / -1;
    }

    .clear-filters {
        grid-column: 1 / -1;
    }

    #urunler-listesi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .product-card-image {
        height: 155px;
        padding: 12px;
    }

    .product-card-content {
        padding: 13px;
    }

    .product-card h3 {
        font-size: 14px;
    }

    .product-card-description {
        font-size: 12px;
    }

    .product-card-footer {
        flex-wrap: wrap;
    }

    .product-detail-button {
        padding: 10px 8px;
        font-size: 12px;
    }

    .article-card {
        padding: 25px 20px;
    }

    .article-card h2 {
        font-size: 24px;
    }

    .article-card p {
        font-size: 14px;
    }

    .product-modal-content {
        grid-template-columns: minmax(0, 1fr);
        width: min(480px, 100%);
    }

    .product-modal-image-wrap {
        min-height: 210px;
        max-height: 240px;
        padding: 25px;
    }

    .product-modal-image-wrap img {
        max-height: 190px;
    }

    .product-modal-info {
        padding: 25px;
    }

    .product-modal-info h2 {
        font-size: 22px;
    }
}

/* KÜÇÜK TELEFONLAR */

@media (max-width: 420px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stat {
        padding: 17px 13px;
    }

    .hero-stat strong {
        font-size: 22px;
    }

    .product-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar-card:last-of-type,
    .clear-filters {
        grid-column: auto;
    }

    #urunler-listesi {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card-image {
        height: 210px;
    }

    .product-card-content {
        padding: 17px;
    }

    .product-card h3 {
        font-size: 16px;
    }

    .product-card-description {
        font-size: 13px;
    }

    .product-results-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-card {
        padding: 22px 17px;
    }

    .product-modal {
        padding: 10px;
    }

    .product-modal-content {
        max-height: 95vh;
    }
}

/* HAREKET AZALTMA TERCİHİ */

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


/* =====================================================
   FİLTRELER: masaüstünde uzun listeler kendi içinde kayar,
   mobilde "Filtrele" butonuyla açılan alt panel
===================================================== */
.filter-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.mobile-filter-toggle,
.filter-overlay,
.filter-sheet-head,
.filter-sheet-foot {
    display: none;
}

@media (max-width: 760px) {
    .mobile-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 52px;
        padding: 0 18px;
        border: 1px solid var(--rana-border, #eee);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
        font: inherit;
        font-size: 16px;
        font-weight: 800;
        color: #292929;
        cursor: pointer;
    }

    .mobile-filter-toggle i {
        color: var(--rana-red, #c92335);
        margin-right: 8px;
    }

    .filter-badge {
        min-width: 26px;
        height: 26px;
        padding: 0 8px;
        border-radius: 999px;
        background: var(--rana-red, #c92335);
        color: #fff;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .filter-badge[hidden] {
        display: none;
    }

    .filter-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(0, 0, 0, .45);
    }

    .product-sidebar {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        display: block;
        max-height: 85vh;
        overflow-y: auto;
        padding: 0 16px;
        background: #fff;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
        transform: translateY(105%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s;
    }

    body.filters-open {
        overflow: hidden;
    }

    body.filters-open .product-sidebar {
        transform: translateY(0);
        visibility: visible;
        z-index: 10002; /* çerez uyarısının (9999) üstünde kalsın */
    }

    body.filters-open .filter-overlay:not([hidden]) {
        z-index: 10001;
    }

    .filter-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0 -16px 12px;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid #eee;
        font-size: 18px;
    }

    .filter-sheet-close {
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: #f3f3f3;
        font-size: 18px;
        cursor: pointer;
    }

    .product-sidebar .sidebar-card {
        margin: 0 0 12px;
        padding: 16px 14px;
        box-shadow: none;
    }

    .product-sidebar .filter-list {
        max-height: none;
        overflow: visible;
    }

    .product-sidebar .clear-filters {
        width: 100%;
        margin-bottom: 8px;
    }

    .filter-sheet-foot {
        display: block;
        position: sticky;
        bottom: 0;
        margin: 0 -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eee;
    }

    .filter-apply {
        width: 100%;
        min-height: 50px;
        border: 0;
        border-radius: 12px;
        background: var(--rana-red, #c92335);
        color: #fff;
        font: inherit;
        font-size: 17px;
        font-weight: 800;
        cursor: pointer;
    }
}


/* Ürün kartı açıklaması: kısa özet, en fazla 3 satır */
.product-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detay penceresi açıklaması: paragraflı, okunaklı */
.modal-description {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.modal-description p {
    margin: 0 0 10px;
}

.modal-description strong {
    color: #292929;
}
