/* Design "Flex": a marketplace-style storefront. White rounded blocks on a light page, pastel collections, product cards with a blue buy button. */
.store.theme-flex { --s-bg: #f3f5f9; --s-text: #1e1e1e; --s-muted: #7a8190; --s-accent: #0a6cdc; --s-accent-text: #fff; --s-card: #fff; --s-line: #e4e8f0; --s-soft: #f6f7fb; --s-radius: 14px; --s-head: Montserrat, Manrope, system-ui, sans-serif;
    font-family: Montserrat, Manrope, system-ui, sans-serif; padding-bottom: 8px; }
.theme-flex .f-top { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--s-line); color: #4a5160; font-size: 12px; font-weight: 600; }
.theme-flex .f-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #fff; }
.theme-flex .s-logo { font-size: 20px; flex: none; max-width: 220px; }
.theme-flex .s-logo__img, .theme-flex .s-logo__ini { border-radius: 12px; }
.theme-flex .f-catbtn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--s-accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.theme-flex .f-catbtn svg { width: 18px; height: 18px; }
.theme-flex .f-search { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; min-width: 0; height: 44px; padding: 0 4px 0 16px; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; color: #9aa1b0; font-size: 13px; }
.theme-flex .f-search i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--s-accent); color: #fff; }
.theme-flex .f-search svg { width: 18px; height: 18px; }
.theme-flex .f-icons { display: flex; flex: none; gap: 14px; }
.theme-flex .f-ic { position: relative; display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #2b2f3a; font: inherit; cursor: pointer; }
.theme-flex .f-ic svg { width: 22px; height: 22px; }
.theme-flex .f-ic em { font-size: 11px; font-style: normal; font-weight: 600; }
.theme-flex .f-ic b { position: absolute; top: -5px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--s-accent); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.theme-flex .f-banners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 16px 0; }
.theme-flex .f-banner { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: linear-gradient(160deg, var(--b1), var(--b2)); cursor: pointer; min-height: 290px; }
.theme-flex .f-banner__t { display: grid; gap: 6px; padding: 16px 16px 4px; }
.theme-flex .f-banner__t b { font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-flex .f-banner__t span { font-size: 18px; font-weight: 800; color: var(--s-accent); }
.theme-flex .f-banner__t i { justify-self: start; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.theme-flex .f-banner__img { flex: 1 1 auto; aspect-ratio: auto; min-height: 150px; margin: 8px 12px 12px; border-radius: 12px; background: rgba(255, 255, 255, .55); }
.theme-flex .f-banner__img img { object-fit: cover; }
.theme-flex .f-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 12px 16px 0; }
.theme-flex .f-perk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; }
.theme-flex .f-perk i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #edf3fd; color: #1c2a4a; }
.theme-flex .f-perk svg { width: 22px; height: 22px; }
.theme-flex .f-perk b { display: block; font-size: 13px; }
.theme-flex .f-perk span { display: block; margin-top: 2px; color: var(--s-muted); font-size: 11px; line-height: 1.35; }
.theme-flex .f-sec, .theme-flex .s-sec { margin: 12px 16px 0; padding: 20px; border-radius: 20px; background: #fff; }
.theme-flex .f-sec h2, .theme-flex .s-sec h3 { margin: 0; font-family: var(--s-head); font-size: 22px; font-weight: 800; }
.theme-flex .f-sec > h2 { margin-bottom: 16px; }
.theme-flex .s-sec h3 { margin-bottom: 14px; }
.theme-flex .f-sec__h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.theme-flex .f-chip { padding: 3px 10px; border-radius: 999px; background: #e8f0fd; color: var(--s-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.theme-flex .f-chip--p { background: #f1e6fd; color: #8b32d8; }
.theme-flex .f-all { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 8px 12px; border-radius: 10px; background: #f1f2f6; font-size: 12px; font-weight: 700; }
.theme-flex .f-all svg { width: 14px; height: 14px; }
.theme-flex .f-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.theme-flex .f-cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 84px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--b1); color: #1e1e1e; font-size: 13px; font-weight: 600; line-height: 1.25; }
.theme-flex .f-cat span { min-width: 0; overflow-wrap: anywhere; }
.theme-flex .f-cat i { flex: none; width: 56px; height: 56px; aspect-ratio: auto; border-radius: 10px; background: #fff; }
.theme-flex .f-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.theme-flex .f-card { display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--s-line); border-radius: 18px; background: #fff; cursor: pointer; }
.theme-flex .f-card:hover { box-shadow: 0 16px 34px -24px rgba(10, 30, 80, .45); }
.theme-flex .f-card__img { aspect-ratio: 1 / 1; border: 1px solid var(--s-line); border-radius: 12px; background: #fff; }
.theme-flex .f-card__img img { object-fit: contain; padding: 6px; box-sizing: border-box; }
.theme-flex .f-card__img .s-ph { font-size: 44px; }
.theme-flex .f-badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.theme-flex .f-badge { padding: 3px 9px; border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; }
.theme-flex .f-badge--hit { background: #9333ea; }
.theme-flex .f-badge--new { background: var(--s-accent); }
.theme-flex .f-stock { align-self: flex-start; margin: 10px 0 0 2px; padding: 4px 10px; border-radius: 999px; background: #e8f6ee; color: #1f8a4d; font-size: 11px; font-weight: 700; }
.theme-flex .f-card__t { margin: 8px 2px 0; min-height: 2.6em; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-flex .f-card__sku { margin: 6px 2px 0; color: #9aa1b0; font-size: 10px; }
.theme-flex .f-card__p { margin: 8px 2px 10px; font-size: 18px; font-weight: 800; }
.theme-flex .f-card__btns { display: flex; gap: 8px; margin-top: auto; }
.theme-flex .f-buy { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 0; border-radius: 10px; background: var(--s-accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.theme-flex .f-buy svg { width: 16px; height: 16px; }
.theme-flex .f-quick { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--s-line); border-radius: 10px; background: #fff; color: #2b2f3a; cursor: pointer; }
.theme-flex .f-quick svg { width: 16px; height: 16px; }
.theme-flex .f-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 12px 16px 0; padding: 18px 20px; border-radius: 20px; background: #fff; color: var(--s-muted); font-size: 12px; }
.theme-flex .f-foot b { color: var(--s-text); font-size: 14px; }
.theme-flex .m-rev { border-radius: 14px; }
.theme-flex .m-rev { background: #f7f8fb; border-color: transparent; }
@media (max-width: 1000px) {
    .theme-flex .f-banners, .theme-flex .f-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-flex .f-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .theme-flex .f-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .theme-flex .f-head { flex-wrap: wrap; gap: 10px; }
    .theme-flex .f-search { order: 5; flex-basis: 100%; }
    .theme-flex .f-icons { margin-left: auto; }
    .theme-flex .f-ic em { display: none; }
    .theme-flex .f-catbtn span { display: none; }
    .theme-flex .f-catbtn { width: 44px; padding: 0; justify-content: center; }
    .theme-flex .f-top span:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) {
    .theme-flex .f-banners { padding: 12px 10px 0; gap: 8px; }
    .theme-flex .f-perks { padding: 8px 10px 0; gap: 8px; grid-template-columns: minmax(0, 1fr); }
    .theme-flex .f-sec, .theme-flex .s-sec, .theme-flex .f-foot { margin: 8px 10px 0; padding: 14px; }
    .theme-flex .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .theme-flex .f-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-flex .f-banner { min-height: 250px; }
}
.theme-flex .f-cat .s-ph { font-size: 22px; }
.theme-flex .f-banner__img .s-ph { font-size: 64px; }
