[hidden] { display: none !important; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: #fcfaf7; color: #251e1b; }
.utility-bar { display: flex; justify-content: space-between; gap: 12px; }
.market-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 15px clamp(16px, 5vw, 72px); background: #fff; }
.market-logo { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 36px; line-height: 1; letter-spacing: -.06em; text-decoration: none; }
.market-logo span { color: #a94c64; }
.market-header nav, .market-header .header-tools { display: flex; align-items: center; gap: clamp(12px, 2.8vw, 40px); }
.market-header a { color: inherit; }
.market-header nav, .market-header .header-tools { font-size: 13px; font-weight: 700; }
.market-campaign { display: grid; grid-template-columns: .85fr 1.15fr; background: #3a2623; color: #fff6ed; min-height: 490px; }
.campaign-copy { align-self: center; padding: clamp(24px, 6vw, 96px); }
.campaign-copy > p:first-child { font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.campaign-copy h1 { margin: 20px 0; font: 400 clamp(49px, 6vw, 96px)/.94 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.055em; }
.campaign-copy h1 em { color: #f2c7bd; }
.campaign-copy p { max-width: 30ch; line-height: 1.7; }
.campaign-copy a, #showMore { display: inline-block; padding: 12px 18px; margin-top: 16px; background: #fff6ed; color: #33211e; font-weight: 800; border: 1px solid #bda29a; }
.campaign-images { min-width: 0; display: grid; grid-template-columns: 1.15fr .85fr; }
.campaign-images img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; }
.market-section { max-width: 1480px; margin: auto; padding: 44px clamp(16px, 5vw, 72px); }
.market-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.market-heading h2, #productDetail h1 { font: 400 clamp(34px, 4vw, 55px)/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.035em; margin: 0; }
.market-heading a, .market-brand-card a { font-weight: 800; font-size: 13px; }
.market-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.market-brand-card { display: flex; min-height: 220px; flex-direction: column; justify-content: end; position: relative; isolation: isolate; padding: 24px; background: #efe0d9; }
.market-brand-card.has-cover { background: #432c27; color: white; }
.market-brand-card.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, #211611e8); z-index: -1; }
.market-brand-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.market-brand-card h3 { font: 400 30px/1.1 "Plus Jakarta Sans", system-ui, sans-serif; margin: 0 0 8px; }
.market-brand-card p { margin: 0 0 12px; }
.market-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 12px; }
.market-filters label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.market-filters input, .market-filters select { width: 100%; min-width: 0; min-height: 42px; background: white; color: inherit; padding: 8px; border: 1px solid #c9bcb5; font: inherit; }
#resultCount { margin: 15px 0; font-size: 13px; }
#productGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#productGrid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.product-line { flex-wrap: wrap; }
.product-line a, .product-brand { color: inherit; }
.product-brand { font-size: 12px; color: #75364a; }
#productDetail .detail-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 20px; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.detail-gallery img { width: 100%; }
.detail-gallery img:first-child { grid-column: 1 / -1; }
.detail-info > * { margin-bottom: 16px; }
.detail-info button, .detail-info select { padding: 10px; }
@media (max-width: 760px) {
  .market-header nav { order: 3; width: 100%; padding-bottom: 3px; justify-content: space-between; }
  .market-campaign { grid-template-columns: 1fr; min-height: 0; }
  .campaign-images img { height: clamp(175px, 52vw, 340px); }
  .market-section { padding-top: 30px; padding-bottom: 30px; }
  #productGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #productGrid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #productDetail .detail-layout { grid-template-columns: 1fr; }
}
.market-header .bag-tool { font-size: 11px; }
.product-card:focus-within .add-button { transform: none; }
#productGrid .product-line h3 { font-size: 14px; }
#productGrid .product-price { font-size: 13px; }
#productGrid .product-meta span { display: inline; font-size: 11px; }
body:has(.market-header) .footer-columns { margin-top: 28px; justify-content: start; }
@media (max-width: 760px) {
  body:has(.market-header) .utility-bar span:last-child { display: inline; }
  #productGrid .product-line h3 { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.market-no-photo { display: grid; place-items: center; padding: 16px; text-align: center; font-size: 12px; color: #62544e; background: #f2ebe5; }
.detail-gallery .market-no-photo { grid-column: 1 / -1; min-height: 220px; }
.campaign-images { align-items: stretch; }
.campaign-images img { max-height: none; min-height: 0; }
.market-brand-card img.market-brand-logo { inset: 16px auto auto 20px; z-index: 0; width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: white; }
.market-brand-menu { position: relative; }
.market-brand-menu summary { cursor: pointer; }
#brandMenu { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; min-width: 190px; padding: 10px 14px; border: 1px solid #c9bcb5; background: white; }
#brandMenu a { display: block; padding: 7px 0; }

/* Marketplace identity */
body { background: #f7f9f8; color: #172c2a; }
.utility-bar { background: #19332e; color: #fff; }
.market-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 30px; font-weight: 800; }
.market-logo span { color: #397267; }
.market-campaign { background: #e5eeea; color: #173630; grid-template-columns: 1fr 1fr; min-height: 0; }
.campaign-copy h1 { margin: 0; font: 800 clamp(52px, 7vw, 98px)/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.085em; }
.campaign-copy a { background: #19332e; color: white; border: 0; }
.campaign-images { position: relative; min-height: 320px; overflow: hidden; }
.campaign-images img { aspect-ratio: 4/5; max-height: 475px; }
.campaign-images span { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; background: #fff; color: #172c2a; font-size: 12px; font-weight: 700; }
.market-heading h2 { font: 800 clamp(26px, 4vw, 42px)/1.1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.055em; }
.market-brand-card { background: #e3ebe7; }
.market-brand-card[data-brand="zana-fil-hijabs"] { background-color: #614639; }
.market-brand-card[data-brand="aladdins-fragrance"] { background: #182124; color: #f6e8c8; }
.market-brand-card[data-brand="aladdins-fragrance"] h3 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
#productGrid .product-media:has(.market-no-photo) { aspect-ratio: auto; min-height: 112px; }
#productGrid .market-no-photo { padding-bottom: 42px; }
#productGrid .product-meta { margin-top: 4px; }
@media (max-width: 760px) {
  .market-campaign { grid-template-columns: 1fr; }
  .campaign-images { min-height: 0; }
  .campaign-images img { aspect-ratio: auto; }
}
.market-brand-card[data-brand="zana-fil-hijabs"]:not(.has-cover) { background-color: #ebdccd; color: #382620; }

:is(.home-page, .shop-page) :is(header, main, footer, .utility-bar, .bag-drawer),
:is(.home-page, .shop-page) :is(header, main, footer, .utility-bar, .bag-drawer) * {
  font-weight: 400;
}

.shop-filters summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 1px solid currentColor;
  cursor: pointer;
  list-style: none;
}
.shop-filters summary::-webkit-details-marker { display: none; }
.shop-filters[open] summary { background: #e5eeea; }
.shop-filters .market-filters { margin-block-start: 12px; }
.filter-icon { display: grid; gap: 5px; width: 18px; }
.filter-icon i { position: relative; height: 1px; background: currentColor; }
.filter-icon i::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 4px;
  height: 5px;
  width: 2px;
  background: currentColor;
}
.filter-icon i:nth-child(2)::after { left: 12px; }

.home-page .market-campaign {
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  background: #e5eeea;
}
.home-page .campaign-copy { padding: clamp(24px, 5vw, 72px); }
.home-page .campaign-copy h1 {
  font: 400 clamp(46px, 5.8vw, 88px)/.95 "Instrument Serif", Georgia, serif;
  letter-spacing: -.02em;
}
.campaign-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-page .campaign-actions a { margin: 0; }
.home-page .campaign-actions a + a { color: #173630; background: transparent; box-shadow: inset 0 0 0 1px #315447; }
.home-page .campaign-images { min-height: 0; grid-template-columns: 1.35fr 1fr; }
.home-page .campaign-images img { height: clamp(280px, 34vw, 490px); max-height: none; }
:is(.home-page,.directory-page) .market-brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
:is(.home-page,.directory-page) .market-brand-card[data-brand] {
  min-height: 0;
  padding: 0;
  color: #172c2a;
  background: #fff;
  border: 1px solid #dbe4df;
}
.market-brand-card[data-brand]::before { content: none; }
.brand-card-media {
  position: relative;
  min-height: 130px;
  aspect-ratio: 2.6;
  background: #e5eeea;
}
.market-brand-card .brand-card-media img { z-index: auto; object-position: center 38%; }
.market-brand-card .brand-card-media .market-brand-logo { width: 42px; height: 42px; }
.brand-card-body { padding: clamp(16px, 3vw, 30px); }
.brand-card-body h3 { font-size: clamp(22px, 3vw, 32px); }
.brand-card-body p { font-size: 13px; }
.directory-page #brands { min-height: 55vh; }
.directory-page #brandDirectoryTitle { font-size: clamp(38px, 6vw, 70px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.05em; }
.directory-page :is(header, main, footer) * { font-weight: 400; }
.directory-page .market-brand-card { justify-content: start; }
.directory-page .brand-card-media { aspect-ratio: 2; }
@media (max-width: 680px) {
  .home-page .market-campaign { grid-template-columns: 1fr; }
  .home-page .campaign-images img { height: clamp(190px, 54vw, 335px); }
  :is(.home-page,.directory-page) .market-brand-grid { grid-template-columns: 1fr; }
}

.home-page #campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--sf-charcoal);
  color: var(--sf-gold-cream);
}
.home-page #campaign:has(.campaign-custom-image:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.home-page #campaign[data-palette=cream] { background: var(--sf-cream); color: var(--sf-charcoal); }
.home-page #campaign[data-palette=stone] { background: var(--sf-stone); color: var(--sf-charcoal); }
.home-page #campaign[data-alignment=center] .campaign-copy { text-align: center; }
.home-page #campaign[data-alignment=center] .campaign-actions { justify-content: center; }
.home-page #campaign[data-font=sans] h1 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.home-page #campaign .campaign-copy { padding: clamp(48px, 8vw, 120px) clamp(18px, 5vw, 76px); }
.home-page #campaign h1 { text-wrap: balance; }
.home-page #campaign[data-palette]:not([data-palette=charcoal]) .campaign-actions a:first-child {
  background: var(--sf-charcoal); color: var(--sf-gold-cream);
}
.home-page #campaign[data-palette]:not([data-palette=charcoal]) .campaign-actions a + a { color: var(--sf-charcoal); }
.campaign-custom-image { width: 100%; height: 100%; min-height: 220px; max-height: 520px; object-fit: cover; }
@media (max-width: 700px) {
  .home-page #campaign:has(.campaign-custom-image:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .campaign-custom-image { max-height: 320px; }
}

.home-page #campaign {
  max-width: 1440px;
  width: calc(100% - 2 * clamp(16px, 4vw, 64px));
  margin: clamp(16px, 3vw, 42px) auto 0;
  min-height: 0;
}
.home-page #campaign .campaign-copy { padding: clamp(28px, 4.2vw, 58px) clamp(20px, 5vw, 72px); }
.home-page #campaign h1 { font-size: clamp(42px, 5.8vw, 82px); line-height: 1; }
.home-page #campaign .campaign-actions { margin-top: 18px; }
.home-page #brands, .home-page #shop { padding-block: clamp(24px, 3vw, 42px); }
.home-page .market-heading { margin-bottom: 14px; }
.home-page .market-brand-card[data-brand] { display: flex; flex-direction: row; justify-content: flex-start; min-height: 142px; }
.home-page .brand-card-media { flex: 0 0 35%; min-height: 0; aspect-ratio: auto; }
.home-page .brand-card-body { align-self: center; }
.home-page #resultCount { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-page #productGrid { margin-top: 0; }

.home-page #campaign[data-palette=charcoal]:not(:has(.campaign-custom-image:not([hidden]))) {
  background: transparent;
  color: var(--sf-charcoal);
}
.home-page #campaign:not(:has(.campaign-custom-image:not([hidden]))) {
  width: auto;
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 72px);
}
.home-page #campaign:not(:has(.campaign-custom-image:not([hidden]))) .campaign-copy {
  padding: clamp(26px, 4.3vw, 64px) 0 clamp(20px, 2.8vw, 42px);
  border-bottom: 1px solid var(--sf-border);
}
.home-page #campaign:not(:has(.campaign-custom-image:not([hidden]))) h1 {
  font-size: clamp(38px, 5.2vw, 76px);
}
.home-page #campaign:not(:has(.campaign-custom-image:not([hidden]))) .campaign-actions {
  gap: 12px 24px;
  margin-top: 13px;
}
.home-page #campaign:not(:has(.campaign-custom-image:not([hidden]))) .campaign-actions a {
  padding: 8px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--sf-charcoal);
  text-decoration: underline;
  text-underline-offset: .35em;
}
.home-page #shop { padding-top: clamp(22px, 3vw, 40px); }
.home-page #productGrid { gap: clamp(12px, 2vw, 24px); }
.home-page #productGrid .product-media { aspect-ratio: 4 / 5; }
.home-page #brands { border-top: 1px solid var(--sf-border); }

.shop-page #shop[data-palette]:not([data-palette=plain]) .market-heading {
  padding: clamp(18px, 4vw, 44px);
  border-radius: 12px;
  background: var(--sf-cream);
  color: var(--sf-charcoal);
}
.shop-page #shop[data-palette=stone] .market-heading { background: var(--sf-stone); }
.shop-page #shop[data-palette=charcoal] .market-heading {
  background: var(--sf-charcoal);
  color: var(--sf-gold-cream);
}
.shop-page #shop[data-alignment=center] .market-heading { justify-content: center; text-align: center; }
.shop-page #shop[data-font=serif] #shopTitle { font-family: "Instrument Serif", Georgia, serif; }
.shop-page #shop[data-font=sans] #shopTitle { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
#shopHeaderImage:not([hidden]) {
  display: block;
  width: 100%;
  height: clamp(140px, 25vw, 320px);
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.directory-page .market-brand-card { position: relative; }
.directory-page .brand-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.directory-page .market-brand-card:focus-within {
  outline: 2px solid var(--sf-charcoal);
  outline-offset: 3px;
}
.directory-page .market-brand-card:hover .brand-card-link { text-decoration: underline; }

.bag-brand > header { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sf-border); }
.product-specs { margin: 18px 0; }
.product-specs > div { display: grid; grid-template-columns: minmax(90px,1fr) 2fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--sf-border); }
.product-specs dd { margin: 0; overflow-wrap: anywhere; }
