/*
Theme Name: Nabstash
Theme URI: https://www.nabstash.com
Author: Nabstash
Description: nabstash.com için fatkiddeals.com tarzında özel olarak tasarlanmış Amazon affiliate fırsat sitesi teması. Nabstash Deals Engine eklentisiyle birlikte çalışır.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Requires Plugins: nabstash-deals-engine
Text Domain: nabstash
*/

/* Bu dosya, eklentinin global olarak yüklediği assets/css/nabstash-deals.css
   içindeki --nde-* CSS değişkenlerini (renkler, radius, gölge, fontlar)
   yeniden tanımlamadan kullanır; tek kaynaktan renk yönetimi sağlanır. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nabstash-body {
	margin: 0;
	background: var(--nde-bg, #fff);
	color: var(--nde-text, #131921);
	font-family: var(--nde-font-body, 'Inter', system-ui, sans-serif);
	line-height: 1.6;
}

a { color: var(--nde-blue, #146eb4); }

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

.nde-wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Top disclosure bar ---------- */
.nde-topbar {
	background: var(--nde-navy, #131921);
	color: #cfd6dd;
	font-size: 12.5px;
	text-align: center;
	padding: 7px 16px;
}
.nde-topbar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.nde-site-header {
	border-bottom: 1px solid var(--nde-border, #e7e9ec);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.nde-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
}
.nde-logo { display: flex; align-items: center; }
.nde-logo img { height: 40px; width: auto; }
.nde-logo-text {
	font-family: var(--nde-font-display, 'Poppins', sans-serif);
	font-weight: 800;
	font-size: 22px;
	color: var(--nde-navy, #131921);
	text-decoration: none;
}
.nde-logo-text span { color: var(--nde-orange, #ff9900); }

.nde-primary-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nde-primary-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.nde-primary-nav a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--nde-text, #131921);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}
.nde-primary-nav a:hover { background: #f4f5f6; }

.nde-search-form { display: flex; align-items: center; }
.nde-search-form input[type=search] {
	border: 1px solid var(--nde-border, #e7e9ec);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 13.5px;
	width: 190px;
}

.nde-mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

@media (max-width: 880px) {
	.nde-primary-nav { display: none; width: 100%; order: 3; }
	.nde-primary-nav.is-open { display: block; }
	.nde-primary-nav ul { flex-direction: column; }
	.nde-search-form { display: none; }
	.nde-mobile-toggle { display: block; }
	.nde-site-header__inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.nde-hero {
	background: var(--nde-navy, #131921);
	color: #fff;
	padding: 46px 0 36px;
}
.nde-hero__eyebrow {
	font-family: var(--nde-font-display, 'Poppins', sans-serif);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .08em;
	color: var(--nde-orange, #ff9900);
	text-transform: uppercase;
}
.nde-hero__title {
	font-family: var(--nde-font-display, 'Poppins', sans-serif);
	font-weight: 800;
	font-size: 38px;
	line-height: 1.15;
	margin: 8px 0 6px;
}
.nde-hero__title span { color: var(--nde-orange, #ff9900); }
.nde-hero__subtitle { color: #c4cbd2; font-size: 15.5px; max-width: 540px; margin: 0; }

/* ---------- Promo tiles ---------- */
.nde-promo-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: -26px 0 28px;
	position: relative;
	z-index: 2;
}
@media (max-width: 880px) { .nde-promo-row { grid-template-columns: repeat(2, 1fr); margin-top: 16px; } }

/* ---------- Breadcrumb ---------- */
.nde-breadcrumb { font-size: 12.5px; color: var(--nde-text-muted, #5a6472); margin: 18px 0 8px; }
.nde-breadcrumb a { color: var(--nde-text-muted, #5a6472); text-decoration: none; }
.nde-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Archive / category page head ---------- */
.nde-archive-head { padding: 28px 0 6px; }
.nde-archive-head h1 {
	font-family: var(--nde-font-display, 'Poppins', sans-serif);
	font-weight: 800;
	font-size: 28px;
	margin: 0 0 4px;
}
.nde-archive-head p { color: var(--nde-text-muted, #5a6472); margin: 0; }

/* ---------- Pagination ---------- */
.nde-pagination { display: flex; justify-content: center; gap: 8px; margin: 36px 0; }
.nde-pagination a, .nde-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	border-radius: 8px; border: 1px solid var(--nde-border, #e7e9ec);
	text-decoration: none; color: var(--nde-text, #131921); font-size: 13.5px; font-weight: 600;
}
.nde-pagination .current { background: var(--nde-navy, #131921); color: #fff; border-color: var(--nde-navy, #131921); }
.nde-pagination a:hover { border-color: var(--nde-blue, #146eb4); color: var(--nde-blue, #146eb4); }

/* ---------- Single deal page ---------- */
.nde-deal-single { padding: 8px 0 50px; }
.nde-deal-layout { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .nde-deal-layout { grid-template-columns: 1fr; } }

.nde-deal-gallery {
	border: 1px solid var(--nde-border, #e7e9ec);
	border-radius: var(--nde-radius, 12px);
	background: #fafafa;
	aspect-ratio: 1/1;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.nde-deal-gallery img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.nde-deal-info__badge { margin-bottom: 10px; }
.nde-deal-info h1 {
	font-family: var(--nde-font-display, 'Poppins', sans-serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	margin: 0 0 14px;
}
.nde-deal-price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.nde-deal-price-block .nde-price { font-size: 34px; }
.nde-deal-savings-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.nde-deal-savings-row .nde-savings { font-size: 15px; }
.nde-stock-badge { font-size: 12px; font-weight: 700; color: var(--nde-green, #067d62); background: #e8f6f1; padding: 3px 10px; border-radius: 999px; }

.nde-deal-coupon-box {
	border: 1.5px dashed var(--nde-blue, #146eb4);
	border-radius: var(--nde-radius-sm, 8px);
	padding: 14px 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-bottom: 18px;
	background: #f3f9fd;
}
.nde-deal-coupon-box code { font-size: 16px; font-weight: 700; letter-spacing: .04em; color: var(--nde-navy, #131921); }

.nde-deal-cta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.nde-deal-cta .nde-btn { flex: none; padding: 14px 28px; font-size: 15px; }

.nde-deal-meta-list { font-size: 13px; color: var(--nde-text-muted, #5a6472); margin-bottom: 22px; }
.nde-deal-meta-list strong { color: var(--nde-text, #131921); }

.nde-deal-description { border-top: 1px solid var(--nde-border, #e7e9ec); padding-top: 18px; font-size: 14.5px; color: var(--nde-text, #131921); }
.nde-deal-description h2 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-size: 17px; margin-top: 0; }

.nde-affiliate-note { font-size: 11.5px; color: var(--nde-text-muted, #5a6472); margin-top: 16px; }

/* ---------- Page content (About/Contact/Privacy/Terms) ---------- */
.nde-page-content { max-width: 760px; margin: 0 auto; padding: 44px 0 60px; }
.nde-page-content h1 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-weight: 800; font-size: 30px; }
.nde-page-content h2 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-weight: 700; font-size: 19px; margin-top: 32px; }
.nde-page-content p { font-size: 15px; color: #333; }

/* ---------- Blog list / single post ---------- */
.nde-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 30px 0 50px; }
@media (max-width: 880px) { .nde-blog-grid { grid-template-columns: 1fr; } }
.nde-blog-card { border: 1px solid var(--nde-border, #e7e9ec); border-radius: var(--nde-radius, 12px); overflow: hidden; text-decoration: none; color: inherit; display: block; }
.nde-blog-card__img { aspect-ratio: 16/9; background: #f2f3f4; object-fit: cover; width: 100%; }
.nde-blog-card__body { padding: 14px 16px; }
.nde-blog-card__body h3 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-size: 15.5px; margin: 0 0 6px; }
.nde-blog-card__body p { font-size: 13px; color: var(--nde-text-muted, #5a6472); margin: 0; }

.nde-single-post { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; font-size: 15.5px; }
.nde-single-post h1 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-size: 28px; }

/* ---------- Footer ---------- */
.nde-site-footer { background: var(--nde-navy, #131921); color: #c4cbd2; margin-top: 50px; }
.nde-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 46px 0 28px; }
@media (max-width: 880px) { .nde-footer-grid { grid-template-columns: 1fr 1fr; } }
.nde-footer-grid h4 { color: #fff; font-family: var(--nde-font-display, 'Poppins', sans-serif); font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.nde-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.nde-footer-grid li { margin-bottom: 9px; }
.nde-footer-grid a { color: #c4cbd2; text-decoration: none; font-size: 13.5px; }
.nde-footer-grid a:hover { color: #fff; }
.nde-footer-brand p { font-size: 13.5px; color: #aab2bb; max-width: 280px; }
.nde-footer-social { display: flex; gap: 10px; margin-top: 14px; }
.nde-footer-social a {
	width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.08);
	display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
}
.nde-footer-social a:hover { background: var(--nde-orange, #ff9900); color: var(--nde-navy, #131921); }

.nde-newsletter-form { display: flex; gap: 8px; margin-top: 6px; }
.nde-newsletter-form input[type=email] {
	flex: 1; padding: 10px 12px; border-radius: 8px; border: none; font-size: 13.5px;
}
.nde-newsletter-form button {
	background: var(--nde-orange, #ff9900); color: var(--nde-navy, #131921); border: none;
	border-radius: 8px; padding: 0 16px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.nde-newsletter-msg { font-size: 12px; margin-top: 8px; color: #8de0c2; }
.nde-newsletter-msg.is-error { color: #ff9a8d; }

.nde-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 16px 0;
	font-size: 12px;
	color: #8b939c;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- 404 / search empty ---------- */
.nde-empty-state { text-align: center; padding: 70px 20px; }
.nde-empty-state h1 { font-family: var(--nde-font-display, 'Poppins', sans-serif); font-size: 30px; }
.nde-empty-state p { color: var(--nde-text-muted, #5a6472); margin-bottom: 22px; }
