.home-hero,
.section-block,
.service-strip,
.stats-strip {
  max-width: 1440px;
}

/* Home landing refinement: category-led, product-free homepage */
.category-showcase-shell {
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 92% 8%, rgba(182, 145, 88, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 228, 0.95));
}

.category-showcase-intro {
  max-width: 58ch;
  margin: 8px 0 0;
  color: #607065;
  line-height: 1.85;
  font-weight: 700;
}

.category-hub-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
}

.category-hub-copy {
  max-width: 680px;
}

.category-hub-panel {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid rgba(23, 76, 60, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(182, 145, 88, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 244, 236, 0.92));
  box-shadow: 0 22px 52px rgba(18, 44, 35, 0.1);
}

.category-hub-panel__eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-hub-panel strong {
  max-width: 26ch;
  color: #16362c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  line-height: 1.55;
}

.category-hub-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-hub-panel__chips span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.06);
  color: #466559;
  font-size: 0.8rem;
  font-weight: 800;
}

.category-grid.premium-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.category-tile.premium-category-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: 22px;
  min-height: 286px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(23, 76, 60, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 231, 0.96));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile.premium-category-tile::after {
  content: "";
  position: absolute;
  inset-inline-end: -50px;
  bottom: -64px;
  width: 210px;
  height: 210px;
  z-index: -1;
  background: url('../images/home-art/heritage-lattice-soft.svg') center / contain no-repeat;
  opacity: 0.16;
  transform: rotate(-10deg);
}

.category-tile.premium-category-tile:hover,
.category-tile.premium-category-tile:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(23, 76, 60, 0.18);
  box-shadow: 0 30px 62px rgba(17, 41, 32, 0.13);
  outline: none;
}

.category-tile.premium-category-tile.has-image {
  min-height: 318px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(11, 38, 30, 0.14), rgba(11, 38, 30, 0.82)),
    var(--category-image) center / cover no-repeat;
}

.category-tile.premium-category-tile.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 244, 223, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 54, 42, 0.48), rgba(8, 25, 20, 0.18));
}

.premium-category-tile .category-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.12), rgba(182, 145, 88, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.premium-category-tile .category-meta {
  display: grid;
  gap: 10px;
  align-self: end;
}

.premium-category-tile .category-meta h4 {
  margin: 0;
  color: #16362c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.28;
}

.premium-category-tile .category-count-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.8rem;
  font-weight: 900;
}

.premium-category-tile .category-meta p {
  margin: 0;
  color: #607065;
  line-height: 1.75;
  font-size: 0.92rem;
}

.premium-category-tile .category-meta b {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #174c3c;
  color: #fff4df;
  font-size: 0.86rem;
  font-weight: 900;
}

.premium-category-tile.has-image .category-meta h4,
.premium-category-tile.has-image .category-count-pill,
.premium-category-tile.has-image .category-meta p,
.premium-category-tile.has-image .category-meta b {
  color: #fff4df;
}

.premium-category-tile.has-image .category-count-pill {
  background: rgba(255, 244, 223, 0.16);
  border: 1px solid rgba(255, 244, 223, 0.18);
}

.premium-category-tile.has-image .category-meta p {
  color: rgba(255, 244, 223, 0.84);
}

.premium-category-tile.has-image .category-meta b {
  background: rgba(255, 244, 223, 0.92);
  color: #173c31;
}

.editorial-card.is-story .editorial-media {
  background:
    linear-gradient(135deg, rgba(14, 58, 45, 0.86), rgba(24, 84, 67, 0.5)),
    url('../images/home-art/artisan-market-story.webp') center / cover no-repeat;
}

html[data-theme='dark'] .category-showcase-shell,
html[data-theme='dark'] .category-tile.premium-category-tile {
  background:
    radial-gradient(circle at 92% 8%, rgba(182, 145, 88, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(15, 31, 26, 0.98), rgba(11, 21, 18, 0.96));
}

html[data-theme='dark'] .category-showcase-intro,
html[data-theme='dark'] .premium-category-tile .category-meta p {
  color: rgba(231, 239, 233, 0.76);
}

@media (max-width: 767px) {
  .category-grid.premium-category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile.premium-category-tile,
  .category-tile.premium-category-tile.has-image {
    min-height: 250px;
    padding: 22px;
    border-radius: 24px;
  }

  .category-hub-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.home-hero {
  width: 100%;
  max-width: none;
  margin: 28px 0 0;
  padding: 0 22px;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-carousel,
.hero-panel-card,
.deal-card,
.product-tile,
.category-tile,
.service-card,
.stat-card,
.quick-view-modal .modal-content {
  border-radius: 30px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  box-shadow: 0 24px 56px rgba(17, 41, 32, 0.08);
}

.hero-carousel {
  min-height: 560px;
  background:
    linear-gradient(140deg, rgba(16, 53, 42, 0.96), rgba(26, 79, 63, 0.86)),
    #174c3c;
}

.hero-carousel .carousel-item,
.hero-slide,
.hero-overlay {
  min-height: 560px;
}

.hero-overlay {
  padding: 42px;
  background:
    linear-gradient(108deg, rgba(15, 51, 40, 0.88) 0%, rgba(18, 73, 58, 0.58) 45%, rgba(18, 73, 58, 0.08) 100%);
}

.hero-content {
  max-width: 640px;
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.2), rgba(255, 248, 236, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 30px;
}

.hero-content h1 {
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 52ch;
  margin-bottom: 24px;
}

.hero-actions {
  gap: 12px;
}

.btn-solid,
.btn-outline {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn-solid {
  background: linear-gradient(135deg, #fff1d7, #dcb980);
  color: #16362c;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.btn-outline {
  border-color: rgba(255, 241, 215, 0.56);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  gap: 18px;
}

.hero-panel-card {
  background: rgba(255, 251, 245, 0.92);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel-card.has-media {
  background:
    linear-gradient(135deg, rgba(12, 42, 33, 0.8), rgba(20, 67, 53, 0.46)),
    var(--panel-image) center/cover no-repeat;
  color: #fff7eb;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-panel-card.has-media p,
.hero-panel-card.has-media .mini-cats a {
  color: rgba(255, 247, 235, 0.88);
}

.hero-panel-card.has-media .btn-outline,
.hero-panel-card.has-media .btn-solid {
  box-shadow: 0 14px 30px rgba(6, 22, 17, 0.18);
}

.hero-panel-card::before {
  content: '';
  position: absolute;
  inset: -36% auto auto -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(182, 145, 88, 0.16), transparent 68%);
}

.hero-panel-card > * {
  position: relative;
  z-index: 1;
}

.hero-panel-card h3,
.section-header-inline h2 {
  font-family: 'El Messiri', 'Cairo', sans-serif;
  color: #16362c;
}

.hero-panel-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.hero-panel-card p {
  color: #657164;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mini-cats a {
  background: rgba(23, 76, 60, 0.06);
  border-color: rgba(23, 76, 60, 0.08);
  padding: 8px 14px;
}

.section-block {
  margin: 28px auto;
  padding: 0 18px;
}

.section-header-inline {
  margin-bottom: 18px;
  align-items: end;
}

.section-header-inline h2 {
  font-size: clamp(1.6rem, 2vw, 2.25rem);
}

.section-link {
  color: #174c3c;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(23, 76, 60, 0.08);
  border-radius: 999px;
  padding: 10px 16px;
}

.deal-grid {
  gap: 18px;
}

.deal-card,
.category-tile,
.service-card,
.stat-card {
  background: rgba(255, 252, 247, 0.92);
}

.deal-card img {
  height: 190px;
}

.deal-body {
  padding: 18px;
}

.deal-title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.product-tile {
  background: rgba(255, 252, 247, 0.94);
  padding: 10px;
  min-height: 100%;
}

.product-thumb {
  height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 76, 60, 0.05), rgba(182, 145, 88, 0.08));
}

.product-thumb-link {
  display: block;
  height: 100%;
}

.product-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f6f1;
  padding: 12px;
}

.quick-view-trigger {
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(23, 76, 60, 0.08);
  color: #174c3c;
  box-shadow: 0 14px 28px rgba(23, 76, 60, 0.16);
}

.quick-view-trigger:hover,
.quick-view-trigger:focus-visible {
  transform: translateY(-2px) scale(1.04);
  background: #174c3c;
  color: #fff;
  outline: none;
}

.product-meta {
  padding: 18px 10px 8px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #16362c;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  margin: 10px 0;
  color: #b69158;
}

.product-rating .text-muted {
  color: #7e7a72 !important;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price .price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #174c3c;
}

.product-price .price-old {
  color: #9a8f81;
}

.qty-actions,
.secondary-actions {
  gap: 8px;
}

.qty-btn,
.btn-ghost,
.quick-view-detail-link {
  border-radius: 999px;
  min-height: 44px;
}

.qty-btn {
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  border: 1px solid rgba(23, 76, 60, 0.08);
  font-weight: 800;
}

.qty-btn.hot {
  background: linear-gradient(135deg, #174c3c, #23624f);
  color: #fff;
}

.btn-ghost,
.quick-view-detail-link {
  background: rgba(255, 255, 255, 0.7);
  color: #174c3c;
  border: 1px solid rgba(23, 76, 60, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.service-strip,
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px auto 0;
  padding: 0 18px;
}

.service-card,
.stat-card {
  padding: 26px 22px;
  border: 1px solid rgba(23, 76, 60, 0.08);
}

.service-card i,
.stat-number {
  color: #174c3c;
}

.service-card h4,
.stat-number {
  font-family: 'El Messiri', 'Cairo', sans-serif;
}

.stat-number {
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
}

.stat-card .stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(23, 76, 60, 0.78);
  opacity: 1;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.category-tile {
  border: 1px solid rgba(23, 76, 60, 0.08);
  padding: 22px;
  text-decoration: none;
  color: inherit;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.12), rgba(182, 145, 88, 0.18));
  color: #174c3c;
}

.category-tile.has-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 39, 31, 0.76), rgba(24, 72, 58, 0.42)),
    var(--category-image) center/cover no-repeat;
  border-color: rgba(255, 255, 255, 0.08);
}

.category-tile.has-image .category-icon {
  background: rgba(255, 248, 236, 0.18);
  color: #fff4df;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.category-tile.has-image .category-meta h4,
.category-tile.has-image .category-meta span {
  color: #fff4df;
}

.category-tile.has-image .category-meta span {
  opacity: 0.82;
}

.quick-view-modal .modal-content {
  background: rgba(255, 252, 247, 0.98);
}

.quick-view-modal .modal-header {
  border-bottom: 1px solid rgba(23, 76, 60, 0.08);
}

.quick-view-modal .modal-body {
  padding: 24px;
}

html[data-theme='dark'] .product-title,
html[data-theme='dark'] .product-price .price,
html[data-theme='dark'] .section-link,
html[data-theme='dark'] .category-tile.has-image .category-meta h4,
html[data-theme='dark'] .hero-panel-card.has-media h3 {
  color: #ebf5ef;
}

html[data-theme='dark'] .product-rating .text-muted,
html[data-theme='dark'] .product-price .price-old {
  color: #b7c9bf !important;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-carousel,
  .hero-carousel .carousel-item,
  .hero-slide,
  .hero-overlay {
    min-height: 460px;
  }

  .service-strip,
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-hero,
  .section-block,
  .service-strip,
  .stats-strip {
    padding-inline: 14px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-content {
    padding: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }

  .product-tile {
    padding: 12px;
    border-radius: 24px;
  }

  .product-meta {
    padding: 14px 4px 4px;
  }

  .product-title {
    font-size: 1rem;
    line-height: 1.65;
    min-height: auto;
  }

  .product-price .price {
    font-size: 1.15rem;
  }

  .quick-view-trigger {
    width: 46px;
    height: 46px;
    top: 14px;
    left: 14px;
  }

  .quick-view-modal .modal-dialog {
    margin: 0.85rem;
  }

  .quick-view-modal .modal-body {
    padding: 18px 16px;
  }

  .product-thumb {
    height: clamp(220px, 58vw, 280px);
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-thumb {
    height: clamp(230px, 68vw, 320px);
  }
}

/* Home rails */
.section-block {
  margin: clamp(26px, 4vw, 56px) auto;
  padding-inline: 18px;
}

.section-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 34px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.94), rgba(248, 244, 236, 0.9));
  box-shadow: 0 26px 60px rgba(18, 44, 35, 0.08);
}

.section-shell::before {
  content: '';
  position: absolute;
  inset: -35% auto auto -8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(182, 145, 88, 0.12), transparent 72%);
  pointer-events: none;
}

.section-shell > * {
  position: relative;
  z-index: 1;
}

.accent-shell {
  background:
    linear-gradient(140deg, rgba(17, 68, 53, 0.96), rgba(31, 95, 75, 0.9));
  border-color: rgba(255, 255, 255, 0.08);
}

.accent-shell::before {
  background: radial-gradient(circle, rgba(255, 241, 215, 0.14), transparent 72%);
}

.accent-shell .section-kicker,
.accent-shell .section-header-inline h2,
.accent-shell .section-link {
  color: #fff4df;
}

.section-heading-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c6a38;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}

.carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 76, 60, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: #174c3c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(19, 48, 38, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  transform: translateY(-2px);
  background: #174c3c;
  color: #fff;
  outline: none;
  box-shadow: 0 18px 34px rgba(19, 48, 38, 0.18);
}

.product-carousel,
.promo-carousel {
  position: relative;
  display: flex !important;
  align-items: stretch;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.product-carousel::-webkit-scrollbar,
.promo-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel > .product-tile {
  flex: 0 0 clamp(232px, 20vw, 282px);
  min-width: 0;
  scroll-snap-align: start;
}

.promo-carousel > .deal-card {
  flex: 0 0 clamp(260px, 26vw, 360px);
  scroll-snap-align: start;
}

.carousel-sentinel {
  flex: 0 0 1px;
  width: 1px;
  min-width: 1px;
  padding: 0;
  margin: 0;
  align-self: stretch;
}

.section-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 24px;
  padding: 20px;
  color: #5c695e;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(23, 76, 60, 0.16);
  text-align: center;
}

.product-carousel .section-empty {
  flex: 0 0 min(340px, 100%);
}

.product-carousel.is-loading {
  cursor: progress;
}

.product-carousel.is-loading::after {
  content: '';
  flex: 0 0 clamp(232px, 20vw, 282px);
  min-height: 372px;
  border-radius: 14px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background:
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.74) 48%, transparent 78%) 0 0 / 240px 100%,
    linear-gradient(180deg, #f3eadf 0 58%, #fffaf3 58% 100%);
  animation: homeSkeletonSweep 1.2s ease-in-out infinite;
}

.product-carousel.is-hydrating {
  min-height: 420px;
  overflow: hidden;
  cursor: progress;
}

.product-carousel.is-hydrating > .product-tile,
.product-carousel.is-hydrating > .carousel-sentinel {
  opacity: 0;
  pointer-events: none;
}

.home-rail-skeleton {
  position: absolute;
  inset: 4px 2px 10px;
  z-index: 5;
  display: flex;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
  pointer-events: none;
}

.product-carousel:not(.is-hydrating) .home-rail-skeleton {
  display: none;
}

.home-skeleton-card {
  flex: 0 0 clamp(232px, 20vw, 282px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 372px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background: #fffaf3;
  box-shadow: 0 12px 30px rgba(18, 44, 35, 0.08);
}

.home-skeleton-media,
.home-skeleton-line,
.home-skeleton-actions {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 12px;
  background: #efe5d8;
}

.home-skeleton-media::after,
.home-skeleton-line::after,
.home-skeleton-actions::after,
.product-carousel.is-loading::after {
  background-position: -240px 0;
}

.home-skeleton-media::after,
.home-skeleton-line::after,
.home-skeleton-actions::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.72) 48%, transparent 78%) 0 0 / 240px 100%;
  animation: homeSkeletonSweep 1.2s ease-in-out infinite;
}

.home-skeleton-media {
  height: 206px;
}

.home-skeleton-line {
  width: 58%;
  height: 16px;
}

.home-skeleton-line.wide {
  width: 88%;
  height: 18px;
}

.home-skeleton-actions {
  margin-top: auto;
  height: 34px;
}

@keyframes homeSkeletonSweep {
  100% {
    background-position: 240px 0;
  }
}

.section-promo-block .section-shell {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(246, 240, 228, 0.92));
}

.section-promo-block .deal-card img {
  height: 210px;
}

#categories .section-shell {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 246, 239, 0.92));
}

.service-strip,
.stats-strip {
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding-inline: 18px;
}

html[data-theme='dark'] .section-shell {
  background:
    linear-gradient(180deg, rgba(15, 31, 26, 0.98), rgba(11, 21, 18, 0.96));
  border-color: rgba(183, 201, 191, 0.12);
}

html[data-theme='dark'] .section-shell::before {
  background: radial-gradient(circle, rgba(182, 145, 88, 0.11), transparent 72%);
}

html[data-theme='dark'] .accent-shell {
  background:
    linear-gradient(140deg, rgba(18, 73, 58, 0.96), rgba(11, 44, 34, 0.96));
}

html[data-theme='dark'] .carousel-arrow,
html[data-theme='dark'] .section-empty {
  background: rgba(11, 21, 18, 0.82);
  border-color: rgba(183, 201, 191, 0.14);
  color: #ebf5ef;
}

html[data-theme='dark'] .section-kicker {
  color: #d8c08c;
}

@media (max-width: 1100px) {
  .product-carousel > .product-tile {
    flex-basis: clamp(224px, 30vw, 276px);
  }

  .promo-carousel > .deal-card {
    flex-basis: clamp(248px, 38vw, 340px);
  }
}

@media (max-width: 767px) {
  .section-block,
  .service-strip,
  .stats-strip {
    padding-inline: 14px;
  }

  .section-shell {
    padding: 18px 16px;
    border-radius: 26px;
  }

  .section-header-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .product-carousel,
  .promo-carousel {
    gap: 12px;
  }

  .product-carousel > .product-tile {
    flex-basis: clamp(226px, 80vw, 302px);
  }

  .promo-carousel > .deal-card {
    flex-basis: clamp(248px, 82vw, 320px);
  }

  .section-link {
    min-height: 40px;
    padding-inline: 14px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
  }
}

.promo-popup-modal,
.quick-view-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.promo-popup-modal.show,
.quick-view-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.promo-popup-modal {
  padding: clamp(16px, 2vw, 28px);
  z-index: 1095;
}

.promo-popup-modal .modal-dialog,
.quick-view-modal .modal-dialog {
  position: relative;
}

.promo-popup-modal .modal-dialog {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.promo-popup-modal .modal-dialog.modal-dialog-centered {
  min-height: calc(100dvh - (clamp(16px, 2vw, 28px) * 2));
}

.promo-popup-modal .modal-content {
  border: 0;
  border-radius: 34px;
  overflow: hidden;
  max-height: min(88dvh, 860px);
  background:
    radial-gradient(circle at top left, rgba(182, 145, 88, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(246, 240, 229, 0.98));
  box-shadow: 0 30px 80px rgba(14, 30, 24, 0.18);
  z-index: 10001  !important;
}

.promo-popup-modal .modal-content,
.quick-view-modal .modal-content {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.promo-popup-close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  padding: 10px;
}

.promo-popup-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  min-height: 420px;
}

.promo-popup-media {
  background: linear-gradient(180deg, rgba(23, 76, 60, 0.08), rgba(182, 145, 88, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.promo-popup-media img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.16));
}

.promo-popup-copy {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.promo-popup-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.84rem;
  font-weight: 800;
}

.promo-popup-copy h3 {
  margin: 0;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  color: #16362c;
}

.promo-popup-copy p {
  margin: 0;
  color: #5f6c61;
  line-height: 1.9;
  font-size: 1rem;
}

.promo-popup-price {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.promo-popup-price strong {
  font-size: 2rem;
  color: #174c3c;
  font-weight: 900;
}

.promo-popup-price del {
  color: #8d8376;
  font-size: 1.1rem;
}

.promo-popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(197, 72, 53, 0.1);
  color: #b23d2d;
  font-weight: 800;
}

.promo-popup-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.modal-backdrop.show {
  opacity: 1;
  background: rgba(11, 25, 20, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme='dark'] .promo-popup-modal .modal-content {
  background:
    radial-gradient(circle at top left, rgba(182, 145, 88, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(15, 31, 25, 0.98), rgba(24, 46, 39, 0.98));
}

html[data-theme='dark'] .promo-popup-copy h3,
html[data-theme='dark'] .promo-popup-kicker,
html[data-theme='dark'] .promo-popup-price strong {
  color: #f6efe1;
}

html[data-theme='dark'] .promo-popup-copy p,
html[data-theme='dark'] .promo-popup-price del {
  color: rgba(246, 239, 225, 0.72);
}

html[data-theme='dark'] .promo-popup-kicker {
  background: rgba(246, 239, 225, 0.08);
}

html[data-theme='dark'] .promo-popup-close {
  background-color: rgba(18, 28, 25, 0.88);
  filter: invert(1);
}

html[data-theme='dark'] .modal-backdrop.show {
  background: rgba(3, 10, 8, 0.5);
}

@media (max-width: 768px) {
  .promo-popup-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .promo-popup-media {
    padding: 22px 22px 0;
  }

  .promo-popup-media img {
    max-height: 220px;
  }

  .promo-popup-copy {
    padding: 20px 22px 24px;
  }

  .promo-popup-modal {
    padding: 12px;
  }

  .promo-popup-modal .modal-dialog.modal-dialog-centered {
    min-height: calc(100dvh - 24px);
  }

  .promo-popup-modal .modal-content {
    max-height: calc(100dvh - 24px);
  }
}

/* Handmade homepage story rail */
.artisan-home-page {
  position: relative;
  isolation: isolate;
  padding-bottom: 20px;
}

.artisan-home-page::before,
.artisan-home-page::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.artisan-home-page::before {
  inset: 4% auto auto -10%;
  width: min(34vw, 460px);
  height: min(34vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 145, 88, 0.14), transparent 72%);
  filter: blur(10px);
}

.artisan-home-page::after {
  inset: auto -9% 6% auto;
  width: min(30vw, 380px);
  height: min(30vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 76, 60, 0.1), transparent 72%);
  filter: blur(12px);
}

.artisan-home-page > * {
  position: relative;
  z-index: 1;
}

#artisan-story,
#offers,
#personalized,
#trending,
#new-arrivals,
#on-sale,
#categories {
  scroll-margin-top: 118px;
}

.has-thread-bridge {
  position: relative;
}

.has-thread-bridge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: 2px;
  height: 64px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(182, 145, 88, 0), rgba(182, 145, 88, 0.78) 18%, rgba(23, 76, 60, 0.78) 82%, rgba(23, 76, 60, 0));
  opacity: 0.92;
  pointer-events: none;
}

.has-thread-bridge::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 5px;
  border: 1px solid rgba(182, 145, 88, 0.34);
  background: linear-gradient(135deg, rgba(255, 246, 228, 0.96), rgba(233, 215, 185, 0.9));
  box-shadow: 0 10px 18px rgba(18, 44, 35, 0.08);
  pointer-events: none;
}

.artisan-story-shell {
  overflow: visible;
  padding-top: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(248, 241, 230, 0.96));
}

.artisan-story-header {
  align-items: flex-start;
}

.artisan-story-intro {
  max-width: 36ch;
  margin: 0;
  color: #5f675c;
  line-height: 1.95;
  font-size: 1rem;
}

.artisan-story-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 42px);
}

.artisan-story-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  min-height: min(88vh, 820px);
  padding-block: 10px;
}

.artisan-story-card + .artisan-story-card {
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px dashed rgba(23, 76, 60, 0.16);
}

.artisan-story-visual-col {
  position: relative;
}

.artisan-story-visual {
  position: sticky;
  top: 112px;
  display: block;
  padding: 16px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 244, 234, 0.9));
  border: 1px solid rgba(23, 76, 60, 0.1);
  box-shadow: 0 28px 64px rgba(18, 44, 35, 0.12);
}

.artisan-story-visual::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.artisan-story-visual img {
  width: 100%;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  background: #f4ead8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.artisan-story-chip {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.9);
  color: #fff7eb;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 14px 26px rgba(15, 38, 31, 0.22);
}

.artisan-story-frame-copy {
  position: absolute;
  right: 32px;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 57, 45, 0.9), rgba(14, 38, 31, 0.74));
  color: #fff4df;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(15, 38, 31, 0.22);
}

.artisan-story-frame-copy strong {
  display: block;
  margin-bottom: 6px;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: 1.15rem;
}

.artisan-story-frame-copy p {
  margin: 0;
  color: rgba(255, 244, 223, 0.88);
  font-size: 0.92rem;
  line-height: 1.75;
}

.artisan-story-copy {
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 16px;
  padding-top: clamp(10px, 2vw, 28px);
}

.artisan-story-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.1), rgba(182, 145, 88, 0.18));
  color: #174c3c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(23, 76, 60, 0.06);
}

.artisan-story-copy h3 {
  margin: 0;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(1.9rem, 2.4vw, 3rem);
  line-height: 1.25;
  color: #16362c;
}

.artisan-story-copy > p {
  margin: 0;
  color: #59655b;
  font-size: 1.02rem;
  line-height: 2;
  max-width: 58ch;
}

.artisan-story-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.artisan-story-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 76, 60, 0.1);
  color: #234739;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 20px rgba(19, 48, 38, 0.06);
}

.artisan-story-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.artisan-thread-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 76, 60, 0.1);
  color: #174c3c;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(19, 48, 38, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.artisan-thread-link:hover,
.artisan-thread-link:focus-visible {
  transform: translateY(-2px);
  background: #174c3c;
  color: #fff5e2;
  outline: none;
  box-shadow: 0 18px 32px rgba(19, 48, 38, 0.16);
}

.artisan-story-card.is-weaver .artisan-story-chip,
.artisan-story-card.is-weaver .artisan-story-frame-copy {
  background:
    linear-gradient(180deg, rgba(114, 67, 41, 0.92), rgba(74, 43, 30, 0.78));
}

.artisan-story-card.is-copper .artisan-story-chip,
.artisan-story-card.is-copper .artisan-story-frame-copy {
  background:
    linear-gradient(180deg, rgba(23, 76, 60, 0.92), rgba(16, 49, 39, 0.8));
}

.artisan-story-card.is-market .artisan-story-chip,
.artisan-story-card.is-market .artisan-story-frame-copy {
  background:
    linear-gradient(180deg, rgba(104, 85, 41, 0.92), rgba(64, 52, 28, 0.78));
}

html[data-theme='dark'] .artisan-home-page::before {
  background: radial-gradient(circle, rgba(182, 145, 88, 0.12), transparent 72%);
}

html[data-theme='dark'] .artisan-home-page::after {
  background: radial-gradient(circle, rgba(23, 76, 60, 0.16), transparent 72%);
}

html[data-theme='dark'] .has-thread-bridge::before {
  background: linear-gradient(135deg, rgba(31, 55, 47, 0.98), rgba(18, 31, 26, 0.98));
  border-color: rgba(216, 192, 140, 0.24);
}

html[data-theme='dark'] .has-thread-bridge::after {
  background:
    linear-gradient(180deg, rgba(216, 192, 140, 0), rgba(216, 192, 140, 0.62) 18%, rgba(120, 163, 148, 0.56) 82%, rgba(120, 163, 148, 0));
}

html[data-theme='dark'] .artisan-story-shell {
  background:
    linear-gradient(180deg, rgba(17, 32, 27, 0.98), rgba(12, 24, 20, 0.96));
}

html[data-theme='dark'] .artisan-story-intro,
html[data-theme='dark'] .artisan-story-copy > p {
  color: rgba(231, 239, 233, 0.78);
}

html[data-theme='dark'] .artisan-story-copy h3 {
  color: #eef6f0;
}

html[data-theme='dark'] .artisan-story-visual,
html[data-theme='dark'] .artisan-story-notes span,
html[data-theme='dark'] .artisan-thread-link {
  background: rgba(15, 31, 26, 0.86);
  border-color: rgba(183, 201, 191, 0.12);
  color: #ebf5ef;
}

@media (max-width: 1100px) {
  .artisan-story-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .has-thread-bridge::after {
    height: 44px;
    bottom: -34px;
  }

  .has-thread-bridge::before {
    bottom: -10px;
    width: 14px;
    height: 14px;
  }

  .artisan-story-header {
    gap: 12px;
  }

  .artisan-story-intro {
    max-width: none;
    font-size: 0.95rem;
  }

  .artisan-story-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 0;
  }

  .artisan-story-card + .artisan-story-card {
    padding-top: 24px;
  }

  .artisan-story-visual {
    position: relative;
    top: auto;
    padding: 12px;
    border-radius: 28px;
  }

  .artisan-story-chip {
    top: 20px;
    right: 20px;
    min-height: 34px;
    padding-inline: 14px;
  }

  .artisan-story-frame-copy {
    right: 20px;
    left: 20px;
    bottom: 20px;
    padding: 14px 16px;
  }

  .artisan-story-copy {
    padding-top: 0;
    gap: 14px;
  }

  .artisan-story-step {
    width: 60px;
    height: 60px;
  }

  .artisan-story-copy h3 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .artisan-story-copy > p {
    font-size: 0.96rem;
    line-height: 1.9;
  }

  .artisan-story-notes span,
  .artisan-thread-link {
    width: 100%;
    justify-content: center;
  }

  .artisan-story-actions {
    gap: 10px;
  }
}

/* Refined artisan story layout */
.artisan-story-shell {
  max-width: 1320px;
  margin-inline: auto;
}

.artisan-story-header {
  justify-content: space-between;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.artisan-story-header .section-heading-group {
  max-width: 32rem;
}

.artisan-story-header h2 {
  max-width: 13ch;
  line-height: 1.18;
}

.artisan-story-intro {
  max-width: 42ch;
  font-size: 0.98rem;
}

.artisan-story-stack {
  gap: clamp(22px, 2.8vw, 32px);
}

.artisan-story-card {
  max-width: 1180px;
  margin-inline: auto;
  min-height: auto;
  grid-template-columns: minmax(270px, 410px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding-block: 4px;
}

.artisan-story-card + .artisan-story-card {
  padding-top: clamp(22px, 3vw, 30px);
}

.artisan-story-card.is-reversed .artisan-story-visual-col {
  order: 2;
}

.artisan-story-card.is-reversed .artisan-story-copy {
  order: 1;
}

.artisan-story-visual {
  margin: 0;
  top: 118px;
  max-width: 410px;
  margin-inline: auto;
  padding: 12px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 244, 234, 0.9));
  box-shadow: 0 18px 40px rgba(18, 44, 35, 0.1);
}

.artisan-story-visual::before {
  inset: 10px;
  border-radius: 22px;
}

.artisan-story-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(247, 239, 224, 0.9), rgba(233, 220, 198, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.artisan-story-image-frame img {
  width: 100%;
  display: block;
  max-height: 540px;
  object-fit: cover;
}

.artisan-story-chip {
  top: 20px;
  right: 20px;
  min-height: 34px;
  padding-inline: 14px;
  font-size: 0.74rem;
}

.artisan-story-frame-copy {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  margin: 14px 4px 2px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(244, 233, 214, 0.92));
  color: #214538;
  border: 1px solid rgba(23, 76, 60, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 28px rgba(18, 44, 35, 0.08);
}

.artisan-story-frame-copy strong {
  color: #16362c;
  margin-bottom: 5px;
  font-size: 1.02rem;
}

.artisan-story-frame-copy p {
  color: #5f685d;
  font-size: 0.88rem;
  line-height: 1.7;
}

.artisan-story-card.is-weaver .artisan-story-frame-copy {
  background: linear-gradient(180deg, rgba(252, 245, 236, 0.96), rgba(241, 228, 211, 0.92));
}

.artisan-story-card.is-copper .artisan-story-frame-copy {
  background: linear-gradient(180deg, rgba(239, 248, 244, 0.96), rgba(226, 239, 232, 0.92));
}

.artisan-story-card.is-market .artisan-story-frame-copy {
  background: linear-gradient(180deg, rgba(250, 247, 237, 0.96), rgba(241, 235, 217, 0.92));
}

.artisan-story-copy {
  padding-top: 0;
}

.artisan-story-copy-shell {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 251, 243, 0.84));
  box-shadow: 0 22px 48px rgba(18, 44, 35, 0.08);
  overflow: hidden;
}

.artisan-story-copy-shell::before {
  content: '';
  position: absolute;
  inset: auto auto -32px -24px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 145, 88, 0.16), transparent 70%);
  pointer-events: none;
}

.artisan-story-copy-shell > * {
  position: relative;
  z-index: 1;
}

.artisan-story-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.artisan-story-route {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.06);
  border: 1px solid rgba(23, 76, 60, 0.09);
  color: #305546;
  font-size: 0.86rem;
  font-weight: 800;
}

.artisan-story-step {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 1.15rem;
}

.artisan-story-copy h3 {
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  max-width: 18ch;
}

.artisan-story-copy > p,
.artisan-story-copy-shell > p {
  max-width: 54ch;
  font-size: 0.97rem;
  line-height: 1.95;
}

.artisan-story-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.artisan-story-points li {
  position: relative;
  padding: 11px 48px 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 76, 60, 0.08);
  color: #234739;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 10px 20px rgba(19, 48, 38, 0.04);
}

.artisan-story-points li::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, #c8a566 0 34%, #174c3c 38% 100%);
  box-shadow: 0 0 0 5px rgba(23, 76, 60, 0.08);
}

.artisan-story-actions {
  margin-top: 2px;
}

.artisan-thread-link {
  min-height: 46px;
}

html[data-theme='dark'] .artisan-story-frame-copy {
  background: linear-gradient(180deg, rgba(18, 37, 31, 0.94), rgba(13, 27, 22, 0.94));
  border-color: rgba(183, 201, 191, 0.12);
}

html[data-theme='dark'] .artisan-story-frame-copy strong,
html[data-theme='dark'] .artisan-story-route,
html[data-theme='dark'] .artisan-story-points li {
  color: #eef6f0;
}

html[data-theme='dark'] .artisan-story-frame-copy p,
html[data-theme='dark'] .artisan-story-intro,
html[data-theme='dark'] .artisan-story-copy-shell > p {
  color: rgba(231, 239, 233, 0.76);
}

html[data-theme='dark'] .artisan-story-copy-shell {
  background: linear-gradient(180deg, rgba(15, 31, 26, 0.76), rgba(11, 21, 18, 0.92));
  border-color: rgba(183, 201, 191, 0.12);
}

html[data-theme='dark'] .artisan-story-route,
html[data-theme='dark'] .artisan-story-points li {
  background: rgba(15, 31, 26, 0.78);
  border-color: rgba(183, 201, 191, 0.12);
}

@media (max-width: 1100px) {
  .artisan-story-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .artisan-story-card,
  .artisan-story-card.is-reversed {
    grid-template-columns: 1fr;
  }

  .artisan-story-card.is-reversed .artisan-story-visual-col,
  .artisan-story-card.is-reversed .artisan-story-copy {
    order: initial;
  }

  .artisan-story-visual {
    position: relative;
    top: auto;
    max-width: 430px;
  }

  .artisan-story-copy h3 {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .artisan-story-shell {
    padding-top: 18px;
  }

  .artisan-story-header {
    margin-bottom: 16px;
  }

  .artisan-story-card {
    gap: 16px;
  }

  .artisan-story-visual {
    max-width: 100%;
    padding: 10px;
  }

  .artisan-story-image-frame img {
    max-height: 480px;
  }

  .artisan-story-frame-copy {
    margin: 12px 2px 2px;
    padding: 13px 14px;
  }

  .artisan-story-copy-shell {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .artisan-story-kicker-row {
    margin-bottom: 12px;
  }

  .artisan-story-route {
    min-height: 34px;
    font-size: 0.8rem;
  }

  .artisan-story-points li {
    padding: 10px 42px 10px 12px;
    font-size: 0.89rem;
  }
}

/* Premium homepage orchestration */
.home-marketplace-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 34px;
  background: linear-gradient(180deg, #f7f1e7 0%, #fffdf9 24%, #f6efe2 100%);
}

.home-marketplace-page::before,
.home-marketplace-page::after {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.home-marketplace-page::before {
  top: 88px;
  inset-inline-end: -120px;
  width: 540px;
  height: 540px;
  opacity: 0.24;
  background-image: url('../images/home-art/heritage-lattice-soft.svg');
  animation: none;
}

.home-marketplace-page::after {
  bottom: 120px;
  inset-inline-start: -180px;
  width: 620px;
  height: 620px;
  opacity: 0.34;
  background-image: url('../images/home-art/heritage-orbit-glow.svg');
  animation: none;
}

.home-marketplace-page > * {
  position: relative;
  z-index: 1;
}

.market-alert-strip,
.home-command-section,
.market-highlights-section,
.market-cta-band {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 18px;
}

.market-alert-strip {
  margin-top: 22px;
}

.market-alert-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 24px;
  border: 1px solid rgba(23, 76, 60, 0.1);
  background:
    radial-gradient(circle at top right, rgba(182, 145, 88, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 231, 0.96));
  box-shadow: 0 18px 36px rgba(17, 41, 32, 0.08);
}

.market-alert-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url('../images/home-art/heritage-thread-lines.svg') no-repeat left 18px center / 280px,
    radial-gradient(circle at 14% 30%, rgba(255, 255, 255, 0.34), transparent 18%);
  opacity: 0.5;
}

.market-alert-shell > * {
  position: relative;
  z-index: 1;
}

.market-alert-link {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  color: #173c31;
  text-decoration: none;
}

.market-alert-link strong {
  font-size: 1rem;
}

.market-alert-link span:last-child {
  color: #607065;
  font-size: 0.92rem;
}

.market-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #174c3c;
  color: #fff6e5;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.market-alert-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #607065;
  font-size: 0.88rem;
  white-space: nowrap;
}

.market-alert-meta a {
  color: #174c3c;
  font-weight: 800;
  text-decoration: none;
}

.home-command-section {
  margin-top: 24px;
}

.home-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.home-command-main,
.home-command-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  grid-auto-rows: max-content;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(23, 76, 60, 0.08);
  color: #214538;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(17, 41, 32, 0.06);
}

.premium-hero-carousel {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 41, 32, 0.16);
}

.premium-hero-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    url('../images/home-art/heritage-orbit-glow.svg') no-repeat left -60px top -40px / 420px,
    url('../images/home-art/heritage-lattice-soft.svg') no-repeat right -30px bottom -30px / 320px,
    linear-gradient(180deg, rgba(9, 28, 22, 0.08), rgba(9, 28, 22, 0));
  opacity: 0.88;
}

.premium-hero-carousel,
.premium-hero-carousel .carousel-item,
.premium-hero-carousel .hero-slide,
.premium-hero-carousel .hero-overlay {
  min-height: 620px;
}

.premium-hero-carousel .hero-overlay {
  display: flex;
  align-items: flex-end;
}

.premium-hero-carousel .carousel-indicators,
.premium-hero-carousel .carousel-inner,
.premium-hero-carousel .carousel-control-prev,
.premium-hero-carousel .carousel-control-next {
  position: relative;
  z-index: 2;
}

.premium-hero-content {
  position: relative;
  margin-bottom: 26px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff4df;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero-floating-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -80px;
  margin-bottom: 18px;
  padding-inline: 20px;
  position: relative;
  z-index: 2;
}

.hero-summary-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 132px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 36px rgba(17, 41, 32, 0.08);
  text-align: center;
}

.hero-summary-card span {
  color: #5f6d63;
  font-weight: 700;
  font-size: 0.88rem;
}

.command-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background:
    radial-gradient(circle at top left, rgba(182, 145, 88, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(248, 243, 234, 0.96));
  box-shadow: 0 24px 48px rgba(17, 41, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.command-card::after {
  content: '';
  position: absolute;
  inset-inline-end: -42px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  background: url('../images/home-art/heritage-lattice-soft.svg') center / contain no-repeat;
  opacity: 0.18;
  z-index: 0;
  transform: rotate(-8deg);
}

.command-card > * {
  position: relative;
  z-index: 1;
}

.command-card:hover,
.command-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 30px 56px rgba(17, 41, 32, 0.12);
}

.command-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.command-kicker,
.command-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.command-kicker {
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
}

.command-state {
  background: rgba(40, 122, 85, 0.12);
  color: #23624f;
}

.command-card h2,
.command-card h3 {
  margin: 0;
  color: #16362c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
}

.command-card h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.command-card h3 {
  font-size: 1.32rem;
  line-height: 1.35;
}

.command-card p {
  margin: 12px 0 0;
  color: #5d6b61;
  line-height: 1.85;
}

.command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.command-metrics div {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 76, 60, 0.08);
  text-align: center;
}

.command-metrics strong {
  color: #174c3c;
  font-size: 1.3rem;
  font-family: 'El Messiri', 'Cairo', sans-serif;
}

.command-metrics span {
  color: #6a776e;
  font-size: 0.82rem;
  font-weight: 700;
}

.command-action-card.is-category {
  background:
    radial-gradient(circle at top right, rgba(23, 76, 60, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(248, 252, 250, 0.98), rgba(238, 246, 241, 0.96));
}

.command-action-card.is-offer {
  background:
    radial-gradient(circle at top right, rgba(182, 145, 88, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(248, 240, 224, 0.96));
}

.command-action-card.is-product {
  background:
    radial-gradient(circle at top right, rgba(163, 201, 188, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(247, 252, 250, 0.98), rgba(236, 244, 240, 0.96));
}

.command-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #174c3c;
  text-decoration: none;
  font-weight: 800;
}

.home-quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.quick-link-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(23, 76, 60, 0.08);
  box-shadow: 0 16px 28px rgba(17, 41, 32, 0.06);
  color: #1e4336;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.quick-link-chip:hover,
.quick-link-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(17, 41, 32, 0.1);
}

.quick-link-chip i {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.14), rgba(182, 145, 88, 0.18));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #174c3c;
}

.quick-link-chip strong,
.quick-link-chip span {
  display: block;
}

.quick-link-chip strong {
  font-size: 0.94rem;
}

.quick-link-chip span {
  color: #6b776f;
  font-size: 0.78rem;
  margin-top: 4px;
}

.market-highlights-section {
  margin-top: 26px;
}

.market-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.market-highlight-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 18px 38px rgba(17, 41, 32, 0.06);
  color: #183c31;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-highlight-card::before {
  content: '';
  position: absolute;
  inset: auto -18px -26px auto;
  width: 154px;
  height: 154px;
  background: url('../images/home-art/heritage-thread-lines.svg') center / contain no-repeat;
  opacity: 0.18;
  z-index: 0;
}

.market-highlight-card > * {
  position: relative;
  z-index: 1;
}

.market-highlight-card:hover,
.market-highlight-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(17, 41, 32, 0.1);
}

.market-highlight-card.is-emerald {
  background:
    linear-gradient(180deg, rgba(247, 252, 250, 0.98), rgba(236, 245, 241, 0.96));
}

.market-highlight-card.is-gold {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(247, 239, 222, 0.96));
}

.market-highlight-card.is-ivory {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(244, 240, 232, 0.96));
}

.market-highlight-card.is-sand {
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.98), rgba(242, 237, 227, 0.96));
}

.market-highlight-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.14), rgba(182, 145, 88, 0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #174c3c;
  font-size: 1.25rem;
}

.market-highlight-copy {
  display: grid;
  gap: 6px;
}

.market-highlight-copy span {
  color: #8c6a38;
  font-size: 0.78rem;
  font-weight: 800;
}

.market-highlight-copy strong {
  color: #174c3c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: 2rem;
  line-height: 1;
}

.market-highlight-copy h3 {
  margin: 0;
  color: #16362c;
  font-size: 1rem;
  font-weight: 800;
}

.market-highlight-copy p {
  margin: 0;
  color: #607065;
  font-size: 0.9rem;
  line-height: 1.75;
}

.editorial-header {
  align-items: flex-start;
}

.editorial-intro {
  max-width: 40ch;
  margin: 0;
  color: #607065;
  line-height: 1.9;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.editorial-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background: rgba(255, 252, 247, 0.94);
  box-shadow: 0 20px 42px rgba(17, 41, 32, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.editorial-card:hover,
.editorial-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 54px rgba(17, 41, 32, 0.12);
}

.editorial-media {
  position: relative;
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(15, 51, 40, 0.78), rgba(23, 76, 60, 0.18)),
    linear-gradient(135deg, rgba(239, 231, 214, 0.98), rgba(228, 214, 187, 0.92));
  background-position: center;
  background-size: cover;
}

.editorial-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('../images/home-art/heritage-orbit-glow.svg') no-repeat center center / 280px,
    radial-gradient(circle at 22% 18%, rgba(255, 250, 241, 0.2), transparent 18%);
  opacity: 0.28;
}

.editorial-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(10, 24, 20, 0), rgba(10, 24, 20, 0.58));
}

.editorial-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  color: #214538;
  font-size: 0.76rem;
  font-weight: 800;
}

.editorial-copy {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.editorial-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.82rem;
  font-weight: 800;
}

.editorial-copy h3 {
  margin: 0;
  color: #16362c;
  font-size: 1.35rem;
  font-family: 'El Messiri', 'Cairo', sans-serif;
}

.editorial-copy p {
  margin: 0;
  color: #607065;
  line-height: 1.85;
}

.premium-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.premium-category-tile {
  min-height: 128px;
  border-radius: 26px;
}

.market-cta-band {
  margin-top: 30px;
}

.market-cta-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(182, 145, 88, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(14, 58, 45, 0.96), rgba(23, 76, 60, 0.92));
  color: #f7f0df;
  box-shadow: 0 28px 60px rgba(14, 33, 26, 0.18);
}

.market-cta-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    url('../images/home-art/heritage-thread-lines.svg') no-repeat right -10px center / 340px,
    url('../images/home-art/heritage-lattice-soft.svg') no-repeat left -70px center / 260px;
  opacity: 0.14;
}

.market-cta-shell > * {
  position: relative;
  z-index: 1;
}

.market-cta-copy h2 {
  margin: 8px 0 10px;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.market-cta-copy p {
  margin: 0;
  max-width: 58ch;
  color: rgba(247, 240, 223, 0.8);
  line-height: 1.9;
}

.market-cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.market-cta-actions .btn-outline {
  color: #fff4df;
}

.tile-corner-actions {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-thumb .product-badge {
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 4;
}

.product-thumb .product-badge-sponsored {
  top: 14px;
}

.product-thumb .product-badge:not(.product-badge-sponsored) + .product-badge-sponsored {
  top: 48px;
}

.tile-corner-actions .quick-view-trigger {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 42px;
  height: 42px;
}

.wishlist-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(23, 76, 60, 0.08);
  background: rgba(255, 252, 247, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #174c3c;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(23, 76, 60, 0.14);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.wishlist-trigger:hover,
.wishlist-trigger:focus-visible,
.wishlist-trigger.is-active {
  transform: translateY(-2px);
  background: #174c3c;
  color: #fff4df;
}

.product-flag-stack {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 72px);
}

.product-flag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-flag.is-warning {
  background: rgba(196, 118, 22, 0.12);
  color: #9a5b0b;
}

.product-flag.is-muted {
  background: rgba(23, 76, 60, 0.08);
  color: #305546;
}

.product-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-context-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.72rem;
  font-weight: 800;
}

.product-context-chip.is-soft {
  background: rgba(182, 145, 88, 0.12);
  color: #8a6630;
}

.product-availability {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6c61;
  font-size: 0.82rem;
  font-weight: 700;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f8b67;
  box-shadow: 0 0 0 4px rgba(47, 139, 103, 0.12);
  flex-shrink: 0;
}

.availability-dot.is-low {
  background: #c67816;
  box-shadow: 0 0 0 4px rgba(198, 120, 22, 0.12);
}

html[data-theme='dark'] .market-alert-shell,
html[data-theme='dark'] .hero-summary-card,
html[data-theme='dark'] .command-card,
html[data-theme='dark'] .quick-link-chip,
html[data-theme='dark'] .market-highlight-card,
html[data-theme='dark'] .editorial-card,
html[data-theme='dark'] .wishlist-trigger,
html[data-theme='dark'] .product-flag,
html[data-theme='dark'] .product-context-chip {
  background-color: rgba(15, 31, 26, 0.96);
  border-color: rgba(183, 201, 191, 0.12);
  color: #eef6f0;
}

html[data-theme='dark'] .market-alert-link,
html[data-theme='dark'] .market-alert-meta a,
html[data-theme='dark'] .command-card h2,
html[data-theme='dark'] .command-card h3,
html[data-theme='dark'] .market-highlight-copy h3,
html[data-theme='dark'] .market-highlight-copy strong,
html[data-theme='dark'] .editorial-copy h3,
html[data-theme='dark'] .editorial-metric,
html[data-theme='dark'] .product-context-chip,
html[data-theme='dark'] .product-availability {
  color: #eef6f0;
}

html[data-theme='dark'] .market-alert-link span:last-child,
html[data-theme='dark'] .market-alert-meta,
html[data-theme='dark'] .command-card p,
html[data-theme='dark'] .quick-link-chip span,
html[data-theme='dark'] .market-highlight-copy p,
html[data-theme='dark'] .editorial-intro,
html[data-theme='dark'] .editorial-copy p,
html[data-theme='dark'] .market-cta-copy p {
  color: rgba(231, 239, 233, 0.76);
}

html[data-theme='dark'] .market-cta-shell {
  background:
    radial-gradient(circle at top right, rgba(182, 145, 88, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(10, 24, 20, 0.98), rgba(17, 43, 34, 0.98));
}

@keyframes heritageFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -14px, 0) scale(1.03);
  }
}

@keyframes heritageDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-14px, 10px, 0) rotate(4deg);
  }
}

@media (max-width: 1200px) {
  .home-marketplace-page::before {
    width: 420px;
    height: 420px;
    inset-inline-end: -140px;
  }

  .home-marketplace-page::after {
    width: 500px;
    height: 500px;
    inset-inline-start: -220px;
  }

  .home-command-grid {
    grid-template-columns: 1fr;
  }

  .hero-floating-summary {
    margin-top: -72px;
  }

  .home-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-highlights-grid,
  .editorial-grid,
  .premium-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-cta-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .home-marketplace-page::before,
  .home-marketplace-page::after {
    opacity: 0.18;
  }

  .home-marketplace-page::before {
    top: 140px;
    inset-inline-end: -180px;
    width: 320px;
    height: 320px;
  }

  .home-marketplace-page::after {
    bottom: 220px;
    inset-inline-start: -220px;
    width: 360px;
    height: 360px;
  }

  .market-alert-strip,
  .home-command-section,
  .market-highlights-section,
  .market-cta-band {
    padding-inline: 14px;
  }

  .market-alert-shell,
  .market-alert-link,
  .market-alert-meta,
  .market-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-alert-shell {
    background:
      linear-gradient(135deg, rgba(15, 58, 45, 0.98), rgba(23, 76, 60, 0.95));
    border-color: rgba(255, 244, 223, 0.12);
    box-shadow: 0 22px 38px rgba(12, 30, 24, 0.22);
  }

  .market-alert-link,
  .market-alert-link strong,
  .market-alert-meta a {
    color: #fff4df;
  }

  .market-alert-link span:last-child,
  .market-alert-meta {
    color: rgba(255, 244, 223, 0.78);
  }

  .market-alert-badge {
    background: #fff1d7;
    color: #174c3c;
  }

  .market-alert-meta {
    width: 100%;
    white-space: normal;
  }

  .premium-hero-carousel,
  .premium-hero-carousel .carousel-item,
  .premium-hero-carousel .hero-slide,
  .premium-hero-carousel .hero-overlay {
    min-height: 520px;
  }

  .premium-hero-carousel::before {
    background:
      url('../images/home-art/heritage-orbit-glow.svg') no-repeat left -80px top -10px / 260px,
      url('../images/home-art/heritage-lattice-soft.svg') no-repeat right -40px bottom -10px / 220px,
      linear-gradient(180deg, rgba(9, 28, 22, 0.08), rgba(9, 28, 22, 0));
  }

  .premium-hero-content {
    margin-bottom: 14px;
  }

  .premium-hero-carousel .hero-overlay {
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(13, 39, 31, 0.18) 0%, rgba(13, 39, 31, 0.42) 42%, rgba(13, 39, 31, 0.82) 100%);
  }

  .premium-hero-content {
    padding: 20px 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(18, 56, 44, 0.54), rgba(18, 56, 44, 0.74));
    border-color: rgba(255, 244, 223, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 34px rgba(9, 27, 21, 0.22);
  }

  .premium-hero-content h1 {
    font-size: clamp(1.85rem, 8.6vw, 2.4rem);
    margin-bottom: 12px;
  }

  .premium-hero-content p {
    color: rgba(255, 246, 230, 0.88);
    font-size: 0.96rem;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .hero-meta-pill {
    background: rgba(18, 56, 44, 0.58);
    border-color: rgba(255, 244, 223, 0.18);
    color: #fff4df;
  }

  .hero-floating-summary {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-inline: 0;
  }

  .hero-summary-card {
    background: rgba(255, 252, 247, 0.96);
  }

  .command-card,
  .market-highlight-card,
  .editorial-copy,
  .market-cta-shell {
    border-radius: 24px;
  }

  .command-metrics,
  .home-quick-links,
  .market-highlights-grid,
  .editorial-grid,
  .premium-category-grid {
    grid-template-columns: 1fr;
  }

  .editorial-header {
    gap: 12px;
  }

  .editorial-intro {
    max-width: none;
  }

  .market-cta-actions {
    width: 100%;
  }

  .market-cta-actions .btn-solid,
  .market-cta-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .market-alert-shell::before,
  .market-highlight-card::before,
  .market-cta-shell::before,
  .command-card::after {
    opacity: 0.12;
  }

  .tile-corner-actions {
    top: 12px;
    inset-inline-end: 12px;
  }

  .product-flag-stack {
    inset-inline-start: 10px;
    bottom: 10px;
    max-width: calc(100% - 64px);
  }
}

/* Final homepage category-card overrides */
.artisan-home-page.home-marketplace-page {
  display: flex;
  flex-direction: column;
}

.artisan-home-page.home-marketplace-page > .section-block,
.artisan-home-page.home-marketplace-page > .home-value-strip,
.artisan-home-page.home-marketplace-page > .market-alert-strip,
.artisan-home-page.home-marketplace-page > .market-cta-band {
  width: 100%;
  box-sizing: border-box;
}

.artisan-home-page .home-command-section {
  order: 1;
}

.artisan-home-page .market-alert-strip {
  order: 2;
}

.artisan-home-page #categories {
  order: 3;
}

.artisan-home-page #offers {
  order: 4;
}

.artisan-home-page #artisan-story {
  order: 5;
}

.artisan-home-page .home-value-strip {
  order: 6;
}

.artisan-home-page .home-identity-band {
  order: 7;
}

.artisan-home-page .market-cta-band {
  order: 8;
}

.category-showcase-shell {
  padding: clamp(24px, 3vw, 38px);
  background:
    radial-gradient(circle at 92% 8%, rgba(182, 145, 88, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(244, 239, 228, 0.95));
}

.category-showcase-intro {
  max-width: 58ch;
  margin: 8px 0 0;
  color: #607065;
  line-height: 1.85;
  font-weight: 700;
}

.category-grid.premium-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.category-tile.premium-category-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: 22px;
  min-height: 286px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(23, 76, 60, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 231, 0.96));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile.premium-category-tile::after {
  content: "";
  position: absolute;
  inset-inline-end: -50px;
  bottom: -64px;
  width: 210px;
  height: 210px;
  z-index: -1;
  background: url('../images/home-art/heritage-lattice-soft.svg') center / contain no-repeat;
  opacity: 0.16;
  transform: rotate(-10deg);
}

.category-tile.premium-category-tile:hover,
.category-tile.premium-category-tile:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(23, 76, 60, 0.18);
  box-shadow: 0 30px 62px rgba(17, 41, 32, 0.13);
  outline: none;
}

.category-tile.premium-category-tile.has-image {
  min-height: 318px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(11, 38, 30, 0.14), rgba(11, 38, 30, 0.82)),
    var(--category-image) center / cover no-repeat;
}

.category-tile.premium-category-tile.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 244, 223, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 54, 42, 0.48), rgba(8, 25, 20, 0.18));
}

.premium-category-tile .category-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(23, 76, 60, 0.12), rgba(182, 145, 88, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.premium-category-tile .category-meta {
  display: grid;
  gap: 10px;
  align-self: end;
}

.premium-category-tile .category-meta h4 {
  margin: 0;
  color: #16362c;
  font-family: 'El Messiri', 'Cairo', sans-serif;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.28;
}

.premium-category-tile .category-count-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(23, 76, 60, 0.08);
  color: #174c3c;
  font-size: 0.8rem;
  font-weight: 900;
}

.premium-category-tile .category-meta p {
  margin: 0;
  color: #607065;
  line-height: 1.75;
  font-size: 0.92rem;
}

.premium-category-tile .category-meta b {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #174c3c;
  color: #fff4df;
  font-size: 0.86rem;
  font-weight: 900;
}

.premium-category-tile.has-image .category-meta h4,
.premium-category-tile.has-image .category-count-pill,
.premium-category-tile.has-image .category-meta p,
.premium-category-tile.has-image .category-meta b {
  color: #fff4df;
}

.premium-category-tile.has-image .category-count-pill {
  background: rgba(255, 244, 223, 0.16);
  border: 1px solid rgba(255, 244, 223, 0.18);
}

.premium-category-tile.has-image .category-meta p {
  color: rgba(255, 244, 223, 0.84);
}

.premium-category-tile.has-image .category-meta b {
  background: rgba(255, 244, 223, 0.92);
  color: #173c31;
}

.editorial-card.is-story .editorial-media {
  background:
    linear-gradient(135deg, rgba(14, 58, 45, 0.86), rgba(24, 84, 67, 0.5)),
    url('../images/home-art/artisan-market-story.webp') center / cover no-repeat;
}

html[data-theme='dark'] .category-showcase-shell,
html[data-theme='dark'] .category-tile.premium-category-tile {
  background:
    radial-gradient(circle at 92% 8%, rgba(182, 145, 88, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(15, 31, 26, 0.98), rgba(11, 21, 18, 0.96));
}

html[data-theme='dark'] .category-showcase-intro,
html[data-theme='dark'] .premium-category-tile .category-meta p {
  color: rgba(231, 239, 233, 0.76);
}

@media (max-width: 767px) {
  .category-grid.premium-category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile.premium-category-tile,
  .category-tile.premium-category-tile.has-image {
    min-height: 250px;
    padding: 22px;
    border-radius: 24px;
  }
}
