/* ETICARO Tema Motoru — vitrin köprüsü.
 * Tema ayarlarının (renk, düğme, köşe, yazı…) vitrindeki GERÇEK öğelere ulaşmasını sağlar.
 * Değerler ThemeManager::resolve() tarafından üretilen --theme-* değişkenlerinden gelir;
 * yazı/zemin çiftleri orada otomatik kontrast korumasından geçer. Bu dosya yalnızca değişkenleri kullanır. */

/* ── Sayfa, yazı tipi, bağlantı odağı ─────────────────────────────────────── */
body {
  background: var(--theme-bg, #fff);
  color: var(--theme-text, #16191d);
  font-family: var(--theme-font, Inter, system-ui, sans-serif);
}

h1, h2, h3, h4, .logo strong {
  font-family: var(--theme-font-heading, 'Plus Jakarta Sans', Inter, system-ui, sans-serif);
}

.section-head h2, .content-head h1, .content-head h2, .product-info h1, .article-hero h1,
.legal-page h1, .legal-page h2, .sepivo-account h1, .sepivo-account h2 {
  color: var(--theme-heading, inherit);
}

:focus-visible {
  outline: 2px solid var(--theme-focus, #2563eb);
  outline-offset: 2px;
}

/* Okuma metni boyutu (ürün açıklaması, blog, yasal sayfalar) */
.tab-panel p, .tab-panel li, .legal-page p, .legal-page li, article p, article li, .about-copy p {
  font-size: var(--theme-reading-size, 15px);
}

/* ── Yüzeyler (kart, panel, açılır liste, form alanı) ─────────────────────── */
.search-dropdown, .category-panel, .slider-dots, .card-actions button, .heart, .compare-btn,
.blog-card, .brand-pills a, .brand-pills span, .trust-row, .thumbs button, .gallery-main, .choice,
.secondary-actions button, .payment-tabs button, .contact-form, .cookie-banner, .modal-card,
.filter-box, .mobile-bottom-nav, .mobile-bottom-nav a, .mobile-bottom-nav button, .cart-drawer,
.category-dropdown, .brand-card, .gallery-zoom-btn, .mobile-sticky-buy,
.sepivo-account nav a, .sepivo-account nav button, .catalog-pagination a, .catalog-pagination button,
.billing-tab, .contract-frame, .home-page .department-tile, .catalog-tools select, .filter-toggle {
  background: var(--theme-card-bg, #fff);
  color: var(--theme-text, inherit);
}

.product-card { background: var(--theme-product-card-bg, var(--theme-card-bg, #fff)); }
.product-card img { background: var(--theme-product-card-bg, var(--theme-card-bg, #fff)); }

.newsletter, .search-dropdown a:hover, .empty-state, .installment-note, .qty-control button,
.spec-table th, .contact-info, .cart-drawer-shipping, .cart-drawer-foot, .omnibus-note,
.home-page .department-image, .home-page .category-panel a:last-child, .drawer-close-btn:hover {
  background: var(--theme-surface-soft, #f8fafc);
  color: var(--theme-text, inherit);
}

.trust-row { background: var(--theme-trust-bg, var(--theme-card-bg, #fff)); }

.field input, .field select, .field textarea, .newsletter-inline-form input[type=email],
.sepivo-remote input:not([type=checkbox]):not([type=radio]), .sepivo-remote select, .sepivo-remote textarea,
.sepivo-transfer-form input:not([type=checkbox]), .sepivo-transfer-form select, .sepivo-transfer-form textarea,
.waitlist-form input, .search input[type=search] {
  background: var(--theme-field-bg, #fff);
  color: var(--theme-field-text, var(--theme-text, #16191d));
  border-color: var(--theme-border, #e5e8eb);
}

::placeholder { color: var(--theme-muted, #595e64); opacity: 1; }

.category-panel a, .category-dropdown a, .search-dropdown a { color: var(--theme-text, inherit); }
.category-panel a { border-bottom-color: var(--theme-border, #f0f1f2); }
.category-panel i, .department-arrow, .home-page .department-arrow { color: var(--theme-muted, #595e64); }
.category-panel a:hover, .category-dropdown a:hover, .category-dropdown a:focus-visible,
.sepivo-account nav a:hover, .sepivo-account nav a.is-active, .billing-tab.active {
  background: var(--theme-primary-light, #fff7f2);
  color: var(--theme-link-on-tint, var(--theme-link, var(--orange)));
}
.payment-tabs button.active { color: var(--theme-link-on-tint, var(--theme-link, var(--orange))); }

.hero-slider { background: var(--theme-hero-bg, #eee); }

.trust-row, .product-card, .blog-card, .filter-box, .contact-form, .brand-card {
  border-color: var(--theme-border, #e5e8eb);
}

/* ── Köşe yuvarlaklığı ve gölge ───────────────────────────────────────────── */
.product-card, .blog-card, .filter-box, .contact-form, .contact-info, .cart-drawer, .modal-card,
.category-panel, .home-page .department-tile, .brand-card, .cookie-banner, .trust-row, .newsletter,
.hero-slider, .flash-deals-banner, .empty-state, .gallery-main {
  border-radius: var(--theme-radius, 10px);
}

.btn, .primary-btn, .ghost-btn, .add-cart, .secondary-btn, .primary-large, .buy-now-btn,
.search button, .newsletter-inline-form button, .mini-banner a, .flash-badge,
.field input, .field select, .field textarea, .newsletter-inline-form input[type=email],
.catalog-tools select, .search input[type=search], .qty-control, .secondary-actions button {
  border-radius: var(--theme-radius-sm, 6px);
}

.product-card:hover, .blog-card:hover { box-shadow: var(--theme-shadow, none); }
.cart-drawer, .modal-card, .cookie-banner { box-shadow: var(--theme-shadow, none); }

/* ── Düğmeler ─────────────────────────────────────────────────────────────── */
.btn, .primary-btn, .add-cart, .secondary-btn, .primary-large, .newsletter-inline-form button,
.mini-banner a, .search button, .catalog-pagination a.active, .catalog-pagination button.active {
  background: var(--theme-btn-bg, var(--theme-btn-primary-bg, #c94100));
  color: var(--theme-btn-text, var(--theme-btn-primary-text, #fff));
  border-width: var(--theme-btn-bw, 0);
  border-style: solid;
  border-color: var(--theme-btn-bc, transparent);
  font-weight: var(--theme-btn-weight, 800);
  text-transform: var(--theme-btn-transform, none);
  letter-spacing: var(--theme-btn-ls, normal);
}

.btn:hover:not(:disabled), .primary-btn:hover:not(:disabled), .add-cart:hover:not(:disabled),
.secondary-btn:hover:not(:disabled), .primary-large:hover:not(:disabled),
.newsletter-inline-form button:hover:not(:disabled), .mini-banner a:hover, .search button:hover {
  background: var(--theme-btn-hover-bg, var(--theme-btn-primary-hover, #a83500));
  color: var(--theme-btn-hover-text, var(--theme-btn-primary-text, #fff));
}

.add-cart:disabled, .primary-btn:disabled, .primary-large:disabled { opacity: .55; }

.ghost-btn {
  background: var(--theme-btn-secondary-bg, var(--theme-card-bg, #fff));
  color: var(--theme-btn-secondary-text, var(--theme-text, #16191d));
  border: 1px solid var(--theme-border, #e5e8eb);
}

.buy-now-btn {
  background: var(--theme-btn-buynow-bg, #ea580c);
  color: var(--theme-btn-buynow-text, #fff);
}
.buy-now-btn:hover { background: var(--theme-btn-buynow-hover, #c2410c); color: var(--theme-btn-buynow-text, #fff); }

.flash-badge, .allcats {
  background: var(--theme-btn-primary-bg, #c94100);
  color: var(--theme-btn-primary-text, #fff);
}

/* ── Header, logo, sepet rozeti ───────────────────────────────────────────── */
.logo-bag { background: var(--theme-logo-badge-bg, var(--theme-btn-primary-bg)); color: var(--theme-logo-badge-text, #fff); }
.header-actions em.soft-count { background: var(--theme-header-fg, #222) !important; color: var(--theme-header-bg, #fff); }
.header-actions em, .mobile-bottom-nav em { background: var(--theme-badge-bg, var(--theme-btn-primary-bg)); color: var(--theme-badge-text, #fff); }
.logo small { color: var(--theme-header-fg-muted, #52575e); }
.site-header .search input[type=search] { border-color: var(--theme-header-border, #e5e8eb); }
.mainnav a.active { color: var(--theme-nav-hover, var(--theme-link)); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-slide:after {
  background: linear-gradient(90deg, var(--theme-hero-veil-1, rgba(255, 255, 255, .86)), var(--theme-hero-veil-2, rgba(255, 255, 255, .2)) 58%, transparent);
}
.hero-copy, .hero-copy h1, .hero-copy h2, .hero-copy p, .hero-copy strong { color: var(--theme-hero-text, var(--theme-text, #16191d)); }
.hero-copy .eyebrow { color: var(--theme-hero-text, var(--theme-link)); opacity: .85; }
.hero-copy .btn { color: var(--theme-btn-text, #fff); }
/* Açık yazılı (light-copy) slaytlar: koyu perde + açık yazı; aksi halde beyaz yazı beyaz perdede kaybolur */
.hero-slide.hb-light:after {
  background: linear-gradient(90deg, rgba(15, 23, 42, .8), rgba(15, 23, 42, .12) 62%, transparent);
}
.hero-copy.light-copy, .hero-copy.light-copy h1, .hero-copy.light-copy h2, .hero-copy.light-copy p,
.hero-copy.light-copy strong, .hero-copy.light-copy .eyebrow, .home-page .hero-copy.light-copy h1, .home-page .hero-copy.light-copy p {
  color: var(--theme-on-dark, #fff);
}

/* ── Fiyat, rozet, durum ──────────────────────────────────────────────────── */
.price strong, .detail-price strong, .detail-price, .mini-order-item b { color: var(--theme-price-color, var(--theme-link)); }
.price del, .detail-price del { color: var(--theme-muted, #595e64); }
.product-card .badge { background: var(--theme-discount-badge-bg, #dc2626); color: var(--theme-discount-badge-text, #fff); }
.product-card .badge.new-badge { background: var(--theme-success-strong, #15803d); color: #fff; }
.card-actions button.active, .secondary-actions button.active { color: var(--theme-favorite, #b91c1c); border-color: var(--theme-favorite, #b91c1c); background: var(--theme-card-bg, #fff); }
.detail-price span, .success-icon, .timeline .done i, .timeline .current i, .status-badge.delivered { background: var(--theme-success-soft, #eaf8ef); }
.flash-deals-copy p { opacity: 1; }
.stock-note { color: var(--theme-success-text, #166534); }
.stock-note.low { color: var(--theme-warning-text, #b45309); }
.section-kicker, .eyebrow, .section-head a, .home-departments-head a { color: var(--theme-link, var(--orange)); }
.catalog-pagination a, .catalog-pagination button { border-color: var(--theme-border, #e5e8eb); }

/* ── Flaş fırsat bandı ────────────────────────────────────────────────────── */
.flash-deals-banner { background: var(--theme-flash-bg); color: var(--theme-flash-text); }
.flash-countdown span.time-box, .flash-countdown .time-box {
  background: var(--theme-flash-chip-bg, rgba(0, 0, 0, .1));
  border-color: var(--theme-flash-chip-border, rgba(0, 0, 0, .25));
  color: var(--theme-flash-text, inherit);
}
.flash-countdown { color: var(--theme-flash-text, inherit); }

/* ── Giriş / üyelik yan paneli ───────────────────────────────────────────── */
.auth-side {
  background: linear-gradient(135deg, var(--theme-btn-deep, #6f2400), var(--theme-btn-primary-bg, #c94100));
  color: var(--theme-btn-primary-text, #fff);
}
.auth-side h1, .auth-side p, .auth-side li, .auth-side .eyebrow { color: inherit; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--theme-footer-bg); color: var(--theme-footer-text); }
.footer-grid h4, .footer .logo strong { color: var(--theme-footer-title, inherit); }
.footer .logo small, .footer-business, .footer-business strong, .footer-business span,
.footer-contact, .footer-grid p, .footer-grid span { color: var(--theme-footer-text, inherit); }
.footer-business a, .footer-contact a { color: var(--theme-footer-title, inherit); }
.footer-grid > div > a, .footer-links a { color: var(--theme-footer-text, inherit); }
.footer-grid > div > a:hover, .footer-business a:hover { color: var(--theme-footer-hover, var(--theme-link)); }
.footer-bottom, .footer-bottom span, .footer-bottom a { color: var(--theme-footer-bottom-text, inherit); }
.footer-bottom button, #cookiePrefs, #backTop { background: none; border: 0; color: var(--theme-footer-hover, var(--theme-footer-title)); font-weight: 800; }

/* ── Yasal/durum rozetleri ───────────────────────────────────────────────── */
.status-badge.delivered, .timeline .done i, .timeline .current i, .success-icon, .detail-price span {
  color: var(--theme-success-text, #166534);
}
.checkout-alert, .status-badge.canceled, .status-badge.tone-danger { color: var(--theme-danger-text, #991b1b); }

/* ── Sabit gri yazı renklerinin temaya bağlanması (koyu/özel zeminlerde okunur kalsın) ── */
button { color: inherit; }
.pcopy small, .breadcrumbs a, .filter-group label, .installment-note, .brand-card,
.sepivo-account nav a, .sepivo-account nav button, .omnibus-note, .filter-count, .tab-buttons button { color: var(--theme-text, inherit); }
.tab-buttons button.active { color: var(--theme-link, var(--orange)); }
.blog-card p, .empty-state svg, .detail-short, .address-card p, .content-head p, .legal-page p, .faq-list p,
.cookie-banner p, .category-intro, .waitlist-box p, .checkout-note, .sepivo-rich p, .news-copy small { color: var(--theme-muted, #595e64); }
.stars { color: var(--theme-warning-text, #b45309); }
#detailStock, .stock-line .in-stock { color: var(--theme-success-text, #166534); }
.footer-grid .store-badges span { background: #111; color: #fff; }

/* ── Odak halkası, durum yazıları, katman, koyu bant yazısı ───────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline-color: var(--theme-focus, #2563eb);
}
.text-danger, .cart-item-copy button, .compare-row button { color: var(--theme-danger-text, #b91c1c); }
.cart-drawer-backdrop { background: var(--theme-overlay-52, rgba(15, 23, 42, .52)); }
.modal-backdrop { background: var(--theme-overlay-55, rgba(15, 23, 42, .55)); }
.mini-banner > div, .mini-banner > div h3, .mini-banner > div p, .mini-banner > div span { color: var(--theme-on-dark, #fff); }
.mini-banner.beauty > div, .mini-banner.beauty > div h3, .mini-banner.beauty > div p, .mini-banner.beauty > div span { color: #17191c; }

/* Görsel üstündeki slayt okları ve duraklat düğmesi her temada açık zeminli/koyu ikonlu kalır */
.slider-arrow, .slider-toggle { background: rgba(255, 255, 255, .92); color: #16191d; }
.sepivo-transfer-form label, .sepivo-remote label { color: var(--theme-text, #30343a); }
