/*
Theme Name: Decor Homeware Demo
Description: A WooCommerce storefront for the Gendox demo.
Version: 1.1.0
Text Domain: stillroom
*/

:root {
  --paper: #f8f8f6;
  --ink: #171914;
  --muted: #61645a;
  --line: #e3e4dd;
  --mint: #ecf1d2;
  --green: #24261c;
  --cream: #eff0ea;
  --accent: #e7f944;
  --accent-dark: #c8dc20;
  --heading: 'Bricolage Grotesque', 'DM Sans', Arial, sans-serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #dedfdb; color: var(--ink); font: 16px/1.5 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #758100;
  outline-offset: 3px;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.store-shell {
  width: min(1380px, calc(100% - 64px));
  margin: 24px auto;
  border-radius: 32px;
  background: var(--paper);
  overflow: clip;
}
.frame { width: min(1160px, calc(100% - 112px)); margin-inline: auto; }

/* Masthead and category navigation */
.store-demo-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .3rem .7rem;
  padding: .4rem 1rem;
  background: var(--ink);
  color: #fff;
  font-size: .77rem;
}
.store-demo-bar strong {
  padding: .04rem .48rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--ink);
  font-size: .68rem;
  letter-spacing: .07em;
}
.masthead {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(138px, .8fr) minmax(270px, 1.6fr) minmax(180px, .9fr);
  align-items: center;
  gap: clamp(1rem, 3.4vw, 3.8rem);
}
.brand { display: inline-grid; width: fit-content; color: var(--ink); }
.brand-name {
  font: 800 2.45rem / .88 var(--heading);
  letter-spacing: -.065em;
}
.brand-category {
  margin-top: .36rem;
  padding-top: .18rem;
  border-top: 1px solid currentColor;
  font: 700 .68rem / 1 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.masthead-search {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 35px;
  align-items: center;
  border-radius: 8px;
  padding: .31rem;
  background: #edeee9;
}
.masthead-search select {
  max-width: 100%;
  padding: .32rem .3rem .32rem .5rem;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-size: .73rem;
}
.masthead-search input { min-width: 0; padding: .35rem .55rem; border: 0; background: transparent; font-size: .82rem; }
.masthead-search button { padding: .35rem; border: 0; background: transparent; color: var(--ink); }
.search-icon { display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.search-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; right: -4px; bottom: -2px; transform: rotate(48deg); background: currentColor; }
.account-nav { display: flex; align-items: center; justify-content: end; gap: 1.1rem; white-space: nowrap; }
.account-link { display: inline-flex; align-items: center; gap: .6rem; font-size: .84rem; line-height: 1.2; }
.account-icon { width: 32px; height: 32px; border-radius: 50%; background: #e9eae3; position: relative; }
.account-icon::before, .account-icon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 1px solid var(--muted); }
.account-icon::before { top: 7px; width: 6px; height: 6px; border-radius: 50%; }
.account-icon::after { bottom: 6px; width: 13px; height: 6px; border-radius: 7px 7px 3px 3px; }
.bag-link { display: inline-flex; align-items: center; gap: .34rem; padding: .54rem .62rem; border-radius: 7px; background: var(--ink); color: white; font-size: .76rem; font-weight: 600; }
.bag-link span { min-width: 1.25rem; padding: .05rem .22rem; border-radius: 4px; background: var(--accent); color: var(--ink); text-align: center; }
.nav-band { margin-right: max(28px, calc((100% - 1230px) / 2)); background: var(--accent); border-radius: 0 18px 18px 0; }
.nav-band nav { width: auto; max-width: none; min-height: 54px; margin-left: max(56px, calc((100% + max(28px, (100% - 1230px) / 2) - 1160px) / 2)); margin-right: 22px; display: flex; align-items: center; gap: clamp(.9rem, 3.7vw, 2.6rem); }
.nav-band a { white-space: nowrap; font-size: .86rem; font-weight: 700; }
.nav-band a:hover, .account-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-link { margin-left: auto; border: 1px solid #9eac24; padding: .37rem .65rem; border-radius: 7px; }
.guide-link span { margin-left: .2rem; }

/* Homepage hero and the interactive product showcase */
h1, h2 { font-family: var(--heading); line-height: 1.03; margin: 0; }
.hero { min-height: 440px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: .45rem; padding-block: 20px; }
.hero-copy { position: relative; z-index: 1; padding-block: 1.5rem; }
.hero h1 { max-width: 11ch; font-size: clamp(2.6rem, 5.1vw, 5rem); font-weight: 800; line-height: .97; letter-spacing: -.054em; text-transform: uppercase; }
.hero-copy p { max-width: 39ch; font-size: .94rem; color: var(--muted); margin: 1.18rem 0 1.5rem; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; padding: .66rem .85rem; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: white; font-size: .83rem; font-weight: 700; white-space: nowrap; }
.primary-button:hover { background: #434837; }
.hero-display { position: relative; isolation: isolate; min-height: 390px; overflow: clip; background: var(--paper); }
.hero-rings { position: absolute; inset: 4% 11% 3% 12%; border-radius: 50%; background: radial-gradient(ellipse at center, #eff0eb 0 45%, #f1f2ed 46% 56%, transparent 57%); }
.hero-object { position: absolute; mix-blend-mode: multiply; pointer-events: none; }
.hero-object img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-object--main { z-index: 2; width: 67%; height: 92%; top: 1%; left: 10%; transform: rotate(-19deg); }
.hero-object--left { z-index: 1; width: 28%; height: 44%; top: 7%; left: 1%; transform: rotate(-28deg); }
.hero-object--top { z-index: 1; width: 34%; height: 49%; top: 1%; right: 2%; transform: rotate(27deg); }
.hero-product { position: absolute; right: 0; bottom: 6%; z-index: 3; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .3rem .8rem; width: min(225px, 57%); padding: 1rem; border-radius: 16px; background: #202218; color: white; }
.hero-product:hover .hero-arrow { background: #fff; }
.hero-product-name { grid-column: 1 / -1; font-size: .83rem; line-height: 1.25; }
.hero-product strong { font: 800 clamp(1.45rem, 2.8vw, 2.6rem)/1 var(--heading); letter-spacing: -.05em; white-space: nowrap; }
.hero-arrow { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 6px; background: var(--accent); color: var(--ink); }
.showcase { padding-bottom: 2.4rem; }
.showcase-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: 9px; background: #edeee9; padding: .55rem .7rem; }
.showcase-bar h2 { padding: .48rem .75rem; border-radius: 6px; background: var(--ink); color: white; font: 700 .85rem/1 var(--sans); }
.showcase-bar nav { display: flex; align-items: center; gap: clamp(.65rem, 2.15vw, 1.55rem); color: var(--muted); font-size: .78rem; font-weight: 600; }
.showcase-bar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.showcase-bar a:first-child { color: var(--ink); }
.showcase-grid { display: grid; grid-template-columns: 1fr minmax(210px, .82fr) 1fr; align-items: start; gap: clamp(.8rem, 2.25vw, 2rem); margin-top: 1.15rem; }
.showcase-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.showcase-tiles button { aspect-ratio: 1.12; padding: 1px; border: 1px solid #eeefe8; border-radius: 6px; background: #fff; overflow: hidden; }
.showcase-tiles button:hover, .showcase-tiles [aria-pressed='true'] { border-color: #929f28; }
.showcase-tiles img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-photo { display: block; aspect-ratio: 1.54; padding: .55rem; border-radius: 8px; background: white; }
.showcase-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase-info { display: flex; align-items: start; justify-content: space-between; gap: .5rem; padding: .62rem 0; font-size: .78rem; font-weight: 700; }
.showcase-info > span { white-space: nowrap; }
.showcase-action { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding: .38rem .42rem .38rem .62rem; border-radius: 7px; background: var(--ink); color: white; font-size: .74rem; }
.showcase-action a:hover { text-decoration: underline; }
.showcase-action button { border: 0; padding: .27rem .45rem; border-radius: 4px; background: var(--accent); color: var(--ink); font-size: .73rem; font-weight: 700; white-space: nowrap; }
.showcase-action button:hover { background: white; }

.catalog, .content-page { padding-block: 3rem 3.6rem; }
.eyebrow { margin: 0 0 .5rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .11em; }
.underlink { font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1.65rem 1rem;
}

.product-card {
  min-width: 0;
}

.product-photo {
  display: block;
  aspect-ratio: 1/1.05;
  overflow: hidden;
  border-radius: 3px;
  background: #edeee9;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.product-photo:hover img {
  transform: scale(1.035);
}

.product-info {
  padding: .85rem 0 .2rem;
}

.product-room {
  margin: 0 0 .2rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.product-info h3 {
  margin: 0;
  font: 600 .93rem/1.35 var(--sans);
}

.product-info h3 a:hover {
  text-decoration: underline;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.3rem;
}

.product-price {
  color: var(--green);
  font-weight: 700;
  font-size: .92rem;
}

.bag-button {
  line-height: 1;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  border: 1px solid #d6d4c8;
  background: transparent;
  color: var(--green);
  font-size: 1.15rem;
}

.bag-button:hover {
  background: var(--mint);
}

.catalog h1,.content-page h1 {
  font-size: clamp(2.5rem,5vw,4rem);
  margin-bottom: 1.45rem;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(145px,1fr) minmax(110px,.7fr) 85px 85px minmax(130px,.8fr) auto auto;
  align-items: end;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #edeee9;
}

.catalog-filters label {
  display: grid;
  gap: .26rem;
  font-size: .75rem;
  font-weight: 700;
}

.catalog-filters .underlink {
  align-self: center;
  margin: 1rem .25rem 0;
}

.catalog-filters input,.catalog-filters select,.woocommerce input.input-text,.woocommerce textarea,.woocommerce select {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  padding: .57rem .65rem;
  min-height: 41px;
}

.result-count {
  font-size: .83rem;
  color: var(--muted);
  margin: 1.2rem 0 .8rem;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}

.catalog-pagination a, .catalog-pagination span {
  border: 1px solid var(--line);
  padding: .3rem .7rem;
}

.catalog-pagination [aria-current] {
  background: var(--green);
  color: white;
}

.content-page {
  min-height: 54vh;
}

.content-page h2 {
  font-size: 2.15rem;
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}

.content-page p,.content-page ul,.content-page pre {
  max-width: 80ch;
}

.content-page pre {
  background: #edeee9;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 3px;
}

.product-page div.product .product_title {
  font-size: clamp(2.65rem,4.5vw,4.4rem);
}

.woocommerce div.product p.price,.woocommerce div.product span.price {
  color: var(--green);
}

.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt {
  background: var(--green);
  color: #fff;
}

.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover {
  background: #45553f;
  color: #fff;
}

.woocommerce #payment {
  background: var(--cream);
}

.woocommerce #payment div.payment_box {
  background: #fff;
  color: var(--ink);
}

.woocommerce #payment div.payment_box::before {
  border-bottom-color: #fffdf9;
}

.woocommerce a:not(.button):hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #edeee9;
  padding: 1.8rem 0;
}

.site-footer .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p,.site-footer .frame>a:not(.brand) {
  font-size: .84rem;
  color: var(--muted);
}

.shop-status {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 4;
  background: var(--green);
  color: white;
  padding: .65rem 1rem;
  margin: 0;
  border-radius: 3px;
}

.shop-status.is-visible {
  display: block;
}

@media (max-width: 950px) {
  .store-shell { width: calc(100% - 36px); margin-block: 18px; border-radius: 24px; }
  .frame { width: calc(100% - 60px); }
  .masthead { grid-template-columns: 108px minmax(210px, 1fr) auto; gap: 1rem; }
  .brand-name { font-size: 2.1rem; }
  .nav-band nav { margin-left: 30px; gap: 1.2rem; }
  .hero { min-height: 360px; }
  .hero-display { min-height: 315px; }
  .catalog-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 670px) {
  .store-shell { width: 100%; margin: 0; border-radius: 0; }
  .frame { width: calc(100% - 32px); }
  .masthead { grid-template-columns: 1fr auto; gap: .45rem; padding-block: .35rem .7rem; }
  .brand { margin-block: .35rem; }
  .masthead-search { grid-column: 1 / -1; grid-row: 2; }
  .account-nav { gap: .75rem; }
  .nav-band { margin-right: 0; border-radius: 0; }
  .nav-band nav { min-height: 43px; margin-inline: 0; padding-inline: 16px; overflow: auto; scrollbar-width: thin; }
  .nav-band a { font-size: .76rem; }
  .guide-link { padding: .18rem .42rem; }
  .hero { min-height: 326px; }
  .hero h1 { font-size: clamp(2rem, 6.6vw, 3.25rem); }
  .hero-copy p { margin-block: .7rem .95rem; }
  .hero-display { min-height: 280px; }
  .showcase-bar nav { overflow: auto; white-space: nowrap; }
  .catalog, .content-page { padding-block: 2.1rem 2.7rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .65rem; }
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .frame { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 1.2rem 0 0; }
  .hero h1 { font-size: clamp(2.45rem, 10.3vw, 4rem); }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-focus { grid-column: 1 / -1; grid-row: 1; max-width: 360px; width: 100%; justify-self: center; }
}
