/* Innoxis - Modern Desk & Home Office Goods
 * Brand layer over Astra + WooCommerce.
 *
 * Fonts: storefront-core enqueues Fraunces + Inter from Google Fonts, but the
 * LiteSpeed CSS combiner can swallow an external font <link> and leave only its
 * dns-prefetch, while document.fonts.check() still returns true (vacuously true
 * with no matching @font-face). So every stack below names REAL fallbacks that
 * carry the design on their own - the webfont is an enhancement, not a load-
 * bearing dependency.
 *
 * Loop rules deliberately carry NO .woocommerce ancestor: on Astra that ancestor
 * is absent on archive templates and the rules silently never apply.
 */

:root {
  --ix-ink:        #262421;
  --ix-ink-soft:   #5b554e;
  --ix-paper:      #fbfaf8;
  --ix-sand:       #ede7de;
  --ix-sand-deep:  #ddd3c6;
  --ix-line:       #e5ded4;
  --ix-accent:     #8c7a66;
  --ix-serif: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --ix-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ix-max: 1180px;
}

html body {                       /* html-scoped: Astra's own body rule lands later */
  font-family: var(--ix-sans);
  color: var(--ix-ink);
  background: var(--ix-paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4,
.entry-title, .site-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--ix-serif);
  color: var(--ix-ink);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.18;
}

/* ── header ─────────────────────────────────────────────────────────── */
.ast-primary-header-bar,
.site-header {
  background: var(--ix-paper);
  border-bottom: 1px solid var(--ix-line);
}
.main-header-menu .menu-link,
.ast-header-break-point .main-navigation a {
  font-family: var(--ix-sans);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ix-ink-soft);
}
.main-header-menu .menu-link:hover { color: var(--ix-ink); }
.custom-logo-link img, .site-logo-img img { max-height: 46px; width: auto; }

/* ── hero ───────────────────────────────────────────────────────────── */
.ix-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 1.25rem;
  background: var(--ix-sand);
  text-align: center;
}
.ix-hero__inner { max-width: 720px; margin: 0 auto; }
.ix-hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  margin: 0 0 0.65rem;
}
.ix-hero p {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ix-ink-soft);
  margin: 0 0 1.6rem;
  line-height: 1.6;
}

/* ── buttons ────────────────────────────────────────────────────────── */
.ix-btn,
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-block;
  background: var(--ix-ink);
  color: var(--ix-paper);
  border: 1px solid var(--ix-ink);
  border-radius: 2px;
  padding: 0.82em 1.9em;
  font-family: var(--ix-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  transition: background .18s ease, color .18s ease;
}
.ix-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: transparent;
  color: var(--ix-ink);
}

/* ── section furniture ──────────────────────────────────────────────── */
.ix-wrap { max-width: var(--ix-max); margin: 0 auto; padding: 0 1.25rem; }
.ix-section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.ix-section__head { text-align: center; margin-bottom: 2.25rem; }
.ix-section__head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.ix-section__head p { color: var(--ix-ink-soft); margin: 0; }
.ix-eyebrow {
  font-size: .74rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ix-accent); margin: 0 0 .7rem;
}

/* category tiles */
.ix-cats { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, 1fr); }
.ix-cat {
  display: block; position: relative; overflow: hidden; border-radius: 3px;
  background: var(--ix-sand); aspect-ratio: 4 / 3; text-decoration: none;
}
.ix-cat img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease; }
.ix-cat:hover img { transform: scale(1.035); }
.ix-cat span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem .9rem;
  background: linear-gradient(to top, rgba(28,26,24,.62), transparent);
  color: #fff; font-family: var(--ix-sans); font-size: .8rem;
  letter-spacing: .11em; text-transform: uppercase; text-align: center;
}

/* value props */
.ix-props { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ix-line); padding-top: 2.5rem; }
.ix-prop h3 { font-family: var(--ix-sans); font-size: .84rem; letter-spacing: .1em;
  text-transform: uppercase; margin: 0 0 .45rem; }
.ix-prop p { color: var(--ix-ink-soft); font-size: .94rem; margin: 0; line-height: 1.6; }

/* ── woo loop (NO .woocommerce ancestor - Astra archives lack it) ────── */
ul.products { display: grid !important; gap: 1.6rem 1.15rem;
  grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product {
  width: 100% !important; margin: 0 !important; float: none !important;
  text-align: left; clear: none !important;
}
ul.products li.product a img {
  border-radius: 3px; background: var(--ix-sand); margin-bottom: .8rem;
  aspect-ratio: 1 / 1; object-fit: cover;
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ix-serif) !important;
  font-size: 1.02rem !important; font-weight: 400; margin: 0 0 .25rem !important;
  padding: 0 !important; line-height: 1.3;
}
ul.products li.product .price {
  font-family: var(--ix-sans); color: var(--ix-ink-soft) !important;
  font-size: .93rem !important; font-weight: 400;
}
ul.products li.product .button { margin-top: .7rem; font-size: .74rem; padding: .7em 1.35em; }
.woocommerce-result-count, .woocommerce-ordering { color: var(--ix-ink-soft); font-size: .88rem; }

/* single product */
.single-product .product_title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .5rem; }
.single-product .woocommerce-Price-amount { font-size: 1.2rem; color: var(--ix-ink); }
.single-product .woocommerce-product-gallery img { border-radius: 3px; background: var(--ix-sand); }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-footer, .ast-small-footer {
  background: var(--ix-ink); color: #cfc7bd;
  border-top: none;
}
.site-footer a, .ast-small-footer a { color: #cfc7bd; text-decoration: none; }
.site-footer a:hover, .ast-small-footer a:hover { color: #fff; }
.ix-foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
  padding: 3rem 0 2rem; }
.ix-foot h4 { font-family: var(--ix-sans); font-size: .76rem; letter-spacing: .13em;
  text-transform: uppercase; color: #fff; margin: 0 0 .85rem; }
.ix-foot ul { list-style: none; margin: 0; padding: 0; }
.ix-foot li { margin-bottom: .45rem; font-size: .92rem; }
.ix-foot p { font-size: .92rem; line-height: 1.65; color: #b8b0a6; margin: 0; }
.ix-foot__bar { border-top: 1px solid rgba(255,255,255,.13); padding: 1.15rem 0;
  font-size: .82rem; color: #9a938b; text-align: center; }

/* ── legal / prose pages ────────────────────────────────────────────── */
.ix-prose { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) 1.25rem; }
.ix-prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.ix-prose h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.ix-prose p, .ix-prose li { color: var(--ix-ink-soft); line-height: 1.75; font-size: .98rem; }
.ix-prose__meta { color: var(--ix-accent); font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 2rem; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .ix-cats    { grid-template-columns: repeat(2, 1fr); }
  .ix-props   { grid-template-columns: 1fr; gap: 1.75rem; }
  .ix-foot    { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 480px) {
  .ix-cats { grid-template-columns: 1fr; }
}

/* checkout stays brandless - no hero, no promo furniture */
.woocommerce-checkout .ix-hero,
.woocommerce-checkout .ix-section { display: none !important; }

/* ── header chrome fixes ─────────────────────────────────────────────── */
/* Astra prints its own entry-title on pages; every page we build supplies its
   own <h1> inside the content, so the theme one is a duplicate. */
.page .entry-title,
.page .ast-single-post-title,
.home .entry-title { display: none !important; }
.page .entry-header, .home .entry-header { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.page .site-content .ast-container > .site-main > article > .entry-header { display: none !important; }

/* site title text next to the logo (the logo already carries the wordmark) */
.site-title, .ast-site-title-wrap .site-title, .site-description { display: none !important; }

/* front page: hero should sit flush under the header */
.home .site-content .ast-container { padding-top: 0 !important; }
.home .entry-content > .ix-hero:first-child { margin-top: 0; }
