/* Wall4Stickers storefront mockup — not applied live */
:root {
  --paper: #F4EFE7;
  --paper-2: #FAF7F2;
  --white: #FFFDF9;
  --ink: #1C1814;
  --muted: #6A635A;
  --line: #E4DCD2;
  --accent: #C4532A;
  --accent-dark: #9C3E1E;
  --teal: #2A5F56;
  --teal-soft: #E7F0ED;
  --shadow: 0 10px 30px rgba(28, 24, 20, 0.08);
  --radius: 16px;
  --max: 1180px;
  --serif: "Fraunces", "Source Serif Pro", "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Inter", "Source Sans Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

/* Announcement */
.announce {
  background: var(--teal);
  color: #F4F8F7;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 20px;
}
.announce strong { font-weight: 600; }

/* Header */
.site-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-shrink: 0;
}
.logo .four { color: var(--accent); font-style: italic; padding: 0 1px; }
nav.primary {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}
nav.primary a:hover { color: var(--accent); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 13.5px;
}
.country {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  white-space: nowrap;
}
.country .flag { font-size: 14px; line-height: 1; }
.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink);
}
.cart-count {
  position: absolute; top: -3px; right: -3px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.menu-toggle { display: none; }

/* Hero */
.hero {
  padding: 56px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 560;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.hero-photo {
  position: relative;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(28,24,20,.1);
  max-width: 230px;
}
.hero-badge strong { display: block; font-size: 14px; }
.hero-badge span { color: var(--muted); }

/* Trust */
.trust {
  padding: 12px 0 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.trust-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid; place-items: center;
}
.trust-item h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.trust-item p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Sections */
section.block { padding: 28px 0 56px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}
.section-head p { color: var(--muted); font-size: 15px; max-width: 38em; }
.link-more { color: var(--accent); font-weight: 560; font-size: 14.5px; white-space: nowrap; }

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  box-shadow: 0 1px 0 rgba(28,24,20,.04);
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.cat-card:hover img { transform: scale(1.04); }
.cat-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(28,24,20,.72), rgba(28,24,20,0));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.cat-card.wide { grid-column: span 1; }
.cat-grid .span-last-row { }

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .thumb {
  background: #F7F3ED;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 16px;
}
.product-card .thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.product-card .meta { padding: 14px 16px 16px; }
.product-card .meta h3 {
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-card .price {
  margin-top: 8px;
  font-weight: 650;
  font-size: 15.5px;
}
.product-card .price span { color: var(--muted); font-weight: 450; font-size: 12.5px; margin-left: 4px; }

/* Feature bands */
.feature {
  padding: 8px 0 64px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.feature-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 360px;
}
.feature-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.feature-card .copy {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #fff;
  background: linear-gradient(to top, rgba(20,16,14,.72) 0%, rgba(20,16,14,.08) 55%, transparent);
}
.feature-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
}
.feature-card p { color: rgba(255,255,255,.86); margin-bottom: 16px; max-width: 28em; }
.btn-light { background: #fff; color: var(--ink); }

/* How it works */
.steps {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-num {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.steps h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.02em; }
.steps p { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer {
  background: #1C1814;
  color: #EDE8E1;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #B9B1A7; max-width: 28em; }
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B9B1A7;
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: #9C948B;
  font-size: 12.5px;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.dbip { color: #9C948B; }

/* Shop page */
.page-hero {
  padding: 36px 0 12px;
}
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 8px; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink);
}
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

/* Legal pages (shared typography if opened standalone) */
.legal { padding: 48px 0 80px; max-width: 760px; }
.legal h1 { font-size: 42px; margin: 8px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 28px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #3A352F; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 1.2em; margin-bottom: 12px; }
.placeholder {
  background: #F8E6C8;
  border: 1px dashed #C4532A;
  color: #7A2E12;
  padding: 0 5px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  nav.primary, .country span.full { display: none; }
  .menu-toggle { display: grid; }
  .hero { padding: 28px 0 16px; }
  .hero-grid, .feature-grid, .trust-grid, .steps-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { height: 60px; gap: 10px; }
  .hero-photo img { border-radius: 18px; }
  .product-card .meta h3 { min-height: 0; font-size: 13.5px; }
  .feature-card, .feature-card .copy { min-height: 300px; }
  .announce { font-size: 12px; }
}
.cat-grid-five { grid-template-columns: repeat(5, 1fr); margin-top: 16px; }
@media (max-width: 900px) {
  .cat-grid-five { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .cat-grid-five .cat-card:last-child { grid-column: 1 / -1; max-height: 220px; }
}
@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cat-grid-five .cat-card:last-child { grid-column: auto; max-height: none; }
}
.feature-card h2 { text-wrap: pretty; }

/* ——— WordPress / WooCommerce adapters ——— */
body.theme-w4s-theme,
body.wp-theme-w4s-theme,
.is-root-container {
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
}
.w4s-announce,
.w4s-announce p {
  background: var(--teal);
  color: #F4F8F7;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 20px;
  margin: 0;
}
.w4s-announce a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.w4s-header-bar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.w4s-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.w4s-header-inner .wp-block-site-title,
.w4s-header-inner .wp-block-site-title a,
.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.w4s-header-inner .wp-block-site-title { margin: 0; }
.four { color: var(--accent); font-style: italic; padding: 0 1px; }

.w4s-header-inner .wp-block-navigation {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
}
.w4s-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Plugin country selector, styled to match the mockup pill */
.w4s-header-actions .w4s-geo-inline,
.w4s-header-actions [data-w4s-geo-inline] {
  display: inline-flex;
  align-items: center;
}
.w4s-header-actions .w4s-geo__select,
.w4s-header-actions select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
/* Soften the plugin's top geo bar so it does not clash with the announcement. */
.w4s-geo {
  background: var(--paper) !important;
  border-bottom-color: var(--line) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}
.w4s-geo__btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: 999px !important;
  color: #fff !important;
  padding: 4px 14px !important;
}
.w4s-geo__select { border-radius: 8px !important; }

.w4s-hero { padding: 56px 0 28px; }
.w4s-hero .w4s-hero-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* Product collection / shop cards */
.wc-block-product-template,
.wp-block-woocommerce-product-template {
  gap: 20px 16px !important;
}
.wc-block-product,
ul.products li.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding-bottom: 8px;
}
.wc-block-product .wc-block-components-product-image,
ul.products li.product img {
  background: #F7F3ED;
}
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a,
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: left;
  padding: 0 16px;
}
.wc-block-product .wc-block-components-product-price,
ul.products li.product .price {
  font-weight: 650;
  font-size: 15.5px;
  text-align: left;
  padding: 0 16px 8px;
  color: var(--ink);
}
.wp-block-woocommerce-product-button,
.wc-block-product .wp-block-button { padding: 0 16px 12px; }

.wp-block-woocommerce-breadcrumbs,
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); }

.w4s-shop-hero { padding: 36px 0 12px; width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.w4s-shop-hero h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

.w4s-footer {
  background: #1C1814;
  color: #EDE8E1;
  padding: 56px 0 28px;
  font-size: 14px;
}
.w4s-footer a { color: #EDE8E1; }
.w4s-footer a:hover { color: #fff; }
.w4s-footer .logo, .w4s-footer .wp-block-site-title, .w4s-footer .wp-block-site-title a {
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
}
.w4s-footer h4, .w4s-footer .wp-block-heading { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #B9B1A7; font-weight: 600; }
.w4s-footer-legal { color: #9C948B; font-size: 12.5px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; }
.w4s-footer-legal a { color: #9C948B; text-decoration: underline; text-underline-offset: 3px; }

/* Legal page typography inside WP pages */
.w4s-legal .placeholder,
.placeholder {
  background: #F8E6C8;
  border: 1px dashed #C4532A;
  color: #7A2E12;
  padding: 0 5px;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
}

@media (max-width: 900px) {
  .w4s-header-inner { width: min(var(--max), calc(100% - 32px)); min-height: 60px; gap: 10px; }
  .w4s-hero { padding: 28px 0 16px; }
  .w4s-hero .w4s-hero-grid { width: min(var(--max), calc(100% - 32px)); }
}

/* Hide the plugin's top “Ship to” bar. There is no w4s-amazon-sync setting to disable
   only that bar; the header shortcode [w4s_country_selector] remains the single control.
   Footer already carries the required DB-IP attribution. */
#w4s-geo-bar {
  display: none !important;
}

/* Product cards: never collapse to a blank box if a sub-size is missing. */
.product-card .thumb,
.wc-block-product .wc-block-components-product-image,
ul.products li.product .woocommerce-loop-product__link {
  min-height: 180px;
  background: #F7F3ED;
}
.product-card .thumb img,
.wc-block-product img,
ul.products li.product img,
.wp-block-woocommerce-product-image img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}
