/* ============================================================================
   SWFL Stock Store — styles
   Brand tokens match primepropertymedia.com (charcoal / gold / Montserrat).
========================================================================== */

:root {
  --charcoal: #323232;
  --charcoal-soft: #2a2a2a;
  --body-bg: #f5f5f5;
  --white: #ffffff;
  --text-dark: #1e1e1e;
  --text-muted: #6b6b6b;
  --line: #e4e4e4;
  --gold-grad: linear-gradient(90deg, #9a7520, #c9a84c, #e8d48a);
  --gold: #c9a84c;
  --shadow: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 14px 40px rgba(0,0,0,.18);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--body-bg);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .5rem;
}
.gold-rule { height: 3px; width: 64px; background: var(--gold-grad); border-radius: 3px; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: none; border-radius: 999px;
  padding: .8rem 1.6rem; font-weight: 600; font-size: .92rem;
  background: var(--gold-grad); color: #2a2a2a;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: .85rem 1.5rem;
  display: flex; align-items: center; gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: .7rem; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name { font-weight: 700; letter-spacing: .01em; font-size: 1.08rem; color: var(--white); }
.brand-tag { font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  border-left: 1px solid rgba(255,255,255,.28); padding-left: .7rem; }
@media (max-width: 480px) { .brand-tag { display: none; } .brand-logo { height: 26px; } }

.header-search { flex: 1; position: relative; max-width: 520px; }
.header-search input {
  width: 100%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  color: var(--white); border-radius: 999px; padding: .6rem 1rem .6rem 2.4rem; font-size: .9rem;
}
.header-search input::placeholder { color: rgba(255,255,255,.55); }
.header-search input:focus { outline: none; border-color: var(--gold); }
.header-search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); opacity: .6; }

.cart-btn {
  position: relative; background: transparent; border: 1px solid rgba(255,255,255,.25);
  color: var(--white); border-radius: 999px; padding: .55rem 1rem; font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  margin-left: auto; flex-shrink: 0;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-count {
  background: var(--gold-grad); color: #2a2a2a; font-weight: 700; font-size: .72rem;
  border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.2rem 0; }
.section--dark { background: var(--charcoal); color: var(--white); }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 { font-size: 1.7rem; font-weight: 700; margin: .2rem 0 .4rem; }
.muted { color: var(--text-muted); }
.section--dark .muted { color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero { background: var(--charcoal); color: var(--white); padding: 3.4rem 0 3rem; }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin: .4rem 0 .6rem; max-width: 18ch; }
.hero p { color: rgba(255,255,255,.72); max-width: 56ch; margin: 0 0 1.6rem; }
.hero-search { display: flex; gap: .6rem; max-width: 620px; }
.hero-search input {
  flex: 1; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: var(--white); padding: .95rem 1.3rem; font-size: 1rem;
}
.hero-search input::placeholder { color: rgba(255,255,255,.55); }
.hero-search input:focus { outline: none; border-color: var(--gold); }

/* ---------- Collection grid (home) ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--areas { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.area-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow); cursor: pointer;
  color: var(--white); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .18s ease, box-shadow .18s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.area-card .cover { position: absolute; inset: 0; z-index: 0; }
.area-card .scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.area-card .meta { position: relative; z-index: 2; padding: 1.1rem 1.2rem; }
.area-card .meta h3 { margin: 0 0 .15rem; font-size: 1.18rem; font-weight: 700; }
.area-card .meta p { margin: 0; font-size: .82rem; color: rgba(255,255,255,.8); }
.area-card .count {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  border-radius: 999px; padding: .25rem .7rem; font-size: .72rem; font-weight: 600;
}

/* entry-point cards (Premium / Video) */
.entry-card { border: 1px solid rgba(255,255,255,.16); background: var(--charcoal-soft);
  border-radius: var(--radius); padding: 1.6rem; cursor: pointer; transition: border-color .15s; }
.entry-card:hover { border-color: var(--gold); }
.entry-card h3 { margin: .3rem 0 .3rem; font-size: 1.2rem; }
.entry-card p { margin: 0; color: rgba(255,255,255,.62); font-size: .88rem; }

/* ---------- Asset grid ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.4rem; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--text-dark);
  border-radius: 999px; padding: .42rem .9rem; font-size: .8rem; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.chip--tag[aria-pressed="true"] { background: var(--gold-grad); color: #2a2a2a; border-color: transparent; }
.toolbar .scoped-search {
  margin-left: auto; position: relative;
}
.toolbar .scoped-search input {
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem 2.2rem; font-size: .85rem; min-width: 240px;
}
.toolbar .scoped-search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); opacity: .45; }

.grid--assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--assets { grid-template-columns: 1fr; } }
.asset-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.asset-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.asset-thumb { position: relative; aspect-ratio: 3 / 2; background: #ddd; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-badges { position: absolute; top: .55rem; left: .55rem; display: flex; gap: .35rem; z-index: 2; }
.badge {
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff;
}
.badge--premium { background: var(--gold-grad); color: #2a2a2a; }
.badge--video { background: rgba(20,20,20,.78); }
.asset-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
  pointer-events: none;
}
.asset-play span {
  width: 46px; height: 46px; border-radius: 999px; background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.asset-info { padding: .7rem .8rem .85rem; }
.asset-info .title { font-size: .86rem; font-weight: 600; line-height: 1.3; }
.asset-info .row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; }
.asset-info .price { font-weight: 700; font-size: .95rem; }
.add-mini {
  border: 1px solid var(--charcoal); background: var(--white); color: var(--charcoal);
  border-radius: 999px; padding: .32rem .8rem; font-size: .76rem; font-weight: 700;
}
.add-mini:hover { background: var(--charcoal); color: #fff; }
.add-mini.in-cart { background: var(--charcoal); color: #fff; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--text-muted); padding: 1.2rem 0 .2rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 .4rem; opacity: .5; }

/* ---------- Lightbox ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,15,15,.82);
  display: none; align-items: center; justify-content: center; padding: .6rem;
}
.overlay.open { display: flex; }
.lightbox {
  background: var(--white); border-radius: 14px; overflow: hidden; max-width: 1280px; width: 95vw;
  max-height: 93vh; display: grid; grid-template-columns: 1.9fr 1fr; box-shadow: var(--shadow-lg);
}
.lightbox .lb-media { background: #111; position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-media img { width: 100%; height: 100%; object-fit: contain; max-height: 93vh; }
.lightbox .lb-side { padding: 1.8rem; display: flex; flex-direction: column; }
.lightbox .lb-side h3 { margin: .4rem 0 .3rem; font-size: 1.3rem; }
.lb-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0; }
.lb-tags .t { font-size: .72rem; background: var(--body-bg); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--text-muted); }
.lb-price { font-size: 1.8rem; font-weight: 700; margin: .4rem 0 .2rem; }
.lb-price small { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.lb-spacer { flex: 1; }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; background: rgba(0,0,0,.55); color: #fff;
  border: none; width: 38px; height: 38px; border-radius: 999px; font-size: 1.2rem; }
.lb-note { font-size: .78rem; color: var(--text-muted); margin-top: .8rem; }
.lb-bundle-hint { background: #faf5e6; border: 1px solid #e8d48a; border-radius: 8px; padding: .7rem .85rem;
  font-size: .82rem; color: #6b5520; margin-top: 1rem; }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; z-index: 110;
  background: var(--white); box-shadow: -10px 0 40px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { margin: 0; font-size: 1.15rem; }
.drawer-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); }
.drawer-body { flex: 1; overflow-y: auto; padding: .6rem 1.3rem; }
.cart-line { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-title { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line .cl-sub { font-size: .72rem; color: var(--text-muted); }
.cart-line .cl-price { font-weight: 700; font-size: .88rem; }
.cart-line .cl-remove { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; padding: 0 .2rem; }
.cart-line.bundled .cl-price { color: var(--gold); }
.cl-strike { text-decoration: line-through; color: var(--text-muted); font-weight: 500; font-size: .76rem; margin-right: .35rem; }

.nudge {
  margin: .9rem 0; border-radius: 10px; padding: .9rem 1rem;
  background: #faf5e6; border: 1px solid #e8d48a; color: #6b5520; font-size: .86rem; font-weight: 600;
  display: flex; gap: .6rem; align-items: flex-start;
}
.nudge--kill { background: linear-gradient(90deg,#fbf3d8,#f6e7b0); border-color: var(--gold); }
.nudge--applied { background: #eef6ee; border-color: #bcd9bc; color: #335c33; }
.nudge .nudge-cta { display: block; margin-top: .5rem; }
.nudge .nudge-cta button { font-size: .78rem; padding: .4rem .9rem; }

.drawer-foot { border-top: 1px solid var(--line); padding: 1.1rem 1.3rem 1.3rem; }
.totals-row { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: .4rem; }
.totals-row.grand { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 1rem; }
.totals-row .save { color: var(--gold); font-weight: 600; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 3rem 1rem; }

.scrim-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 105; display: none; }
.scrim-bg.open { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-soft); color: rgba(255,255,255,.6); padding: 2.4rem 0; margin-top: 2rem; font-size: .82rem; }
.site-footer a:hover { color: var(--gold); }
.test-banner { background: var(--gold-grad); color: #2a2a2a; text-align: center; font-size: .78rem; font-weight: 700; padding: .4rem; letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header-search { display: none; }
  .lightbox { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .lightbox .lb-media { max-height: 40vh; }
  .hero h1 { font-size: 1.9rem; }
}

/* community filter dropdown (real catalog) */
.toolbar .place-select {
  border: 1px solid var(--line); background: var(--white); color: var(--text-dark);
  border-radius: 999px; padding: .42rem 1rem; font-size: .8rem; font-weight: 600;
  max-width: 260px;
}
.toolbar .place-select:focus { outline: none; border-color: var(--gold); }

/* ---------- site-wide bundle nudge bar ---------- */
.bundle-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--charcoal); color: #fff;
  border-top: 3px solid transparent; border-image: var(--gold-grad) 1;
  box-shadow: 0 -8px 24px rgba(0,0,0,.22);
}
.bundle-bar-inner { display: flex; align-items: center; gap: 1.1rem; padding: .75rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.bb-progress { flex: 0 0 130px; height: 9px; background: rgba(255,255,255,.16); border-radius: 999px; overflow: hidden; }
.bb-progress span { display: block; height: 100%; background: var(--gold-grad); transition: width .3s ease; }
.bb-text { flex: 1; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.bb-text strong { color: var(--gold); }
.bundle-bar .btn { flex-shrink: 0; }
.bundle-bar.applied { border-image: none; border-top: 3px solid #bcd9bc; }
.bundle-bar.applied .bb-text { color: #dff0df; }
.bundle-bar.applied .bb-progress span { background: #8fce8f; }
@media (max-width: 640px) {
  .bb-progress { display: none; }
  .bundle-bar-inner { padding: .6rem 1rem; gap: .7rem; }
  .bb-text { font-size: .82rem; }
}

/* ---------- community grid (area page) ---------- */
.grid--communities { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.comm-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow); cursor: pointer; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .18s ease, box-shadow .18s ease; }
.comm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.comm-card img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.comm-card .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%); }
.comm-card .meta { position: relative; z-index: 2; padding: .9rem 1rem; }
.comm-card .meta h3 { margin: 0; font-size: 1.02rem; font-weight: 700; }
.comm-card .count { position: absolute; top: .7rem; right: .7rem; z-index: 2; background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px); border-radius: 999px; padding: .22rem .65rem; font-size: .72rem; font-weight: 600; }

/* ---------- community sidebar layout (community photo view) ---------- */
.area-layout { display: grid; grid-template-columns: 244px 1fr; gap: 1.6rem; align-items: start; }
.area-main .wrap { padding: 0; max-width: none; }
.area-main .section { padding: .5rem 0 2rem; }
.area-sidebar {
  position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem;
}
.side-head { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-muted); padding: .5rem .6rem .4rem; font-weight: 600; }
.side-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%; text-align: left;
  border: none; background: transparent; padding: .48rem .6rem; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--text-dark); }
.side-item:hover { background: var(--body-bg); }
.side-item.active { background: var(--charcoal); color: #fff; }
.side-n { color: var(--text-muted); font-weight: 600; font-size: .78rem; flex-shrink: 0; }
.side-item.active .side-n { color: rgba(255,255,255,.7); }
@media (max-width: 820px) {
  .area-layout { grid-template-columns: 1fr; gap: .8rem; }
  .area-sidebar { position: static; max-height: 190px; }
}

/* ---------- how it works strip ---------- */
.howstrip { background: var(--white); border-bottom: 1px solid var(--line); }
.how-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 1.6rem 1.5rem; }
.how-step { display: flex; align-items: flex-start; gap: .8rem; }
.how-step .how-n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; background: var(--gold-grad);
  color: #2a2a2a; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.how-step strong { display: block; font-size: .96rem; }
.how-step p { margin: .15rem 0 0; font-size: .84rem; color: var(--text-muted); }
@media (max-width: 720px) { .how-inner { grid-template-columns: 1fr; gap: .9rem; } }

/* ---------- trust / testimonials ---------- */
.trust { background: var(--body-bg); }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: .4rem; }
.tcard { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem; }
.tcard p { margin: 0 0 .8rem; font-size: .95rem; line-height: 1.6; color: var(--text-dark); }
.tcard cite { font-style: normal; font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; margin-top: 2rem; }
.trust-badges span { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--text-dark); }
.trust-badges svg { color: var(--gold); }
@media (max-width: 760px) { .tgrid { grid-template-columns: 1fr; } }

/* ---------- cart email + reassurance ---------- */
.cart-email { display: block; margin: 1rem 0 .6rem; }
.cart-email span { display: block; font-size: .76rem; font-weight: 600; color: var(--text-muted); margin-bottom: .3rem; }
.cart-email input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; font-size: .9rem; }
.cart-email input:focus { outline: none; border-color: var(--gold); }
.cart-reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem .9rem; margin-top: .7rem; }
.cart-reassure span { font-size: .72rem; color: var(--text-muted); font-weight: 600; }
