/* ==========================================================================
   HOMELIFE FACTORY brand overrides
   ========================================================================== */

.logo-text {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  max-width: min(52vw, 220px);
}

.logo-mark {
  font-family: var(--font-primary, "Canela Text", Georgia, serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: inherit;
  padding: 10px 4px 10px 0;
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .logo-text {
    max-width: none;
  }

  .logo-mark {
    font-size: 18px;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 1024px) {
  .logo-mark {
    font-size: 20px;
    letter-spacing: 0.08em;
  }
}

.header--transparent:not(.header--opaque):not(.menu-open) .logo-mark {
  color: var(--color-cream);
}

.header--opaque .logo-mark,
.header.menu-open .logo-mark {
  color: var(--color-black);
}

/* ---- Header bar: larger type + easier hit targets ---- */
.header-logo {
  padding: 10px 0;
}

.header-inner {
  min-height: 56px;
}

@media (min-width: 1024px) {
  .header-inner {
    min-height: 64px;
  }

  .header-right {
    gap: 28px;
  }
}

.header-nav-links {
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .header-nav-links {
    font-size: 18px;
    gap: 6px;
  }
}

.header-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1.2;
}

.header-tools {
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .header-tools {
    font-size: 16px;
    gap: 6px;
  }
}

.header-tools .header-tool-link,
.header-tools .header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  line-height: 1.2;
  cursor: pointer;
}

.header-tools .icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 4px;
}

.header-tools .icon-btn svg {
  width: 30px;
  height: 30px;
}

.header-cart {
  font-size: inherit;
  position: relative;
}

.header-tools .cart-count-badge {
  right: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  font-size: 10px;
}

/* Mobile tools: bigger icons + tap area */
.header-tools-mobile {
  gap: 4px;
  margin-top: 0;
}

.header-tools-mobile .icon-btn,
.header-tools-mobile .menu-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.header-tools-mobile .icon-btn svg {
  width: 26px;
  height: 26px;
}

.header-tools-mobile .menu-btn svg {
  width: 18px;
  height: 18px;
}

.header-tools-mobile .cart-count-badge {
  right: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  font-size: 10px;
}

/* Subtle hover affordance on interactive header controls */
@media (hover: hover) {
  .header-nav-links a:hover,
  .header-tools .header-tool-link:hover,
  .header-tools .header-cart:hover {
    opacity: 0.72;
  }

  .header-tools .icon-btn:hover,
  .header-tools-mobile .icon-btn:hover,
  .header-tools-mobile .menu-btn:hover {
    background: rgba(56, 56, 56, 0.06);
  }

  .header--transparent:not(.header--opaque):not(.menu-open) .header-tools .icon-btn:hover,
  .header--transparent:not(.header--opaque):not(.menu-open) .header-tools-mobile .icon-btn:hover,
  .header--transparent:not(.header--opaque):not(.menu-open) .header-tools-mobile .menu-btn:hover {
    background: rgba(255, 254, 250, 0.12);
  }
}

/* Soft section bands — subtle canvas strip between cream blocks */
.section-band--canvas {
  background-color: var(--color-canvas, #f7f5ef);
}

.section-band--canvas .slider-with-images {
  padding-top: 32px !important;
  padding-bottom: 36px !important;
}

@media (min-width: 768px) {
  .section-band--canvas .slider-with-images {
    padding-top: 40px !important;
    padding-bottom: 44px !important;
  }
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 20px;
}

.section-heading h2 {
  font-family: var(--font-primary, "Canela Text", Georgia, serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin: 0;
}

.feature-lede {
  max-width: 28ch;
  margin: 12px 0 24px;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.85;
}

.products-row--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .products-row--two {
    grid-template-columns: 1fr;
  }
}

/* Product thumbs: keep lifestyle photos full-bleed and cropped consistently */
.product-thumb img,
.cat-slide-img img,
.room-slide-img img,
.flowbox-item img,
.hero-tile-img,
.text-image-img img,
.megamenu-image-frame img,
.article-card img,
.subpage-hero img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Full-bleed CTA banner: constrain tall product PNGs (do NOT use height:100%) */
a.hero-with-cta {
  display: block;
  text-decoration: none;
  color: inherit;
  max-height: min(72vh, 720px);
}

.hero-with-cta {
  max-height: min(72vh, 720px);
}

.hero-with-cta .hero-cta-img {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 720px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---- Gifts band: hero + follow-up pair as one story ---- */
.section-band--gifts {
  background: var(--color-canvas, #f7f5ef);
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .section-band--gifts {
    padding-bottom: 72px;
  }
}

.hero-with-cta--gifts {
  position: relative;
  max-width: none;
  max-height: min(56vh, 520px);
  margin: 0;
}

.hero-with-cta--gifts .hero-cta-img {
  max-height: min(56vh, 520px);
  object-position: center 35%;
}

.hero-with-cta--gifts::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(32, 28, 24, 0.55) 0%,
    rgba(32, 28, 24, 0.18) 45%,
    rgba(32, 28, 24, 0.05) 100%
  );
}

.hero-with-cta--gifts .hero-cta-caption {
  z-index: 2;
  padding: 28px 24px 32px;
  gap: 8px;
  max-width: 36rem;
}

.hero-cta-kicker {
  margin: 0;
  font-family: "teka", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0.85;
}

.hero-cta-sub {
  margin: 0 0 8px;
  font-family: "teka", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-cream);
  opacity: 0.9;
  max-width: 32ch;
}

@media (min-width: 1024px) {
  .hero-with-cta--gifts .hero-cta-title {
    font-size: 48px;
  }
}

.gifts-follow {
  padding-top: 40px;
}

@media (min-width: 768px) {
  .gifts-follow {
    padding-top: 56px;
  }
}

.gifts-follow-intro {
  max-width: 36rem;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 8px;
}

.gifts-follow-title {
  font-family: "canela", Georgia, serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--color-black);
}

.gifts-follow-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-price, #545454);
}

.gifts-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .gifts-pair {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.gifts-pair-card {
  display: flex;
  flex-direction: column;
  background: var(--color-cream, #fffefa);
  border: 1px solid rgba(56, 56, 56, 0.08);
  overflow: hidden;
}

.gifts-pair-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efeae2;
}

.gifts-pair-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gifts-pair-card:hover .gifts-pair-media img {
  transform: scale(1.03);
}

.gifts-pair-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  flex: 1;
}

.gifts-pair-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-label, #666);
}

.gifts-pair-name {
  font-family: "canela", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-black);
}

.gifts-pair-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-price, #545454);
  flex: 1;
}

.gifts-pair-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.gifts-pair-price {
  font-size: 15px;
  font-weight: 500;
}

.gifts-pair-meta .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.product-carousel-slide img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3efe8;
}

/* Category cards: caption below image so product photos stay unobstructed */
.cat-slide {
  display: flex;
  flex-direction: column;
}

.cat-slide-img {
  position: relative;
  aspect-ratio: 3 / 4;
  height: auto !important;
  max-height: none;
  overflow: hidden;
  background: #f3efe8;
}

.cat-slide-img img {
  transition: transform 0.6s ease;
}

.cat-slide:hover .cat-slide-img img {
  transform: scale(1.04);
}

.cat-slide-caption {
  position: static;
  bottom: auto;
  left: auto;
  padding: 14px 4px 4px;
}

.cat-slide-caption p {
  color: var(--color-black);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .cat-slide-caption p {
    font-size: 22px;
  }
}

/* Room slides: same treatment for consistency */
.room-slide-caption {
  position: static !important;
  padding: 14px 4px 4px !important;
}

.room-slide-caption p {
  color: var(--color-black) !important;
}

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

@media (min-width: 768px) {
  .flowbox-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.flowbox-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Subpage product grid denser for 6 items */
.products-row--catalog {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 16px;
}

.products-row--catalog .product-card {
  grid-column: span 6;
}

@media (min-width: 900px) {
  .products-row--catalog .product-card {
    grid-column: span 4;
  }
}

.products-row--catalog .product-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3efe8;
}

.products-row--catalog .product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.75;
}

.product-card[id] {
  scroll-margin-top: 120px;
}

/* Two-up row still uses 12-col system */
.products-row--two .product-card {
  grid-column: span 6;
}

@media (max-width: 767px) {
  .products-row--two .product-card {
    grid-column: span 12;
  }
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 48px 0;
}

@media (min-width: 768px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-value h3 {
  font-family: var(--font-primary, "Canela Text", Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
}

.about-value p {
  margin: 0;
  line-height: 1.55;
  opacity: 0.85;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
