/* Shared storefront cards: one footer height, grids that fill the content column. */

body.sector-shell[data-theme] main {
  max-width: 1280px;
  margin-inline: auto;
  padding: 16px 24px 48px;
}

body.sector-shell[data-theme] .sector-hero {
  width: auto;
  margin: 8px 0 32px;
  border-radius: 18px;
  overflow: hidden;
}

body.sector-shell[data-theme] .home-composition .home-cats.mosaic-block {
  margin: 8px 0 28px;
}

body.sector-shell[data-theme] .home-composition .home-category-grid {
  justify-content: flex-start;
}

body.sector-shell[data-theme] .home-composition .strips {
  display: block;
  margin: 0 0 32px;
  padding: 0;
}

body.sector-shell[data-theme] .home-composition .strips li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 22px 28px;
  border: 0;
  border-radius: 16px;
  background: #f8f4ec;
  box-shadow: inset 0 0 0 1px #eadfce;
}

body.sector-shell[data-theme] .home-composition .strips li > span {
  margin-left: auto;
}

body.sector-shell[data-theme] .home-composition .rail,
body.sector-shell[data-theme] .home-composition .home-products {
  margin: 36px 0;
}

body.sector-shell[data-theme] .home-composition .rail > h2,
body.sector-shell[data-theme] .home-composition .home-products > h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: var(--type-section, 1.25rem);
  font-weight: 650;
  letter-spacing: -.02em;
}

body.sector-shell[data-theme] .home-composition .rail > h2::after,
body.sector-shell[data-theme] .home-composition .home-products > h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e3e3df;
}

body.sector-shell[data-theme] .home-composition .home-part-collections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Brands and content pages close the home page as one quiet band: a small label and
   plain links on a hairline, no cards or frames. */
body.sector-shell[data-theme] .home-extras {
  display: grid;
  gap: 14px;
  margin: 48px 0 8px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line, #e3e3df);
  background: none;
}

body.sector-shell[data-theme] .home-extras .extras-row {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

body.sector-shell[data-theme] .home-extras .extras-row > h2 {
  flex: 0 0 7rem;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--muted, #6b7280);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.sector-shell[data-theme] .home-extras .extras-row > h2::after {
  content: none;
}

body.sector-shell[data-theme] .home-extras .extras-row ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.sector-shell[data-theme] .home-extras .extras-row li {
  flex: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}

body.sector-shell[data-theme] .home-extras .extras-row a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink, #1f2937);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

body.sector-shell[data-theme] .home-extras .extras-row a:hover,
body.sector-shell[data-theme] .home-extras .extras-row a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A brand with a logo shows the image instead of its name, in full colour on a quiet tile. */
body.sector-shell[data-theme] .home-extras .extras-row li.has-logo a {
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: #fff;
}

body.sector-shell[data-theme] .home-extras .extras-row li.has-logo img {
  display: block;
  width: auto;
  max-width: 120px;
  height: 36px;
  object-fit: contain;
}

@media (max-width: 640px) {
  body.sector-shell[data-theme] .home-extras .extras-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  body.sector-shell[data-theme] .home-extras .extras-row > h2 {
    flex-basis: auto;
  }

  body.sector-shell[data-theme] .home-extras .extras-row ul {
    gap: 0 18px;
  }

  body.sector-shell[data-theme] .home-extras .extras-row a {
    min-height: 40px;
  }
}

body.sector-shell[data-theme] main ul.grid:not(.list) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* One product stays a normal card. Two and three fill the row instead of leaving empty tracks. */
body.sector-shell[data-theme] main ul.grid:not(.list):not(:has(> :nth-child(2))) {
  grid-template-columns: minmax(0, 22rem);
  justify-content: start;
}

body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(3)):not(:has(> :nth-child(4))) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.sector-shell[data-theme] .results ul.grid:not(.list) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.sector-shell[data-theme] .results ul.grid:not(.list):not(:has(> :nth-child(2))) {
  grid-template-columns: minmax(0, 22rem);
  justify-content: start;
}

body.sector-shell[data-theme] .results ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sector-shell[data-theme="moda"] main:has(.home-composition) {
  max-width: 1280px;
  margin-inline: auto;
  padding: 16px 24px 48px;
}

body.sector-shell[data-theme="moda"] .home-part:not(.home-part-hero),
body.sector-shell[data-theme="moda"] main:has(.home-composition) > .home-products {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

body.sector-shell[data-theme="moda"] .home-part-hero .sector-hero {
  border-radius: 18px;
  margin: 8px 0 32px;
}

body.sector-shell[data-theme] main ul.grid:not(.list) > .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-width: 0;
  overflow: visible;
  text-align: left;
  padding: 0 0 12px;
  gap: 0;
}

body.sector-shell[data-theme] .card-media,
body.sector-shell[data-theme] .card-gallery-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: none;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 12px 12px 0 0;
  background: #f5f3ef;
}

body.sector-shell[data-theme="moda"] .card-media,
body.sector-shell[data-theme="moda"] .card-gallery-wrap {
  aspect-ratio: 3 / 4;
}

body.sector-shell[data-theme] .card-gallery-wrap .card-media {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

body.sector-shell[data-theme] .card-media img,
body.sector-shell[data-theme] .card-carousel .card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.sector-shell[data-theme] .card .product-badges,
body.sector-shell[data-theme] .card-gallery-wrap > .product-badges {
  inset: 6px auto auto 6px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 12px);
  max-height: 2.35rem;
  overflow: hidden;
}

body.sector-shell[data-theme] .card .product-badge,
body.sector-shell[data-theme] .card-gallery-wrap > .product-badges .product-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(16, 20, 18, .28);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  white-space: nowrap;
}

body.sector-shell[data-theme] .card .badge-sale,
body.sector-shell[data-theme] .card-gallery-wrap .badge-sale {
  background: #8f1d38;
  color: #fff;
}

body.sector-shell[data-theme] .card .badge-new,
body.sector-shell[data-theme] .card .badge-more,
body.sector-shell[data-theme] .card-gallery-wrap .badge-new,
body.sector-shell[data-theme] .card-gallery-wrap .badge-more {
  background: #fff;
  color: #14201c;
  border-color: #14201c;
}

body.sector-shell[data-theme] .card .badge-shipping,
body.sector-shell[data-theme] .card .badge-options,
body.sector-shell[data-theme] .card-gallery-wrap .badge-shipping,
body.sector-shell[data-theme] .card-gallery-wrap .badge-options {
  background: #0e5a44;
  color: #fff;
}

body.sector-shell[data-theme] .card-gallery-hint {
  right: 6px;
  bottom: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #14201c;
  box-shadow: 0 1px 2px rgba(16, 20, 18, .28);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

body.sector-shell[data-theme] .card .product-stock-note,
body.sector-shell[data-theme] .card-body .product-stock-note {
  display: block;
  max-height: none;
  margin-top: 4px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  color: #6b3f0a;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}

body.sector-shell[data-theme] .card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px 0;
}

body.sector-shell[data-theme] .rail > h2,
body.sector-shell[data-theme] .home-products > h2 {
  font-size: var(--type-section, 1.25rem);
  font-weight: 650;
  letter-spacing: -.02em;
}

body.sector-shell[data-theme] .card > .card-name,
body.sector-shell[data-theme] .card-body .card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  margin: 10px 12px 0;
  padding: 0;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: normal;
  text-align: left;
  font-size: var(--type-title, .875rem);
  font-weight: 600;
  letter-spacing: -.015em;
}

body.sector-shell[data-theme] .card-body .card-name {
  margin: 0;
}

body.sector-shell[data-theme] .card > .card-price,
body.sector-shell[data-theme] .card > .card-vat,
body.sector-shell[data-theme] .card > .product-stock-note {
  margin-inline: 12px;
}

body.sector-shell[data-theme] .card-price {
  display: block;
  min-height: 1.4em;
  line-height: 1.4;
  font-size: var(--type-price, .9375rem);
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

body.sector-shell[data-theme] .product-stock-note {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 2.9em;
  margin-top: 6px;
  line-height: 1.35;
}

body.sector-shell[data-theme] .card-foot,
body.sector-shell[data-theme] .card-add {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.sector-shell[data-theme] .card-foot {
  --swatch-row: 0px;
  flex: 0 0 auto;
  margin: auto 0 0;
  padding: 8px 12px 0;
}

body.sector-shell[data-theme] .card-add {
  margin: 0;
  padding: 0;
}

body.sector-shell[data-theme] .card-options-slot {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: var(--swatch-row);
  min-height: var(--swatch-row);
  max-height: var(--swatch-row);
  overflow: hidden;
  box-sizing: border-box;
}

body.sector-shell[data-theme] .card-foot .card-options,
body.sector-shell[data-theme] .card-foot .card-option-count {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
}

body.sector-shell[data-theme] .card-foot .card-option-count {
  align-items: center;
  width: auto;
  height: auto;
  align-self: center;
  padding: 4px 10px;
  overflow: hidden;
}

body.sector-shell[data-theme] .card-foot .card-options > .card-choice,
body.sector-shell[data-theme] .card-foot .card-options > a,
body.sector-shell[data-theme] .card-foot .card-choice-unavailable {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  box-sizing: border-box;
  height: 100%;
  max-width: 4.75rem;
  min-width: 44px;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line, #dce0e5);
  border-radius: 8px;
  box-shadow: none;
}

body.sector-shell[data-theme] .card-foot .card-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: none;
}

body.sector-shell[data-theme] .card-foot .card-choice input {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
}

body.sector-shell[data-theme] .card-foot .card-choice a {
  min-height: 0;
  border: 0;
  box-shadow: none;
}

body.sector-shell[data-theme] .card-foot .card-choice-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
}

body.sector-shell[data-theme] .card-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 2.75rem 2.75rem;
  gap: 8px;
  width: 100%;
}

body.sector-shell[data-theme] .card-cta > .card-primary,
body.sector-shell[data-theme] .card-cta > .card-buy,
body.sector-shell[data-theme] .card-cta > .sold-out,
body.sector-shell[data-theme] .card-cta > .card-cta-gap {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  max-height: 2.75rem;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.sector-shell[data-theme] .card-cta > .card-primary {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  border: 1px solid transparent;
  font-weight: 700;
}

body.sector-shell[data-theme] .card-cta > .card-buy {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 700;
}

body.sector-shell[data-theme] .card-cta > .card-cta-gap {
  visibility: hidden;
  border: 1px solid transparent;
  padding: 0;
}

body.sector-shell[data-theme] .card-cta > .sold-out {
  background: transparent;
  border: 1px dashed var(--line, #d5d8dc);
  color: var(--warn, #8a4b12);
  font-weight: 700;
}

body.sector-shell[data-theme="moda"] .card-cta > .card-primary,
body.sector-shell[data-theme="moda"] .card-cta > .card-buy,
body.sector-shell[data-theme="vitrin"] .card-cta > .card-primary,
body.sector-shell[data-theme="vitrin"] .card-cta > .card-buy,
body.sector-shell[data-theme="teknik"] .card-cta > .card-primary,
body.sector-shell[data-theme="teknik"] .card-cta > .card-buy {
  border-radius: 2px;
}

body.sector-shell[data-theme="yuva"] .card-cta > .card-primary,
body.sector-shell[data-theme="yuva"] .card-cta > .card-buy,
body.sector-shell[data-theme="pazar"] .card-cta > .card-primary,
body.sector-shell[data-theme="pazar"] .card-cta > .card-buy {
  border-radius: 999px;
}

body.sector-shell[data-theme="klasik"] main .home-composition .home-part-featured ul.grid:not(.list) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.sector-shell[data-theme="klasik"] main .home-part-featured ul.grid:not(.list) > .card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  height: 100%;
  padding: 12px;
  gap: 8px 14px;
  overflow: hidden;
}

body.sector-shell[data-theme="klasik"] .home-part-featured .card-gallery-wrap,
body.sector-shell[data-theme="klasik"] .home-part-featured .card > .card-media {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  height: auto;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}

body.sector-shell[data-theme="klasik"] .home-part-featured .card-body {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

body.sector-shell[data-theme="klasik"] .home-part-featured .card-foot {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
}

/* Tablets keep three cards a row, phones two; only very narrow screens stack. */
@media (max-width: 980px) {
  body.sector-shell[data-theme] main ul.grid:not(.list),
  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(3)):not(:has(> :nth-child(4))),
  body.sector-shell[data-theme] .results ul.grid:not(.list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))),
  body.sector-shell[data-theme] .results ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))),
  body.sector-shell[data-theme="klasik"] main .home-composition .home-part-featured ul.grid:not(.list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.sector-shell[data-theme] main ul.grid:not(.list):not(:has(> :nth-child(2))),
  body.sector-shell[data-theme] .results ul.grid:not(.list):not(:has(> :nth-child(2))) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.sector-shell[data-theme] main {
    padding: 12px 12px 32px;
  }

  body.sector-shell[data-theme] .sector-hero {
    border-radius: 14px;
    margin-top: 0;
  }

  body.sector-shell[data-theme] .home-composition .strips li {
    padding: 18px;
  }

  body.sector-shell[data-theme] .home-composition .strips li > span {
    margin-left: 0;
  }

  body.sector-shell[data-theme] main ul.grid:not(.list),
  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))),
  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(3)):not(:has(> :nth-child(4))),
  body.sector-shell[data-theme] .results ul.grid:not(.list),
  body.sector-shell[data-theme] .results ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.sector-shell[data-theme] main ul.grid:not(.list):not(:has(> :nth-child(2))),
  body.sector-shell[data-theme="klasik"] main .home-composition .home-part-featured ul.grid:not(.list) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.sector-shell[data-theme="klasik"] main .home-part-featured ul.grid:not(.list) > .card {
    display: flex;
    flex-direction: column;
    padding: 0 0 12px;
  }

  body.sector-shell[data-theme="klasik"] .home-part-featured .card-gallery-wrap,
  body.sector-shell[data-theme="klasik"] .home-part-featured .card > .card-media {
    max-height: none;
    aspect-ratio: 1 / 1;
    grid-column: auto;
    grid-row: auto;
  }

  body.sector-shell[data-theme="klasik"] .home-part-featured .card-foot {
    margin-top: auto;
    padding: 8px 12px 0;
  }
}

@media (max-width: 359px) {
  body.sector-shell[data-theme] main ul.grid:not(.list),
  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))),
  body.sector-shell[data-theme] main ul.grid:not(.list):has(> :nth-child(3)):not(:has(> :nth-child(4))),
  body.sector-shell[data-theme] .results ul.grid:not(.list),
  body.sector-shell[data-theme] .results ul.grid:not(.list):has(> :nth-child(2)):not(:has(> :nth-child(3))) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card rhythm: every card in a row lines up whatever the title length or theme. The name always
   takes two lines, the buttons sit on the card's bottom edge. */
body.sector-shell[data-theme] main ul.grid:not(.list) > li.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

body.sector-shell[data-theme] main ul.grid:not(.list) > li.card .card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8em;
  min-height: 2lh;
}

body.sector-shell[data-theme] main ul.grid:not(.list) > li.card > .card-foot,
body.sector-shell[data-theme] main ul.grid:not(.list) > li.card > .card-body + .card-foot {
  margin-top: auto;
}

/* Lighter buttons: one filled action, one quiet outline; 44px tall everywhere for touch screens. */
body.sector-shell[data-theme] .card-cta > .card-primary,
body.sector-shell[data-theme] .card-cta > .card-buy {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
}

body.sector-shell[data-theme] .card-cta > .card-buy {
  border-color: var(--line, #d5d8dc);
  color: var(--ink, #1f2937);
}

body.sector-shell[data-theme] .card-cta > .card-buy:hover,
body.sector-shell[data-theme] .card-cta > .card-buy:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

@media (min-width: 641px) {
  body.sector-shell[data-theme] .card-cta {
    gap: 6px;
  }
}

/* B-327: choose the option (size, colour…) on the card, then add to the cart. */
.card-select { display: grid; gap: 4px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); }
.card-select select { width: 100%; min-height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line, #d1d5db); border-radius: var(--id-radius, 10px); background: var(--card, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink, #111827); font: inherit; font-size: 14px; font-weight: 500; appearance: none; cursor: pointer; }
.card-select select:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 1px; }
.card-select-more { display: inline-block; margin: -2px 0 8px; font-size: 12px; color: var(--accent, inherit); }

/* Products per row chosen in the designer (T-294). It wins over the theme's count and over the
   "two products fill the row" rule; tablets keep at most three and phones the theme's columns. */
@media (min-width: 641px) {
  body.sector-shell[data-theme] main ul.grid[data-columns]:not(.list) {
    grid-template-columns: repeat(var(--grid-cols-mid, 3), minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }
}

@media (min-width: 1100px) {
  body.sector-shell[data-theme] main ul.grid[data-columns]:not(.list) {
    grid-template-columns: repeat(var(--grid-cols, 3), minmax(0, 1fr)) !important;
  }
}
/* Rich product card (T-310): favourite heart, rating, offer and coupon tags, installment line. */
.card { position: relative; }
.card-fav { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 2; margin: 0; padding: 0; border: 0; background: none; }
.card-fav button { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line, #e5e7eb); border-radius: 999px; background: color-mix(in srgb, var(--surface, #fff) 92%, transparent); color: var(--accent, #e11d48); font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / .08); }
.card-fav button:hover { background: var(--surface, #fff); transform: scale(1.06); }
.card-rating { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; }
.card-rating small { color: var(--muted, #6b7280); font-weight: 400; }
.card-stars { color: #f59e0b; }
.card-tag { display: inline-block; align-self: start; max-width: 100%; padding: .15rem .5rem; border-radius: .35rem; font-size: .74rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.card-tag-offer { background: color-mix(in srgb, var(--accent, #15803d) 12%, transparent); color: var(--accent, #15803d); }
.card-tag-coupon { border: 1px dashed currentColor; color: #c2410c; }
.card-installment { font-size: .76rem; color: var(--muted, #6b7280); }
.card:has(.card-fav) .product-badges { padding-inline-end: 2.6rem; }
