/*
Theme Name: Sevgi Qutusu
Description: Ağ və mavi tonlarda hədiyyə mağazası. Sevgiliyə, anaya, uşaqlara hədiyyələr və hər hədiyyə ilə birlikdə göndərilən sevgi notları.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sevgi-qutusu
*/

/* ---------- Dəyişənlər ---------- */
:root {
	--ink: #10254a;
	--muted: #54698c;
	--blue: #1e5bc6;
	--blue-600: #174ba3;
	--blue-400: #4a90e2;
	--blue-200: #cfe3fb;
	--blue-100: #e6f1fd;
	--blue-50: #f4f9ff;
	--white: #ffffff;
	--line: #d9e6f7;
	--f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--f-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
	--f-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive;
	--shadow: 0 14px 34px rgba(30, 91, 198, 0.14);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Düymələr ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: 999px;
	background: var(--blue); color: #fff; border: 2px solid var(--blue);
	font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; text-align: center;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-100); color: var(--blue-600); border-color: var(--blue); }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; }
.btn--light:hover { background: var(--blue-100); color: var(--blue-600); border-color: var(--blue-100); }
.btn--small { padding: 8px 18px; font-size: .92rem; }
.btn--big { width: 100%; padding: 16px 28px; font-size: 1.05rem; margin-top: 18px; }
.link-btn {
	background: none; border: 0; padding: 6px 4px; cursor: pointer;
	font: inherit; font-weight: 700; color: var(--blue);
	text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--blue-200);
}
.link-btn:hover { color: var(--blue-600); text-decoration-color: var(--blue); }

/* ---------- Başlıq ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; color: var(--ink); }
.brand:hover { color: var(--blue); }
.brand img { max-height: 46px; width: auto; }
.nav { margin-left: auto; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu .current-menu-item > a { background: var(--blue-100); color: var(--blue-600); }
.nav-toggle { display: none; background: var(--blue-100); color: var(--blue-600); border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 880px) {
	.bar { gap: 12px; }
	.bar__wa { margin-left: auto; }
	.nav-toggle { display: inline-block; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); }
	.is-open .nav { display: block; }
	.menu { flex-direction: column; }
	.menu a { padding: 12px 14px; }
}

/* ---------- Hədiyyə etiketi (ən yadda qalan element) ---------- */
.tag { position: relative; margin: 0; filter: drop-shadow(0 14px 20px rgba(23, 75, 163, .18)); }
.tag::before {
	content: ""; position: absolute; z-index: 2; left: calc(50% - 1px); top: -30px;
	width: 2px; height: 54px; background: var(--blue-400); transform: rotate(14deg); transform-origin: bottom center;
}
.tag__body {
	position: relative; background: #fff; padding: 52px 24px 20px;
	clip-path: polygon(0 26px, 26px 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.tag__body::before {
	content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
	border-radius: 50%; background: var(--blue-100); box-shadow: inset 0 0 0 2px var(--blue-400);
}
.note-text {
	margin: 0; min-height: 108px; font-family: var(--f-hand); font-weight: 600;
	font-size: 1.75rem; line-height: 36px; color: var(--ink);
	background: repeating-linear-gradient(to bottom, transparent 0 35px, var(--blue-100) 35px 36px);
	transition: opacity .15s;
}
.note-text.is-swapping { opacity: 0; }
.note-who { margin-top: 10px; text-align: right; font-family: var(--f-hand); font-size: 1.35rem; color: var(--blue); }
.tag__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag--sm .note-text { font-size: 1.5rem; line-height: 32px; min-height: 96px; background: repeating-linear-gradient(to bottom, transparent 0 31px, var(--blue-100) 31px 32px); }

/* ---------- Ana səhifə: hero ---------- */
.hero { padding: 64px 0 88px; background: linear-gradient(180deg, var(--blue-50), #fff); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art { position: relative; min-height: 460px; display: grid; place-items: center; }
.hero__art::before { content: ""; position: absolute; width: min(430px, 92%); aspect-ratio: 1; border-radius: 50%; background: var(--blue-100); }
.tag--hero { width: min(330px, 84%); z-index: 2; transform: rotate(-4deg); transform-origin: 50% 0; animation: hang .9s cubic-bezier(.2, .8, .2, 1) both; }
.tag--price { position: absolute; z-index: 1; right: 2%; bottom: 8%; width: 210px; transform: rotate(8deg); }
.tag--price .tag__body { padding: 46px 18px 18px; }
.tag-title { font-weight: 700; font-size: .95rem; line-height: 1.35; margin: 0 0 6px; }
.tag-price { font-family: var(--f-display); font-weight: 600; font-size: 1.7rem; color: var(--blue); margin: 0; }
@keyframes hang { from { transform: rotate(-15deg) translateY(-16px); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }

@media (max-width: 900px) {
	.hero { padding: 40px 0 56px; }
	.hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero__art { min-height: 400px; }
}

/* ---------- Bölmələr ---------- */
.sec { padding: 72px 0; }
.sec--tight { padding-top: 24px; }
.sec--last { padding-top: 24px; padding-bottom: 88px; }
.sec--flush { padding-top: 48px; }
.sec__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec__head h2 { margin-bottom: 6px; }
.sec__head p { margin: 0; color: var(--muted); max-width: 52ch; }
.empty { padding: 32px; border-radius: 20px; background: var(--blue-50); border: 1.5px dashed var(--blue-200); color: var(--muted); }

/* Kimə */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.who__item {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
	min-height: 170px; padding: 22px; border-radius: 26px; background: var(--blue-100); color: var(--ink);
	transition: background .25s, color .25s;
}
.who__item:nth-child(3n+2) { background: var(--blue-200); }
.who__item:nth-child(3n) { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue-200); }
.who__item::after { content: ""; position: absolute; top: -34px; right: -34px; width: 110px; height: 110px; border-radius: 50%; border: 2px solid rgba(30, 91, 198, .22); }
.who__item:hover { background: var(--blue); color: #fff; }
.who__name { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.who__desc { font-size: .92rem; line-height: 1.45; opacity: .85; }

/* Kartlar */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-200); }
.card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--blue-100); }
.card__media img, .card__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--blue); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(16, 37, 74, .1); }
.badge--sold { background: var(--ink); color: #fff; }
.badge--inline { position: static; display: inline-block; background: var(--blue-100); box-shadow: none; margin-bottom: 12px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card__title { font-size: 1.1rem; margin-bottom: 4px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue); }
.card__who { margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.card.is-sold .card__media img, .card.is-sold .card__media svg { opacity: .55; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.price ins { text-decoration: none; }
.price del { margin-left: 8px; font-size: .9rem; font-weight: 500; color: var(--muted); }

/* Sevgi notları bölməsi */
.sec--notes { background: var(--blue-100); }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 48px 30px; padding-top: 26px; }
.notes .tag:nth-child(3n+1) { transform: rotate(-1.8deg); }
.notes .tag:nth-child(3n+2) { transform: rotate(1.4deg); }
.notes .tag:nth-child(3n) { transform: rotate(-.8deg); }
.notes__foot { margin: 40px 0 0; text-align: center; color: var(--muted); }
.notes__foot + .notes__foot { margin-top: 14px; }

/* Addımlar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { position: relative; padding: 28px; border: 1.5px solid var(--line); border-radius: 24px; counter-increment: s; }
.steps li::before {
	content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
	border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem;
}
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Çağırış lövhəsi */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px; border-radius: 30px; background: var(--blue); color: #fff; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; max-width: 46ch; color: #e3efff; }
@media (max-width: 600px) { .cta { padding: 30px 24px; } }

/* ---------- Daxili səhifələr ---------- */
.page-head { padding: 52px 0 28px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-head__text { max-width: 60ch; color: var(--muted); }
.page-head__text p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
	display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--blue-200); background: #fff;
	color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-align: left; line-height: 1.4;
	transition: background .2s, border-color .2s;
}
.chip:hover { background: var(--blue-100); border-color: var(--blue-400); color: var(--ink); }
.chip[aria-current="page"], .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.prose { max-width: 70ch; }
.prose--list article { margin-bottom: 28px; }
.prose img { border-radius: 16px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.page-numbers { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--blue-200); font-weight: 600; color: var(--ink); }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
a.page-numbers:hover { background: var(--blue-100); }

/* ---------- Məhsul səhifəsi ---------- */
.product { padding-top: 28px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.product__media { border-radius: 30px; overflow: hidden; background: var(--blue-100); aspect-ratio: 1 / 1; position: sticky; top: 100px; }
.product__media img, .product__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.product__info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.product__price { margin-bottom: 18px; }
.product__price .price { font-size: 1.7rem; }
.order { margin: 26px 0 20px; padding: 26px; border-radius: 26px; background: var(--blue-50); border: 1.5px solid var(--blue-200); }
.order h2 { font-size: 1.35rem; }
.order--sold { background: var(--blue-100); }
.order__hint { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.field label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: .95rem; }
.field input, .field textarea {
	width: 100%; padding: 12px 16px; border: 1.5px solid var(--blue-200); border-radius: 16px; background: #fff;
	font: inherit; color: var(--ink);
}
.field textarea { font-family: var(--f-hand); font-weight: 600; font-size: 1.5rem; line-height: 1.3; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue-200); border-color: var(--blue); }
.suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chip--note { border-radius: 16px; font-weight: 500; font-size: .92rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.perks li { position: relative; padding-left: 26px; }
.perks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.related { margin-top: 72px; }
.related h2 { margin-bottom: 24px; }
@media (max-width: 900px) {
	.product__grid { grid-template-columns: 1fr; gap: 28px; }
	.product__media { position: static; }
}

/* ---------- Alt hissə ---------- */
.site-footer { background: var(--ink); color: #c9dcf6; padding: 60px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.footer__text { max-width: 34ch; margin: 0; }
.footer__h { font-family: var(--f-display); font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: #fff; color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Bildiriş ---------- */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%);
	max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 999px;
	background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; text-align: center;
	box-shadow: 0 10px 30px rgba(16, 37, 74, .3);
}

/* ---------- Hərəkət azaldılması ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
