:root {
  --bg: #f5f5f1;
  --surface: #ffffff;
  --surface-soft: #faf8f1;
  --text: #111111;
  --primary: #0d2d62;
  --accent: #f3c343;
  --accent-soft: #f8e6ab;
  --muted: #545454;
  --border: #d7d7d1;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
  --radius: 8px;
  --radius-sm: 6px;
  --container: 1360px;
  --space-1: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-6) 0;
}

.section-tight {
  padding-top: var(--space-5);
}

.section-soft {
  background: var(--surface);
}

.page-main {
  padding-top: 5.25rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.06);
}

.header-row {
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--primary);
}

.logo-badge {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 0.92;
}

.logo-text span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desktop-nav,
.desktop-actions,
.header-actions,
.mobile-actions,
.mobile-nav,
.trust-labels,
.hero-actions,
.section-heading,
.product-meta,
.best-sellers,
.newsletter-form,
.toolbar-controls,
.shop-toolbar,
.results-bar,
.field-row {
  display: flex;
  align-items: center;
}

.desktop-nav {
  justify-content: center;
  gap: 1.75rem;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: #3d3d3d;
  font-size: 0.95rem;
  font-weight: 500;
}

.desktop-nav a.active,
.mobile-nav a.active,
.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.desktop-actions {
  gap: 1.15rem;
}

.mobile-actions {
  display: none;
  justify-content: flex-end;
  gap: 0.35rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  position: relative;
}

.badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.2rem;
  min-height: 1.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
}

.action-icon::before,
.action-icon::after,
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
}

.search-button::before {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-0.12rem, -0.12rem);
}

.search-button::after {
  width: 0.52rem;
  height: 2px;
  background: currentColor;
  transform: translate(0.46rem, 0.46rem) rotate(45deg);
  transform-origin: center;
}

.account-button::before {
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(-0.35rem);
}

.account-button::after {
  width: 1rem;
  height: 0.56rem;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.7rem 0.7rem;
  transform: translateY(0.5rem);
}

.cart-button::before {
  width: 1rem;
  height: 0.78rem;
  border: 2px solid currentColor;
  border-radius: 0 0 0.22rem 0.22rem;
  transform: translateY(0.12rem);
}

.cart-button::after {
  width: 0.58rem;
  height: 0.34rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
  transform: translateY(-0.53rem);
}

.menu-button::before {
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0.32rem 0 currentColor, 0 -0.32rem 0 currentColor;
}

.mobile-panel,
.mobile-filter-panel {
  display: none;
}

.mobile-panel.open,
.mobile-filter-panel.open {
  display: block;
}

.mobile-panel-inner {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.06);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mobile-search input,
#shop-search,
select,
label input,
textarea,
.newsletter-form input,
#contact-form input {
  width: 100%;
}

.mobile-nav {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  padding-top: 5.25rem;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.hero-home {
  background-image: url("assets/images/living-room-decor.jpg");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 24, 46, 0.72) 0%, rgba(10, 24, 46, 0.42) 48%, rgba(10, 24, 46, 0.08) 100%);
}

.hero-content,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 46rem;
  padding: 3.5rem 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: inherit;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  max-width: 17ch;
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-copy {
  margin-top: 1.25rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.hero-actions {
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.trust-labels {
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.trust-labels span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #164184;
}

.btn-secondary {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #eef3fb;
}

.section-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.5rem;
}

.inline-link {
  color: var(--primary);
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.category-card,
.product-card,
.review-card,
.contact-card,
.newsletter-box,
.collection-story,
.mini-product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.category-card {
  overflow: hidden;
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.category-card span {
  display: block;
  padding: 1rem;
  color: var(--primary);
  font-weight: 600;
  background: #fff;
}

.product-grid {
  display: grid;
  gap: 1.25rem;
}

.product-grid-home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: none;
}

.product-media img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
}

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.product-tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-meta {
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.campaign-banner,
.story-grid,
.about-grid,
.contact-layout,
.shop-layout {
  display: grid;
  gap: 1.5rem;
}

.campaign-banner {
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.campaign-copy {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.campaign-media img,
.story-media img,
.collection-image img,
.about-media img,
.contact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-media img {
  min-height: 100%;
}

.best-sellers {
  gap: 1rem;
  align-items: stretch;
}

.mini-product {
  flex: 1;
  padding: 1rem;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.mini-product img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.story-grid,
.about-grid,
.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-copy,
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.story-media,
.about-media,
.contact-media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 26rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  padding: 1.6rem;
  background: #fffefb;
}

.review-card strong {
  display: block;
  margin-top: 1rem;
}

.newsletter-box {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(90deg, #fff6d8 0%, #fff 100%);
}

.newsletter-form {
  gap: 0.75rem;
  min-width: min(100%, 28rem);
}

.newsletter-form input,
#shop-search,
select,
#contact-form input,
#contact-form textarea,
.mobile-search input {
  min-height: 3.1rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0 1rem;
  color: var(--text);
}

#contact-form textarea {
  min-height: 10rem;
  border-radius: 4px;
  padding: 1rem;
  resize: vertical;
}

.page-hero {
  padding: calc(5.25rem + 2rem) 0 2rem;
  background: linear-gradient(180deg, #f3f4ef 0%, #f5f5f1 100%);
}

.page-hero .container {
  padding: 2rem 0;
}

.shop-layout {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.filters-sidebar,
.mobile-filter-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.filter-block + .filter-block {
  margin-top: 1.5rem;
}

.filter-block h3 {
  margin-bottom: 0.85rem;
}

.filter-block label {
  display: flex;
  gap: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.shop-toolbar {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-toggle {
  display: none;
}

.toolbar-controls {
  gap: 0.8rem;
  flex: 1;
  justify-content: flex-end;
}

#shop-search {
  max-width: 22rem;
}

select {
  max-width: 14rem;
}

.results-bar {
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--muted);
}

.shop-product.hidden {
  display: none;
}

.collection-stack {
  display: grid;
  gap: 1.5rem;
}

.collection-story {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
}

.collection-story.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.collection-story.reverse .collection-image {
  order: 2;
}

.collection-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.collection-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
  min-height: 26rem;
}

.collection-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.collection-previews div {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: #fbfbf8;
}

.collection-previews strong,
.collection-previews span {
  display: block;
}

.contact-side {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
}

#contact-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  gap: 1rem;
  align-items: start;
}

#contact-form label {
  display: block;
  color: var(--primary);
  font-weight: 600;
}

#contact-form input,
#contact-form textarea {
  margin-top: 0.45rem;
}

.form-feedback {
  min-height: 1.25rem;
  color: var(--primary);
  font-size: 0.92rem;
}

.site-footer {
  background: #10305f;
  color: rgba(255, 255, 255, 0.76);
  padding: 3.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-grid h3,
.footer-logo {
  color: #fff;
}

.footer-logo .logo-badge {
  background: #fff;
  color: var(--primary);
}

.footer-logo .logo-text span:first-child {
  color: #fff;
}

.footer-logo .logo-text span:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.65rem;
}

body.menu-open,
body.filter-open {
  overflow: hidden;
}

.section-utility-band {
  padding: 1.25rem 0 0;
}

.utility-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
}

.utility-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: #fff;
}

.utility-copy {
  background: #fffef8;
}

.utility-highlight {
  background: var(--accent);
  color: #111;
}

.utility-highlight.soft {
  background: #dbe8fb;
}

.utility-highlight strong,
.utility-highlight a {
  display: block;
  color: #111;
  font-family: "Manrope", sans-serif;
}

.utility-highlight a {
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.room-grid {
  display: grid;
  gap: 1.5rem;
}

.room-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.room-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.room-panel img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}

.room-panel div {
  padding: 1rem;
}

@media (max-width: 1180px) {
  .utility-grid,
  .room-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .best-sellers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 70vh;
  }

  .campaign-banner,
  .story-grid,
  .about-grid,
  .shop-layout,
  .contact-layout,
  .collection-story,
  .collection-story.reverse {
    grid-template-columns: 1fr;
  }

  .collection-story.reverse .collection-image {
    order: 0;
  }

  .filters-sidebar {
    display: none;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .toolbar-controls {
    justify-content: stretch;
  }

  #shop-search,
  select {
    max-width: none;
  }

  .mobile-filter-panel {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.4);
    z-index: 45;
    padding: 1rem;
  }

  .mobile-filter-inner {
    width: min(100%, 26rem);
    margin-left: auto;
    height: calc(100vh - 2rem);
    overflow: auto;
  }

  .mobile-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .desktop-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .logo {
    min-width: 0;
  }

  .logo-badge {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.72rem;
  }

  .logo-text span:first-child {
    font-size: 1rem;
  }

  .logo-text span:last-child {
    font-size: 0.72rem;
  }

  .product-grid-home,
  .reviews-grid,
  .utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-box,
  .newsletter-form,
  .shop-toolbar,
  .toolbar-controls,
  .field-row {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form {
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 560px;
  }

  .section {
    padding: 4rem 0;
  }

  .product-grid-home,
  .shop-grid,
  .reviews-grid,
  .best-sellers,
  .collection-previews,
  .utility-grid,
  .room-panels,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .best-sellers {
    display: grid;
  }

  .mini-product {
    grid-template-columns: 72px 1fr;
  }

  .mini-product strong {
    grid-column: 2;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding: 2.5rem 0;
  }

  .logo {
    gap: 0.55rem;
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .logo-text span:last-child {
    letter-spacing: 0.02em;
  }

  .hero-actions,
  .trust-labels {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .newsletter-form button,
  .mobile-search button {
    width: 100%;
  }
}
