/* ============================================================
   Design v2 — "editorial minimal"
   Narrow single column, typography-led, content as list rows.
   ============================================================ */

/* ---------- Themes ---------- */
:root {
  --bg: #fcfcfc;
  --bg-alt: #f3f3f1;
  --text: #101010;
  --text-muted: #6e6e6c;
  --accent: #101010;
  --accent-contrast: #fcfcfc;
  --border: #e9e9e7;
  --shadow: rgba(0, 0, 0, 0.05);
  --header-bg: rgba(252, 252, 252, 0.85);
  --radius: 12px;
  --container: 680px;
}

[data-theme="dark"] {
  --bg: #101010;
  --bg-alt: #1a1a1a;
  --text: #f2f2f0;
  --text-muted: #9a9a98;
  --accent: #f2f2f0;
  --accent-contrast: #101010;
  --border: #262626;
  --shadow: rgba(0, 0, 0, 0.4);
  --header-bg: rgba(16, 16, 16, 0.85);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.35s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-alt);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- Links & buttons ---------- */
.arrow-link {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.arrow-link:hover {
  opacity: 0.65;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  opacity: 0.82;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg-alt);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 0.98rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 24px 72px;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  display: block;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.hero-about {
  margin-top: 18px;
}

.hero-about p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.hero-about p + p {
  margin-top: 13px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* Hero entrance animation */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.22s; }
.fade-up.delay-3 { animation-delay: 0.34s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 52px 24px;
  border-top: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.section-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -10px 0 26px;
}

/* Wider pages (product grid + detail) keep more room */
.product-page.container,
.more-products.container {
  max-width: 920px;
}

.product-page .section-title,
.more-products .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Products listing title sits directly above the grid (no subtitle),
   so it needs its own breathing room below. */
.product-page > .section-title {
  margin-bottom: 32px;
}

.product-page .section-sub {
  margin: 0 0 36px;
}

/* ---------- Socials (list rows) ---------- */
.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.social-row:hover {
  background: var(--bg-alt);
}

.social-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.social-info strong {
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.social-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.work-link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-row:hover .work-link {
  color: var(--text);
}

/* ---------- Useful Links ---------- */
.useful-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.useful-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.useful-link:hover {
  background: var(--bg-alt);
}

.highlight-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  width: 82px;
}

.useful-link p {
  font-size: 0.92rem;
  font-weight: 500;
  flex-grow: 1;
}

.useful-link .arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.useful-link:hover .arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* ---------- Products: homepage list rows ---------- */
.product-list {
  display: flex;
  flex-direction: column;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.product-row:hover {
  background: var(--bg-alt);
}

.product-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.product-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.product-row-info strong {
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.product-row-info > span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-row-meta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.product-row-price {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-row-meta .arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.product-row:hover .arrow {
  transform: translateX(3px);
  color: var(--text);
}

.products-more {
  margin-top: 20px;
}

.products-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Products: grid cards (products page + related) ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.35s ease;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-body {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.product-card:hover .product-cta {
  color: var(--text);
}

.product-cta .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.product-card:hover .product-cta .arrow {
  transform: translateX(4px);
}

/* ---------- Discounts page header ----------
   Title and subtitle read as one block; the affiliate disclosure sits
   quietly beneath them, then a clear gap before the product grid. */
.discounts-page > .section-title {
  margin-bottom: 6px;
}

.discounts-page .section-sub {
  margin: 0 0 10px;
  max-width: 560px;
}

.discount-disclosure {
  margin: 0 0 36px;
  /* Wide enough for the full Turkish sentence to sit on one line on
     desktop (it needs ~650px); it still wraps naturally on narrow screens. */
  max-width: 760px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ---------- Discount cards (/discounts + /indirimler) ---------- */
.discount-card {
  position: relative;
}

/* Scope position:relative to the discount media only, so the badge anchors
   here without affecting normal product cards elsewhere. */
.discount-card .product-media {
  position: relative;
}

.discount-card .product-media img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 999px;
}

.discount-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.discount-old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-new {
  font-weight: 700;
  color: var(--text);
}

.discount-buy {
  margin-top: 12px;
  align-self: flex-start;
}

/* The whole card is a link, so hovering anywhere gives the button its
   hover state and lifts the card slightly. */
.discount-card:hover .discount-buy {
  opacity: 0.82;
}

.discount-card:hover {
  border-color: var(--text-muted);
}

/* ---------- Product page (detail) ---------- */
.product-page {
  padding-top: 48px;
  border-top: none;
}

.back-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* Let the two columns keep their proportions no matter how wide the
   content inside is (e.g. many thumbnails) — without this, a wide
   thumbnail row forces the image column huge and crushes the text. */
.product-gallery,
.product-info {
  min-width: 0;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-main:hover .gallery-nav {
  opacity: 0.55;
}

.gallery-main .gallery-nav:hover {
  opacity: 1;
}

/* Touch screens have no hover — keep the arrows visible there */
@media (hover: none) {
  .gallery-nav {
    opacity: 0.55;
  }
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

.product-info h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 8px;
}

.product-detail-price {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.product-info .product-tag {
  margin-bottom: 0;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 13px;
}

.product-features {
  list-style: none;
  margin: 8px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.product-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--text);
}

.buy-btn {
  display: inline-block;
}

.checkout-note {
  margin-top: 13px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-missing {
  text-align: center;
  padding: 60px 0;
}

.product-missing h1 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.product-missing p {
  color: var(--text-muted);
  margin-bottom: 26px;
}

.more-products {
  border-top: 1px solid var(--border);
}

.more-products .section-title {
  margin-bottom: 28px;
}

/* ---------- Contact ---------- */
.socials {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.socials a {
  font-weight: 600;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 0.65;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: border-color 0.35s ease;
}

/* ---------- Download page ---------- */
.download-page {
  padding-top: 72px;
  display: flex;
  justify-content: center;
  border-top: none;
}

.download-box {
  max-width: 520px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
}

.download-box h1 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.download-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.download-check {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.download-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}

/* ---------- Links pages (/links + /linkler) ----------
   Same editorial-minimal language as the homepage: flat
   background, left-aligned header, hover-highlighted rows,
   hairline section separators. */
.links-body {
  min-height: 100vh;
  background: var(--bg);
  transition: background 0.35s ease, color 0.35s ease;
}

.links-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: var(--bg);
}

.links-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: flex;
  flex-direction: column;
}

.links-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.links-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.links-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 20px;
}

.links-bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 5px;
}

.links-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  transition: border-color 0.35s ease;
}

.links-section-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-align: left;
}

.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.link-item:hover {
  background: var(--bg-alt);
}

.link-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.link-icon svg {
  width: 100%;
  height: 100%;
}

.link-label {
  flex-grow: 1;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-item:hover .link-arrow {
  transform: translateX(3px);
  color: var(--text);
}

/* "Products from my videos" page */
.picks-back {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.picks-back:hover {
  color: var(--text);
}

.picks-header .links-name {
  font-size: 1.35rem;
}

.pick-thumb-empty {
  background: var(--bg-alt);
}

/* Highlight links — prominent buttons pinned above the regular list */
.links-highlight-box {
  margin-top: 32px;
  gap: 12px;
}

.link-item.link-highlight {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  transition: opacity 0.2s ease, background 0.35s ease;
}

.link-item.link-highlight:hover {
  background: var(--accent);
  opacity: 0.85;
}

.link-item.link-highlight .link-arrow {
  color: var(--accent-contrast);
  opacity: 0.7;
}

.link-item.link-highlight:hover .link-arrow {
  color: var(--accent-contrast);
  opacity: 1;
  transform: translateX(3px);
}

/* Second (and later) highlight buttons get an outlined look so
   stacked highlights read as two distinct buttons. */
.links-highlight-box .link-highlight:not(:first-child) {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--accent);
  padding-top: 12.5px;
  padding-bottom: 12.5px;
}

.links-highlight-box .link-highlight:not(:first-child):hover {
  background: var(--bg-alt);
  opacity: 1;
}

.links-highlight-box .link-highlight:not(:first-child) .link-arrow {
  color: var(--text-muted);
}

.links-highlight-box .link-highlight:not(:first-child):hover .link-arrow {
  color: var(--text);
  opacity: 1;
}

/* Products on the links pages */
.links-products {
  display: flex;
  flex-direction: column;
}

.link-product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.link-product:hover {
  background: var(--bg-alt);
}

.link-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.link-product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.link-product-info strong {
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.link-product-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-product-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.link-product:hover .link-product-cta {
  color: var(--text);
}

.link-product-cta .link-arrow {
  transition: transform 0.2s ease;
}

.link-product:hover .link-product-cta .link-arrow {
  transform: translateX(3px);
}

.links-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  transition: border-color 0.35s ease;
}

.links-footer a {
  color: var(--text-muted);
  font-weight: 600;
}

.links-footer a:hover {
  color: var(--text);
}

/* ---------- Admin dashboard ---------- */
.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: 2px;
}

.admin {
  max-width: 760px;
  padding-top: 48px;
  border-top: none;
}

/* Dashboard with sidebar gets more room */
.admin-wide {
  max-width: 1040px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav button:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.admin-nav button.active {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
}

/* "View site as" — owner language preview in the sidebar */
.admin-lang-preview {
  margin-top: 20px;
  padding: 14px 12px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-lang-preview .hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.admin-lang-preview .hint-sub {
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

.admin-lang-buttons {
  display: flex;
  gap: 6px;
}

.admin-lang-buttons button {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-lang-buttons button:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.admin-lang-buttons button.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.admin-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .admin-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .admin-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
  }

  .admin-nav button {
    font-size: 0.85rem;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
  }
}

.admin .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.admin code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.login-box {
  max-width: 420px;
}

.form-error {
  color: #c0392b;
  font-size: 0.88rem;
}

.nav-links .link-btn {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links .link-btn:hover {
  color: var(--text);
}

.profile-editor {
  margin-bottom: 24px;
}

.profile-editor h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-avatar-preview {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.avatar-upload-btn {
  cursor: pointer;
}

.admin-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 56px 0 8px;
}

.links-lang-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}

.links-lang-title .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-toolbar .btn {
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
}

.admin-toolbar .btn-ghost {
  border-color: var(--border);
  background: transparent;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.admin-empty {
  color: var(--text-muted);
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}

.admin-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.admin-item-info strong {
  font-size: 0.98rem;
}

.admin-item-info span {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.admin-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-item-actions button {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.admin-item-actions button:hover:not(:disabled) {
  background: var(--bg-alt);
}

.admin-item-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.admin-item-actions button.danger:hover {
  border-color: #c0392b;
  color: #c0392b;
}

.admin-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.admin-editor h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.admin-editor form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-editor .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-editor label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-editor .hint {
  font-weight: 400;
  color: var(--text-muted);
}

.admin-editor input,
.admin-editor select,
.admin-editor textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.admin-editor .check-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.admin-editor .check-row input {
  width: auto;
}

.admin-editor input:focus,
.admin-editor select:focus,
.admin-editor textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

/* Hidden-from-site items (still editable in the dashboard) */
.admin-item.is-hidden .admin-thumb,
.admin-item.is-hidden .admin-item-info {
  opacity: 0.45;
}

.hidden-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Count of pending discounts, shown on the sidebar button */
.pending-badge {
  display: inline-block;
  min-width: 18px;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* Inline affiliate-link input in the discounts approval queue */
.discount-approve-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.discount-affiliate-input {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 5px 8px;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Site text editor */
.site-text-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.site-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.site-text-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-text-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-text-controls {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
}

.site-text-controls .hide-check {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.site-text-controls .link-btn {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-text-controls .link-btn:hover {
  color: var(--text);
}

.site-text-row.is-hidden textarea {
  opacity: 0.45;
}

.site-text-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.site-text-row textarea {
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
}

.site-text-row textarea:focus {
  outline: none;
  border-color: var(--text-muted);
}

.site-text-actions {
  align-items: center;
  gap: 14px;
}

@media (max-width: 640px) {
  .site-text-row {
    grid-template-columns: 1fr;
  }
}

.tr-fields {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}

.tr-fields summary {
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.tr-fields-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.editor-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.editor-actions .btn {
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
}

.editor-actions .btn-ghost {
  border-color: var(--border);
  background: transparent;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 64px 24px 56px;
  }

  .section {
    padding: 44px 24px;
  }

  /* Two-row nav: logo + toggles on top, section links below */
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 24px;
    gap: 12px;
  }

  .nav-right {
    display: contents;
  }

  .nav-logo {
    margin-right: auto;
  }

  .nav-links {
    order: 5;
    width: 100%;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .admin-editor .form-row {
    grid-template-columns: 1fr;
  }

  .admin-item {
    flex-wrap: wrap;
  }

  .social-row,
  .product-row {
    flex-wrap: wrap;
  }

  .work-link {
    display: none;
  }

  /* ----- Discount cards: compact horizontal rows on mobile ----- */
  /* Scoped to .discount-card only; normal .product-card is untouched. */
  .discount-card {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    /* Grid items refuse to shrink below their content's min width by
       default — without this the card grows wider than the screen and
       gets cut off. */
    min-width: 0;
  }

  /* The image fills the card's full height instead of floating centred,
     so the padding is even on all four sides no matter how tall the
     name + price + button stack ends up. */
  .discount-card .product-media {
    flex: 0 0 96px;
    width: 96px;
    aspect-ratio: auto;
    align-self: stretch;
    border-radius: calc(var(--radius) - 4px);
  }

  .discount-card .product-media img {
    height: 100%;
  }

  .discount-card .product-body {
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }

  .discount-card h3 {
    font-size: 0.92rem;
    line-height: 1.35;
    margin-bottom: 2px;
    /* Wrap up to two lines, then ellipsis — long product names must
       never widen the card (nowrap did exactly that). */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Hide the longer description to keep each row compact. */
  .discount-card .product-body > p {
    display: none;
  }

  .discount-card .discount-prices {
    margin-top: 4px;
  }

  /* Keep the badge pinned to the image corner but smaller in the row layout. */
  .discount-card .discount-badge {
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    font-size: 0.62rem;
  }

  .discount-card .discount-buy {
    margin-top: 8px;
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}
