/*
Theme Name: Ototemas Store
Theme URI: https://magaza.ototemas.com
Author: Ototemas
Description: Ototemas fiziksel QR sticker mağazası — WooCommerce uyumlu özel tema. Marka dili: krem zemin, siyah ink, turuncu vurgu, Inter tipografi.
Version: 1.0.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ototemas-store
*/

/* ============================================================
   1. TASARIM SİSTEMİ
   ============================================================ */
:root {
    --bg: #f6f5f0;
    --surface: #ffffff;
    --ink: #0a0a0f;
    --ink-2: #3a3a44;
    --muted: #6b6b76;
    --line: #e8e6dd;
    --accent: #ff4b1f;
    --accent-2: #ffb01f;
    --danger: #dc2626;
    --success: #16a34a;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --shadow-hover: 0 20px 40px rgba(10, 10, 15, 0.06);
    --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.6em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -2px; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -1.2px; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.ot-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Eyebrow etiketi — bölüm üstü küçük turuncu başlık */
.ot-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 14px;
}

.ot-section { padding: 72px 0; }
.ot-section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ot-section-head { max-width: 640px; margin-bottom: 40px; }
.ot-section-head p { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   2. BUTONLAR — siyah pill, hover'da turuncu
   ============================================================ */
.ot-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.wc-block-components-button,
button[type="submit"] {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    text-align: center;
}

.ot-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
button[type="submit"]:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

/* WC Blocks (sepet/ödeme) butonları — link renk sızmasını engelle */
.wc-block-components-button,
.wc-block-components-button:hover,
.wc-block-components-button .wc-block-components-button__text {
    color: #fff !important;
}
.wc-block-components-button:hover { background: var(--accent) !important; }

.ot-btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.ot-btn--ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.woocommerce a.button.disabled,
.woocommerce button.button:disabled {
    background: var(--muted);
    color: #fff;
    opacity: 0.7;
}

/* ============================================================
   3. HEADER
   ============================================================ */
.ot-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 245, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.ot-header__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}

.ot-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
}
.ot-logo:hover { color: var(--ink); }
.ot-logo span { color: var(--accent); }

.ot-nav { display: flex; align-items: center; gap: 26px; }
.ot-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.ot-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.ot-nav a:hover { color: var(--ink); }

.ot-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    transition: border-color 0.18s ease;
}
.ot-cart-link:hover { border-color: var(--ink); color: var(--ink); }
.ot-cart-link__count {
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.ot-burger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: relative;
}
.ot-burger span,
.ot-burger span::before,
.ot-burger span::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease;
}
.ot-burger span { top: 20px; }
.ot-burger span::before { top: -6px; left: 0; }
.ot-burger span::after { top: 6px; left: 0; }

@media (max-width: 860px) {
    .ot-burger { display: block; }
    .ot-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 18px 20px 22px;
    }
    .ot-nav.is-open { display: block; }
    .ot-nav ul { flex-direction: column; gap: 14px; }
}

/* ============================================================
   4. HERO
   ============================================================ */
.ot-hero { padding: 88px 0 72px; }
.ot-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}
.ot-hero h1 span { color: var(--accent); }
.ot-hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 480px; margin-bottom: 28px; }
.ot-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ot-hero__note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

/* Hero'daki temsili sticker kartı — CSS ile çizilir, görsel gerekmez */
.ot-sticker-visual {
    background: var(--accent);
    border-radius: var(--radius-lg);
    padding: 42px 34px;
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 60px rgba(255, 75, 31, 0.25);
    transform: rotate(2deg);
    max-width: 360px;
    margin: 0 auto;
}
.ot-sticker-visual__headline { font-weight: 700; font-size: 1.05rem; line-height: 1.35; margin-bottom: 22px; }
.ot-sticker-visual__qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    background:
        conic-gradient(from 90deg at 3px 3px, transparent 25%, #0a0a0f 0) 0 0 / 25px 25px;
    background-color: #fff;
    border-radius: 10px;
    border: 10px solid #fff;
}
.ot-sticker-visual__brand { font-weight: 800; letter-spacing: -0.5px; font-size: 1.15rem; }

@media (max-width: 860px) {
    .ot-hero { padding: 56px 0 48px; }
    .ot-hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   5. KARTLAR / GRID'LER
   ============================================================ */
.ot-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ot-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .ot-grid-3, .ot-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ot-grid-3, .ot-grid-4 { grid-template-columns: 1fr; } }

.ot-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ot-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-hover); }
.ot-card h3 { margin-bottom: 8px; }
.ot-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.ot-step-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 14px;
}

/* Dikey süreç akışı — numaralar solda, bağlayıcı çizgiyle */
.ot-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 680px;
}
.ot-steps li {
    display: flex;
    gap: 22px;
    position: relative;
    padding-bottom: 36px;
}
.ot-steps li:last-child { padding-bottom: 0; }
.ot-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: 2px;
    width: 2px;
    background: var(--line);
}
.ot-steps__num {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.ot-steps h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.ot-steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ============================================================
   6. ÜRÜN KARTLARI (WooCommerce loop)
   ============================================================ */
.ot-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .ot-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ot-products { grid-template-columns: 1fr; } }

.ot-product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0 0 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ot-product-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-hover); }

/* Görsel kenara taşar; metinler iç boşluklu.
   !important: WC çekirdeğinin ul.products li.product kuralları daha spesifik. */
.ot-product-card__title,
.ot-product-card__excerpt,
.ot-product-card__price { padding: 0 22px !important; }
.ot-product-card .button { margin: 12px 22px 0 !important; width: calc(100% - 44px) !important; }

.ot-product-card__thumb {
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 6px;
}
.ot-product-card__thumb img { width: 100%; }

/* Görselsiz ürünlerde marka placeholder'ı */
.ot-product-card__placeholder {
    aspect-ratio: 4 / 3;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    overflow: hidden;
}
.ot-product-card__placeholder .ot-sticker-visual {
    transform: rotate(-2deg);
    padding: 18px 20px;
    max-width: 72%;
    box-shadow: 0 10px 24px rgba(10, 10, 15, 0.18);
    background: var(--accent);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
}
.ot-product-card__placeholder .ot-sticker-visual__qr {
    width: 82px;
    height: 82px;
    border-width: 6px;
    border-radius: 8px;
    margin: 0 auto 10px;
    background-size: 13px 13px;
    background-position: 0 0;
}
.ot-product-card__placeholder .ot-sticker-visual__brand { font-size: 0.85rem; }

.ot-product-card__title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.ot-product-card__excerpt { color: var(--muted); font-size: 0.9rem; margin: 0; }
.ot-product-card__price { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; margin-top: auto; }
.ot-product-card__price del { color: var(--muted); font-weight: 500; font-size: 0.95rem; margin-right: 8px; }
.ot-product-card__price ins { text-decoration: none; }

/* ============================================================
   7. WOOCOMMERCE GENEL (sepet, ödeme, bildirimler, formlar)
   ============================================================ */
.woocommerce { font-family: var(--font); }

.ot-page-title { margin: 44px 0 28px; }

/* Mağaza arşivi: WC'nin ul.products sarmalayıcısını marka grid'ine çevir.
   (WC çekirdek CSS'i float/width verir; grid item'larda float yok sayılır.) */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}
@media (max-width: 960px) {
    .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; }
}
.woocommerce ul.products li.ot-product-card,
.woocommerce-page ul.products li.ot-product-card {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 0 26px !important; /* buton altta nefes alsın — WC sıfırlamasını ez */
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

/* Arşiv sayfa başlığı */
.woocommerce-products-header { margin: 44px 0 20px; }
.woocommerce-products-header__title.page-title { margin: 0; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top: none;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: var(--radius-sm);
    color: var(--ink);
    padding: 16px 20px 16px 20px !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); position: static; margin-right: 8px; }
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-error::before { color: var(--danger); position: static; margin-right: 8px; }

.woocommerce table.shop_table {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    border-collapse: separate;
}
.woocommerce table.shop_table th { background: var(--bg); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection {
    font-family: var(--font);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    background: var(--surface);
    color: var(--ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.woocommerce .quantity .qty {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 6px;
    width: 4.2em;
    font-family: var(--font);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.35rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding-left: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: var(--surface);
    border-color: var(--line);
    border-radius: 10px 10px 0 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--surface); }

.woocommerce .star-rating span::before { color: var(--accent); }

/* Tek ürün sayfası düzeni */
.woocommerce div.product div.images img { border-radius: var(--radius-md); }
.woocommerce div.product div.summary h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Checkout başlıkları */
.woocommerce-checkout h3 { margin-top: 24px; }
#payment {
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
#payment div.payment_box { background: var(--bg) !important; }
#payment div.payment_box::before { border-bottom-color: var(--bg) !important; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: 0.85rem; margin: 24px 0 0; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--ink); }

/* Sepet boşken */
.cart-empty.woocommerce-info { margin-top: 32px; }

/* Sale rozeti */
.woocommerce span.onsale {
    background: var(--accent);
    border-radius: 999px;
    font-weight: 700;
    min-height: auto;
    line-height: 1;
    padding: 8px 12px;
}

/* ============================================================
   8. GÜVEN ŞERİDİ + SSS + UYGULAMA KÖPRÜSÜ
   ============================================================ */
.ot-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.ot-trust span { display: inline-flex; align-items: center; gap: 8px; }
.ot-trust b { color: var(--ink); font-weight: 700; }

.ot-faq { max-width: 720px; }
.ot-faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 12px;
}
.ot-faq summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ot-faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 500; color: var(--muted); }
.ot-faq details[open] summary::after { content: "–"; }
.ot-faq details p { color: var(--muted); margin: 12px 0 0; font-size: 0.95rem; }

.ot-app-bridge {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ot-app-bridge::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 70% 20%, rgba(255, 75, 31, 0.35), transparent 55%);
    pointer-events: none;
}
.ot-app-bridge h2 { color: #fff; position: relative; }
.ot-app-bridge p { color: rgba(255, 255, 255, 0.7); max-width: 480px; margin: 0 auto 28px; position: relative; }
.ot-app-bridge .ot-btn { background: #fff; color: var(--ink); position: relative; }
.ot-app-bridge .ot-btn:hover { background: var(--accent); color: #fff; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.ot-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 88px;
    padding: 56px 0 28px;
    font-size: 0.92rem;
}
.ot-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 760px) { .ot-footer__grid { grid-template-columns: 1fr; } }
.ot-footer .ot-logo { color: #fff; }
.ot-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.ot-footer ul { list-style: none; margin: 0; padding: 0; }
.ot-footer li { margin-bottom: 10px; }
.ot-footer a { color: rgba(255, 255, 255, 0.75); }
.ot-footer a:hover { color: #fff; }
.ot-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   10. İÇ SAYFALAR / BLOG / 404
   ============================================================ */
.ot-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.ot-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.ot-page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.ot-page ul, .ot-page ol { padding-left: 1.3em; }
.ot-page a { color: var(--accent); }

.ot-404 { text-align: center; padding: 120px 20px; }
.ot-404 h1 { font-size: 5rem; color: var(--accent); }

/* Küçük yardımcılar */
.ot-center { text-align: center; }
.ot-mt-0 { margin-top: 0; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    width: 1px; height: 1px; overflow: hidden;
}
