/* =========================================================
   YUVIKA PET SHOP - ANA STİL DOSYASI
   Renkler CSS değişkenleri (:root) ile header.php içinden
   admin panel ayarlarına göre dinamik olarak set edilir.
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary, #2D3142);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: 'Poppins', sans-serif; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { background: var(--primary, #FF7A59); color: #fff; }
.btn-primary:hover { background: #ff6237; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,122,89,.35); }
.btn-outline { background: transparent; border-color: var(--primary, #FF7A59); color: var(--primary, #FF7A59); }
.btn-outline:hover { background: var(--primary, #FF7A59); color: #fff; }
.btn-dark { background: var(--secondary, #2D3142); color: #fff; }
.btn-dark:hover { opacity: .85; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #e14545; color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; }
.btn-danger:hover { background: #c73434; }

/* ---------------- HEADER ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,.06);
}
.topbar {
    background: var(--secondary, #2D3142);
    color: #fff; font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }

.navbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: var(--primary, #FF7A59); }
.logo .logo-icon { font-size: 30px; }
.logo .logo-slogan { display: block; font-size: 11px; font-weight: 400; color: var(--secondary, #2D3142); opacity: .7; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary, #FF7A59); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cart-badge {
    position: absolute; top: -10px; right: -14px;
    background: var(--primary, #FF7A59); color: #fff;
    font-size: 11px; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; font-size: 26px; background: none; border: none; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92);
        width: 86%; max-width: 340px; max-height: 78vh; overflow-y: auto;
        background: #fff; border-radius: 32px;
        flex-direction: column; align-items: stretch;
        padding: 54px 22px 26px; gap: 6px;
        box-shadow: 0 25px 70px rgba(0,0,0,.28);
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
        z-index: 200;
    }
    .nav-links.open {
        right: auto; opacity: 1; visibility: visible; pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
    }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; text-align: center; padding: 13px 16px; border-radius: 50px; font-size: 16px; }
    .nav-links a:hover, .nav-links a.active { background: var(--light-bg, #FFF8F3); }
    .nav-overlay {
        display: none; position: fixed; inset: 0; background: rgba(20,20,25,.45);
        -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 150;
    }
    .nav-overlay.open { display: block; }
    .nav-close {
        position: absolute; top: 14px; right: 18px; font-size: 22px; display: flex !important;
        width: 34px; height: 34px; align-items: center; justify-content: center;
        background: var(--light-bg, #FFF8F3); border-radius: 50%;
    }
}
.nav-close { display: none; }

/* ---------------- HERO ---------------- */
.hero {
    background: linear-gradient(135deg, var(--light-bg, #FFF8F3), #fff);
    padding: 60px 0;
    overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-text h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; line-height: 1.2; margin-bottom: 18px; color: var(--secondary, #2D3142); }
.hero-text h1 span { color: var(--primary, #FF7A59); }
.hero-text p { font-size: 17px; opacity: .8; margin-bottom: 28px; max-width: 480px; }
.hero-visual {
    flex: 1; min-width: 260px; display: flex; align-items: center; justify-content: center;
    font-size: 180px; line-height: 1;
    background: #fff; border-radius: 50%; width: 340px; height: 340px; margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

/* ---------------- SECTION TITLES ---------------- */
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 30px; font-weight: 700; color: var(--secondary, #2D3142); margin-bottom: 8px; }
.section-title p { opacity: .7; font-size: 15px; }
.section-title span { color: var(--primary, #FF7A59); }

/* ---------------- CATEGORY GRID ---------------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.category-card {
    background: var(--light-bg, #FFF8F3); border-radius: 18px; padding: 30px 15px;
    text-align: center; transition: all .25s ease; border: 2px solid transparent;
}
.category-card:hover { transform: translateY(-6px); border-color: var(--primary, #FF7A59); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.category-card .cat-icon { font-size: 44px; margin-bottom: 12px; }
.category-card h3 { font-size: 15px; font-weight: 600; }

/* ---------------- PRODUCT GRID ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: all .25s ease;
    display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(0,0,0,.1); }
.product-thumb {
    height: 180px; background: var(--light-bg, #FFF8F3);
    display: flex; align-items: center; justify-content: center;
    font-size: 80px; position: relative; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--primary, #FF7A59); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 50px; z-index: 2; }
.badge-out { background: #999; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; letter-spacing: .3px; opacity: .55; font-weight: 600; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.35; min-height: 40px; }
.product-name a:hover { color: var(--primary, #FF7A59); }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.price-now { font-size: 18px; font-weight: 700; color: var(--primary, #FF7A59); }
.price-old { font-size: 13px; text-decoration: line-through; opacity: .5; }
.product-meta { font-size: 12px; opacity: .6; display: flex; gap: 12px; margin-top: 2px; }
.product-actions { margin-top: 10px; }

/* ---------------- FEATURES BAND ---------------- */
.features-band { background: var(--light-bg, #FFF8F3); padding: 50px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.feature-item { text-align: center; }
.feature-item .f-icon { font-size: 40px; margin-bottom: 10px; }
.feature-item h4 { font-size: 16px; margin-bottom: 4px; }
.feature-item p { font-size: 13px; opacity: .7; }

/* ---------------- BREADCRUMB ---------------- */
.breadcrumb { font-size: 13px; opacity: .7; padding: 18px 0; }
.breadcrumb a:hover { color: var(--primary, #FF7A59); }
.breadcrumb .sep { margin: 0 6px; }

/* ---------------- PRODUCT DETAIL ---------------- */
.product-detail { display: flex; gap: 45px; flex-wrap: wrap; padding: 20px 0 60px; }
.pd-image { flex: 1; min-width: 280px; }
.pd-image-box {
    background: var(--light-bg, #FFF8F3); border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 150px; min-height: 380px; overflow: hidden;
}
.pd-image-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.pd-info { flex: 1; min-width: 300px; }
.pd-info h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.pd-price { font-size: 30px; font-weight: 700; color: var(--primary, #FF7A59); margin: 14px 0; display: flex; align-items: center; gap: 12px; }
.pd-price .price-old { font-size: 18px; }
.pd-social-proof { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; opacity: .75; margin-bottom: 18px; }
.pd-social-proof span { display: flex; align-items: center; gap: 5px; }
.pd-stock { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.stock-in { color: #2fa86f; }
.stock-out { color: #e14545; }
.pd-desc { margin-bottom: 22px; opacity: .85; }
.pd-features { margin-bottom: 26px; }
.pd-features li { padding: 6px 0; font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.pd-features li::before { content: "✓"; color: var(--accent, #4CAF9E); font-weight: 700; }
.qty-selector { display: flex; align-items: center; gap: 0; border: 2px solid #eee; border-radius: 10px; width: fit-content; margin-bottom: 20px; }
.qty-selector button { width: 40px; height: 42px; font-size: 18px; font-weight: 700; color: var(--primary, #FF7A59); }
.qty-selector input { width: 50px; text-align: center; border: none; font-size: 16px; font-weight: 600; -moz-appearance: textfield; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- CART ---------------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th { text-align: left; padding: 12px; font-size: 13px; opacity: .6; border-bottom: 2px solid #eee; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-thumb { width: 60px; height: 60px; background: var(--light-bg, #FFF8F3); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-qty-form { display: flex; align-items: center; gap: 6px; }
.cart-qty-form input { width: 55px; padding: 6px; border: 1px solid #ddd; border-radius: 6px; text-align: center; }
.cart-remove { color: #e14545; font-size: 13px; font-weight: 600; }
.cart-summary { max-width: 380px; margin-left: auto; background: var(--light-bg, #FFF8F3); border-radius: 16px; padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.cart-summary-row.total { font-size: 20px; font-weight: 700; border-top: 2px solid rgba(0,0,0,.08); margin-top: 8px; padding-top: 14px; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .e-icon { font-size: 70px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 10px; }
.empty-state p { opacity: .7; margin-bottom: 24px; }

@media (max-width: 700px) {
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
    .cart-table tr {
        background: #fff; border: 1px solid #f0f0f0; border-radius: 16px;
        padding: 14px; margin-bottom: 14px; box-shadow: 0 3px 14px rgba(0,0,0,.05);
    }
    .cart-table td { border: none; padding: 6px 2px; }
    .cart-table td:before {
        content: attr(data-label); display: block; font-size: 11px; font-weight: 700;
        text-transform: none; opacity: .5; margin-bottom: 4px;
    }
    .cart-table td:first-child:before { display: none; }
    .cart-qty-form { justify-content: flex-start; }
    .cart-summary { max-width: none; margin-left: 0; }
}

/* ---------------- CHECKOUT FORM ---------------- */
.checkout-wrap { display: flex; gap: 40px; flex-wrap: wrap; }
.checkout-form { flex: 1.3; min-width: 300px; }
.checkout-summary { flex: 1; min-width: 280px; background: var(--light-bg, #FFF8F3); border-radius: 16px; padding: 24px; height: fit-content; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; border: 2px solid #eee; border-radius: 10px; font-size: 14px; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary, #FF7A59); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; opacity: .8; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #e5f7ef; color: #1c7a4d; border: 1px solid #b8e8d0; }
.alert-error { background: #fdeaea; color: #c73434; border: 1px solid #f5c2c2; }

.success-box { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.success-box .s-icon { font-size: 70px; margin-bottom: 16px; }
.success-box h2 { font-size: 26px; margin-bottom: 12px; }
.order-number { display: inline-block; background: var(--light-bg, #FFF8F3); padding: 12px 26px; border-radius: 50px; font-weight: 700; color: var(--primary, #FF7A59); margin: 16px 0; font-size: 17px; letter-spacing: .5px; }

/* ---------------- FOOTER ---------------- */
.site-footer { background: var(--secondary, #2D3142); color: #fff; padding: 55px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 13.5px; opacity: .75; line-height: 2; }
.footer-col a:hover { opacity: 1; color: var(--primary, #FF7A59); }
.footer-logo { font-size: 22px; font-weight: 700; color: var(--primary, #FF7A59); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-socials { display: flex; gap: 12px; margin-top: 14px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center; font-size: 13px; opacity: .6; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- FAKE PURCHASE NOTIFICATION TOAST ---------------- */
.buy-toast {
    position: fixed; bottom: 24px; left: 24px; z-index: 999;
    background: #fff; border-radius: 14px; padding: 14px 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.18);
    display: flex; align-items: center; gap: 12px;
    max-width: 320px; transform: translateY(120%); opacity: 0;
    transition: all .45s cubic-bezier(.2,.9,.3,1);
}
.buy-toast.show { transform: translateY(0); opacity: 1; }
.buy-toast .bt-icon { font-size: 30px; flex-shrink: 0; }
.buy-toast .bt-text { font-size: 12.5px; line-height: 1.4; }
.buy-toast .bt-text strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.buy-toast .bt-time { opacity: .55; font-size: 11px; margin-top: 2px; }
.buy-toast .bt-close { margin-left: auto; opacity: .4; font-size: 16px; align-self: flex-start; }
@media (max-width: 500px) { .buy-toast { left: 12px; right: 12px; max-width: none; bottom: 12px; } }

/* ---------------- FOOTER ÜST BANNER (ortalı) ---------------- */
.footer-top-banner {
    background: rgba(255,255,255,.06);
    padding: 14px 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .3px;
}

/* ---------------- SOSYAL MEDYA İKONLARI (footer) ---------------- */
.footer-socials a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); transition: all .2s ease;
}
.footer-socials a:hover { transform: translateY(-3px); }
.footer-socials .social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-socials .social-facebook:hover { background: #1877F2; }
.footer-socials .social-whatsapp:hover { background: #25D366; }

/* ---------------- SSS (FAQ) AKORDEON ---------------- */
.pd-faq { max-width: 800px; margin: 10px 0 50px; }
.pd-faq-title { font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.faq-item { border: 2px solid #f0f0f0; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; font-size: 14.5px; font-weight: 600; text-align: left;
    background: #fff; cursor: pointer;
}
.faq-toggle { font-size: 20px; color: var(--primary, #FF7A59); transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--light-bg, #FFF8F3); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 4px 20px 18px; font-size: 14px; opacity: .8; }

/* ---------------- BANKA BİLGİLERİ KUTUSU ---------------- */
.bank-info-box { background: var(--light-bg, #FFF8F3); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.bank-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.08); font-size: 14px; gap: 12px; flex-wrap: wrap; }
.bank-row:last-child { border-bottom: none; }
.bank-row .iban { letter-spacing: .5px; font-family: monospace; font-size: 15px; }
.bank-note { font-size: 13px; opacity: .75; background: #fff8e8; border: 1px solid #ffe4a8; padding: 12px 16px; border-radius: 10px; margin-bottom: 22px; }

/* ---------------- METİN STİLİ: Baş Harf Büyük, Geri Kalanı Küçük (Site Geneli) ---------------- */
body { text-transform: capitalize; }
input, textarea, select, option,
.bank-row .iban, code, pre,
.order-number, .breadcrumb .sep {
    text-transform: none;
}

/* ---------------- POLİTİKA SAYFALARI ---------------- */
.policy-page { max-width: 820px; margin: 0 auto; padding: 20px 0 70px; }
.policy-page h1 { font-size: 28px; margin-bottom: 20px; }
.policy-page p { opacity: .85; margin-bottom: 16px; font-size: 15px; line-height: 1.9; }

/* ---------------- MISC ---------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.no-products { text-align: center; padding: 60px 20px; opacity: .7; }
