/* ==============================================
   PIKNIK — Minimal Frontend Design
   ============================================== */

/* Versos Font */
@font-face {
    font-family: 'Versos';
    src: url('../fonts/versos/Versos-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Versos';
    src: url('../fonts/versos/Versos-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Versos', 'Open Sans', Arial, sans-serif;
    background: #fff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* ---- Header ---- */
.piknik-header {
    background: #fff;
    text-align: center;
}

.piknik-logo-wrap {
    padding: 28px 20px 16px;
}

.piknik-logo-wrap img {
    width: 270px;
    height: auto;
    max-width: 90%;
}

/* Desktop nav */
.piknik-desknav {
    padding: 13px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.piknik-desknav a {
    font-family: 'Versos', 'Open Sans', Arial, sans-serif;
    font-size: 16px; /* <- Menu Font Buyuklugu - Desktop */
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    padding: 2px 22px;
    transition: color .2s;
}

.piknik-desknav a:hover,
.piknik-desknav a.active {
    color: #c0392b;
}

.piknik-desknav .nav-sep {
    color: #c0392b;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
    padding: 0;
    user-select: none;
}

/* Mobile top bar */
.piknik-mobilebar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 20px 16px;
    border-bottom: 1px solid #eee;
}

.piknik-burger {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #c0392b;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: border-color .2s;
}

.piknik-burger:hover { border-color: #c0392b; }
.piknik-burger:hover span { background: #c0392b; }

.piknik-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: background .2s;
}

/* Mobile dropdown nav */
.piknik-mobilenav {
    display: none;
    background: #fff;
    text-align: center;
    padding: 10px 0 20px;
}

.piknik-mobilenav.open { display: block; }

.piknik-mobilenav a {
    display: block;
    padding: 7px 30px;
    font-family: 'Versos', 'Open Sans', Arial, sans-serif;
    font-size: 15px; /* <- Menu Font Buyuklugu - Mobil */
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: none;
    transition: color .15s;
}

.piknik-mobilenav a:hover,
.piknik-mobilenav a.active { color: #c0392b; }

/* ---- Main / Hero ---- */
.piknik-main { width: 100%; overflow: hidden; }

/* Hero yüksekliği — mobil önce, responsive */
.piknik-hero {
    width: 100%;
    line-height: 0;
    height: 260px;
    margin-top: 10px;
}
@media (min-width: 576px) { .piknik-hero { height: 360px; } }
@media (min-width: 992px) { .piknik-hero { height: 460px; } }

/* Tüm iç katmanlar container yüksekliğini doldurur */
.piknik-hero > div,
.piknik-hero .swiper,
.piknik-hero .swiper-wrapper,
.piknik-hero .swiper-slide,
.piknik-hero .slide-background {
    height: 100% !important;
}

/* Resim sabit yüksekliği doldurur, taşan kısım kırpılır */
.piknik-hero .slide-background img,
.piknik-hero .slide-background picture,
.piknik-hero .slide-background picture img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Slider ok ve nokta renkleri */
.piknik-hero .swiper-button-prev,
.piknik-hero .swiper-button-next {
    color: #fff;
}
.piknik-hero .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}
.piknik-hero .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* ---- PopUp ---- */
#piknik-popup-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
#piknik-popup-overlay.is-visible {
    display: flex;
}
#piknik-popup-box {
    position: relative;
    width: 100%;
    max-width: 624px;
    max-height: 88vh;
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
    animation: pkPopupIn .28s ease;
    background: #fff;
}
@keyframes pkPopupIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);  opacity: 1; }
}
#piknik-popup-box img {
    display: block;
    width: 100%;
    height: auto;
}
#piknik-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,.85);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 1;
}
#piknik-popup-close:hover { background: #fff; color: #c0392b; }

/* Popup — tablet */
@media (max-width: 768px) {
    #piknik-popup-overlay { padding: 16px; }
    #piknik-popup-box     { max-width: 600px; border-radius: 8px; }
}

/* Popup — mobil */
@media (max-width: 520px) {
    #piknik-popup-overlay { padding: 12px; }
    #piknik-popup-box     { max-width: 100%; border-radius: 6px; }
}

/* Popup — çok kısa ekranlar (yatay telefon) */
@media (max-height: 500px) {
    #piknik-popup-box img { max-height: 60vh; object-fit: contain; }
}

/* ---- Footer ---- */
.piknik-footer {
    background: #fff;
    text-align: center;
    padding: 44px 20px 36px;
    border-top: 1px solid #f0f0f0;
}

.piknik-footer p {
    margin: 0 0 25px; /* ← alt yazılar arası 25px */
    font-size: 16px;
    letter-spacing: 0.14em;
    color: #656464;
    line-height: 1.11;
}

.piknik-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 0;
    font-size: 16px;
    letter-spacing: 0.14em;
    color: #656464;
}

/* Footer içindeki tüm linkleri siyah yap (otomatik algılanan tel/adres linkleri dahil) */
.piknik-footer a,
.piknik-footer a[href^="tel:"],
.piknik-footer a[href^="mailto:"],
.piknik-footer a[x-apple-data-detectors] {
    color: #656464;
    text-decoration: none;
    -webkit-text-decoration: none;
}
.piknik-footer a:hover { color: #c0392b; }

.piknik-footer-social a {
    color: #656464;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}

.piknik-footer-social a i {
    color: #c0392b;
}

.piknik-footer-social a:hover { color: #c0392b; }

.piknik-footer-social .sep {
    color: #c0392b;
    padding: 0 6px;
    font-size: 16px;
}

.piknik-footer-illustration {
    margin-top: 40px;
}

.piknik-footer-illustration img {
    width: 242px;
    height: auto;
    max-width: 100%;
    opacity: 0.8;
}

/* ---- Menü Başlığı ---- */
.piknik-menu-title {
    text-align: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
}

.piknik-menu-title h1 {
    font-family: 'Versos', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
}

/* ---- PDF Product Page ---- */
.piknik-pdf-wrap {
    width: 100%;
    background: #f0f0f0;
}

.piknik-pdf-wrap iframe {
    width: 100%;
    height: calc(100vh - 160px);
    min-height: 500px;
    border: none;
    display: block;
}

.piknik-pdf-fallback {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.piknik-pdf-fallback i {
    font-size: 4rem;
    color: #c0392b;
    display: block;
    margin-bottom: 16px;
}

/* Admin bar offset */
.has-admin-bar { padding-bottom: 46px; }

/* Bootstrap responsive utility overrides (Bootstrap yüklemeden çalışsın) */
.d-none   { display: none !important; }
.d-flex   { display: flex !important; }
.d-block  { display: block !important; }
@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
}

/* ---- Responsive ---- */
@media (max-width: 767px) {

    .piknik-logo-wrap {
        padding: 22px 20px 12px;
    }

    .piknik-logo-wrap img {
        width: 200px;
    }

    .piknik-hero {
        margin-top: 20px;
    }

    .piknik-mobilebar {
        padding: 10px 20px 12px;
        border-bottom: none;
    }

    .piknik-footer {
        padding: 32px 24px 28px;
    }

    .piknik-footer p {
        font-size: 15px;
        margin: 0 0 18px; /* ← alt yazılar arası 18px */
    }

    .piknik-footer-social {
        font-size: 15px;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .piknik-logo-wrap img {
        width: 160px;
    }

    .piknik-footer {
        padding: 24px 16px 20px;
    }

    .piknik-footer p {
        font-size: 14px;
    }

    .piknik-footer-illustration img {
        width: 180px;
    }
}


