/* Bedding landing page styles */

/* =========================
   Base & Typography
   ========================= */

.amali-bedding-page {
  --bedding-burgundy: #7a0f21;
  --bedding-burgundy-dark: #4c0915;
  --bedding-cream: #f7f2eb;
  --bedding-cream-deep: #eadfd2;
  --bedding-ink: #181512;
  --bedding-muted: #6d655e;
  --bedding-line: rgba(72, 52, 38, 0.16);
  color: var(--bedding-ink);
  font-family: "Inter", sans-serif;
  padding-top: calc(var(--amali-nav-bottom-desktop) + 36px);
  padding-bottom: 120px;
  overflow-wrap: anywhere;
}

.admin-bar .amali-bedding-page {
  padding-top: calc(var(--amali-nav-bottom-desktop) + var(--amali-admin-offset-desktop) + 36px);
}

.amali-bedding-container {
  width: min(calc(100% - 32px), 1200px);
  margin-inline: auto;
}

.amali-bedding-page a:focus-visible,
.amali-bedding-page button:focus-visible,
.amali-bedding-page select:focus-visible {
  outline: 3px solid var(--bedding-burgundy);
  outline-offset: 3px;
}

.amali-bedding-eyebrow {
  margin: 0 0 10px;
  color: var(--bedding-burgundy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.amali-bedding-page h1,
.amali-bedding-page h2,
.amali-bedding-page h3 {
  margin-top: 0;
  color: var(--bedding-ink);
  font-family: "Playfair Display", serif;
  font-weight: 500;
  text-wrap: balance;
}

.amali-bedding-page .woocommerce-breadcrumb {
  margin: 0 0 24px;
  color: var(--bedding-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.amali-bedding-page .woocommerce-breadcrumb a {
  color: var(--bedding-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* =========================
   Hero Section
   ========================= */

.amali-bedding-hero {
  display: grid;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--bedding-line);
  border-radius: 28px;
  background: var(--bedding-cream);
  box-shadow: 0 24px 70px rgba(46, 29, 18, 0.1);
}

.amali-bedding-hero__content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 24px;
}

.amali-bedding-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 10vw, 5.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.amali-bedding-hero__intro > p {
  max-width: 660px;
  margin: 0;
  color: var(--bedding-muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.75;
}

.amali-bedding-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.amali-bedding-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.amali-bedding-button:hover {
  transform: translateY(-1px);
}

.amali-bedding-button--primary {
  background: var(--bedding-burgundy);
  color: #fff;
}

.amali-bedding-button--primary:hover {
  background: var(--bedding-burgundy-dark);
  color: #fff;
}

.amali-bedding-button--secondary {
  border-color: var(--bedding-line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--bedding-ink);
}

.amali-bedding-button--secondary:hover {
  border-color: var(--bedding-burgundy);
  color: var(--bedding-burgundy);
}

.amali-bedding-button--light {
  background: #fff;
  color: var(--bedding-burgundy);
}

.amali-bedding-hero__visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: linear-gradient(145deg, #b59c82, #ded0c0 52%, #8c7159);
}

.amali-bedding-hero__fold {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 46%;
  border-radius: 50%;
  filter: blur(1px);
}

.amali-bedding-hero__fold--one {
  left: -16%;
  background: linear-gradient(90deg, rgba(55, 36, 24, 0.45), rgba(255, 248, 239, 0.55), rgba(70, 47, 31, 0.28));
}

.amali-bedding-hero__fold--two {
  left: 30%;
  background: linear-gradient(90deg, rgba(51, 33, 22, 0.42), rgba(251, 240, 226, 0.62), rgba(72, 46, 28, 0.32));
}

.amali-bedding-hero__fold--three {
  right: -14%;
  background: linear-gradient(90deg, rgba(49, 31, 20, 0.5), rgba(242, 228, 210, 0.58), rgba(61, 38, 23, 0.42));
}

/* =========================
   Section Headings
   ========================= */

.amali-bedding-section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.amali-bedding-section-heading--centred {
  margin-inline: auto;
  text-align: center;
}

.amali-bedding-section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.12;
}

.amali-bedding-section-heading p:not(.amali-bedding-eyebrow) {
  color: var(--bedding-muted);
  line-height: 1.75;
}

/* =========================
   Category Cards
   ========================= */

.amali-bedding-categories {
  margin-top: var(--amali-catalogue-section-gap);
  padding: var(--amali-catalogue-section-padding) 0;
  background: #fff;
}

.amali-bedding-category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.amali-bedding-category-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(79, 58, 46, 0.10);
  border-radius: var(--amali-card-radius-compact);
  background: #fff;
  box-shadow: 0 10px 30px rgba(45, 29, 18, 0.055);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.amali-bedding-category-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.amali-bedding-category-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bedding-cream);
}

.amali-bedding-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.amali-bedding-category-card__media--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(125deg, transparent 35%, rgba(122, 15, 33, 0.08) 35% 52%, transparent 52%),
    linear-gradient(145deg, #f6efe7, #e5d4c3);
}

.amali-bedding-category-card__media--placeholder span {
  color: rgba(122, 15, 33, 0.48);
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  line-height: 1;
}

.amali-bedding-category-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 14px;
}

.amali-bedding-category-card__heading {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.amali-bedding-category-card h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.18;
}

.amali-bedding-category-card p {
  margin: 0;
  color: var(--bedding-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.amali-bedding-category-card__count {
  display: block;
  margin-top: 2px;
  color: var(--bedding-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.amali-bedding-category-card__action {
  display: flex;
  min-height: 32px;
  margin-top: 2px;
  align-items: center;
  justify-content: space-between;
  color: var(--bedding-burgundy);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}



@media (min-width: 981px) {
  .amali-bedding-category-card:hover,
  .amali-bedding-category-card:focus-within {
    border-color: rgba(122, 15, 33, 0.18);
    box-shadow: 0 16px 38px rgba(45, 29, 18, 0.08);
    transform: translateY(-2px);
  }

  .amali-bedding-category-card__link:hover
    .amali-bedding-category-card__media img,
  .amali-bedding-category-card__link:focus-visible
    .amali-bedding-category-card__media img {
    transform: scale(1.022);
  }
}

/* =========================
   Products Grid
   ========================= */

.amali-bedding-products-background {
  padding: var(--amali-catalogue-feature-padding) 0;
  background: var(--bedding-cream);
  margin-top: var(--amali-catalogue-section-gap);
}

#available-bedding ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px 18px;
  margin: 0;
  padding: 0;
}

#available-bedding ul.products::before,
#available-bedding ul.products::after {
  display: none;
}

#available-bedding ul.products li.product {
  display: flex;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
  float: none;
  border: 1px solid var(--amali-card-border);
  border-radius: var(--amali-card-radius-compact);
  background: var(--amali-card-surface);
  box-shadow: var(--amali-card-shadow);
  backdrop-filter: blur(var(--amali-card-blur));
  -webkit-backdrop-filter: blur(var(--amali-card-blur));
}

#available-bedding .woocommerce-loop-product__title {
  padding: 18px 18px 8px !important;
  font-family: "Playfair Display", serif;
  font-size: 1.16rem !important;
  line-height: 1.35;
}

#available-bedding ul.products li.product .price {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--bedding-burgundy);
  font-size: 0.95rem;
  font-weight: 700;
}

#available-bedding ul.products li.product .button {
  min-height: 44px;
  margin: auto 18px 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bedding-burgundy);
  color: #fff;
  line-height: 1.35;
  text-align: center;
}

/* =========================
   Bedding Category Archives
   ========================= */

.amali-bedding-archive__header {
  margin-bottom: 34px;
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--bedding-line);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, var(--bedding-cream) 100%);
  box-shadow: 0 20px 56px rgba(46, 29, 18, 0.08);
}

.amali-bedding-archive__header h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.amali-bedding-archive__description {
  max-width: 720px;
  margin: 0;
  color: var(--bedding-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.amali-bedding-archive__description p {
  margin: 0;
}

.amali-bedding-archive .woocommerce-notices-wrapper:empty {
  display: none;
}

.amali-bedding-archive .woocommerce-result-count {
  margin: 10px 0 24px;
  color: var(--bedding-muted);
  font-size: 0.88rem;
  line-height: 44px;
}

.amali-bedding-archive .woocommerce-ordering {
  margin: 10px 0 24px;
}

.amali-bedding-archive .woocommerce-ordering select {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 38px 8px 14px;
  border: 1px solid var(--bedding-line);
  border-radius: 999px;
  background-color: #fff;
  color: var(--bedding-ink);
  font: inherit;
}

.amali-bedding-archive ul.products {
  display: grid;
  clear: both;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 18px;
  margin: 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--bedding-line);
}

.amali-bedding-archive ul.products::before,
.amali-bedding-archive ul.products::after {
  display: none;
}

.amali-bedding-archive ul.products li.product {
  display: flex;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
  float: none;
  overflow: hidden;
  border: 1px solid var(--amali-card-border);
  border-radius: var(--amali-card-radius-compact);
  background: var(--amali-card-surface);
  box-shadow: var(--amali-card-shadow);
  backdrop-filter: blur(var(--amali-card-blur));
  -webkit-backdrop-filter: blur(var(--amali-card-blur));
}

.amali-bedding-archive ul.products li.product > a {
  color: inherit;
  text-decoration: none;
}

.amali-bedding-archive ul.products li.product img {
  margin-bottom: 0;
}

.amali-bedding-archive .woocommerce-loop-product__title {
  padding: 18px 18px 8px !important;
  font-family: "Playfair Display", serif;
  font-size: 1.16rem !important;
  line-height: 1.35;
}

.amali-bedding-archive ul.products li.product .price {
  margin: 0;
  padding: 0 18px 14px;
  color: var(--bedding-burgundy);
  font-size: 0.95rem;
  font-weight: 700;
}

.amali-bedding-archive ul.products li.product .button {
  min-height: 44px;
  margin: auto 18px 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bedding-burgundy);
  color: #fff;
  line-height: 1.35;
  text-align: center;
}

.amali-bedding-archive .woocommerce-pagination {
  margin-top: 48px;
}

.amali-bedding-archive .woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--bedding-line);
  border-radius: 999px;
}

.amali-bedding-archive .woocommerce-pagination .page-numbers li {
  border-color: var(--bedding-line);
}

.amali-bedding-archive .woocommerce-pagination a.page-numbers,
.amali-bedding-archive .woocommerce-pagination span.page-numbers {
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
}

.amali-bedding-archive .woocommerce-pagination .current {
  background: var(--bedding-burgundy);
  color: #fff;
}

/* =========================
   Bedding Single Products
   ========================= */

.amali-bedding-product.woocommerce div.product,
.amali-bedding-product.woocommerce-page div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  margin: 0;
}

.amali-bedding-product.woocommerce div.product::before,
.amali-bedding-product.woocommerce div.product::after {
  display: none;
}

.amali-bedding-product.woocommerce div.product div.images,
.amali-bedding-product.woocommerce-page div.product div.images,
.amali-bedding-product.woocommerce div.product div.summary,
.amali-bedding-product.woocommerce-page div.product div.summary {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

.amali-bedding-product .woocommerce-tabs,
.amali-bedding-product .related.products,
.amali-bedding-product .upsells.products {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .amali-bedding-product.woocommerce div.product,
  .amali-bedding-product.woocommerce-page div.product {
    grid-template-columns: minmax(0, 1fr);
  }

  .amali-bedding-product.woocommerce div.product div.images,
  .amali-bedding-product.woocommerce div.product div.summary {
    width: 100%;
  }
}

/* =========================
   Support Panel
   ========================= */

.amali-bedding-support {
  padding-top: var(--amali-catalogue-support-top);
}

.amali-bedding-support__panel {
  padding: var(--amali-catalogue-panel-padding);
  border-radius: 28px;
  background: var(--bedding-burgundy-dark);
  color: #fff;
  box-shadow: 0 20px 58px rgba(76, 9, 21, 0.18);
}

.amali-bedding-support h2,
.amali-bedding-support__panel > div > p:not(.amali-bedding-eyebrow) {
  color: #fff;
}

.amali-bedding-support__panel > div > p:not(.amali-bedding-eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  opacity: 0.82;
}

.amali-bedding-support .amali-bedding-eyebrow {
  color: #e8c9ce;
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 600px) {
  .amali-bedding-container {
    width: min(calc(100% - 48px), 1200px);
  }

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

  .amali-bedding-hero__content {
    padding: 56px 42px;
  }
}

@media (min-width: 900px) {
  .amali-bedding-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  }

  .amali-bedding-hero__visual {
    min-height: 100%;
  }

  .amali-bedding-support__panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    align-items: end;
    gap: 48px;
  }

  .amali-bedding-support__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .amali-bedding-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amali-bedding-hero__content {
    padding: 70px 64px;
  }
}

@media (max-width: 980px) {
  .amali-bedding-page {
    padding-top: calc(var(--amali-nav-bottom-mobile) + 14px);
  }

  .admin-bar .amali-bedding-page {
    padding-top: calc(var(--amali-nav-bottom-mobile) + var(--amali-admin-offset-mobile) + 16px);
  }
}

@media (max-width: 480px) {
  .amali-bedding-archive .woocommerce-result-count,
  .amali-bedding-archive .woocommerce-ordering {
    width: 100%;
    margin: 0 0 16px;
    float: none;
    line-height: 1.6;
  }

  .amali-bedding-archive .woocommerce-ordering select {
    width: 100%;
  }

  .amali-bedding-archive ul.products {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }

  .amali-bedding-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .amali-bedding-button {
    width: 100%;
  }
}

/* Bedding single products own navbar clearance at the site-main level.
   This overrides the legacy generic single-product padding without stacking
   a second clearance on the inner product wrapper. */
.amali-bedding-product .site-main {
  padding-top: calc(var(--amali-nav-bottom-desktop) + 24px);
}

.admin-bar.amali-bedding-product .site-main {
  padding-top: calc(var(--amali-nav-bottom-desktop) + var(--amali-admin-offset-desktop) + 24px);
}

.amali-bedding-product-page {
  padding-top: 0;
}

@media (max-width: 980px) {
  .amali-bedding-product .site-main {
    padding-top: calc(var(--amali-nav-bottom-mobile) + 16px);
  }

  .admin-bar.amali-bedding-product .site-main {
    padding-top: calc(var(--amali-nav-bottom-mobile) + var(--amali-admin-offset-mobile) + 16px);
  }
}

@media (min-width: 783px) and (max-width: 980px) {
  .admin-bar.amali-bedding-product .site-main {
    padding-top: calc(var(--amali-nav-bottom-mobile) + var(--amali-admin-offset-tablet) + 16px);
  }
}

@media (max-width: 599px) {
  .amali-bedding-category-card__heading {
    align-items: flex-start;
    gap: 12px;
  }

  .amali-bedding-category-card__action {
    font-size: 0.76rem;
  }
}
