body.gruda-shop, .gruda-category-catalog { color-scheme: light; color: #241810; background: #fffdf8; font-family: system-ui, sans-serif }
:where(.gruda-shop,.gruda-category-catalog) * { box-sizing: border-box }
body.gruda-shop { margin: 0 }
:is(.gruda-shop,.gruda-category-catalog) a { color: inherit }
.gruda-shop .site-header, .gruda-shop footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(5vw,1rem); background: #fff; border-block-end: 1px solid #eee6d6 }
.gruda-shop .site-header nav { display: flex; flex-wrap: wrap; gap: clamp(.6rem,3vw,2rem) }
.gruda-shop .site-header a, .gruda-shop footer a { text-decoration: none }
.gruda-shop .site-header a:hover, .gruda-shop footer a:hover { text-decoration: underline }
.gruda-shop .brand img { display: block; width: min(105px,22vw); height: auto }
body.gruda-shop > main, .gruda-category-catalog { max-width: 1250px; min-height: 68vh; margin: auto; padding: clamp(1rem,4vw,4rem) }
.shop-intro p, .category { color: #75522a; font-weight: 650; letter-spacing: .08em }
:is(.gruda-shop,.gruda-category-catalog) h1 { font-size: clamp(2rem,6vw,3.8rem); line-height: 1.08; margin: .2em 0 .55em }
.shop-intro form, #add-product { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.5rem }
:is(.gruda-shop,.gruda-category-catalog) :is(button,select,input) { min-height: 2.75rem; font: inherit; border: 1px solid #c7ae91; border-radius: .35rem; padding: .5rem .75rem; background: #fff; color: inherit }
:is(.gruda-shop,.gruda-category-catalog) button { cursor: pointer; font-weight: 650; background: #ffd565; border-color: #ffd565 }
:is(.gruda-shop,.gruda-category-catalog) button:hover { background: #f0bd36; border-color: #f0bd36 }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(215px,100%),1fr)); gap: 1rem }
.shop-card { background: #fff; border-radius: .8rem; border: 1px solid #eee6d6; overflow: hidden }
.shop-card > :is(a,.shop-card-content) { display: block; height: 100%; text-decoration: none }
.shop-card :is(h2,h3) { font-size: 1.05rem; margin: .3rem 0 .75rem }
.shop-card p { color: #75522a; margin: 0; font-size: .85rem }
.shop-card-details { padding: 1rem }
.shop-card img, .photo-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; background: #f8efdf }
.shop-card small { display: block; margin-top: .45rem; color: #6c4029 }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1rem,5vw,4rem); margin-top: 1.2rem }
.product-media-stage { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f8efdf; border-radius: .8rem }
.main-photo { width: 100%; height: 100%; object-fit: contain }
.product-media-stage iframe { width: 100%; height: 100%; border: 0; background: #000; display: block }
.product-media-stage .media-arrow { position: absolute; z-index: 1; top: 50%; translate: 0 -50%; padding: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #fff; color: #241810; font-size: 1.5rem }
.media-previous { left: .5rem }
.media-next { right: .5rem }
.product-video-thumb { position: relative; min-width: 58px; min-height: 58px }
.product-video-thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: #24181078; border-radius: inherit }
.thumbnails { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem }
.thumbnails button { padding: .2rem; background: #fff; border-color: #e8dbc7 }
.thumbnails button[aria-pressed=true] { border-color: #805119 }
.thumbnails img { display: block; width: 52px; height: 52px; object-fit: contain }
.product-price { font-size: 1.4rem; display: block; margin-bottom: 1rem }
#add-product label { display: grid; gap: .25rem }
#add-product input { width: 5rem }
.description { white-space: pre-wrap; line-height: 1.55 }
.checkout-link { font-weight: 700 }
.contact { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem }
.contact a { color: #473716 }
.gruda-shop footer { flex-wrap: wrap; border-block-start: 1px solid #eee6d6 }
@media (max-width: 630px) { .product-detail { grid-template-columns: 1fr } .shop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem } .shop-card-details { padding: .65rem } }
.gruda-shop .site-header nav a[aria-current="page"] { color: #75522a; font-weight: 700; text-decoration: underline; text-underline-offset: .3em }

/* Colors from the original Gruda category layouts. */
.gruda-category-band--mjalta { background-color: #fad530 }
.gruda-category-band--bletaria { background-color: #99cf8f }
.gruda-category-band .gruda-category-catalog {
  max-width: 1536px;
  padding-inline: clamp(.75rem,3vw,3rem);
  background-color: transparent;
}

.gruda-category-band .shop-card { background-color: transparent; border-color: transparent }
.gruda-category-band .shop-card > :is(a,.shop-card-content) { display: flex; flex-direction: column }
.gruda-category-band .shop-card img, .gruda-category-band .shop-card .photo-placeholder { aspect-ratio: 1 / 1; background-color: transparent; flex-shrink: 0 }
.gruda-category-band .shop-card-details { background-color: #fff; flex: 1 }

.shop-group { --catalog-card-background: #fff6cc }
.shop-group :is(.shop-group-title, .shop-card :is(h2,h3,strong)) {
  font-family: BourtonBase, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .025em;
}
.shop-group .shop-card-details { background-color: var(--catalog-card-background); text-align: center }
.shop-group + .shop-group { margin-top: clamp(2rem,5vw,4rem) }
.shop-group-title { margin: 0 0 1rem; font-size: clamp(1.35rem,3vw,2.35rem); line-height: 1.15; text-align: center }
.shop-group .shop-grid {
  --card-columns: 2;
  --card-gap: .5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}
.shop-group .shop-card {
  flex: 0 0 calc((100% + var(--card-gap)) / var(--card-columns) - var(--card-gap));
  min-width: 0;
}
.shop-card-photo {
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
}
.shop-card-photo > img {
  z-index: 1;
  transform: translateY(var(--product-photo-offset,0%)) scale(var(--product-photo-scale,1));
}
.shop-card-photo > *, .shop-card-photo::before { grid-area: 1 / 1 }
.shop-card-photo::before {
  content: "";
  width: 94%;
  aspect-ratio: 2 / 1.732;
  background-color: var(--catalog-card-background);
  clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);
}
@media (min-width: 631px) {
  .shop-group .shop-grid { --card-gap: 1rem }
}
@media (min-width: 720px) {
  .shop-group .shop-grid { --card-columns: 3 }
}
@media (min-width: 980px) {
  .shop-group .shop-grid { --card-columns: 4 }
}
