.theme-camisas { --section-accent: #d68f9b; --section-tint: #391e27; }
.theme-cosmeticos { --section-accent: #dfa889; --section-tint: #3b2721; }
.theme-zoteri { --section-accent: #b6c391; --section-tint: #293123; }
.theme-combos { --section-accent: #f0d294; --section-tint: #3b3020; }

.catalog-header #main-nav { gap: 8px; }
.catalog-header #main-nav .shop-category {
  padding: 8px 12px;
  min-height: 50px;
  background: var(--section-tint);
  border: 1px solid #ffffff28;
  border-block-end: 2px solid var(--section-accent);
  color: #e1dace;
}
.catalog-header #main-nav .shop-category strong { color: var(--section-accent); font-size: .85rem; }
.catalog-header #main-nav .shop-category[aria-current],
.catalog-header #main-nav .shop-category[data-active],
.catalog-header #main-nav .shop-category:hover { border-color: var(--section-accent); }

.shop-landing { padding-block: clamp(20px, 3.4vw, 48px) 12px; }
.shop-landing h1,
.shop-category-page h1 {
  font: 500 clamp(36px, 5.8vw, 72px)/1.06 Georgia, serif;
  margin: 0 0 20px;
}
.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 24px);
}
.landing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--section-tint);
  border: 1px solid #ffffff30;
  border-block-end: 3px solid var(--section-accent);
}
.landing-card:is(:hover, :focus-visible) { border-color: var(--section-accent); }
.landing-photo {
  aspect-ratio: 1.25;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #65635d, #373532 85%);
}
.landing-photo > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.landing-photo > .shirt-photo { aspect-ratio: auto; height: 100%; }
.landing-photo > .shirt-photo img { top: -8%; }
.landing-card-copy { padding: clamp(10px, 1.55vw, 22px); }
.landing-card-copy h2 { margin: 0; color: var(--section-accent); font-size: clamp(16px, 1.6vw, 26px); line-height: 1.12; }
.landing-card-copy p { margin: 6px 0 0; font-size: clamp(12px, 1.08vw, 15px); line-height: 1.3; color: #e1dace; }
.landing-combo-photos { display: grid; height: 100%; grid-template: repeat(2, minmax(0, 1fr)) / 1.5fr 1fr; gap: 3px; }
.landing-combo-photos .shirt-photo { grid-row: span 2; aspect-ratio: auto; }
.landing-combo-photos > img { min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.shop-freight-note { margin: 15px 0 0; font-size: .9rem; color: #dfcdb5; }
.shop-home .rotas-promo { padding-block: 10px 28px; }

.shop-category-page { padding-bottom: 44px; }
.shop-category-page > .section { padding-block: 24px; }
.shop-category-page .section-head { margin-block-end: 23px; }
.shop-category-page .section-head h1 { margin: 7px 0 0; }
.category-title { padding-block-start: 26px; }
.category-title h1 { margin-bottom: 0; }
.shop-category-page .category-freight { color: #dfcdb5; }
.team-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.team-shortcuts a {
  display: grid; place-items: center;
  min-height: 44px; padding: 5px 12px;
  background: #2b2024; border: 1px solid #966272; color: #f0dce0; font-weight: 700;
}
.team-shortcuts a:hover { background: #482e38; }

.shirt-photo {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #4c4944;
}
.shirt-photo img {
  position: absolute;
  display: block;
  width: 200%;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  top: 0;
  left: 0;
  filter: brightness(1.39) contrast(.92);
  transform: none;
}
.shirt-photo--back img { left: -100%; }
.shirt-photo--detail img { width: 335%; left: -202%; top: -23%; }
.shirt-photo--detail[data-fabric="dry-fit"] img { width: 385%; left: -240%; top: -25%; }
#camisas .shirt-team { padding: clamp(6px, 1.2vw, 18px); }
#camisas .shirt-team > h3 { padding-inline: 8px; }
#camisas .shirt-variants { grid-template-columns: minmax(0, 1fr); }
.shirt-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 4px; }
#camisas .shirt-card-heading h4 { margin: 0; }
#camisas .shirt-card-heading .card-meta { margin: 0; }
.shirt-gallery { min-width: 0; }
.shirt-gallery [hidden] { display: none; }
.shirt-pair {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #443931;
}
.shirt-pair::before,
.shirt-pair::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: 10%;
  background: var(--shirt-backdrop) no-repeat;
  background-size: 6400% 100%;
  filter: brightness(1.39) contrast(.92) blur(8px);
}
.shirt-pair::before { left: 0; background-position: left center; }
.shirt-pair::after { right: 0; background-position: right center; }
.shirt-pair > img,
#camisas .shirt-card .shirt-pair > img {
  width: 88%; height: auto; margin: 0 auto;
  max-width: none; display: block; aspect-ratio: auto;
  filter: brightness(1.39) contrast(.92);
  mask-image: linear-gradient(to right, transparent, #000 1%, #000 99%, transparent);
}
.shirt-pair-controls { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shirt-pair-controls button {
  display: flex; align-items: end; justify-content: center;
  border: 0; padding: 0 4px 7px; color: #fff; background: transparent; cursor: zoom-in;
}
.shirt-pair-controls button:focus-visible { outline-offset: -4px; }
.shirt-pair-controls button > span { padding: 4px 9px; border: 1px solid #bda89270; background: #171310ec; font-size: .8rem; }
.shirt-pair-controls button:hover > span { background: #3c2d23; }
.shirt-detail {
  display: inline-block; min-height: 44px; margin: 0 8px;
  padding: 6px 10px; color: #eed7b5; background: transparent; border: 0;
  text-align: left; text-decoration: underline; text-underline-offset: 3px;
}
.sov-product-page .product:has(.shirt-media--showcase) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.combo-photos .shirt-photo { grid-row: span 2; height: 100%; aspect-ratio: auto; }
.combo-photos .shirt-photo img { object-fit: fill; }
.shirt-media--showcase {
  background: #211c19;
  min-width: 0;
  padding: 0;
}
.shirt-lightbox {
  box-sizing: border-box; width: min(100% - 24px, 82vh, 740px); max-width: none;
  max-height: calc(100dvh - 24px); padding: 0; overflow: auto;
  background: #2d2b28; color: #fff; border: 1px solid #9a8a76;
}
.shirt-lightbox::backdrop { background: #090909dd; }
.shirt-lightbox form { display: flex; justify-content: end; position: sticky; top: 0; z-index: 1; background: #15120ff5; }
.shirt-lightbox button { min-height: 44px; padding: 8px 14px; color: inherit; border: 0; background: transparent; }

@media (max-width: 960px) {
  .catalog-header #main-nav .shop-category span { display: none; }
}
@media (761px <= width <= 900px) {
  .catalog-header .nav { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .catalog-header #main-nav { order: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
}
@media (max-width: 760px) {
  .catalog-header #main-nav { gap: 4px; padding: 0 8px 8px; min-height: 0; }
  .catalog-header #main-nav .shop-category { padding-inline: 4px; min-height: 48px; }
  .catalog-header #main-nav .shop-category strong { font-size: clamp(.66rem, 2.5vw, .80rem); }
  .landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-photo { aspect-ratio: 1.55; }
  #camisas { padding-inline: 10px; }
  .sov-product-page .product:has(.shirt-media--showcase) { grid-template-columns: minmax(0, 1fr); }
}

/* Fill letterboxed cosmetic photos with their own left/right scenery. */
.cosmetic-photo-fill {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: #b4a28d;
}
.cosmetic-photo-fill::before,
.cosmetic-photo-fill::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  width: 50%;
  background-image: var(--product-scenery);
  background-repeat: no-repeat;
  background-size: 10000% 100%;
}
.cosmetic-photo-fill::before { left: 0; background-position: left center; }
.cosmetic-photo-fill::after { right: 0; background-position: right center; }
.cosmetic-photo-fill > img {
  display: block;
  background: transparent !important;
  object-fit: contain;
}
.landing-photo > .cosmetic-photo-fill,
.landing-combo-photos > .cosmetic-photo-fill,
.combo-photos > .cosmetic-photo-fill { height: 100%; }
.landing-photo > .cosmetic-photo-fill > img,
.landing-combo-photos > .cosmetic-photo-fill > img,
.combo-photos > .cosmetic-photo-fill > img {
  width: 100%; height: 100%; min-height: 0;
}

/* Clear catalog purchase entry point, including touch screens. */
.card .product-buy,
.product-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid #e8c99e;
  border-radius: 4px;
  background: #d6b58a;
  color: #17130e;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: .2px;
  text-decoration: none;
  cursor: pointer;
}
.card:hover .product-buy,
.product-buy:hover { background: #ecd0aa; color: #17130e; }
.product-buy:focus-visible { outline: 3px solid #fff0d7; outline-offset: 4px; }

/* Warm barbershop scenery stays behind the cosmetics while the catalog scrolls. */
body[data-scenery] {
  background-color: #30251c;
  background-image: linear-gradient(#15120f65, #15120f85), var(--shop-scenery);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body[data-scenery="sr-s"] { --shop-scenery: url('/assets/barbearia-sr-s.webp'); }
body[data-scenery="zoteri"] { --shop-scenery: url('/assets/barbearia-zoteri.webp'); }
body[data-scenery] .shop-category-page { padding-top: 28px; }
body[data-scenery] .shop-category-page > .section { background: transparent; }
body[data-scenery] .card {
  background: #1b1916ee;
  padding: 14px;
  border: 1px solid #c8ae8755;
  box-shadow: 0 8px 28px #0003;
}
body[data-scenery] :is(.section-head, .category-title, .category-freight, .zoteri-tabs) {
  background: #191713df;
  border-radius: 4px;
  padding: 18px 22px;
}
body[data-scenery] .category-freight { margin-top: -12px; }
body[data-scenery] .product-info,
body[data-scenery] .zoteri-info {
  background: #191713f2;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid #c8ae8755;
}
body[data-scenery] .breadcrumb { background: #191713df; padding: 12px 18px; }
@media (max-width: 760px) {
  body[data-scenery] { background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; }
  body[data-scenery] .card { padding: 8px; }
  body[data-scenery] :is(.section-head, .category-title, .category-freight, .zoteri-tabs) { padding: 14px; }
}

/* Restore the personal GS photograph at the entrance and the team triptych behind shirts. */
body.shop-home {
  background: #171717 url('/assets/vitrine-praia-bmw-retrato.webp') center -65px / cover fixed no-repeat;
}
.shop-home .brand-opening {
  min-height: clamp(190px, 28vh, 280px);
  display: flex;
  align-items: center;
}
.shop-home .shop-landing { padding-top: 16px; }
.shop-home .brand-opening h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  margin-bottom: 12px;
  max-width: 45%;
  color: #f4ecdd;
  text-shadow: 0 2px 16px #000;
}
.shop-home .shop-freight-note,
.shop-home .rotas-promo {
  background: #151412eb;
  padding: 20px;
  border: 1px solid #b99c7350;
}
body[data-scenery="camisas"] {
  --shop-scenery: url('/assets/triptico-carioca.webp');
  background-image: linear-gradient(#0005, #0008), var(--shop-scenery);
  background-size: 100% 100%, auto 100vh;
  background-repeat: no-repeat;
  background-color: #090909;
}
body[data-scenery="camisas"] #camisas .shirt-team {
  background: #181717de;
  border: 1px solid #b99c7350;
  margin-bottom: 28px;
}
body[data-scenery="camisas"] .shirt-card { background: #191817f5; }
@media (max-width: 760px) {
  body.shop-home {
    background-image: url('/assets/vitrine-praia-bmw-retrato-mobile.webp');
    background-attachment: scroll;
    background-size: auto 78svh;
    background-position: center -35px;
    background-color: #171717;
  }
  .shop-home .brand-opening { min-height: clamp(160px, 26svh, 220px); align-items: flex-start; padding-top: 12px; }
  .shop-home .brand-opening h1 { max-width: 62%; font-size: 30px; }
  body[data-scenery="camisas"] { background-size: 100% 100%, 100% auto; background-repeat: no-repeat, repeat-y; }
}

/* Satin surfaces pick up the same light across the storefront. */
.theme-camisas { --metal-shadow: #31141d; --metal-light: #6a3343; --section-accent: #f5cad1; }
.theme-cosmeticos { --metal-shadow: #33211b; --metal-light: #704532; --section-accent: #ffdbc3; }
.theme-zoteri { --metal-shadow: #20271d; --metal-light: #49563b; --section-accent: #e4eccd; }
.theme-combos { --metal-shadow: #30271a; --metal-light: #695334; --section-accent: #ffe5b8; }

.catalog-header #main-nav .shop-category,
.landing-card {
  background-image: linear-gradient(108deg, var(--metal-shadow), var(--section-tint) 26%, var(--metal-light) 48%, var(--section-tint) 72%, var(--metal-shadow));
  box-shadow: inset 0 1px 0 #fff4, inset 0 -1px 0 #0006;
}
.catalog-header {
  background-image: linear-gradient(105deg, #101010, #252423 46%, #121212 78%);
}
.card .product-buy,
.card:hover .product-buy,
.purchase .button:not(:disabled),
.combo-card .button:not(:disabled),
.cart-summary .button:not(:disabled),
.promo-action {
  background-image: linear-gradient(108deg, #b68d59, #dfc39a 33%, #f6e4c4 49%, #d4af7a 71%, #bd9866);
  color: #21180f;
  box-shadow: inset 0 1px 0 #fff7, inset 0 -1px 0 #62421f66;
}
.theme-sov-arg {
  --section-accent: #d5e5f0; --section-tint: #243344;
  --metal-light: #40566a; --metal-shadow: #151d29;
}
.arg-intro {
  background: linear-gradient(118deg,#090909 45%,#111924 80%,#0a0a0a);
  padding-block: clamp(56px,10vw,140px);
  border-bottom: 1px solid #7f6949;
}
.arg-intro h1 { font-size: clamp(52px,10vw,138px); line-height: 1; margin: 0; color: #e5cf9c; }
.arg-intro h2 { margin: 1rem 0; color: #e9e6e2; font-size: clamp(20px,3vw,32px); }
.arg-intro .wrap::before { content: ""; display:block; width: 110px; height: 3px; margin-bottom: 24px; background:linear-gradient(105deg,#86303e,#f2d399,#5984ac); }
.arg-status { color: #cfbc96; margin-top: 2rem; }
@media(max-width:960px) {
  .catalog-header #main-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
