/*
Theme Name: Affiliate Catalog AI Commerce Theme
Theme URI: https://demo.teetees.store/
Author: Positype Co.
Author URI: https://demo.teetees.store/
Description: A premium affiliate storefront theme for WordPress with AI-assisted admin workflow, hybrid pinned bento merchandising, setup guidance, and deep Affiliate Catalog integration.
Version: 8.8.5
Text Domain: aff-catalog
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --accent: #0f766e;
  --accent-2: #115e59;
  --text: #111827;
  --muted: #6b7280;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --border: rgba(17,24,39,.08);
  --header-bg: rgba(255,255,255,.92);
  --shadow-sm: 0 6px 22px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: linear-gradient(180deg, #fbfcfd, var(--bg)); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.screen-reader-text:focus { left: 10px; top: 10px; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 16px; z-index: 2000; }
.master-content,.archive-page,.single-product-page { padding: 40px 0 88px; }
.hero-shell { padding: 16px 0 36px; max-width: 920px; }
.hero-kicker,.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.hero-title { margin: 0; font-size: clamp(3rem, 8vw, 6rem); line-height: .92; font-weight: 900; letter-spacing: -.05em; }
.hero-title span { display: block; }
.hero-subtitle { max-width: 62ch; margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.master-bento-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 320px; gap: 18px; }
.bento-item-1,.bento-item-6 { grid-column: span 2; grid-row: span 2; }
.card-anchor { display: block; position: relative; height: 100%; overflow: hidden; border-radius: var(--radius-lg); background: #111; box-shadow: var(--shadow-sm); }
.card-img-box,.card-image { width: 100%; height: 100%; }
.card-image { object-fit: cover; object-position: top center; transform: scale(1.01); transition: transform .45s ease; }
.card-anchor:hover .card-image,.card-anchor:focus-visible .card-image { transform: scale(1.06); }
.card-image-fallback,.single-image-fallback,.empty-state-box { display: grid; place-items: center; min-height: 220px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--muted); text-align: center; }
.card-text-overlay { position: absolute; inset: auto 0 0 0; padding: 72px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,0)); }
.card-title { margin: 0; color: #fff; font-size: .82rem; opacity: .84; text-transform: uppercase; letter-spacing: .05em; }
.card-price { margin: 6px 0 0; color: #fff; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; line-height: 1; }
.price-mode-hide .card-price { display: none; }
.price-mode-hover .card-price { opacity: 0; transform: translateY(6px); transition: .2s ease; }
.price-mode-hover .card-anchor:hover .card-price,.price-mode-hover .card-anchor:focus-visible .card-price { opacity: 1; transform: translateY(0); }
.card-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: .75rem; }
.card-badge-secondary { background: rgba(15,118,110,.88); }
.value-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.value-card,.default-post-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.value-card strong { display: block; margin-bottom: 8px; }
.value-card span,.archive-description,.entry-summary,.affiliate-note,.footer-copy { color: var(--muted); }
.single-product-card { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 40px; align-items: start; }
.single-product-image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--surface); }
.single-product-title,.archive-title { margin: 0; letter-spacing: -.03em; line-height: 1; }
.single-product-price { margin: 14px 0 20px; color: var(--accent); font-weight: 800; font-size: 1.5rem; }
.single-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.button-secondary { border: 1px solid var(--border); background: var(--surface); }
.content-loop { display: grid; gap: 16px; }
@media (max-width: 1024px) {
  .master-bento-grid { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 260px; }
  .bento-item-1,.bento-item-6 { grid-column: span 2; grid-row: span 1; }
  .single-product-card,.value-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  .master-content,.archive-page,.single-product-page { padding-top: 24px; }
  .hero-title { font-size: 3rem; }
  .master-bento-grid { gap: 12px; grid-auto-rows: 240px; }
}
