:root {
  --brand: #6e1c26;
  --brand-d: #561520;
  --sale: #c0262d;
  --sand: #f3f0eb;
  --line: #e8e4de;
  --muted: #77716a;
  --ink: #1d1b19;
  --bs-body-font-family: "Figtree", system-ui, sans-serif;
  --header-glass: rgba(255, 255, 255, 0.82);
  --topbar-h: 36px;
}
#header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: 1030;
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line);
}
#header.is-stuck {
  box-shadow: 0 6px 24px rgba(29, 27, 25, 0.1);
}
body {
  color: var(--ink);
  font-size: 15px;
}
a {
  color: inherit;
  text-decoration: none;
}
.text-brand {
  color: var(--brand) !important;
}
.text-sale {
  color: var(--sale) !important;
}
.text-muted2 {
  color: var(--muted);
}
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.logo img {
  display: block;
  height: 46px;
  width: auto;
}
.search {
  background: var(--sand);
  border: 0;
  border-radius: 999px;
  padding: 11px 18px 11px 40px;
  width: 100%;
}
.search-wrap {
  position: relative;
  max-width: 450px;
  flex: 1;
}
.search-wrap > i {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--muted);
}
.mainnav {
  border-bottom: 1px solid var(--line);
}
.mainnav a {
  font-size: 13.5px;
  padding: 14px 9px;
  display: inline-block;
}
.mainnav a:hover {
  color: var(--brand);
}
.mainnav .sep {
  border-left: 1px solid var(--line);
  height: 18px;
  margin: 0 8px;
}
:root {
  --nav-surface: var(--on-brand);
  --nav-shadow: var(--hero-shadow);
}
.category-nav-list,
.category-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
}
.category-nav-item {
  position: relative;
  min-width: 0;
}
.category-nav-row {
  display: flex;
  align-items: center;
}
.category-nav-row > a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-nav-toggle.btn {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  padding: 0;
  flex-shrink: 0;
  width: 26px;
  height: 40px;
  font-size: 10px;
}
.category-nav-toggle:hover,
.category-nav-toggle[aria-expanded="true"] {
  color: var(--brand);
  background: var(--sand);
}
.category-nav-row > a:focus-visible,
.category-nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.category-submenu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 240px;
  max-width: calc(100vw - 24px);
  padding: 8px 0;
  background: var(--nav-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px var(--nav-shadow);
  z-index: 1050;
}
.category-submenu[hidden] {
  display: none;
}
.category-submenu .category-nav-row > a {
  flex: 1;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 1.4;
}
.category-submenu .category-nav-row:hover {
  background: var(--sand);
}
.category-submenu .category-nav-toggle {
  margin-right: 6px;
}
.category-submenu .category-submenu {
  top: -9px;
  left: 100%;
}
.category-submenu.align-end {
  left: auto;
  right: 0;
}
.category-submenu .category-submenu.opens-left {
  left: auto;
  right: 100%;
}
@media (max-width: 991px) {
  .category-nav-list {
    width: 100%;
    align-items: flex-start;
  }
  .category-nav-list > .category-nav-item {
    max-width: 100%;
  }
  .category-submenu {
    position: static;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    box-shadow: none;
    margin: 0 4px 8px;
    border-radius: 6px;
  }
  .category-submenu .category-submenu {
    margin-left: 12px;
    min-width: 0;
  }
  .category-nav-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
  }
  .category-nav-list > .category-nav-item > .category-nav-row > .category-nav-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }
}
.menu-toggle {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 15px;
  line-height: 1;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--sand);
}
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--on-brand);
}
@media (min-width: 992px) {
  .mobile-nav {
    display: block !important;
  }
  .mobile-search,
  .mobile-links {
    display: none;
  }
}
@media (max-width: 991px) {
  .menu-toggle {
    padding: 9px 12px;
  }
  .mobile-nav-inner {
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .mobile-search {
    margin-bottom: 12px;
  }
  .mobile-search .search {
    background: var(--sand);
  }
  .mobile-links {
    display: flex;
    gap: 22px;
    padding: 2px 4px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .mobile-links a {
    font-size: 14px;
  }
  .mainnav {
    border-bottom: 0;
  }
  .mainnav > .container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  .category-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .category-nav-list > .category-nav-item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .category-nav-row > a {
    flex: 1;
  }
  .mainnav a {
    padding: 12px 4px;
  }
  .mainnav > .container > .sep {
    display: none;
  }
  .mainnav > .container > a {
    padding: 12px 4px;
  }
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.btn-brand:hover {
  background: var(--brand-d);
  color: #fff;
}
.btn-outline-ink {
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 600;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.crumb [aria-current] {
  color: var(--ink);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  background: #fff;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip span {
  opacity: 0.6;
  margin-left: 4px;
}
.filters {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.filters .form-select,
.filters .form-control {
  font-size: 13px;
}
.pcard img {
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  border-radius: 6px;
  background: var(--sand);
}
.pcard .badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pcard .badge-ar {
  background: var(--brand);
  color: var(--on-brand);
  white-space: nowrap;
}
.badge-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
}
.badge-sale {
  background: var(--sale);
  color: #fff;
}
.badge-green {
  color: #2f7a3e;
}
.pcard .name {
  font-size: 14px;
  min-height: 38px;
  margin-top: 10px;
}
.pcard .price {
  font-weight: 700;
}
.pcard .old {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 12px;
  margin-left: 8px;
  font-weight: 400;
}
.card-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.card-pricing > .price {
  min-width: 0;
  flex: 1 1 100%;
  overflow-wrap: anywhere;
}
.card-pricing .old {
  display: block;
  margin-left: 0;
}
.card-pricing > .text-muted2 {
  flex-shrink: 0;
}
.search-item-price {
  white-space: normal;
  max-width: 50%;
  text-align: right;
  overflow-wrap: anywhere;
}
.search-item-name {
  min-width: 0;
}
.pcard .ship {
  font-size: 12px;
  color: var(--muted);
}
.delivery-card-price {
  display: block;
  margin-left: 20px;
  color: var(--ink);
  font-weight: 500;
}
.delivery-card-note {
  display: block;
  margin-left: 20px;
  line-height: 1.4;
}
.catalogue-destination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}
.catalogue-destination .form-control {
  width: 140px;
  font-size: 13px;
}
.product-delivery-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.product-delivery-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.product-delivery-options input[type="checkbox"] {
  accent-color: var(--brand);
}
.product-delivery-options .form-select {
  font-size: 13px;
}
.product-delivery-options .form-control {
  max-width: 74px;
}
.product-delivery-box .form-control {
  min-width: 0;
}
.product-delivery-result {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 12px;
}
.dimension-panel {
  background: var(--sand);
  border-radius: 6px;
  padding: 18px;
}
.dimension-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  font-size: 13px;
}
.dimension-values dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-bottom: 4px;
}
.dimension-values dd {
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}
.dimension-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 400/230;
  margin-top: 14px;
}
.dimension-caption {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.product-gallery-thumbs {
  flex-wrap: wrap;
}
#product > .row {
  margin-left: 0;
  margin-right: 0;
}
#product > .row > div {
  min-width: 0;
}
@media (max-width: 575px) {
  #product > .row > div {
    padding-left: 0;
    padding-right: 0;
  }
  .dimension-values {
    gap: 8px;
  }
}
/* Grid.js as card grid */
#productGrid .gridjs-wrapper {
  box-shadow: none;
  border: 0;
  overflow: visible;
}
#productGrid .gridjs-table,
#productGrid .gridjs-container {
  width: 100% !important;
}
#productGrid .gridjs-thead {
  display: none;
}
#productGrid .gridjs-tbody {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
  background: none;
}
@media (max-width: 992px) {
  #productGrid .gridjs-tbody {
    grid-template-columns: repeat(2, 1fr);
  }
}
#productGrid .gridjs-tr {
  display: block;
}
#productGrid td.gridjs-td {
  display: block;
  border: 0;
  padding: 0;
  background: none;
}
#productGrid .gridjs-footer {
  border: 0;
  box-shadow: none;
  padding: 32px 0 0;
  text-align: center;
}
#productGrid .gridjs-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  float: none;
}
#productGrid .gridjs-pages button {
  border-radius: 6px;
  margin: 0 2px;
  border: 1px solid var(--line);
}
#productGrid .gridjs-pages button.gridjs-currentPage {
  background: var(--ink);
  color: #fff;
}
.gallery-main {
  background: var(--sand);
  border-radius: 10px;
  aspect-ratio: 1.25;
  display: block;
  overflow: hidden;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb img {
  width: 66px;
  height: 62px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
}
.thumb.active img {
  border-color: var(--ink);
}
.variant-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 10px 4px 4px;
  font-size: 13px;
}
.variant-btn img {
  width: 34px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--sand);
}
.variant-btn.active {
  border-color: var(--ink);
}
.tag-soft {
  background: #f8e6e7;
  color: var(--brand);
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
}
.box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.qty {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.qty button {
  border: 0;
  background: none;
  width: 36px;
  height: 42px;
}
.qty input {
  width: 30px;
  border: 0;
  text-align: center;
}
.video-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: block;
}
.video-card img {
  width: 100%;
}
.video-card .play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
}
.video-card .play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.glightbox img {
  border-radius: 10px;
  width: 100%;
}
.proj-grid {
  columns: 2;
  column-gap: 16px;
}
.proj-photo {
  break-inside: avoid;
  margin-bottom: 16px;
}
.proj-photo img {
  width: 100%;
  border-radius: 6px;
  background: var(--sand);
}
@media (max-width: 575px) {
  .proj-grid {
    columns: 1;
  }
}
.info-ico {
  color: var(--brand);
  font-size: 18px;
  width: 26px;
}
footer {
  background: var(--sand);
  font-size: 14px;
}
footer h6 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
footer li {
  margin-bottom: 8px;
  color: var(--muted);
}
.footbar {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Homepage layout */
:root {
  --on-brand: #fff;
  --hero-scrim: rgba(29, 27, 25, 0.65);
  --hero-shadow: rgba(29, 27, 25, 0.28);
}
.home-main {
  padding-top: 24px;
}
.home-main h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.hero-primary {
  position: relative;
  min-height: 440px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sand);
}
.hero-primary > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-primary:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-scrim), transparent);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 65px 32px 32px;
  color: var(--on-brand);
  max-width: 470px;
}
.hero-copy h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.hero-copy p {
  font-size: 14px;
  max-width: 340px;
}
.hero-copy .btn {
  margin-top: 10px;
  background: var(--on-brand);
  color: var(--brand);
}
.hero-categories {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
}
.hero-category {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  background: var(--sand);
  padding: 12px;
  border-radius: 6px;
}
.hero-category img {
  width: 100%;
  height: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 4px;
}
.hero-category strong {
  font-size: 16px;
  line-height: 1.25;
  display: block;
  margin-bottom: 12px;
}
.hero-category span {
  display: block;
  color: var(--brand);
}
.home-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
}
.home-benefits > div {
  display: flex;
  gap: 12px;
}
.home-benefits i {
  color: var(--brand);
  margin-top: 3px;
}
.home-benefits strong {
  display: block;
  font-size: 13px;
}
.home-benefits small {
  font-size: 12px;
  color: var(--muted);
}
.home-section {
  margin-top: 64px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  font-size: 13px;
  color: var(--brand);
  white-space: nowrap;
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.room-featured {
  grid-column: span 2;
}
.room-card {
  background: var(--sand);
  border-radius: 6px;
  overflow: hidden;
}
.room-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.room-card > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  font-size: 13px;
}
.home-showroom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-showroom p {
  line-height: 1.7;
}
.reference-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
}
.home-main {
  padding-bottom: 24px;
}
@media (max-width: 991px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .hero-categories {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
  .hero-category {
    grid-template-columns: 1fr;
  }
  .home-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-showroom {
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
}
@media (max-width: 575px) {
  .hero-primary {
    min-height: 390px;
  }
  .hero-copy {
    padding: 48px 24px;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .hero-category {
    padding: 8px;
    gap: 8px;
  }
  .hero-category img {
    min-height: 70px;
    height: 70px;
  }
  .hero-category strong {
    font-size: 12px;
    min-height: 30px;
    margin-bottom: 6px;
  }
  .hero-category span {
    font-size: 11px;
  }
  .home-section {
    margin-top: 40px;
  }
  .home-main h2 {
    font-size: 21px;
  }
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .room-card img {
    height: 130px;
  }
  .home-showroom {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: baseline;
  }
  .section-heading > a {
    font-size: 11px;
  }
  .home-benefits {
    padding: 20px 0;
    gap: 16px 10px;
  }
  .home-benefits strong {
    font-size: 12px;
  }
  .home-benefits small {
    font-size: 11px;
  }
}

/* Session cart and checkout */
.cart-count {
  background: var(--brand);
  color: var(--on-brand);
}
.cart-drawer {
  --bs-offcanvas-width: 380px;
  max-width: 100%;
}
.cart-drawer .offcanvas-body {
  padding: 0 20px;
  overflow-y: auto;
}
.cart-drawer-bottom {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 86px;
  height: 86px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--sand);
}
.cart-item-content {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.cart-item-content a {
  overflow-wrap: anywhere;
}
.cart-item-price {
  font-size: 14px;
  text-align: right;
}
.cart-icon {
  border: 0;
  background: none;
  color: var(--muted);
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.cart-icon:hover {
  color: var(--sale);
}
.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  height: 32px;
  background: var(--on-brand);
}
.cart-qty button {
  width: 28px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--ink);
}
.cart-qty button:disabled {
  opacity: 0.35;
}
.cart-qty span,
.cart-qty input {
  width: 30px;
  text-align: center;
  font-size: 13px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
}
.cart-qty input {
  appearance: textfield;
}
.cart-qty input::-webkit-inner-spin-button {
  appearance: none;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 13px;
}
.summary-line span:last-child {
  text-align: right;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 16px;
}
.summary-total b {
  font-size: 13px;
}
.summary-total strong {
  font-size: 20px;
  line-height: 1.3;
  text-align: right;
  max-width: 70%;
  overflow-wrap: anywhere;
}
.empty-cart {
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}
.empty-cart > i {
  font-size: 32px;
}
.checkout-main {
  min-height: 680px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.checkout-left {
  min-width: 0;
}
.order-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
.order-summary p {
  font-size: 12px;
  line-height: 1.7;
}
.delivery-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.delivery-choice {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  font-size: 13px;
  align-items: flex-start;
}
.delivery-choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.delivery-choice input {
  margin-top: 3px;
  accent-color: var(--brand);
}
.delivery-choice small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.delivery-options {
  background: var(--sand);
  border-radius: 6px;
  padding: 18px;
}
.postcode-row {
  max-width: 320px;
}
.checkout-main .form-control {
  font-size: 14px;
}
.checkout-main input[type="checkbox"] {
  accent-color: var(--brand);
}
.order-success {
  text-align: center;
  padding: 100px 0;
}
@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }
  .delivery-methods {
    grid-template-columns: 1fr;
  }
  .order-summary {
    padding: 18px;
  }
  .summary-total strong {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
  }
  .checkout-main {
    min-height: 0;
  }
  .cart-item img {
    width: 68px;
    height: 68px;
  }
  .delivery-methods {
    grid-template-columns: 1fr;
  }
  .cart-drawer .cart-item {
    gap: 10px;
  }
  .cart-drawer .summary-total strong {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .offcanvas,
  .offcanvas-backdrop {
    transition: none !important;
  }
}

/* Delivery information and order receipt */
:root {
  --confirmation: #2e7142;
}
.delivery-main {
  max-width: 820px;
}
.delivery-intro {
  max-width: 520px;
  line-height: 1.65;
}
.delivery-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.estimate-sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.estimate-sizes .delivery-choice {
  min-height: 78px;
  padding: 12px;
}
.estimate-sizes .delivery-choice:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.delivery-estimate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sand);
  border-radius: 6px;
  padding: 22px;
}
.delivery-estimate strong {
  font-size: 23px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.delivery-estimate small {
  font-size: 11px;
}
.delivery-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.delivery-tariffs {
  width: 100%;
  font-size: 12px;
}
.delivery-tariffs td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.delivery-tariffs td:last-child {
  text-align: right;
  padding-left: 12px;
}
.delivery-note {
  background: var(--sand);
  border-radius: 6px;
  padding: 14px;
  margin-top: 20px;
}
.confirmation-icon {
  display: block;
  color: var(--confirmation);
  font-size: 44px;
  margin-bottom: 24px;
}
.finish-main {
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 64px 20px;
}
.finish-content {
  text-align: center;
  max-width: 550px;
}
.finish-content p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
}
.finish-content .btn {
  padding: 13px 22px;
}
body:has(.finish-main) footer {
  margin-top: 0 !important;
}
@media (max-width: 767px) {
  .delivery-calculator {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }
  .delivery-information {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .delivery-estimate {
    min-height: 160px;
  }
  .finish-main {
    min-height: 440px;
    padding: 54px 20px;
  }
  .finish-content p {
    font-size: 15px;
  }
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  z-index: 1050;
  max-height: 420px;
  overflow: auto;
  padding: 6px;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.search-item:hover,
.search-item.active {
  background: var(--sand);
}
.search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
  position: static;
}
.search-item-name {
  flex: 1;
  font-size: 0.9rem;
  min-width: 0;
}
.search-item-price {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: normal;
  max-width: 50%;
  text-align: right;
  overflow-wrap: anywhere;
}
.search-all {
  display: block;
  padding: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  border-top: 1px solid var(--sand);
  margin-top: 4px;
  text-decoration: none;
}
.search-empty {
  padding: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Legal document tabs — same pill look as the category chips */
.nav-pills .nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--on-brand);
  color: var(--muted);
  font-size: 13px;
  padding: 6px 16px;
  margin: 0 6px 8px 0;
}
.nav-pills .nav-link:hover {
  color: var(--brand);
  background: var(--sand);
  border-color: var(--sand);
}
.nav-pills .nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.nav-pills .nav-link.active {
  background: var(--ink);
  color: var(--on-brand);
  border-color: var(--ink);
}

/* ============= Hover states and motion polish ============= */
@media (prefers-reduced-motion: no-preference) {
  /* Shared transition bases */
  .btn,
  .chip,
  .variant-btn,
  .thumb img,
  .pcard,
  .pcard img,
  .room-card img,
  .hero-category img,
  .reference-image img,
  .proj-photo img,
  .video-card img,
  .video-card .play i,
  .cart-icon,
  .cart-qty button,
  .qty button,
  .delivery-choice,
  .search-item,
  .nav-pills .nav-link,
  .gridjs-pages button,
  .category-submenu .category-nav-row > a,
  .menu-toggle,
  .category-nav-toggle,
  footer a,
  .mainnav a,
  .crumb a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
      box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }

  /* Buttons: lift on hover, settle on press */
  .btn-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(110, 28, 38, 0.45);
  }
  .btn-brand:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px -4px rgba(110, 28, 38, 0.4);
  }
  .btn-outline-ink:hover {
    background: var(--ink);
    color: var(--on-brand);
  }
  .btn-outline-ink:active {
    transform: scale(0.98);
  }

  /* Product cards: lift, image zoom, shipping hint emphasis */
  .pcard img {
    transition: transform 0.4s ease;
  }
  .pcard:hover {
    transform: translateY(-4px);
  }
  .pcard:hover img {
    transform: scale(1.05);
  }
  .pcard:hover .name {
    color: var(--brand);
  }
  .pcard:hover .ship {
    color: var(--brand);
  }
  .pcard .name {
    transition: color 0.2s ease;
  }
  .pcard .ship {
    transition: color 0.2s ease;
  }
  .pcard:hover .badge-pill {
    transform: translateY(0) scale(1.04);
  }

  /* Room and hero cards: zoom + arrow nudge */
  .room-card img,
  .hero-category img,
  .reference-image img,
  .proj-photo img {
    transition: transform 0.45s ease;
  }
  .room-card:hover img,
  .hero-category:hover img,
  .reference-image:hover img,
  .proj-photo:hover img {
    transform: scale(1.06);
  }
  .room-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
  }
  .room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -14px var(--hero-shadow);
  }
  .room-card i {
    transition: transform 0.25s ease;
  }
  .room-card:hover i {
    transform: translateX(4px);
  }
  .hero-category {
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }
  .hero-category:hover {
    background: #ece8e1;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px var(--hero-shadow);
  }
  .hero-category span i,
  .hero-category .fa-arrow-right {
    transition: transform 0.25s ease;
  }
  .hero-category:hover .fa-arrow-right {
    transform: translateX(4px);
  }
  .hero-primary > img {
    transition: transform 6s ease;
  }
  .hero-primary:hover > img {
    transform: scale(1.06);
  }
  .video-card .play i {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .video-card:hover .play i {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }

  /* Chips, filters, variant choices */
  .chip:not(.active):hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
  }
  .variant-btn:not(.active):hover {
    border-color: var(--brand);
  }
  .variant-btn.active {
    box-shadow: inset 0 0 0 1px var(--ink);
  }
  .thumb:not(.active):hover img {
    border-color: var(--brand);
    opacity: 0.85;
  }
  .thumb.active img {
    transition: border-color 0.2s ease;
  }
  .nav-pills .nav-link:not(.active):hover {
    transform: translateY(-1px);
  }
  .delivery-choice:not(:has(input:checked)):hover {
    border-color: var(--brand);
    box-shadow: 0 4px 14px -8px var(--hero-shadow);
  }

  /* Navigation: animated underline */
  .mainnav a,
  .mobile-links a {
    position: relative;
  }
  .mainnav > .container > a:after,
  .category-nav-list > .category-nav-item > .category-nav-row > a:after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 8px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .mainnav > .container > a:hover:after,
  .category-nav-list > .category-nav-item > .category-nav-row > a:hover:after {
    transform: scaleX(1);
  }
  .category-submenu .category-nav-row > a {
    transition: background-color 0.15s ease, padding-left 0.15s ease, color 0.15s ease;
  }
  .category-submenu .category-nav-row > a:hover {
    padding-left: 20px;
    color: var(--brand);
  }
  .footer-links a {
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  footer a:hover {
    color: var(--brand);
  }
  .crumb a {
    transition: color 0.2s ease;
  }

  /* Small controls */
  .cart-icon:hover {
    transform: scale(1.15);
  }
  .cart-qty button:not(:disabled):hover,
  .qty button:hover {
    background: var(--sand);
    color: var(--brand);
  }
  .cart-qty button:not(:disabled):active,
  .qty button:active {
    transform: scale(0.9);
  }
  .gridjs-pages button:hover {
    border-color: var(--brand);
    color: var(--brand);
  }
  .gridjs-pages button.gridjs-currentPage {
    transition: background-color 0.2s ease;
  }
  .search-item:hover,
  .search-item.active {
    padding-left: 12px;
  }
  .search-item {
    transition: color 0.2s ease, background-color 0.2s ease, padding 0.2s ease;
  }

  /* Search dropdown entrance */
  .search-results:not(.d-none) {
    animation: search-drop 0.22s ease both;
  }
  @keyframes search-drop {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Product grid: cards ease in when the page or filters change */
  #productGrid .gridjs-tr {
    animation: card-in 0.4s ease both;
  }
  #productGrid .gridjs-tr:nth-child(-n + 12) {
    animation-delay: calc((var(--card-i, 0)) * 0s);
  }
  @keyframes card-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .home-main section,
  .home-section {
    animation: none;
  }

  /* Success page: gentle pop for the confirmation icon */
  .order-success .confirmation-icon,
  .finish-content .confirmation-icon {
    animation: confirm-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  @keyframes confirm-pop {
    from {
      opacity: 0;
      transform: scale(0.5);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Cart count badge pop */
  #cartCount:not(.d-none) {
    animation: badge-pop 0.3s ease;
  }
  @keyframes badge-pop {
    0% {
      transform: scale(0.6);
    }
    60% {
      transform: scale(1.25);
    }
    100% {
      transform: scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pcard:hover,
  .room-card:hover,
  .hero-category:hover,
  .chip:not(.active):hover,
  .btn-brand:hover {
    transform: none;
  }
  .pcard:hover img,
  .room-card:hover img,
  .hero-category:hover img {
    transform: none;
  }
}

/* Team and catalogs on the references page */
.team-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.team-body {
  padding: 1rem;
}
.team-link {
  display: block;
  font-size: 13px;
  color: var(--brand);
  margin-top: 2px;
}
.catalog-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.catalog-cover {
  width: 96px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  align-self: flex-start;
}
