/*
Theme Name: HomeHaven Hinsinc
Theme URI: https://example.invalid/hinsinc
Author: HomeHaven
Description: English furniture catalogue theme for Hinsinc.
Version: 5.0.0
Template: omega-furniture-store
Text Domain: hinsinc
*/

:root {
  --ink: #1f2421;
  --ink-soft: #414844;
  --paper: #ffffff;
  --surface: #f4f5f2;
  --line: #d8ddd9;
  --copper: #9b4f32;
  --copper-dark: #7f3e27;
  --green: #2e5d50;
  --green-pale: #dfeae5;
  --max: 1240px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; letter-spacing: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
.site-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--paper); padding: 12px 18px; border: 2px solid var(--ink); }
.skip-link:focus { top: 16px; }

.topline { background: var(--ink); color: #f5f6f4; font-size: 13px; }
.topline__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topline a { text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__main { min-height: 82px; display: grid; grid-template-columns: 260px minmax(280px, 1fr) 90px; align-items: center; gap: 34px; }
.brand { display: inline-flex; flex-direction: column; width: max-content; }
.brand strong { font: 700 31px/1 var(--serif); }
.brand span { margin-top: 6px; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; }
.catalog-search { display: grid; grid-template-columns: 1fr auto; min-width: 0; }
.catalog-search input { min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px; color: var(--ink); }
.catalog-search button { min-width: 108px; border: 0; border-radius: 0 3px 3px 0; color: #fff; background: var(--copper); font-weight: 700; }
.catalog-search button:hover { background: var(--copper-dark); }
.account-link { justify-self: end; font-weight: 700; }
.department-nav { border-top: 1px solid var(--line); }
.department-nav__inner { display: flex; overflow-x: auto; scrollbar-width: thin; }
.department-nav a { flex: 0 0 auto; padding: 14px 17px; border-right: 1px solid var(--line); font: 700 13px/1 var(--sans); }
.department-nav a:hover, .department-nav a:focus-visible { color: var(--copper); background: var(--surface); }

.hero { position: relative; min-height: min(690px, calc(100vh - 160px)); background: var(--ink); color: #fff; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 500ms ease; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,18,16,.92) 0%, rgba(15,18,16,.78) 38%, rgba(15,18,16,.18) 76%); }
.hero__content { position: relative; z-index: 2; min-height: min(690px, calc(100vh - 160px)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 90px 130px; }
.eyebrow { margin: 0 0 14px; color: var(--copper); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { color: #e3a589; }
.hero h1, .hero h2 { max-width: 760px; margin: 0; font: 700 clamp(46px, 5.6vw, 78px)/1.02 var(--serif); }
.hero__content > p:not(.eyebrow) { max-width: 610px; margin: 24px 0 0; color: #e4e8e5; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 800; }
.button--primary, .button--buy { color: #fff; background: var(--copper); }
.button--primary:hover, .button--buy:hover { background: var(--copper-dark); }
.button--quiet { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(16,18,17,.28); }
.button--quiet:hover { background: rgba(16,18,17,.58); }
.hero__controls { position: absolute; z-index: 4; right: 0; bottom: 28px; left: 0; display: flex; align-items: center; gap: 14px; }
.hero__controls > button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: #fff; background: rgba(20,24,21,.55); font-size: 18px; }
.hero__controls div { display: flex; gap: 8px; }
.hero__controls [data-hero-dot] { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.hero__controls [data-hero-dot][aria-pressed="true"] { background: #fff; }
.hero__empty { min-height: 520px; display: flex; flex-direction: column; justify-content: center; }

.section { padding: 88px 0; }
.department-section { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 48px; margin-bottom: 36px; }
.section-heading h2, .standards-band h2, .product-copy-grid h2, .related-products h2 { margin: 0; font: 700 clamp(34px, 4vw, 52px)/1.08 var(--serif); }
.section-heading > p { margin: 0; color: var(--ink-soft); }
.department-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.department-tile { position: relative; min-height: 240px; overflow: hidden; padding: 0; border: 0; border-radius: 4px; color: #fff; text-align: left; background: var(--ink); }
.department-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.department-tile:hover img { transform: scale(1.035); }
.department-tile__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,18,17,.84), rgba(16,18,17,.04) 76%); }
.department-tile__content { position: absolute; right: 20px; bottom: 20px; left: 20px; display: flex; flex-direction: column; }
.department-tile small { font-size: 12px; text-transform: uppercase; }
.department-tile strong { margin-top: 5px; font: 700 25px/1.1 var(--serif); }

.catalogue-section { background: var(--paper); }
.catalogue-toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.filter-row button:hover, .filter-row button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.catalogue-status { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.catalogue-status p { margin: 0; }
.catalogue-status select { min-height: 36px; margin-inline: 6px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.product-card[hidden] { display: none; }
.product-card__image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.product-card__category { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.product-card h3 { min-height: 52px; margin: 0; font: 700 20px/1.3 var(--serif); overflow-wrap: anywhere; }
.product-card h3 a:hover { color: var(--copper); }
.product-card__excerpt { display: -webkit-box; min-height: 66px; margin: 13px 0; overflow: hidden; color: var(--ink-soft); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.product-card__price { margin: auto 0 16px; font: 700 20px/1.2 var(--serif); }
.product-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.button--details { border-color: var(--ink); color: var(--ink); background: #fff; }
.button--details:hover { color: #fff; background: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-weight: 700; }
.pagination button:hover, .pagination button.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.pagination button:disabled { cursor: default; opacity: .45; }
.empty-state { padding: 40px; border: 1px solid var(--line); text-align: center; }

.standards-band { padding: 72px 0; color: #fff; background: var(--ink); }
.standards-band__grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 42px; }
.standards-band article { padding-left: 20px; border-left: 1px solid #59615c; }
.standards-band article > strong { color: #e3a589; }
.standards-band h3 { margin: 18px 0 10px; font: 700 21px/1.2 var(--serif); }
.standards-band p { margin: 0; color: #cbd1cd; font-size: 14px; }

.site-footer { padding: 68px 0 26px; color: #e9ecea; background: #151816; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .8fr; gap: 48px; }
.brand--footer strong { color: #fff; }
.brand--footer span { color: #b8c0bb; }
.site-footer h2 { margin: 0 0 18px; color: #fff; font: 700 18px/1.2 var(--serif); }
.site-footer p, .site-footer a { color: #b8c0bb; font-size: 14px; }
.site-footer section > a:not(.brand) { display: block; margin: 0 0 9px; }
.site-footer section > a:hover { color: #fff; }
.price-notice { display: flex; justify-content: space-between; gap: 40px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #333a35; }
.price-notice p { margin: 0; max-width: 760px; font-size: 12px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px 0; color: var(--ink-soft); font-size: 13px; }
.breadcrumbs a:hover { color: var(--copper); }
.product-detail { padding-bottom: 82px; background: var(--surface); }
.product-detail__layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 58px; padding: 48px; background: #fff; }
.product-gallery__main { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.product-gallery__thumbs button { aspect-ratio: 1; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.product-gallery__thumbs button.is-active { border: 2px solid var(--green); }
.product-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { align-self: start; }
.product-summary h1 { margin: 0; font: 700 clamp(36px, 4vw, 56px)/1.08 var(--serif); overflow-wrap: anywhere; }
.product-summary__price { margin: 26px 0; font: 700 30px/1 var(--serif); }
.product-facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.product-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--ink-soft); font-size: 13px; }
.product-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.button--wide { width: 100%; min-height: 50px; }
.purchase-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }
.product-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1px; background: var(--line); }
.product-copy-grid > section { padding: 48px; background: #fff; }
.product-copy-grid h2 { font-size: 34px; }
.rich-copy { margin-top: 22px; color: var(--ink-soft); }
.related-products { padding-top: 72px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.related-grid article { border: 1px solid var(--line); background: #fff; }
.related-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.related-grid span, .related-grid strong { display: block; padding: 0 16px; }
.related-grid span { min-height: 58px; margin-top: 14px; font: 700 17px/1.3 var(--serif); }
.related-grid strong { padding-bottom: 16px; color: var(--copper); }
.standard-page { min-height: 55vh; padding: 64px 0; }
.standard-page h1 { font: 700 48px/1.05 var(--serif); }

@media (max-width: 1040px) {
  .site-header__main { grid-template-columns: 210px 1fr 70px; gap: 20px; }
  .department-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-band__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .product-detail__layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-shell { width: min(calc(100% - 28px), var(--max)); }
  .topline__inner { min-height: 34px; font-size: 11px; }
  .site-header__main { min-height: auto; grid-template-columns: 1fr auto; padding-block: 16px; }
  .brand strong { font-size: 27px; }
  .catalog-search { grid-column: 1 / -1; grid-row: 2; }
  .catalog-search input { height: 42px; }
  .catalog-search button { min-width: 86px; }
  .account-link { grid-column: 2; grid-row: 1; }
  .department-nav a { padding: 13px; }
  .hero, .hero__content { min-height: 590px; }
  .hero__content { justify-content: flex-end; padding-block: 88px 116px; }
  .hero h1, .hero h2 { font-size: 45px; }
  .hero__content > p:not(.eyebrow) { font-size: 15px; }
  .hero__shade { background: linear-gradient(0deg, rgba(15,18,16,.94) 0%, rgba(15,18,16,.62) 63%, rgba(15,18,16,.15)); }
  .section { padding: 62px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .section-heading h2, .standards-band h2 { font-size: 38px; }
  .department-grid, .product-grid, .related-grid { grid-template-columns: 1fr; }
  .department-tile { min-height: 220px; }
  .catalogue-status { align-items: flex-start; flex-direction: column; gap: 10px; }
  .filter-row { flex-wrap: nowrap; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; }
  .filter-row button { flex: 0 0 auto; }
  .product-card h3 { min-height: auto; }
  .product-card__excerpt { min-height: auto; }
  .standards-band__grid, .site-footer__grid, .product-copy-grid { grid-template-columns: 1fr; }
  .standards-band article { padding: 20px 0 0; border-top: 1px solid #59615c; border-left: 0; }
  .price-notice { flex-direction: column; gap: 16px; }
  .product-detail__layout, .product-copy-grid > section { padding: 24px; }
  .product-summary h1 { font-size: 38px; }
  .product-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-copy-grid { display: block; }
  .product-copy-grid > section + section { border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
