/*
Theme Name: QuickFlip Store
Theme URI: https://quickflip.local
Author: QuickFlip
Author URI: https://quickflip.local
Description: Weekly-updated e-commerce affiliate storefront for Amazon ZA, Walmart/Massmart feed, Temu, and SHEIN partner feeds.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: quickflip-store
*/

:root {
  --qf-yellow: #f7ae1a;
  --qf-yellow-dark: #e59900;
  --qf-gray: #747474;
  --qf-dark: #111317;
  --qf-paper: rgba(255, 255, 255, 0.76);
  --qf-paper-strong: rgba(255, 255, 255, 0.9);
  --qf-line: rgba(17, 19, 23, 0.09);
  --qf-shadow: 0 24px 70px rgba(17, 19, 23, 0.11);
  --qf-radius-xl: 36px;
  --qf-radius-2xl: 58px;
  --qf-container: 1180px;
  --qf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--qf-dark);
  font-family: var(--qf-font);
  background:
    radial-gradient(circle at 8% 10%, rgba(28, 232, 219, 0.48), transparent 32%),
    radial-gradient(circle at 92% 6%, rgba(255, 230, 200, 0.92), transparent 33%),
    radial-gradient(circle at 84% 78%, rgba(247, 174, 26, 0.19), transparent 30%),
    linear-gradient(135deg, #b9fff3 0%, #edfdf8 48%, #fff0df 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.qf-container {
  width: min(var(--qf-container), calc(100% - 40px));
  margin-inline: auto;
}

.qf-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 24px rgba(17,19,23,.06);
  border: 1px solid rgba(255,255,255,.82);
  color: #49515f;
  font-size: 13px;
  font-weight: 800;
}

.qf-pill-dot {
  width: 10px;
  height: 10px;
  background: var(--qf-yellow);
  border-radius: 999px;
}

.qf-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--qf-yellow);
  color: var(--qf-dark);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(247, 174, 26, 0.24);
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.qf-btn:hover,
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(247, 174, 26, 0.32); }
.qf-btn:disabled { opacity: .62; cursor: not-allowed; transform: none; }
.qf-btn--secondary {
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 28px rgba(17,19,23,.07);
}
.qf-btn--small { min-height: 38px; padding-inline: 16px; font-size: 13px; }

.qf-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(235, 255, 251, .64);
  border-bottom: 1px solid rgba(255,255,255,.62);
}
.qf-header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.qf-logo { display: inline-flex; align-items: center; gap: 12px; }
.qf-logo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 28px rgba(17,19,23,.08);
  border: 1px solid rgba(255,255,255,.9);
}
.qf-logo-text strong { display: block; font-size: 22px; line-height: 1; font-weight: 1000; letter-spacing: -0.04em; }
.qf-logo-text strong span { color: var(--qf-yellow-dark); }
.qf-logo-text small { display: block; margin-top: 5px; color: var(--qf-gray); font-size: 10px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; }

.qf-nav { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px; background: rgba(255,255,255,.58); border: 1px solid rgba(255,255,255,.72); }
.qf-nav a { padding: 10px 14px; border-radius: 999px; color: #4b5563; font-size: 14px; font-weight: 850; }
.qf-nav a:hover { background: rgba(255,255,255,.72); color: var(--qf-dark); }
.qf-mobile-menu-button { display: none; }

.qf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .92fr);
  gap: 70px;
  align-items: center;
  padding: 72px 0 88px;
}
.qf-hero h1 {
  max-width: 780px;
  margin: 22px 0 0;
  font-size: clamp(56px, 9vw, 108px);
  letter-spacing: -0.08em;
  line-height: .89;
}
.qf-hero-copy { max-width: 630px; margin: 28px 0 0; color: #4b5563; font-size: 18px; line-height: 1.8; }
.qf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.qf-hero-card {
  position: relative;
  padding: 18px;
  border-radius: var(--qf-radius-2xl) var(--qf-radius-2xl) var(--qf-radius-xl) var(--qf-radius-xl);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: var(--qf-shadow);
}
.qf-hero-card::before {
  content: "";
  position: absolute;
  inset: -30px auto auto -30px;
  width: 140px;
  height: 140px;
  background: rgba(247,174,26,.66);
  border-radius: 999px;
  filter: blur(38px);
  z-index: -1;
}
.qf-hero-image {
  height: 520px;
  width: 100%;
  object-fit: cover;
  border-radius: 46px 100px 46px 46px;
}
.qf-featured-panel {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 22px;
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(17,19,23,.12);
}
.qf-eyebrow { margin: 0; color: var(--qf-gray); font-size: 12px; font-weight: 1000; letter-spacing: .26em; text-transform: uppercase; }
.qf-featured-row { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-top: 8px; }
.qf-featured-row h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.qf-featured-row p { margin: 6px 0 0; color: #59616d; font-size: 14px; }
.qf-price { color: var(--qf-yellow-dark); font-size: 32px; font-weight: 1000; letter-spacing: -.06em; }

.qf-section { padding: 76px 0; }
.qf-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.qf-section-heading h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.07em; line-height: .98; }
.qf-muted { color: #5c6571; }

.qf-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px;
  margin-bottom: 28px;
  border-radius: 32px;
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.75);
}
.qf-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 50px; border-radius: 999px; background: rgba(255,255,255,.88); box-shadow: 0 8px 22px rgba(17,19,23,.05); }
.qf-search input { width: 100%; border: 0; outline: 0; background: transparent; font-weight: 760; }
.qf-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qf-chip { border: 0; border-radius: 999px; padding: 12px 16px; background: rgba(255,255,255,.70); color: #59616d; font-weight: 900; cursor: pointer; }
.qf-chip.is-active { background: var(--qf-yellow); color: var(--qf-dark); }

.qf-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.qf-product-card {
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: 0 18px 54px rgba(17,19,23,.07);
  transition: transform .24s ease, box-shadow .24s ease;
}
.qf-product-card:hover { transform: translateY(-7px); box-shadow: 0 28px 70px rgba(17,19,23,.12); }
.qf-product-image-wrap { position: relative; margin: 12px; height: 230px; overflow: hidden; border-radius: 26px; background: #eef1f4; }
.qf-product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qf-product-card:hover img { transform: scale(1.05); }
.qf-product-source { position: absolute; left: 12px; top: 12px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.91); font-size: 12px; font-weight: 1000; box-shadow: 0 8px 22px rgba(17,19,23,.08); }
.qf-product-body { padding: 8px 22px 22px; }
.qf-product-category { margin: 0; color: var(--qf-gray); font-size: 11px; font-weight: 1000; letter-spacing: .22em; text-transform: uppercase; }
.qf-product-title { min-height: 52px; margin: 10px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.035em; }
.qf-product-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; color: #5d6672; font-size: 14px; font-weight: 780; }
.qf-stars { color: var(--qf-yellow-dark); }
.qf-product-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.qf-product-price { font-size: 26px; font-weight: 1000; letter-spacing: -.06em; }

.qf-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.qf-category-card { padding: 12px 12px 22px; border-radius: 34px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.84); box-shadow: 0 18px 54px rgba(17,19,23,.07); text-align: center; }
.qf-category-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 26px; }
.qf-category-card h3 { margin: 18px 0 8px; font-size: 14px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; }
.qf-category-card p { margin: 0 auto; max-width: 260px; color: #5e6670; font-size: 13px; line-height: 1.65; }

.qf-support { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: stretch; }
.qf-support-card { padding: 40px; border-radius: 46px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.82); box-shadow: var(--qf-shadow); }
.qf-support-card h2 { margin: 10px 0 0; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.07em; line-height: 1; }
.qf-support-card p { color: #59616d; line-height: 1.8; }
.qf-support-list { display: grid; gap: 16px; margin-top: 26px; }
.qf-support-item { display: flex; align-items: center; gap: 13px; font-weight: 900; }
.qf-support-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--qf-yellow); }
.qf-support-image { padding: 16px; border-radius: 46px 46px 46px 92px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.88); box-shadow: var(--qf-shadow); }
.qf-support-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 34px 34px 34px 78px; }

.qf-site-footer { margin-top: 40px; padding: 54px 0; border-top: 1px solid rgba(17,19,23,.08); }
.qf-footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .7fr; gap: 34px; }
.qf-site-footer h3 { margin: 0 0 18px; font-size: 13px; font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; }
.qf-site-footer p,
.qf-site-footer li { color: #5e6670; font-size: 14px; line-height: 1.9; }
.qf-site-footer ul { list-style: none; margin: 0; padding: 0; }
.qf-copyright { margin-top: 36px; color: #6b7280; font-size: 13px; }

.qf-empty { padding: 34px; border-radius: 28px; background: rgba(255,255,255,.72); color: #5e6670; }
.qf-spin { animation: qfspin 1s linear infinite; }
@keyframes qfspin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .qf-nav { display: none; }
  .qf-mobile-menu-button { display: inline-flex; }
  .qf-hero, .qf-support { grid-template-columns: 1fr; }
  .qf-hero { gap: 38px; padding-top: 46px; }
  .qf-product-grid, .qf-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qf-toolbar { grid-template-columns: 1fr; }
  .qf-footer-grid { grid-template-columns: 1fr 1fr; }
  .qf-hero-image { height: 430px; }
}

@media (max-width: 640px) {
  .qf-container { width: min(100% - 26px, var(--qf-container)); }
  .qf-header-inner { min-height: 74px; }
  .qf-logo-text small { display: none; }
  .qf-hero h1 { font-size: 54px; }
  .qf-product-grid, .qf-category-grid, .qf-footer-grid { grid-template-columns: 1fr; }
  .qf-section-heading { align-items: flex-start; flex-direction: column; }
  .qf-hero-card, .qf-support-card, .qf-support-image { border-radius: 34px; }
  .qf-hero-image { height: 360px; border-radius: 28px 72px 28px 28px; }
  .qf-featured-panel { position: static; margin-top: 14px; }
  .qf-featured-row { align-items: flex-start; flex-direction: column; }
}
