/*
 * Storefront structure for the store themes (Shop, Market, Boutique). Loaded after base.css and
 * before the theme file, which sets the --mt-* tokens and its own touches.
 */
.st { padding-bottom: 0; --st-hero-ink: #ffffff; }
.st-h2 { margin: 0 0 12px; font-family: var(--mt-font-head); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; }

/* Perks bar */
.st-perks { background: var(--mt-text); color: var(--mt-bg); font-size: .8rem; font-weight: 600; }
.st-perks__track { max-width: var(--mt-max); margin: 0 auto; padding: 9px 16px; display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.st-perks__track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .st-perks__track { justify-content: center; } }
.st-perks span, .st-perks a { display: inline-flex; align-items: center; gap: 6px; color: inherit !important; }
.st-perks svg { flex: none; width: 16px; height: 16px; fill: currentColor; }

/* Hero */
.st-hero {
    position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 300px; margin: 12px;
    border-radius: calc(var(--mt-radius) + 8px); background: linear-gradient(135deg, var(--mt-primary), var(--mt-secondary)); color: var(--st-hero-ink);
}
.st-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 15%, rgba(0, 0, 0, .74) 100%); }
.st-hero.is-plain::after { display: none; }
.st-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--mt-max); margin: 0 auto; padding: 90px 18px 20px; }
.st-hero__brand { display: flex; align-items: center; gap: 14px; }
.st-hero__logo { flex: none; width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: #fff; border: 3px solid rgba(255, 255, 255, .9); }
.mt .st-hero__name { color: var(--st-hero-ink); font-size: clamp(1.7rem, 6.5vw, 3rem); font-weight: 800; line-height: 1.02; }
html body .mt .st-hero__desc { margin-top: 4px; color: var(--st-hero-ink) !important; opacity: .88; font-size: .95rem; }
.st-hero .mt-chip, .st-hero .mt-chip:hover { background: rgba(255, 255, 255, .18); color: var(--st-hero-ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.st-hero .mt-social a { background: rgba(255, 255, 255, .18); color: var(--st-hero-ink) !important; }
.st-hero .mt-langs a { color: var(--st-hero-ink); border-color: rgba(255, 255, 255, .4); }
.mt a.st-hero__cta { display: inline-flex; align-items: center; gap: 8px; height: 48px; margin-top: 16px; padding: 0 22px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; }
.st-hero__cta svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
    .st-hero { min-height: 380px; max-width: calc(var(--mt-max) + 8px); margin: 16px auto 0; }
    .st-hero__inner { padding: 120px 32px 32px; }
    .st-hero__logo { width: 80px; height: 80px; }
}

/* Collections */
.st-collections { max-width: var(--mt-max); margin: 28px auto 0; padding: 0 16px; }
.st-collections__row { display: flex; gap: 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.st-collections__row::-webkit-scrollbar { display: none; }
.st-collection { flex: 0 0 auto; width: 112px; display: flex; flex-direction: column; gap: 6px; text-align: center; scroll-snap-align: start; }
.st-collection__img { position: relative; display: block; width: 112px; height: 112px; overflow: hidden; border-radius: var(--mt-radius); background: rgba(var(--mt-primary-rgb), .1); }
.st-collection__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.st-collection:hover .st-collection__img img { transform: scale(1.06); }
.st-collection__name { font-size: .86rem; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-collection__count { color: var(--mt-muted); font-size: .74rem; }

/* Cart in the category bar */
.st-navcart { position: relative; }
.st-navcart__badge { position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; align-items: center; justify-content: center; background: var(--mt-primary); color: var(--mt-on-primary); font-size: 11px; font-weight: 800; }

/* Product grid */
.st .mt-section__title { font-size: 1.4rem; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .st-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-card { display: flex; flex-direction: column; overflow: hidden; background: var(--mt-surface); border-radius: var(--mt-radius); }
.st-card.is-out { opacity: .65; }
.st-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: rgba(var(--mt-primary-rgb), .08); }
.st-card__media img { transition: transform .35s ease; }
.st-card:hover .st-card__media img { transform: scale(1.04); }
.st-card__badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: var(--mt-secondary); color: var(--mt-on-secondary); font-size: .74rem; font-weight: 800; }
.st-card__sold { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #111; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.st-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 0; }
.st-card .mt-item__name { min-height: 2.6em; font-size: .95rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-card .mt-price { color: var(--mt-text); font-size: 1.05rem; font-weight: 800; }
.st-card .mt-price__old { font-size: .8rem; }
.st-card__add {
    height: 42px; margin: 10px 12px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: max(calc(var(--mt-radius) - 4px), 0px); background: var(--mt-primary); color: var(--mt-on-primary);
    font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: transform .12s ease, filter .12s ease, background .2s ease;
}
.st-card__add svg { width: 18px; height: 18px; fill: currentColor; }
.st-card__add:hover { filter: brightness(1.06); }
.st-card__add:active { transform: scale(.97); }
.st-card__add.is-busy { opacity: .7; }
.st-card__add.is-added { background: #22a565; color: #fff; }
html body .mt .st-closed { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(var(--mt-primary-rgb), .08); font-weight: 600; text-align: center; }

/* Footer */
.st-foot { margin-top: 56px; padding: 32px 16px 100px; border-top: 1px solid var(--mt-line); background: var(--mt-surface); }
.st-foot__inner { max-width: var(--mt-max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.st-foot__brand { display: flex; align-items: center; gap: 12px; max-width: 440px; }
.st-foot__brand img { flex: none; width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.st-foot__brand strong { display: block; font-size: 1.05rem; }
.st-foot__brand span { display: block; color: var(--mt-muted); font-size: .86rem; }
.st-foot__links { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.mt .st-foot__links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.st-foot__links span { color: var(--mt-muted); }
html body .mt .st-foot .mt-powered { margin-top: 28px; }

/* WhatsApp + cart bar */
.mt a.st-wa { position: fixed; right: 16px; bottom: 18px; z-index: 120; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transition: bottom .25s ease; }
.st-wa svg { width: 26px; height: 26px; fill: currentColor; }
.st:has(.st-cartbar:not(.is-empty)) .st-wa { bottom: 86px; }
.st-cartbar {
    position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 121; height: 58px; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 0; border-radius: 18px; background: var(--mt-primary); color: var(--mt-on-primary);
    font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); transition: transform .25s ease, opacity .25s ease;
}
.st-cartbar.is-empty { transform: translateY(140%); opacity: 0; pointer-events: none; }
.st-cartbar__count { font-size: .88rem; opacity: .9; }
.st-cartbar__label { flex: 1; text-align: center; }
@media (min-width: 900px) {
    .st-cartbar { left: auto; right: 24px; bottom: 24px; width: 380px; }
    .mt a.st-wa { right: 24px; bottom: 24px; }
    .st:has(.st-cartbar:not(.is-empty)) .st-wa { bottom: 96px; }
}

/* Product sheet: bigger photo, shop-like */
#productModal #modalImg { max-height: 360px; }
