/* ==========================================================================
   TIDY LAYOUT (v2) — simple, predictable e-commerce structure:
   solid top bar → category chips → centred brand → full-width banners →
   sections with a coloured title bar + uniform grid + "view all".
   Loaded after app.css and overrides its decorative styles. Brand colours unchanged.
   ========================================================================== */
:root { --bar: var(--magenta); --bar-dark: var(--magenta-700); }
body { background: #F6F4F8; }
.demo-ribbon { font-size: .8rem; }

/* 1) Top bar */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bar); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .18); border: 0; }
.topbar-row { display: flex; align-items: center; gap: 10px; height: 64px; }
.tb-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 6px; border-radius: 10px; font-weight: 700; font-size: .9rem; flex-shrink: 0; background: none; }
.tb-btn:hover { background: rgba(255, 255, 255, .14); }
.tb-ico { position: relative; display: inline-grid; place-items: center; }
.tb-ico .ic { width: 26px; height: 26px; }
.tb-label { display: none; }
@media (min-width: 640px) { .tb-label { display: inline; } }
.tb-btn .count-badge { top: -8px; inset-inline-end: -10px; background: #18B26B; border-color: var(--bar); }
.tb-search { flex: 1; position: relative; min-width: 0; }
.tb-search .search-field { height: 44px; background: #fff; border: 0; border-radius: 10px; padding-inline: 12px; box-shadow: none; }
.tb-search .search-field:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); border: 0; background: #fff; }
.tb-search .search-field input { font-size: .95rem; }
.tb-search .suggest { top: calc(100% + 6px); }

/* 2) Category chips row */
.catbar { background: var(--bar-dark); }
.catbar-row { display: flex; gap: 8px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catbar-row::-webkit-scrollbar { display: none; }
.cat-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .15s; }
.cat-chip:hover { background: rgba(255, 255, 255, .26); }
.cat-chip.is-active { background: #fff; color: var(--bar); }
.cat-chip.home { padding-inline: 10px; }
.cat-chip.deal { background: #FFD43B; color: #3A2A00; }

/* 3) Centred brand + quick links + notices */
.brand-block { background: #fff; padding: 18px 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand-center { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 12px; width: fit-content; }
.brand-center img { height: 96px; width: auto; }
.brand-center .brand-name { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--bar); background: none; -webkit-background-clip: border-box; background-clip: border-box; line-height: 1.1; }
.brand-center .brand-sub { color: var(--muted); font-size: .9rem; font-weight: 600; }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.quick-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.quick-links a:hover { border-color: var(--bar); color: var(--bar); }
.quick-links .ic { color: var(--bar); }
.notice { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; border-radius: 10px; padding: 11px 14px; font-weight: 700; font-size: .92rem; margin-top: 8px; }
.notice-pink { background: var(--magenta-50); border: 2px solid var(--magenta); color: var(--magenta-700); }
.notice-green { background: #EAF8EF; border: 2px solid #22A55A; color: #157A3F; }
.notice-green:hover { background: #DDF3E5; }

/* Blocks spacing */
.home-block { margin-bottom: 18px; }
main > .home-block:first-of-type { margin-top: 14px; }
.reveal { opacity: 1; transform: none; }

/* 4) Banners (full width, no decorative icons) */
.banner-slider { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 7; min-height: 190px; background: #fff; box-shadow: var(--sh-1); }
@media (max-width: 639px) { .banner-slider { aspect-ratio: 4 / 3; } }
.banner-slider .banner { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.banner-slider .banner.is-active { opacity: 1; visibility: visible; }
.banner { display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; border-radius: 14px; overflow: hidden; }
.banner.has-img { background: #fff; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-text { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; max-width: 640px; }
.banner-text strong { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); line-height: 1.25; }
.banner-sub { font-size: clamp(.92rem, 1.6vw, 1.1rem); opacity: .95; }
.banner-badge { background: rgba(255, 255, 255, .2); padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.banner-cta { margin-top: 6px; background: #fff; color: var(--ink); padding: 9px 22px; border-radius: 10px; font-weight: 800; font-size: .95rem; }
.banner-stack { display: grid; gap: 12px; }
@media (min-width: 900px) { .banner-stack { grid-template-columns: 1fr 1fr; } }
.banner-wide { min-height: 150px; box-shadow: var(--sh-1); }
.banner-wide.has-img { aspect-ratio: 16 / 6; min-height: 0; }
/* flat solid themes instead of heavy gradients */
.theme-magenta { background: var(--magenta); }
.theme-teal { background: var(--teal); }
.theme-indigo { background: var(--indigo); }
.theme-pink { background: #D8568A; }
.theme-sunset { background: #E0791B; }
.banner-slider .slider-dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.banner-slider .slider-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.banner-slider .slider-dots button.is-active { width: 22px; background: #fff; }

/* 5) Section title bar + view all */
.section-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bar); color: #fff; border-radius: 10px; padding: 10px 16px; margin-bottom: 12px; }
.section-bar h2 { color: #fff; font-size: 1.12rem; margin: 0; }
.count-pill { background: rgba(255, 255, 255, .95); color: var(--bar); font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.view-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--bar); font-size: .92rem; }
.view-all:hover { border-color: var(--bar); }

/* Categories as circles */
.cat-circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: #fff; border-radius: 12px; padding: 14px 10px; border: 1px solid var(--line); }
@media (min-width: 640px) { .cat-circles { grid-template-columns: repeat(7, 1fr); } }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cat-circle .circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c50); color: var(--c); border: 2px solid var(--c); overflow: hidden; transition: transform .2s; }
@media (min-width: 900px) { .cat-circle .circle { width: 84px; height: 84px; } }
.cat-circle .circle .ic { width: 30px; height: 30px; }
.cat-circle .circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle:hover .circle { transform: translateY(-3px); }
.cat-circle .label { font-size: .84rem; font-weight: 700; color: var(--ink); }

/* 6) Uniform product grid + simple card */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: none; transition: box-shadow .2s, border-color .2s; }
.p-card:hover { transform: none; box-shadow: 0 6px 18px -8px rgba(43, 42, 110, .25); border-color: var(--line-2); }
.p-card .p-cat { display: block; text-align: center; font-size: .78rem; font-weight: 700; color: var(--teal-700); padding: 7px 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .p-media { aspect-ratio: 1; background: #fff; position: relative; }
.p-card .p-media img { width: 100%; height: 100%; object-fit: contain; }
.p-card:hover .p-media img { transform: none; }
.p-flag { position: absolute; top: 8px; inset-inline-end: 8px; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; color: #fff; }
.p-flag.sale { background: var(--magenta); }
.p-flag.new { background: var(--teal); }
.p-flag.out { background: #6B6680; }
.p-card .wish-btn { top: 40px; inset-inline-start: 8px; inset-inline-end: auto; width: 32px; height: 32px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.p-card .p-body { padding: 10px; gap: 6px; text-align: center; }
.p-card .price { flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; }
.p-card .price-now { font-size: 1.05rem; }
.p-card .p-name { font-size: .9rem; min-height: 2.9em; text-align: center; }
.p-card .add-btn { width: 100%; height: 38px; border-radius: 8px; background: var(--bar); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: .86rem; margin-top: auto; }
.p-card .add-btn:hover { background: var(--bar-dark); border-radius: 8px; transform: none; }
.p-card .add-btn.is-done { background: var(--success); }
.p-card .add-btn[disabled] { background: #E9E6EE; color: var(--muted); }
.p-card.is-out .p-media img { opacity: .5; filter: grayscale(.5); }

/* Features: simple row */
.features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.feature:hover { transform: none; box-shadow: none; }
.feature .f-ico, .feature:nth-child(n) .f-ico { width: 42px; height: 42px; margin: 0; border-radius: 10px; background: var(--magenta-50); color: var(--magenta); box-shadow: none; display: grid; place-items: center; flex-shrink: 0; }
.feature .f-ico .ic { width: 22px; height: 22px; }
.feature strong { display: block; font-size: .9rem; color: var(--indigo); }
.feature span { font-size: .78rem; color: var(--muted); line-height: 1.5; display: block; }

/* Testimonials & newsletter: plain cards */
.t-card { margin: 0; padding: 14px; border-radius: 12px; }
.t-card::before { display: none; }
.t-card blockquote { margin: 0; color: var(--ink-2); font-size: .92rem; }
.t-card figcaption { font-size: .82rem; color: var(--muted); }
.newsletter { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 20px; border-radius: 12px; }
.newsletter::before { display: none; }
.newsletter h2 { color: var(--indigo); font-size: 1.2rem; }
.newsletter p { color: var(--muted); }
.nl-form { border: 1px solid var(--line-2); }

/* Buttons: solid instead of gradient */
.btn-grad, .btn-grad:hover { background: var(--bar); background-size: auto; }
.btn-grad:hover { background: var(--bar-dark); }

/* Inner pages: same calm look */
.cat-hero { border-radius: 12px; padding: 18px; }
.cat-hero .art { display: none; }
.f-card, .panel { border-radius: 12px; }
.page-head { padding-top: 14px; }
.site-footer { margin-top: 28px; }
.site-footer::before { background: var(--bar); }
.wa-float { bottom: 16px; left: 16px; right: auto; inset-inline-start: auto; width: 54px; height: 54px; }
.has-sticky-bar .wa-float { bottom: 84px; }
.filters.drawer { top: 0; }
@media (min-width: 1024px) { .filters.drawer, .summary, .gallery, .acc-nav { top: 128px; } }

/* store name in the top bar on inner pages */
.tb-brand { flex-shrink: 0; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1; padding-inline: 2px; }
.tb-brand img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 2px 4px; }
