/* The storefront shell (architecture 7.1; PLAT-009 to PLAT-019, APP-005, APP-009): header, navigation and the mobile menu, the
   footer, the two round buttons, the brand card, the contact cards, header cards, the not-found view and the banner.
   The accent of the brand card follows the leading button colour, amber when automatic (OQ-APP-11, OQ-PLAT-16). */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.main { flex: 1; }
.view { scroll-margin-top: calc(var(--header-h) + 20px); animation: fadeInView 0.25s ease-in-out; }
@keyframes fadeInView { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.6rem var(--sp-3); background: color-mix(in srgb, var(--clr-danger) 12%, #fff); color: var(--clr-danger); font-weight: 600; }
.banner span { text-align: center; }

/* Header: the brand on the left, the links in the middle, the cart on the right; the two sides take the same room so the links stay centred. */
.header { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--clr-bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--clr-border) 60%, transparent); }
.header__backdrop { position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: var(--header-h); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); flex: 1 0 0; min-width: 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; flex: 1 0 0; min-width: 0; white-space: nowrap; }
.brand__mark { border-radius: 50%; line-height: 0; cursor: zoom-in; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; user-select: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
.brand:hover .brand__logo { transform: scale(1.12) rotate(6deg); box-shadow: 0 4px 14px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 30%, transparent); }
.brand__logo--bounce { animation: logoBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes logoBounce { 0% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-12deg); } 60% { transform: scale(0.92) rotate(8deg); } 80% { transform: scale(1.08) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }
.brand__name { display: none; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--clr-accent); }
.nav { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }
/* The six links and the cart need the room between a phone and a wide screen: there the logo stands alone, the name comes back from 992 px. */
@media (min-width: 992px) { .brand__name { display: block; } }
.nav__link { position: relative; padding: 0.4rem 0; font-size: 0.8rem; font-weight: 500; color: var(--clr-text-muted); transition: var(--transition); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--btn-leading, var(--clr-primary)); }
.nav__link[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: var(--radius-full); background: var(--btn-leading, var(--clr-primary)); }
.cart-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 1px solid var(--clr-border); border-radius: var(--radius-full); background: var(--clr-card-bg); font-weight: 600; box-shadow: var(--shadow-sm); transition: var(--transition); }
.cart-btn:hover { border-color: var(--clr-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cart-btn__badge { min-width: 20px; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); background: var(--clr-secondary); color: #fff; font-size: 0.75rem; font-weight: 700; text-align: center; }
.menu-btn { display: none; flex-direction: column; gap: 5px; padding: 0.4rem; }
.menu-btn span { width: 24px; height: 2px; border-radius: 2px; background: var(--clr-text-main); }
/* AF61: seven links ("Комплекти"). Between a tablet and 992 px they stand close and small and the cart button is narrow (the values above); from 992 px
   they have more room, a little less than the six had, so the shop name stays whole at 1280 px. */
@media (min-width: 992px) { .nav { gap: clamp(0.8rem, 1.1vw, 1.8rem); } .nav__link { font-size: clamp(0.84rem, 1.3vw, 0.9rem); } .cart-btn { padding: 0.6rem 1rem; } }

/* A header card (APP-005): a colour, or a photo under a light or dark veil; from a dark veil of 25 % the text is light. The attribute is on <html> for the
   look of the site and on the section of a collection for its own look; a collection says "dark" for a box that is not light, and the rules of the light text
   leave what stands inside such a section alone (COL-019 rule 2: the box of a collection replaces the site's, it does not blend). */
/* AF48: the pause of the work made to order, in the header so it stays in sight. */
.pause-strip { margin: 0; padding: 0.45rem var(--sp-4); border-bottom: 1px solid #fde68a; background: #fef3c7; color: #92400e; font-size: 0.9rem; font-weight: 700; text-align: center; }
.header-card { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto 2rem; padding: 1.25rem 1.6rem; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: var(--card-color, #fff) var(--card-image, none) center / cover; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); }
.header-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--card-veil, transparent); transition: background 0.3s; }
.header-card > * { position: relative; }
/* APP-006: over a collection's background photo a title box is framed more strongly (the box's own colour or photo still wins). */
[data-page-kind="image"] .header-card { border-color: rgba(226, 232, 240, 0.95); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
[data-card-text="light"] .header-card:not([data-card-text="dark"] *) { border-color: rgba(255, 255, 255, 0.25); }
[data-card-text="light"] .header-card :is(h1, h2, h3):not([data-card-text="dark"] *) { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65); }
[data-card-text="light"] .header-card p:not([data-card-text="dark"] *) { color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

.notfound { max-width: 560px; margin: 3.5rem auto; text-align: center; }
.notfound__title { margin-bottom: 1.2rem; font-size: 1.6rem; color: var(--clr-accent); }

.contact { max-width: 1200px; margin: 0 auto; padding: 3.5rem var(--sp-4); scroll-margin-top: var(--header-h); text-align: center; }
.contact__lead { margin-bottom: 2rem; font-size: 1.15rem; font-weight: 700; color: var(--clr-primary); }
.contact__cards { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.contact__card { display: flex; flex-direction: column; align-items: center; min-width: 220px; padding: 1.8rem; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: var(--clr-card-bg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact__card--facebook { border-color: #1877f2; background: #1877f2; color: #fff; }
.contact__icon { font-size: 2.5rem; line-height: 1.3; }
.contact__name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--clr-accent); }
.contact__sub { font-size: 0.85rem; color: var(--clr-text-muted); }
.contact__card--facebook :is(.contact__name, .contact__sub) { color: rgba(255, 255, 255, 0.92); }

/* The two round buttons (PLAT-017): 60 px, 48 px on a phone (OQ-PLAT-14). */
.float { position: fixed; right: 24px; bottom: 24px; z-index: var(--z-float); display: flex; flex-direction: column; gap: 14px; }
.float__btn { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease; }
.float__btn:hover { transform: scale(1.12); }
.float__btn--facebook { background: linear-gradient(135deg, #1877f2, #0054b4); box-shadow: 0 8px 25px rgba(24, 119, 242, 0.45); }
.float__btn--facebook:hover { box-shadow: 0 12px 30px rgba(24, 119, 242, 0.65); }
.float__btn--messenger { background: linear-gradient(135deg, #00c6ff 0%, #0078ff 50%, #a033ff 100%); box-shadow: 0 8px 25px rgba(0, 120, 255, 0.45); }
.float__btn--messenger:hover { box-shadow: 0 12px 30px rgba(0, 120, 255, 0.65); }

/* The brand card and the window of a legal text (PLAT-015, D62). */
.brand-card { display: flex; flex-direction: column; align-items: center; max-width: 380px; padding: 2.2rem 1.8rem 1.8rem; border: 1.5px solid color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 25%, transparent); border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, #fffbf8); box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.8); text-align: center; animation: cardIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cardIn { from { opacity: 0; transform: scale(0.9) translateY(12px); } to { opacity: 1; transform: none; } }
.brand-card__sparkle { position: absolute; top: 18px; left: 20px; font-size: 1.3rem; pointer-events: none; animation: sparkle 2.5s ease-in-out infinite alternate; }
@keyframes sparkle { from { opacity: 0.7; transform: translateY(0) rotate(0) scale(0.9); } to { opacity: 1; transform: translateY(-4px) rotate(15deg) scale(1.1); } }
.brand-card__logo-wrap { width: 190px; height: 190px; margin-bottom: 1.1rem; padding: 10px; border-radius: 50%; background: #fff; box-shadow: 0 8px 30px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 22%, transparent), 0 0 0 6px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 8%, #fff); transition: transform 0.3s; }
.brand-card__logo-wrap:hover { transform: scale(1.03) rotate(2deg); }
.brand-card__logo { width: 100%; height: 100%; border-radius: 50%; object-fit: contain; }
.brand-card__title { margin: 0; font-size: 1.45rem; font-weight: 800; color: #1e293b; }
.brand-card__subtitle { margin: 0.2rem 0 0.8rem; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--btn-leading, var(--clr-primary)); }
.brand-card__message { max-width: 320px; margin-bottom: 1.4rem; font-size: 0.96rem; font-weight: 500; line-height: 1.6; color: #475569; }
.brand-card__action { width: 100%; max-width: 280px; padding: 0.65rem 1.25rem; border-radius: var(--radius-full); font-size: 0.92rem; font-weight: 700; }
.legal__title { padding-right: 2.5rem; color: var(--clr-accent); }
.legal__text { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.footer { margin-top: var(--sp-5); padding: 2.2rem 0 1.25rem; background: var(--clr-accent); color: #fff; }
/* The two round buttons stand in the bottom right corner: the contact lines keep clear of them while the page is narrower than the container plus both. */
.footer .container { padding-right: clamp(var(--sp-4), calc(5.5rem - (100vw - 1200px) / 2), 5.5rem); }
.footer__content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__brand { display: flex; align-items: flex-start; gap: 0.8rem; }
.footer__logo { flex: none; width: 38px; height: 38px; padding: 2px; border-radius: 50%; background: #fff; object-fit: contain; }
.footer__name { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer__tagline, .footer__seller p { max-width: 440px; margin: 0; font-size: 0.88rem; line-height: 1.45; color: #cbd5e1; }
.footer__info { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; color: #e2e8f0; }
.footer__info p { margin: 0; }
.footer__label { font-size: 0.86rem; font-weight: 500; color: #94a3b8; }
.footer__info a { font-weight: 600; color: #fed7aa; }
.footer__info a:hover, .footer__legal:hover { color: #fff; text-decoration: underline; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.footer__legal { font-size: 0.85rem; font-weight: 600; color: #fed7aa; }
.footer__bottom { margin: 0; padding-top: 1rem; font-size: 0.82rem; text-align: center; color: #94a3b8; }

@media (max-width: 767.98px) {
  .pause-strip { padding: 0.3rem 0.75rem; font-size: 0.76rem; line-height: 1.3; } /* AF48: two short lines on a phone */
  .brand__logo { width: 38px; height: 38px; }
  .brand__name { display: block; max-width: calc(100vw - 150px); font-size: 1.05rem; }
  .header__actions { flex: 0 0 auto; gap: 0.5rem; }
  .cart-btn { gap: 0.35rem; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem var(--sp-4); background: #fff; border-bottom: 2px solid var(--clr-primary); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 0.75rem 0; font-size: 1rem; }
  .nav__link[aria-current="page"]::after { right: auto; width: 2rem; }
  .footer { padding: 1.8rem 0 8rem; }
  .footer .container { padding-right: var(--sp-3); }
  .footer__content { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-bottom: 1.25rem; }
  .float { right: 16px; bottom: 16px; }
  .float__btn { width: 48px; height: 48px; }
  .float__btn svg { width: 26px; height: 26px; }
  .header-card { margin-bottom: 1.25rem; padding: 1rem 1.1rem; }
  .contact { padding: 2.5rem var(--sp-3); }
}
@media (max-width: 600px) {
  .brand-card { max-width: 90vw; padding: 1.8rem 1.2rem 1.4rem; border-radius: 20px; }
  .brand-card__logo-wrap { width: 150px; height: 150px; margin-bottom: 0.85rem; }
  .brand-card__title { font-size: 1.25rem; }
  .brand-card__message { margin-bottom: 1.1rem; font-size: 0.88rem; }
  .contact__card { min-width: 0; width: 100%; }
}

/* The catalogue (CAT-003 to CAT-013, architecture 7.1). A custom property that a rule reads without a token has a fallback here (a test checks it). */
.catalog, .collections, .collection { padding: 3.5rem 0; }
.catalog-head, .collections-head { overflow: visible; }
.catalog-head__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.catalog-head__title, .collections-head__title { margin: 0; font-size: 1.8rem; color: #1e293b; }
.catalog-head__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.65rem; }
.catalog-head__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding-top: 0.75rem; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.catalog-head__pills .pills { margin-left: auto; } /* AF88: "🎁 Комплекти →" on the left, the pills on the right as before */


/* The two white buttons and the list of the sort (CAT-006): the list is a layer that closes it by a click outside, above the pills and the grid. */
.action-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.48rem 1.1rem; border: 1.5px solid #cbd5e1; border-radius: var(--radius-full); background: #fff; color: #1e293b; font-size: 0.88rem; font-weight: 700; white-space: nowrap; transition: var(--transition); }
.action-btn:hover, .action-btn[aria-expanded="true"], .filters-btn--on { border-color: var(--btn-leading, var(--clr-primary)); color: var(--btn-leading, var(--clr-primary)); }
.filters-btn--on { background: color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 10%, #fff); }
.filters-btn__badge { padding: 1px 6px; border-radius: 10px; background: var(--btn-leading, var(--clr-primary)); color: var(--btn-text, #fff); font-size: 0.72rem; font-weight: 800; }
.sort { position: relative; }
.sort__cover { position: fixed; inset: 0; z-index: 1; }
.sort__list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 2; display: flex; flex-direction: column; min-width: 255px; max-width: calc(100vw - 32px); padding: 6px; border: 1.5px solid #e2e8f0; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); animation: dropIn 0.2s ease; }
.sort__option { padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); text-align: left; font-size: 0.86rem; font-weight: 600; }
.sort__option:hover { background: #f8fafc; }
.sort__option[aria-selected="true"] { background: color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 12%, #fff); color: var(--btn-leading, var(--clr-primary)); font-weight: 700; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* A collection's header (COL-006, AF43): two rows. The back link and the tag on the left of the first, the search, the sort and the
   filters on its right; the name on the left of the second, cut when long, the pills on its right. In a narrow window the right part
   goes below the left one, still on the right, rather than leaving the name less than 14rem. */
.catalog-head__bar { padding-bottom: 0.85rem; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.catalog-head__bar .catalog-head__tools, .catalog-head__name .pills { margin-left: auto; }
.catalog-head__lead { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.catalog-head__back { white-space: nowrap; }
.catalog-head__name { margin-bottom: 0; }
.catalog-head--collection .catalog-head__title { display: inline-flex; flex: 1 1 14rem; align-items: center; gap: 10px; min-width: 0; font-size: 1.55rem; }
.catalog-head--collection .catalog-head__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-head__icon { border: 1.5px solid #cbd5e1; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.tag { display: inline-flex; align-items: center; padding: 0.28rem 0.7rem; border: 1px solid #cbd5e1; border-left: 3.5px solid var(--btn-leading, var(--clr-primary)); border-radius: 6px; background: rgba(241, 245, 249, 0.85); color: #475569; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; user-select: none; pointer-events: none; }
[data-card-text="light"] .catalog-head__bar:not([data-card-text="dark"] *) { border-color: rgba(255, 255, 255, 0.15); }
[data-card-text="light"] .tag:not([data-card-text="dark"] *) { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.15); color: #fff; }

/* The collection's own look (COL-005, COL-019): its colour behind the section, or its picture as a layer that the parallax engine moves
   (the layer reaches beyond the section by the most it will travel), under a white veil. */
.collection { position: relative; overflow: hidden; min-height: 85vh; background: var(--clr-bg); }
.collection__bg { position: absolute; inset: calc(var(--page-speed, 0) * -200px) 0; background: var(--page-image, none) center top / var(--page-size, cover) var(--page-repeat, repeat); will-change: transform; }
.collection__veil { position: absolute; inset: 0; background: rgba(255, 255, 255, var(--page-veil, 0)); pointer-events: none; }
.collection__content { position: relative; }
.main:has(.collection) + .footer { margin-top: 0; }

/* The grid and the card (CAT-012, CAT-013): the bubbles show over the picture while the card is hovered or focused. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: var(--clr-card-bg); box-shadow: var(--shadow-sm); transition: var(--transition); }
.card__media { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.card__media::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card__price { text-align: center; padding: 0.35rem 0.85rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); color: #047857; font-size: 1.15rem; font-weight: 800; }
.card__badge { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 14px; background: rgba(255, 255, 255, 0.95); color: #92400e; font-size: 0.78rem; font-weight: 800; }
.card__badge small { font-size: 0.72rem; color: #64748b; }
.card__badge--hit { border-color: #fde68a; color: #b45309; }
.card__price small { display: block; margin-top: 1px; font-size: 0.66rem; font-weight: 600; line-height: 1.1; color: var(--clr-text-muted); } /* AF121 */
.card__hint { position: absolute; top: 50%; left: 50%; z-index: 2; padding: 0.4rem 1rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.94); font-size: 0.82rem; font-weight: 700; opacity: 0; transform: translate(-50%, -50%); transition: opacity 0.3s ease; pointer-events: none; }
.card__body { padding: 1rem 1.2rem; }
.card__title { margin: 0; font-size: 1.15rem; color: var(--clr-accent); }
.card__bubbles { position: absolute; top: 12px; left: 12px; right: 96px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
/* The lift, the darkened and blurred picture and the bubbles of a hovered card, only on a device that hovers: a phone keeps the last tapped card "hovered" (the owner, 2026-11-30). */
@media (hover: hover) {
  .card:hover, .card:focus-visible { transform: translateY(-6px); border-color: var(--clr-primary); box-shadow: var(--shadow-lg); }
  .card:hover .card__media::after, .card:focus-visible .card__media::after { opacity: 1; }
  .card:hover .card__image { transform: scale(1.08); }
  .card:hover .card__hint, .card:focus-visible .card__hint, .card:hover .card__bubbles, .card:focus-visible .card__bubbles { opacity: 1; }
}
.bubble { padding: 0.3rem 0.65rem; border-radius: 20px; color: #fff; font-size: 0.75rem; font-weight: 700; }
.bubble--ready { background: #10b981; }
.bubble--soldout { background: #64748b; }
.bubble--custom { background: #f59e0b; }
.bubble--colour { background: #ec4899; }
.card__tags { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } /* AF127: the deal above the price, whatever its height */
.card__deal { padding: 0.3rem 0.7rem; border-radius: 20px; background: #7c3aed; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); color: #fff; font-size: 0.78rem; font-weight: 700; } /* AF61, AF80: above the price, in the column of AF127 */
.bubble--addon { background: #8b5cf6; }
.empty { grid-column: 1 / -1; padding: 3.5rem 1.5rem; border: 2px dashed #cbd5e1; border-radius: var(--radius-md); background: #f8fafc; text-align: center; }
.empty__icon { display: block; margin-bottom: 0.5rem; font-size: 2.5rem; }
.empty__title { margin-bottom: 0.4rem; font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.empty__text { margin: 0; font-size: 1.15rem; color: #334155; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.2rem; }

/* The Collections page (COL-001, COL-003): the card follows the leading colour, not a purple of its own. */
.collections-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.collections-head .search { min-width: 220px; max-width: 320px; }
.collection-card { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid #e2e8f0; border-radius: var(--radius-md); background: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.collection-card__cover { position: relative; display: flex; align-items: center; justify-content: center; height: 190px; overflow: hidden; background: linear-gradient(135deg, #fdf4ff, #fae8ff, #f3e8ff); }
.collection-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.collection-card__emoji { font-size: 4.5rem; opacity: 0.85; }
.collection-card__badge { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 0.25rem 0.65rem; border-radius: 20px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); color: var(--btn-leading, var(--clr-primary)); font-size: 0.78rem; font-weight: 700; }
.collection-card__body { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem 1.4rem; }
.collection-card__title { margin: 0; font-size: 1.35rem; line-height: 1.3; color: #1e293b; }
.collection-card__text { margin: 0.35rem 0 0; font-size: 0.85rem; line-height: 1.4; color: #64748b; }
@media (hover: hover) { /* as the toy card (the owner, 2026-11-30) */
  .collection-card:hover { transform: translateY(-5px); border-color: var(--btn-leading, var(--clr-primary)); box-shadow: 0 14px 30px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 14%, transparent), 0 4px 10px rgba(0, 0, 0, 0.04); }
  .collection-card:hover .collection-card__image { transform: scale(1.05); }
  .collection-card:hover .collection-card__title { color: var(--btn-leading, var(--clr-primary)); }
}

/* The filters window (CAT-007): header and footer stay, the body scrolls; a bottom sheet on a small phone. */
.overlay__panel.filters { display: flex; flex-direction: column; max-width: 520px; max-height: 88vh; padding: 0; overflow: hidden; border-radius: 20px; animation: cardIn 0.25s ease; }
.filters__head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--clr-border); }
.filters__title { margin: 0; padding-right: 2.5rem; font-size: 1.15rem; color: #1e293b; }
.filters__body { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.2rem 1.4rem; overflow-y: auto; }
.filters__foot { display: flex; gap: 0.75rem; padding: 1rem 1.4rem; border-top: 1px solid var(--clr-border); }
.filters__apply { flex: 1; }
.group { padding: 0.9rem 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.7rem; }
.group__title { margin: 0; font-size: 0.9rem; font-weight: 700; color: #1e293b; }
.group__label { font-size: 0.8rem; font-weight: 600; color: #64748b; }
.group__empty { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.chips, .options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip, .option { display: inline-flex; align-items: center; gap: 6px; padding: 0.32rem 0.75rem; border: 1.5px solid #cbd5e1; border-radius: 20px; background: #fff; color: #334155; font-size: 0.82rem; font-weight: 600; transition: var(--transition); }
.chip:hover, .option:hover { border-color: var(--btn-leading, var(--clr-primary)); color: var(--btn-leading, var(--clr-primary)); }
.chip[aria-pressed="true"], .option[aria-pressed="true"] { border-color: var(--btn-leading, var(--clr-primary)); background: var(--btn-leading, var(--clr-primary)); color: var(--btn-text, #fff); box-shadow: 0 2px 6px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 30%, transparent); }
.chip__dot { width: 14px; height: 14px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 50%; background: var(--dot, #94a3b8); }

/* The two range sliders (CAT-009): two native inputs on one track; only the thumbs take the pointer, so both can be grabbed. */
.range { position: relative; height: 36px; }
.range__track { position: absolute; top: 15px; right: 0; left: 0; height: 6px; border-radius: 3px; background: #e2e8f0; }
.range__fill { position: absolute; top: 0; bottom: 0; left: calc(var(--from, 0) * 1%); width: calc(var(--width, 100) * 1%); border-radius: 3px; background: var(--btn-leading, var(--clr-primary)); }
.range__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; appearance: none; pointer-events: none; touch-action: pan-y; }
.range__input::-webkit-slider-thumb { width: 22px; height: 22px; border: 3px solid var(--btn-leading, var(--clr-primary)); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); appearance: none; pointer-events: auto; cursor: grab; }
.range__input::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--btn-leading, var(--clr-primary)); border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); pointer-events: auto; cursor: grab; }
.range__input--max { z-index: 2; }
.range[data-top="min"] .range__input--min { z-index: 3; }
.range__input:active { z-index: 4; }
.range__ends { display: flex; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; }


/* A phone shows the controls one row at a time, and a touch screen has no hover: the bubbles of a card are small tags under its title (OQ-CAT-16). */
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
@media (hover: none) {
  .card__bubbles { position: static; opacity: 1; margin-top: 0.5rem; pointer-events: auto; animation: overlayIn 0.3s ease; }
  .card__hint { display: none; }
}
@media (max-width: 767.98px) {
  .catalog, .collections, .collection { padding: 2rem 0; }
  .catalog-head__row { flex-direction: column; align-items: stretch; margin-bottom: 0.6rem; }
  .catalog-head__title, .collections-head__title { width: 100%; font-size: 1.45rem; text-align: center; }
  .catalog-head__tools { align-items: stretch; justify-content: stretch; }
  .catalog-head__tools .search, .collections-head .search { width: 100%; min-width: 0; max-width: none; }
  .catalog-head__tools .action-btn { gap: 0.3rem; padding: 0.48rem 0.8rem; font-size: 0.84rem; }
  .catalog-head__tools .sort { display: flex; flex: 1; min-width: 0; }
  .catalog-head__tools .sort .action-btn { width: 100%; justify-content: center; line-height: 1.25; text-align: center; white-space: normal; }
  .pills { justify-content: center; gap: 0.45rem; }
  .catalog-head__pills { justify-content: center; }
  .catalog-head__pills .pills { margin-left: 0; }
  .catalog-head__bundles { order: 1; } /* AF88: under the pills */
  .pills .pill { padding: 0.42rem 0.85rem; font-size: 0.82rem; }
  /* AF43: the second row lets go of its two parts (they stay above the veil of the card), so the name comes first and the pills last. */
  .catalog-head--collection { display: flex; flex-direction: column; gap: 0.75rem; }
  .catalog-head__bar { margin-bottom: 0; padding-bottom: 0.75rem; }
  .catalog-head__bar .catalog-head__tools, .catalog-head__name .pills { margin-left: 0; }
  .catalog-head__lead { justify-content: space-between; }
  .catalog-head__name { display: contents; }
  .catalog-head__name > * { position: relative; }
  .catalog-head--collection .catalog-head__title { order: -1; flex: none; justify-content: center; font-size: 1.35rem; }
  .collections-head { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .sort__list { right: auto; left: 0; }
}
@media (max-width: 600px) {
  .overlay[data-overlay="filters"] { align-items: flex-end; padding: 0; }
  .overlay__panel.filters { max-width: none; max-height: 85vh; border-radius: 20px 20px 0 0; animation: sheetIn 0.3s ease; }
  .filters__foot { padding: 0.8rem 1rem; }
  .filters__foot .btn { padding: 0.7rem 0.8rem; font-size: 0.92rem; }
}

/* The home view (HOME-001, HOME-005 to HOME-009, stage S6): the blocks, one banner under the other (AF42), then the islands. The cards in the grids are the shop's own. */
.home__hero { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.home__block { padding: 1.5rem 0; }
.home__toys { padding-top: 2.5rem; }
.home__teaser { padding-bottom: 4.5rem; }
.island { padding: 3rem 2.4rem; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: #fff; box-shadow: 0 4px 22px rgba(0, 0, 0, 0.04); transition: box-shadow 0.3s; }
.island:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07); }
.island__head { max-width: 600px; margin: 0 auto 2.5rem; padding: 1.2rem 2rem; border: 1.5px solid #f1e9dd; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.03); text-align: center; }
.island__title { margin: 0 0 0.4rem; font-size: 2.1rem; line-height: 1.25; color: #1e293b; }
.island__divider { display: block; width: 55px; height: 3px; margin: 0 auto; border-radius: 2px; background: var(--btn-leading, var(--clr-primary)); }
[data-card-text="light"] .island__divider:not([data-card-text="dark"] *) { background: #fff; }
.island__note { margin: 0; padding: 2rem; text-align: center; color: #94a3b8; }
.island__lead { max-width: 680px; margin: 0 auto 1rem; font-size: 1.15rem; font-weight: 500; text-align: center; color: #334155; }
.island__lead--muted { font-size: 1.02rem; font-weight: 400; color: #64748b; }
.island__foot { margin-top: 2.2rem; text-align: center; }
.island__action { padding: 0.85rem 2.2rem; border-radius: var(--radius-full); font-size: 1.02rem; font-weight: 700; }

/* The About view (ABOUT-001): the blocks in one column, then the contact cards. */
.about { padding: 3rem 0 0; }
.about__blocks { display: flex; flex-direction: column; gap: 1.5rem; }

/* The gallery (GAL-001 to GAL-004): the title card with the album selector and the tabs, and the grid of square tiles. */
.gallery { padding: 3.5rem 0 4.5rem; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.gallery-head__title { margin: 0; font-size: 1.8rem; color: #1e293b; }
.gallery-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.album-select {
  max-width: 240px; padding: 0.48rem 2.4rem 0.48rem 1.15rem; border: 1.5px solid #cbd5e1; border-radius: var(--radius-full); font: inherit; font-size: 0.88rem; font-weight: 700; color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); transition: all 0.22s ease; appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat calc(100% - 14px) center;
}
.album-select:hover { border-color: var(--btn-leading, var(--clr-primary)); transform: translateY(-1px); box-shadow: 0 3px 10px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 14%, transparent); }
.album-select:focus-visible { outline: none; border-color: var(--btn-leading, var(--clr-primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 18%, transparent); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-empty { grid-column: 1 / -1; margin: 0; padding: 2.5rem; border-radius: 12px; background: #fafafa; font-size: 0.95rem; text-align: center; color: #64748b; }
.tile { display: block; overflow: hidden; border: 1px solid #f1f5f9; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.tile__media { position: relative; aspect-ratio: 1; overflow: hidden; background: #fafafa; }
.tile--video .tile__media { background: #0f172a; }
.tile__image { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile__play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); color: #fff; font-size: 1.2rem; transform: translate(-50%, -50%); pointer-events: none; }
.tile__shade { position: absolute; inset: 0; display: none; align-items: flex-end; padding: 1.2rem; background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.45) 60%, transparent 100%); color: #fff; font-size: 0.85rem; line-height: 1.45; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tile__caption { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; word-break: break-word; }
.tile__caption b, .tile__caption strong { font-weight: 800; }
@media (hover: hover) {
  .tile__shade { display: flex; }
  .tile:hover .tile__shade, .tile:focus-visible .tile__shade { opacity: 1; }
}

/* The viewer (GAL-005, GAL-006): a dark window with the picture and, when there is a caption, a white panel beside it; one column on a phone. */
.overlay__panel.viewer { width: 95%; max-width: 1100px; padding: 0; border-radius: 16px; background: #0f172a; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.viewer .overlay__close { top: 12px; right: 14px; z-index: 25; width: 36px; height: 36px; border: none; background: rgba(255, 255, 255, 0.92); color: #0f172a; font-size: 1.3rem; }
.viewer__body { display: flex; max-height: 90vh; }
.viewer__media { position: relative; display: flex; flex: 1 1 65%; align-items: center; justify-content: center; min-height: 350px; overflow: hidden; background: #000; }
.viewer__text { flex: 1 1 35%; padding: 2.2rem 1.6rem; overflow-y: auto; border-left: 1px solid #e2e8f0; background: #fff; color: #1e293b; font-size: 0.98rem; line-height: 1.65; word-break: break-word; }
.viewer__video { max-width: 100%; max-height: 75vh; border-radius: 8px; background: #000; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.viewer__nav { position: absolute; top: 50%; z-index: 15; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(4px); color: #fff; transform: translateY(-50%); transition: background 0.2s; }
.viewer__nav:hover { background: rgba(255, 255, 255, 0.45); }
.viewer__nav--previous { left: 12px; }
.viewer__nav--next { right: 12px; }

/* The zoom viewer (PLAT-023): the picture is moved by one transform that the element sets; the toolbar is in the top left corner. */
.zoom { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; touch-action: none; user-select: none; }
.zoom__target { max-width: 100%; max-height: 75vh; border-radius: 8px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); object-fit: contain; transform-origin: center; cursor: zoom-in; }
.zoom[data-zoomed] .zoom__target { cursor: grab; }
.zoom[data-animate] .zoom__target { transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.zoom__bar { position: absolute; top: 12px; left: 14px; z-index: 20; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); }
.zoom__btn { min-width: 32px; height: 32px; padding: 0 0.5rem; border-radius: 8px; color: #fff; font-weight: 700; }
.zoom__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.zoom__btn:disabled { opacity: 0.4; cursor: default; }

/* The custom-order page (CO-002 to CO-006): the title card, two white blocks of cards and the Messenger card. */
.custom { padding: 3.5rem 0 5rem; }
.custom__title { padding: 2.8rem 2rem; text-align: center; }
.custom__title h1 { margin-bottom: 0.6rem; font-size: 2.35rem; color: #1e293b; }
.custom__title p { max-width: 740px; margin: 0 auto; font-size: 1.05rem; color: var(--clr-text-muted); }
.custom__block { margin-bottom: 2rem; padding: 2.8rem 2.2rem; border: 1px solid var(--clr-border); border-radius: var(--radius-md); background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); }
.custom__head { max-width: 600px; margin: 0 auto 2rem; text-align: center; }
.custom__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.info-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.4rem; border: 1px solid #f1e9dd; border-radius: var(--radius-md); background: #fdfbf7; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03); transition: var(--transition); }
.info-card:hover { transform: translateY(-3px); border-color: #e6dac6; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07); }
.info-card__icon { margin-bottom: 0.8rem; font-size: 2.2rem; line-height: 1; }
.info-card__badge { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: 36px; height: 36px; margin-bottom: 1rem; border-radius: 50%; background: var(--btn-leading, var(--clr-primary)); color: var(--btn-text, #fff); font-size: 1.05rem; font-weight: 700; box-shadow: 0 3px 10px color-mix(in srgb, var(--btn-leading, var(--clr-primary)) 25%, transparent); }
.info-card__title { margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 700; color: #1e293b; }
.info-card__text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #64748b; }
.custom__cta { margin-bottom: 0; padding: 3.2rem 2rem; text-align: center; }
.custom__bubble { display: block; font-size: 3rem; line-height: 1.2; }
.custom__cta h2 { margin-bottom: 0.8rem; font-size: 1.95rem; color: #1e293b; }
.custom__cta p { max-width: 620px; margin: 0 auto 1.8rem; font-size: 1.05rem; color: #475569; }
.btn--messenger { gap: 12px; padding: 1.05rem 2.4rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50px; background: linear-gradient(135deg, #0084ff 0%, #a033ff 50%, #ff5a79 100%), #0084ff; color: #fff; font-size: 1.1rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 12px rgba(0, 132, 255, 0.25), 0 8px 24px rgba(0, 132, 255, 0.32); transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
.btn--messenger:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(0, 132, 255, 0.35), 0 12px 30px rgba(0, 132, 255, 0.42); }
.btn--messenger:active { transform: translateY(1px); filter: brightness(0.97); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); }

@media (max-width: 767.98px) {
  .home__hero { gap: 0.85rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .island { padding: 2rem 1.2rem; }
  .island__head { margin-bottom: 1.8rem; padding: 1rem 1.2rem; }
  .island__title { font-size: 1.6rem; }
  .island__action { display: flex; width: 100%; padding: 0.8rem 1.4rem; font-size: 0.95rem; }
  .about { padding-top: 1.25rem; }
  .about__blocks { gap: 0.85rem; }
  .gallery { padding: 2rem 0 3rem; }
  .gallery-head { flex-direction: column; align-items: stretch; text-align: center; }
  .gallery-head__tools { justify-content: center; }
  .viewer__body { flex-direction: column; overflow-y: auto; }
  .viewer__media { flex: 0 0 320px; width: 100%; }
  .zoom__target, .viewer__video { max-height: 100%; }
  .viewer__text { flex: none; padding: 1.25rem; border-top: 1px solid #e2e8f0; border-left: 0; }
  .custom { padding: 2rem 0 3.5rem; }
  .custom__title { padding: 2rem 1.2rem; }
  .custom__title h1 { font-size: 1.75rem; }
  .custom__block { margin-bottom: 1.4rem; padding: 1.8rem 1.1rem; }
  .custom__cta { padding: 2.2rem 1.1rem; }
  .custom__cta h2 { font-size: 1.5rem; }
  .btn--messenger { width: 100%; padding: 0.95rem 1.2rem; font-size: 0.98rem; }
}
