/* Editor block variants (footer, categories, announcement, top-bar header, elevated product card). Uses only the
   design tokens from ecommerce.css so every style/palette re-skins them. */

/* ---- Announcement ---- */
.ec-ann { text-align: center; font-size: .9rem; padding: 8px var(--ec-pad); line-height: 1.6; overflow: hidden; }
.ec-ann a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ec-ann-bar { background: var(--ec-accent); color: #fff; }
.ec-ann-soft { background: color-mix(in srgb, var(--ec-accent) 10%, var(--ec-surface)); color: var(--ec-text); border-bottom: 1px solid color-mix(in srgb, var(--ec-accent) 30%, var(--ec-border)); }
.ec-ann-marquee { background: var(--ec-text); color: var(--ec-bg); padding: 0; }
.ec-ann-track { display: flex; width: max-content; animation: ec-marquee 28s linear infinite; }
.ec-ann-track > * { padding: 8px 40px; white-space: nowrap; }
@keyframes ec-marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ec-ann-track { animation: none; width: auto; justify-content: center; } .ec-ann-track > *:nth-child(n+2) { display: none; } }

/* ---- Header: top contact bar ---- */
.ec-topbar { background: var(--ec-text); color: var(--ec-bg); font-size: .82rem; }
.ec-topbar-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.ec-topbar-contact { display: flex; gap: 16px; flex-wrap: wrap; }
.ec-topbar a { color: inherit; }
@media (max-width: 600px) { .ec-topbar-tagline { display: none; } .ec-topbar-row { justify-content: center; } }

/* ---- Product card: elevated ---- */
.ec-pc-elevated { box-shadow: var(--ec-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.ec-pc-elevated:hover { transform: translateY(-3px); }
.ec-pc-cta { display: block; margin-top: 10px; text-align: center; padding: 8px; border-radius: calc(var(--ec-radius) - 4px); background: var(--ec-accent); color: #fff; font-weight: 700; font-size: .9rem; }

/* ---- Categories ---- */
.ec-cat-chips { display: flex; gap: 10px; margin-top: 20px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ec-cat-chip { flex: none; padding: 9px 18px; border-radius: 999px; background: var(--ec-surface); border: 1px solid var(--ec-border); color: var(--ec-text); font-weight: 600; white-space: nowrap; }
.ec-cat-chip:hover { border-color: var(--ec-accent); color: var(--ec-accent); text-decoration: none; }
.ec-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--ec-gap); margin-top: 20px; }
.ec-cat-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; padding: 14px; border-radius: var(--ec-radius); color: #fff; font-weight: 700; }
.ec-cat-tile:hover { text-decoration: none; filter: brightness(1.06); }
.ec-cat-tile-0 { background: linear-gradient(135deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 55%, #000)); }
.ec-cat-tile-1 { background: linear-gradient(135deg, var(--ec-accent-2), color-mix(in srgb, var(--ec-accent-2) 55%, #000)); }
.ec-cat-tile-2 { background: linear-gradient(135deg, color-mix(in srgb, var(--ec-accent) 60%, var(--ec-accent-2)), color-mix(in srgb, var(--ec-accent) 40%, #000)); }
.ec-cat-tile-3 { background: linear-gradient(135deg, color-mix(in srgb, var(--ec-accent-2) 60%, var(--ec-accent)), color-mix(in srgb, var(--ec-accent-2) 40%, #000)); }
.ec-cat-tile-letter { position: absolute; inset-inline-end: 10px; top: -6px; font-size: 4.2rem; font-weight: 900; opacity: .22; line-height: 1; }
.ec-cat-tile-name { position: relative; font-size: 1.02rem; }
.ec-cat-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.ec-cat-list a { display: flex; align-items: center; gap: 14px; padding: 14px var(--ec-pad); background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: var(--ec-radius); color: var(--ec-text); font-weight: 600; }
.ec-cat-list a:hover { border-color: var(--ec-accent); text-decoration: none; }
.ec-cat-list-no { color: var(--ec-accent); font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2ch; }
.ec-cat-list-go { margin-inline-start: auto; color: var(--ec-text-muted); font-size: 1.3rem; }

/* ---- Footers ---- */
.ec-footer-minimal { padding: 18px 0; margin-top: 32px; }
.ec-footer-minimal-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--ec-text-muted); }
.ec-footer-centered { text-align: center; }
.ec-footer-brand { font-size: 1.2rem; }
.ec-footer-contact { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.ec-social-center { justify-content: center; margin-top: 10px; }
.ec-footer-rich-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.ec-footer-rich h4 { margin: 0 0 10px; font-size: .95rem; }
.ec-footer-rich a { display: block; margin: 6px 0; color: var(--ec-text-muted); }
.ec-footer-rich a:hover { color: var(--ec-accent); }
.ec-footer-copy { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--ec-border); color: var(--ec-text-muted); font-size: .85rem; }
@media (max-width: 760px) { .ec-footer-rich-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .ec-footer-rich-grid { grid-template-columns: 1fr; } }
.ec-footer-dark { background: var(--ec-text); color: var(--ec-bg); border-top: 0; }
.ec-footer-dark a { color: inherit; opacity: .85; }
.ec-footer-dark-brand { display: block; font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; }
.ec-footer-dark-tag { opacity: .75; }
.ec-footer-dark-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--ec-bg) 22%, transparent); }
.ec-footer-dark-row > span:first-child { display: flex; gap: 16px; flex-wrap: wrap; }
.ec-trustbar { margin-top: 40px; background: color-mix(in srgb, var(--ec-accent) 8%, var(--ec-surface)); border-block: 1px solid var(--ec-border); }
.ec-trustbar + .ec-footer { margin-top: 0; }
.ec-trustbar-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-block: 22px; }
.ec-trustbar-row strong { display: block; color: var(--ec-accent); }
.ec-trustbar-row span { font-size: .85rem; color: var(--ec-text-muted); }
@media (max-width: 600px) { .ec-trustbar-row { grid-template-columns: 1fr; gap: 12px; padding-block: 16px; } }

/* =====================================================================================================
   Second generation of variants — every one is built only from design tokens, works with zero data
   (no photos / no products) and is checked at 390px as well as 1280px.
   ===================================================================================================== */

/* ---- Announcement ---- */
.ec-ann-gradient { background: linear-gradient(90deg, var(--ec-accent), var(--ec-accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; }
.ec-ann-gradient svg { width: 18px; height: 18px; flex: none; }
.ec-ann-dismiss { position: relative; background: var(--ec-surface); color: var(--ec-text); border-bottom: 1px solid var(--ec-border); padding-inline: 44px; }
.ec-ann-dismiss[hidden] { display: none; }
.ec-ann-x { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ec-text-muted); cursor: pointer; }
.ec-ann-x:hover { background: var(--ec-bg); color: var(--ec-text); }
.ec-ann-x svg { width: 16px; height: 16px; }
.ec-ann-badge { background: var(--ec-text); color: var(--ec-bg); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ec-ann-pill { background: var(--ec-accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }

/* ---- Header: search-first ---- */
.ec-h-sf-row { row-gap: 10px; }
.ec-h-sf .ec-search-form { order: 9; flex: 1 1 100%; max-width: none; }
.ec-h-sf .ec-search-input { padding: 11px 16px; border-radius: 999px; background: var(--ec-bg); }
.ec-h-sf .ec-search-form .ec-btn { border-radius: 999px; }


/* ---- Header: floating pill ---- */
.ec-h-pill { background: transparent; border-bottom: 0; padding-block: 10px 0; pointer-events: none; }
.ec-h-pill .ec-container { pointer-events: none; }
.ec-h-pill-bar { position: relative; isolation: isolate; pointer-events: auto; display: flex; align-items: center; gap: var(--ec-gap); padding: 8px 18px; border-radius: 999px; }
.ec-h-pill-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--ec-surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--ec-border); box-shadow: var(--ec-shadow); }
.ec-h-pill .ec-brand { flex: none; }
.ec-h-pill .ec-search-form { margin-inline: auto; max-width: 300px; }
.ec-h-pill .ec-search-input { border-radius: 999px; padding-block: 7px; }
.ec-h-pill .ec-search-form .ec-btn { border-radius: 999px; }
@media (max-width: 720px) { .ec-h-pill-bar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; border-radius: 26px; } .ec-h-pill .ec-brand { flex: 1; } .ec-h-pill .ec-search-form { order: 9; flex: 1 1 100%; max-width: none; min-width: 0; margin-inline: 0; } }

/* ---- Header: dark bold ---- */
.ec-h-dark { background: var(--ec-text); border-bottom: 3px solid var(--ec-accent); }
.ec-h-dark .ec-brand { color: var(--ec-bg); display: inline-flex; align-items: center; gap: 10px; }
.ec-h-dark-mark { width: 12px; height: 26px; border-radius: 4px; background: var(--ec-accent); transform: skewX(-12deg); flex: none; }
.ec-h-dark .ec-search-form .ec-search-input { background: color-mix(in srgb, var(--ec-bg) 12%, transparent); border-color: color-mix(in srgb, var(--ec-bg) 25%, transparent); color: var(--ec-bg); }
.ec-h-dark .ec-search-form .ec-search-input::placeholder { color: color-mix(in srgb, var(--ec-bg) 60%, transparent); }
.ec-h-dark .ec-search-form .ec-btn { background: var(--ec-accent); border-color: var(--ec-accent); color: #fff; }
.ec-h-dark .ec-nav-toggle, .ec-h-dark .ec-cart-link-mobile { color: var(--ec-bg); border-color: color-mix(in srgb, var(--ec-bg) 30%, transparent); }
@media (min-width: 721px) {
  .ec-h-dark .ec-nav a, .ec-h-dark .ec-nav .ec-nav-link-btn { color: var(--ec-bg); opacity: .88; }
  .ec-h-dark .ec-nav a:hover { color: var(--ec-bg); opacity: 1; box-shadow: 0 2px 0 var(--ec-accent); }
}

/* ---- Header: app tabs ---- */
.ec-tabbar { display: none; }
@media (max-width: 720px) {
  .ec-tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--ec-surface); border-top: 1px solid var(--ec-border); box-shadow: 0 -6px 20px -14px rgba(0,0,0,.35); padding-bottom: env(safe-area-inset-bottom); }
  .ec-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: var(--ec-text-muted); font-size: .72rem; font-weight: 700; }
  .ec-tabbar a:hover, .ec-tabbar a:focus-visible { color: var(--ec-accent); text-decoration: none; }
  .ec-tabbar svg { width: 22px; height: 22px; }
  .ec-tabbar-ico { position: relative; display: inline-flex; }
  .ec-tabbar .ec-cart-badge { position: absolute; top: -6px; inset-inline-start: 12px; margin: 0; }
  body:has(.ec-tabbar) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  body:has(.ec-tabbar) .ec-chat-widget { inset-block-end: calc(72px + env(safe-area-inset-bottom)); }
  .ec-h-tabs .ec-cart-link-mobile { display: none; }
}

/* ---- Hero: split ---- */
.ec-hs { padding: 56px 0; background: linear-gradient(120deg, color-mix(in srgb, var(--ec-accent) 9%, var(--ec-surface)), var(--ec-bg)); border-bottom: 1px solid var(--ec-border); }
.ec-hs-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.ec-hs-text h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.25; margin: 0 0 12px; }
.ec-hs-sub { font-size: 1.1rem; color: var(--ec-text-muted); max-width: 46ch; margin: 0 0 1.4em; }
.ec-hs-visual { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--ec-radius) + 8px); overflow: hidden; background: linear-gradient(135deg, var(--ec-accent), var(--ec-accent-2)); box-shadow: var(--ec-shadow); }
.ec-hs-visual > img { width: 100%; height: 100%; object-fit: cover; }
.ec-hs-product { position: absolute; inset: 0; display: block; color: #fff; }
.ec-hs-product:hover { text-decoration: none; }
.ec-hs-product > img { width: 100%; height: 100%; object-fit: cover; }
.ec-hs-letter { position: absolute; inset: 0; display: grid; place-items: center; font-size: 7rem; font-weight: 900; color: rgba(255,255,255,.35); }
.ec-hs-product-info { position: absolute; inset-inline: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--ec-radius); background: color-mix(in srgb, var(--ec-surface) 92%, transparent); color: var(--ec-text); backdrop-filter: blur(8px); }
.ec-hs-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); }
.ec-hs-shape-a { width: 55%; aspect-ratio: 1; top: -12%; inset-inline-end: -8%; }
.ec-hs-shape-b { width: 35%; aspect-ratio: 1; bottom: -10%; inset-inline-start: 8%; background: rgba(255,255,255,.16); }
@media (max-width: 760px) { .ec-hs { padding: 28px 0 32px; } .ec-hs-grid { grid-template-columns: 1fr; gap: 22px; } .ec-hs-visual { aspect-ratio: 16 / 10; } .ec-hs-letter { font-size: 5rem; } }

/* ---- Hero: search ---- */
.ec-hsearch { padding: 64px 0 52px; text-align: center; background: radial-gradient(900px 340px at 50% 0, color-mix(in srgb, var(--ec-accent) 16%, transparent), transparent 70%), var(--ec-bg); border-bottom: 1px solid var(--ec-border); }
.ec-hsearch h1 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); margin-bottom: 10px; }
.ec-hsearch .ec-hero-tagline { margin-bottom: 1.4em; }
.ec-hsearch-form { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 8px 10px 8px 8px; border-radius: 999px; background: var(--ec-surface); border: 1px solid var(--ec-border); box-shadow: var(--ec-shadow); }
.ec-hsearch-form svg { width: 22px; height: 22px; margin-inline-start: 12px; color: var(--ec-text-muted); flex: none; }
.ec-hsearch-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 4px; font-size: 1rem; box-shadow: none; }
.ec-hsearch-form input:focus { box-shadow: none; }
.ec-hsearch-form .ec-btn { border-radius: 999px; flex: none; }
.ec-hsearch-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ec-hsearch-chips a { padding: 7px 16px; border-radius: 999px; background: var(--ec-surface); border: 1px solid var(--ec-border); color: var(--ec-text); font-weight: 600; font-size: .9rem; }
.ec-hsearch-chips a:hover { border-color: var(--ec-accent); color: var(--ec-accent); text-decoration: none; }
@media (max-width: 600px) { .ec-hsearch { padding: 36px 0 32px; } .ec-hsearch-form svg { display: none; } .ec-hsearch-form { padding-inline-start: 14px; } }

/* ---- Hero: bold gradient ---- */
.ec-hbold { position: relative; overflow: hidden; padding: 84px 0; text-align: center; color: #fff; background: linear-gradient(135deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 55%, #000)); }
.ec-hbold-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%); }
.ec-hbold-orb-a { width: 380px; height: 380px; top: -140px; inset-inline-start: -100px; }
.ec-hbold-orb-b { width: 300px; height: 300px; bottom: -120px; inset-inline-end: -60px; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--ec-accent-2) 70%, #fff), transparent 70%); opacity: .6; }
.ec-hbold-inner { position: relative; }
.ec-hbold h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.2; margin: 0 0 12px; }
.ec-hbold-sub { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 560px; margin: 0 auto 1.6em; }
.ec-hbold-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ec-hbold-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 28px; border-radius: 999px; background: #fff; color: var(--ec-accent); font-weight: 800; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.ec-hbold-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ec-hbold-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: none; }
@media (max-width: 600px) { .ec-hbold { padding: 48px 0; } .ec-hbold-btn { width: 100%; justify-content: center; } .ec-hbold-actions { padding-inline: 8px; } }

/* ---- Hero: mosaic ---- */
.ec-hmo { padding: 48px 0; border-bottom: 1px solid var(--ec-border); background: var(--ec-bg); }
.ec-hmo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.ec-hmo-text h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.25; margin: 0 0 12px; }
.ec-hmo-bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 340px; }
.ec-hmo-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ec-hmo-n2 { grid-template-rows: 1fr; }
.ec-hmo-tile { position: relative; overflow: hidden; border-radius: var(--ec-radius); background: linear-gradient(135deg, var(--ec-accent), var(--ec-accent-2)); color: #fff; }
.ec-hmo-tile:hover { text-decoration: none; }
.ec-hmo-tile-0 { grid-row: span 2; }
.ec-hmo-n2 .ec-hmo-tile-0 { grid-row: auto; }
.ec-hmo-tile-1 { background: linear-gradient(135deg, var(--ec-accent-2), color-mix(in srgb, var(--ec-accent-2) 55%, #000)); }
.ec-hmo-tile-2 { background: linear-gradient(135deg, color-mix(in srgb, var(--ec-accent) 60%, #000), var(--ec-accent)); }
.ec-hmo-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-hmo-tile .ec-hs-letter { font-size: 5rem; }
.ec-hmo-cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 22px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.65)); font-size: .85rem; }
.ec-hmo-cap strong { color: #fff; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .ec-hmo { padding: 26px 0; } .ec-hmo-grid { grid-template-columns: 1fr; gap: 20px; } .ec-hmo-bento { height: 250px; } }

/* ---- Hero: editorial line ---- */
.ec-hed { padding: 72px 0 40px; background: var(--ec-bg); }
.ec-hed h1 { font-size: clamp(2.4rem, 8vw, 5.4rem); line-height: 1.1; letter-spacing: -.01em; margin: 0; max-width: 16ch; }
.ec-hed-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 2px solid var(--ec-text); }
.ec-hed-foot p { margin: 0; max-width: 42ch; color: var(--ec-text-muted); font-size: 1.05rem; }
.ec-hed-link { font-weight: 800; color: var(--ec-text); font-size: 1.05rem; padding: 10px 0; border-bottom: 2px solid var(--ec-accent); }
.ec-hed-link:hover { color: var(--ec-accent); text-decoration: none; }
@media (max-width: 600px) { .ec-hed { padding: 40px 0 28px; } .ec-hed-foot { flex-direction: column; align-items: flex-start; margin-top: 22px; } }

/* ---- Product card: shared bits ---- */
.ec-pc-letter { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; font-weight: 900; color: color-mix(in srgb, var(--ec-accent) 55%, var(--ec-surface)); background: color-mix(in srgb, var(--ec-accent) 8%, var(--ec-surface)); }
.ec-product-grid:has(.ec-pc-overlay), .ec-product-grid:has(.ec-pc-minimal), .ec-product-grid:has(.ec-pc-tag) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ec-product-grid:has(.ec-pc-compact) { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

/* overlay */
.ec-pc-overlay { padding: 0; overflow: hidden; border: 0; position: relative; }
.ec-pc-overlay-link { display: block; color: #fff; }
.ec-pc-overlay-link:hover { text-decoration: none; }
.ec-pc-overlay-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 3 / 4); background: linear-gradient(160deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 50%, #000)); }
.ec-pc-overlay-media > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; transition: transform .35s ease; }
.ec-pc-overlay:hover .ec-pc-overlay-media > img { transform: scale(1.05); }
.ec-pc-overlay .ec-pc-letter { background: transparent; color: rgba(255,255,255,.4); }
.ec-pc-flag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; background: #e0334f; color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.ec-pc-overlay-cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 36px 12px 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); }
.ec-pc-overlay-cap h3 { color: #fff; font-size: .98rem; margin: 0; }
.ec-pc-overlay-cat { font-size: .78rem; opacity: .8; }
.ec-pc-overlay-price { font-weight: 800; color: #fff; }
.ec-pc-overlay-was { text-decoration: line-through; opacity: .7; font-size: .82rem; }
.ec-pc-overlay .ec-compare-form, .ec-pc-overlay form { position: relative; z-index: 2; padding: 0 10px 10px; margin: 0; background: var(--ec-surface); }

/* minimal */
.ec-pc-minimal a { display: flex; flex-direction: column; gap: 4px; color: var(--ec-text); }
.ec-pc-minimal-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 4 / 5); overflow: hidden; border-radius: calc(var(--ec-radius) - 4px); background: color-mix(in srgb, var(--ec-accent) 6%, var(--ec-surface)); }
.ec-pc-minimal-media > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; transition: transform .35s ease; }
.ec-pc-minimal:hover .ec-pc-minimal-media > img { transform: scale(1.04); }
.ec-pc-minimal h3 { font-weight: 600; margin-top: 6px; }
.ec-pc-minimal-price { font-weight: 800; color: var(--ec-text); font-size: 1.05rem; }
.ec-pc-minimal-price small { font-weight: 500; color: var(--ec-text-muted); }

/* price tag */
.ec-pc-tag { padding: 0 0 12px; overflow: hidden; }
.ec-pc-tag a { display: flex; flex-direction: column; gap: 6px; color: var(--ec-text); }
.ec-pc-tag-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 1); background: color-mix(in srgb, var(--ec-accent) 8%, var(--ec-surface)); }
.ec-pc-tag-media > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
.ec-pc-tag-price { position: absolute; inset-inline-end: 0; bottom: 12px; background: var(--ec-accent); color: #fff; font-weight: 800; padding: 5px 14px 5px 12px; border-start-start-radius: 999px; border-end-start-radius: 999px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.ec-pc-tag-price small { font-weight: 500; opacity: .9; }
.ec-pc-ribbon { position: absolute; top: 10px; inset-inline-start: 10px; background: #e0334f; color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 9px; border-radius: 8px; }
.ec-pc-tag h3, .ec-pc-tag-foot, .ec-pc-tag .ec-compare-form, .ec-pc-tag form { margin-inline: 12px; }
.ec-pc-tag-foot { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.ec-pc-tag-go { margin-inline-start: auto; color: var(--ec-accent); font-weight: 800; }

/* compact */
.ec-pc-compact { padding: 8px; }
.ec-pc-compact a { display: flex; flex-direction: column; gap: 4px; color: var(--ec-text); }
.ec-pc-compact-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 1); border-radius: calc(var(--ec-radius) - 6px); overflow: hidden; }
.ec-pc-compact-media > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
.ec-pc-compact .ec-pc-letter { font-size: 2.4rem; }
.ec-pc-compact h3 { font-size: .86rem; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.ec-pc-compact-price { font-weight: 800; font-size: .92rem; color: var(--ec-accent); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ec-pc-compact-price s { font-weight: 500; font-size: .75rem; color: var(--ec-text-muted); }

/* ---- Footers ---- */
.ec-f-cards { background: var(--ec-bg); }
.ec-f-cards-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.ec-f-cards-head strong { font-size: 1.3rem; }
.ec-f-cards-head span { color: var(--ec-text-muted); }
.ec-f-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ec-f-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--ec-radius); background: var(--ec-surface); border: 1px solid var(--ec-border); color: var(--ec-text); min-width: 0; overflow-wrap: anywhere; }
a.ec-f-card:hover { border-color: var(--ec-accent); text-decoration: none; }
.ec-f-card small { color: var(--ec-text-muted); font-weight: 700; }
.ec-f-card b { font-weight: 700; }

.ec-f-accent { background: linear-gradient(135deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 55%, #000)); color: #fff; border-top: 0; padding: 48px 0 36px; }
.ec-f-accent p, .ec-f-accent a { color: inherit; }
.ec-f-accent-inner { display: grid; gap: 22px; text-align: center; justify-items: center; }
.ec-f-accent-brand { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; color: #fff; }
.ec-f-accent-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; }
.ec-f-accent-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--ec-accent) !important; font-weight: 800; max-width: 100%; }
.ec-f-accent-btn:hover { text-decoration: none; }
.ec-f-accent-btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.7); }
.ec-f-accent-meta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: .92rem; opacity: .92; }
.ec-f-accent .ec-social-links a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .ec-f-accent-btn { width: 100%; } }

.ec-f-two { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.ec-f-two-brand { background: var(--ec-accent); color: #fff; display: flex; align-items: center; }
.ec-f-two-brand strong { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; color: #fff; }
.ec-f-two-brand p { color: rgba(255,255,255,.88); margin: 6px 0 0; }
.ec-f-two-info { background: var(--ec-surface); border-top: 1px solid var(--ec-border); }
.ec-f-two-info p { margin: 0 0 12px; display: flex; flex-direction: column; }
.ec-f-two-info small { color: var(--ec-text-muted); font-weight: 700; }
.ec-f-two-pad { padding: 36px max(20px, calc((100vw - 1080px) / 2)); width: 100%; }
.ec-f-two-brand .ec-f-two-pad { padding-inline-end: 24px; }
.ec-f-two-info .ec-f-two-pad { padding-inline-start: 24px; }
@media (max-width: 720px) { .ec-f-two { grid-template-columns: 1fr; } .ec-f-two-pad, .ec-f-two-brand .ec-f-two-pad, .ec-f-two-info .ec-f-two-pad { padding: 26px 20px; } }

.ec-f-social { text-align: center; }
.ec-f-social-brand { display: block; font-size: 1.3rem; margin-bottom: 14px; }
.ec-f-social-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ec-f-social-btns a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ec-accent); color: var(--ec-accent); font-weight: 700; }
.ec-f-social-btns a:hover { background: var(--ec-accent); color: #fff; text-decoration: none; }
.ec-f-social-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--ec-text-muted); font-size: .9rem; }

/* ---- Categories ---- */
.ec-section-tight { padding-block: 32px; }
.ec-cat-circles { display: flex; gap: 22px; overflow-x: auto; padding: 18px 4px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ec-cat-circles::-webkit-scrollbar { display: none; }
.ec-cat-circle { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; color: var(--ec-text); scroll-snap-align: start; }
.ec-cat-circle:hover { text-decoration: none; }
.ec-cat-circle-disc { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.9rem; font-weight: 900; box-shadow: 0 0 0 3px var(--ec-bg), 0 0 0 5px color-mix(in srgb, var(--ec-accent) 55%, transparent); transition: transform .2s ease; }
.ec-cat-circle:hover .ec-cat-circle-disc { transform: scale(1.06); }
.ec-cat-circle-name { font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ec-cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: 12px; margin-top: 20px; }
.ec-cat-bento-item { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; border-radius: var(--ec-radius); color: #fff; font-weight: 800; }
.ec-cat-bento-item:hover { text-decoration: none; filter: brightness(1.06); }
.ec-cat-bento-0 { grid-column: span 2; grid-row: span 2; font-size: 1.3rem; }
.ec-cat-bento-0 .ec-cat-tile-letter { font-size: 9rem; }
.ec-cat-bento-arrow { position: absolute; top: 12px; inset-inline-start: 14px; opacity: .85; }
.ec-cat-bento-n1 .ec-cat-bento-0, .ec-cat-bento-n2 .ec-cat-bento-0 { grid-row: span 1; }
.ec-cat-bento-n1 { grid-template-columns: 1fr; }
.ec-cat-bento-n1 .ec-cat-bento-0 { grid-column: auto; }
@media (max-width: 600px) { .ec-cat-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 104px; } .ec-cat-bento-0 { grid-column: span 2; grid-row: span 1; } .ec-cat-bento-0 .ec-cat-tile-letter { font-size: 6rem; } }

.ec-cat-outline { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 20px; }
.ec-cat-outline-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 18px; border: 2px solid var(--ec-border); border-radius: var(--ec-radius); background: var(--ec-surface); color: var(--ec-text); font-weight: 700; transition: border-color .15s, transform .15s; }
.ec-cat-outline-item svg { width: 18px; height: 18px; color: var(--ec-accent); flex: none; transition: transform .15s; }
.ec-cat-outline-item:hover { border-color: var(--ec-accent); text-decoration: none; }
.ec-cat-outline-item:hover svg { transform: translateX(-4px); }
@media (max-width: 480px) { .ec-cat-outline { grid-template-columns: 1fr 1fr; } .ec-cat-outline-item { padding: 0 12px; font-size: .92rem; } }

.ec-cat-text-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.ec-cat-text-wrap h2 { margin: 6px 0 0; }
.ec-cat-text { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.ec-cat-text li { break-inside: avoid; border-bottom: 1px solid var(--ec-border); }
.ec-cat-text a { display: block; padding: 14px 0; color: var(--ec-text); font-size: 1.25rem; font-weight: 700; transition: padding .15s, color .15s; }
.ec-cat-text a:hover { color: var(--ec-accent); padding-inline-start: 10px; text-decoration: none; }
@media (max-width: 720px) { .ec-cat-text-wrap { grid-template-columns: 1fr; gap: 6px; } .ec-cat-text { columns: 1; } }
@media (max-width: 600px) { .ec-cat-bento > .ec-cat-bento-item:last-child:nth-child(even) { grid-column: span 2; } }

/* =====================================================================================================
   Block options (Raymon.AdminUI.BlockOptionCatalog). The layout puts data-o-<block>-<option> on <html> for every
   option that differs from its default; most options are therefore pure CSS.
   ===================================================================================================== */
html[data-o-header-sticky="0"] .ec-header { position: static; }
html[data-o-header-density="compact"] .ec-header-row, html[data-o-header-density="compact"] .ec-h-pill-bar { padding-block: 5px; }
html[data-o-header-density="airy"] .ec-header-row, html[data-o-header-density="airy"] .ec-h-pill-bar { padding-block: 24px; }

html[data-o-hero-height="compact"] :is(.ec-hero, .ec-hs, .ec-hsearch, .ec-hbold, .ec-hed, .ec-hmo, .ec-hero-flashsale) { padding-block: 30px; }
html[data-o-hero-height="compact"] .ec-hero-cinematic { min-height: 26vh; }
html[data-o-hero-height="compact"] .ec-hero-split { min-height: 260px; }
html[data-o-hero-height="tall"] :is(.ec-hero, .ec-hs, .ec-hsearch, .ec-hbold, .ec-hed, .ec-hmo, .ec-hero-flashsale) { padding-block: 120px; }
html[data-o-hero-height="tall"] .ec-hero-cinematic { min-height: 72vh; }
html[data-o-hero-height="tall"] .ec-hero-split { min-height: 560px; }
@media (max-width: 720px) {
  html[data-o-hero-height="tall"] :is(.ec-hero, .ec-hs, .ec-hsearch, .ec-hbold, .ec-hed, .ec-hmo, .ec-hero-flashsale) { padding-block: 72px; }
  html[data-o-hero-height="compact"] :is(.ec-hero, .ec-hs, .ec-hsearch, .ec-hbold, .ec-hed, .ec-hmo, .ec-hero-flashsale) { padding-block: 20px; }
}

html[data-o-categories-showheading="0"] .ec-cats-sec h2 { display: none; }

html[data-o-product-card-ratio="square"] { --ec-pc-ratio: 1 / 1; }
html[data-o-product-card-ratio="portrait"] { --ec-pc-ratio: 4 / 5; }
html[data-o-product-card-ratio="tall"] { --ec-pc-ratio: 3 / 4; }
html[data-o-product-card-ratio="wide"] { --ec-pc-ratio: 4 / 3; }
.ec-product-card img { transition: transform .35s ease; }
html[data-o-product-card-hover="zoom"] .ec-product-card:hover img { transform: scale(1.06); }
html[data-o-product-card-hover="lift"] .ec-product-card { transition: transform .2s ease, box-shadow .2s ease; }
html[data-o-product-card-hover="lift"] .ec-product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
html[data-o-product-card-hover="none"] .ec-product-card:hover, html[data-o-product-card-hover="none"] .ec-product-card:hover img { transform: none; }
@media (max-width: 600px) {
  html[data-o-product-card-mobilecols="1"] .ec-product-grid { grid-template-columns: 1fr !important; }
  html[data-o-product-card-mobilecols="2"] .ec-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
}

html[data-o-footer-showsocial="0"] :is(.ec-social-links, .ec-f-social-btns) { display: none; }
.ec-totop { position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 55; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ec-accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(0,0,0,.55); }
.ec-totop:hover { text-decoration: none; filter: brightness(1.08); }
.ec-totop svg { width: 22px; height: 22px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 720px) { body:has(.ec-tabbar) .ec-totop { bottom: calc(76px + env(safe-area-inset-bottom)); } }

html[data-o-announcement-speed="slow"] .ec-ann-track { animation-duration: 52s; }
html[data-o-announcement-speed="fast"] .ec-ann-track { animation-duration: 15s; }

/* ===== product cards, third batch ===== */
.ec-product-grid:has(.ec-pc-qa), .ec-product-grid:has(.ec-pc-glass), .ec-product-grid:has(.ec-pc-duo), .ec-product-grid:has(.ec-pc-pol) { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ec-product-grid:has(.ec-pc-index) { grid-template-columns: 1fr; gap: 0; counter-reset: ecpc; border-top: 2px solid var(--ec-text); }

/* quick add */
.ec-pc-qa { padding: 10px; }
.ec-pc-qa a { display: flex; flex-direction: column; gap: 6px; color: var(--ec-text); }
.ec-pc-qa-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 1); border-radius: calc(var(--ec-radius) - 4px); overflow: hidden; background: color-mix(in srgb, var(--ec-accent) 8%, var(--ec-surface)); }
.ec-pc-qa-media > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
.ec-pc-qa h3 { font-size: .95rem; line-height: 1.5; margin: 4px 0 0; }
.ec-pc-qa-form { margin-top: 6px; }
.ec-pc-qa-btn { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ec-accent); border-radius: calc(var(--ec-radius) - 4px); background: transparent; color: var(--ec-accent); font: inherit; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.ec-pc-qa-btn:hover, .ec-pc-qa-btn:focus-visible { background: var(--ec-accent); color: #fff; }
.ec-pc-qa-btn svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .ec-pc-qa-btn span { font-size: .85rem; } }

/* polaroid */
.ec-pc-pol a { display: block; color: var(--ec-text); }
.ec-pc-pol-frame { display: block; padding: 10px 10px 14px; background: #fff; border: 1px solid var(--ec-border); box-shadow: 0 14px 26px -14px rgba(0,0,0,.45); transform: rotate(-1.4deg); transition: transform .25s ease; }
.ec-product-grid > :nth-child(even) .ec-pc-pol-frame { transform: rotate(1.6deg); }
.ec-pc-pol:hover .ec-pc-pol-frame { transform: rotate(0) translateY(-4px); }
.ec-pc-pol-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 1); overflow: hidden; background: color-mix(in srgb, var(--ec-accent) 8%, #fff); }
.ec-pc-pol-media > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
.ec-pc-pol-cap { display: grid; gap: 2px; text-align: center; padding-top: 12px; color: #1c2230; }
.ec-pc-pol-cap strong { font-size: .95rem; line-height: 1.5; }
.ec-pc-pol-cap span { color: var(--ec-accent); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .ec-pc-pol-frame, .ec-product-grid > :nth-child(even) .ec-pc-pol-frame { transform: none; } }

/* glass */
.ec-pc-glass { padding: 0; overflow: hidden; border: 0; }
.ec-pc-glass a { display: block; color: #fff; }
.ec-pc-glass a:hover { text-decoration: none; }
.ec-pc-glass-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 4 / 5); background: linear-gradient(160deg, var(--ec-accent), color-mix(in srgb, var(--ec-accent) 45%, #000)); }
.ec-pc-glass-media > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; transition: transform .4s ease; }
.ec-pc-glass:hover .ec-pc-glass-media > img { transform: scale(1.05); }
.ec-pc-glass .ec-pc-letter { background: transparent; color: rgba(255,255,255,.4); }
.ec-pc-glass-panel { position: absolute; inset-inline: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: calc(var(--ec-radius) - 2px); background: rgba(20,24,34,.38); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255,255,255,.28); }
.ec-pc-glass-txt { display: grid; gap: 1px; min-width: 0; }
.ec-pc-glass-txt strong { font-size: .92rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-pc-glass-txt span { font-size: .85rem; font-weight: 700; color: #fff; opacity: .95; }
.ec-pc-glass-panel i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ec-accent); }
.ec-pc-glass-panel svg { width: 17px; height: 17px; }

/* numbered list rows */
.ec-pc-index { border-bottom: 1px solid var(--ec-border); counter-increment: ecpc; }
.ec-pc-index a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ec-text); transition: padding .2s, background .2s; }
.ec-pc-index a:hover { text-decoration: none; padding-inline-start: 14px; background: color-mix(in srgb, var(--ec-accent) 5%, transparent); }
.ec-pc-index-no::before { content: counter(ecpc, persian); font-size: 1.5rem; font-weight: 900; color: var(--ec-accent); font-variant-numeric: tabular-nums; }
.ec-pc-index-no { min-width: 2.2ch; }
.ec-pc-index-thumb { position: relative; width: 64px; height: 64px; flex: none; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--ec-accent) 8%, var(--ec-surface)); }
.ec-pc-index-thumb > img { width: 100%; height: 100%; margin: 0; border-radius: 0; aspect-ratio: auto; object-fit: cover; }
.ec-pc-index-thumb .ec-pc-letter { font-size: 1.6rem; }
.ec-pc-index-name { display: grid; gap: 2px; min-width: 0; flex: 0 1 auto; }
.ec-pc-index-name strong { font-size: 1.02rem; }
.ec-pc-index-name small { color: var(--ec-text-muted); }
.ec-pc-index-dots { flex: 1; min-width: 14px; border-bottom: 2px dotted color-mix(in srgb, var(--ec-text-muted) 55%, transparent); transform: translateY(-3px); }
.ec-pc-index-price { flex: none; font-weight: 900; color: var(--ec-accent); }
.ec-pc-index-price small { font-weight: 500; color: var(--ec-text-muted); }
.ec-pc-index-price s { margin-inline-end: 6px; font-weight: 500; font-size: .8em; color: var(--ec-text-muted); }
@media (max-width: 560px) { .ec-pc-index-dots { display: none; } .ec-pc-index-name { flex: 1; } .ec-pc-index a { gap: 10px; } .ec-pc-index-thumb { width: 54px; height: 54px; } .ec-pc-index-no::before { font-size: 1.2rem; } }

/* duotone */
.ec-pc-duo a { display: flex; flex-direction: column; gap: 8px; color: var(--ec-text); }
.ec-pc-duo-media { position: relative; display: block; aspect-ratio: var(--ec-pc-ratio, 1); margin: 0 0 6px 8px; }
.ec-pc-duo-media::before { content: ''; position: absolute; inset: 10px 10px -8px -8px; border-radius: 22px; background: linear-gradient(135deg, var(--ec-accent), var(--ec-accent-2)); opacity: .9; transition: transform .25s ease; }
.ec-pc-duo:hover .ec-pc-duo-media::before { transform: translate(-4px, 4px); }
.ec-pc-duo-media > img { position: relative; width: 100%; height: 100%; margin: 0; border-radius: 22px 22px 22px 6px; aspect-ratio: auto; object-fit: cover; background: var(--ec-surface); }
.ec-pc-duo .ec-pc-letter { border-radius: 22px 22px 22px 6px; }
.ec-pc-duo h3 { font-size: .98rem; line-height: 1.5; margin: 0; }
.ec-pc-duo-price { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ec-accent) 12%, var(--ec-surface)); color: var(--ec-accent); font-weight: 900; }
.ec-pc-duo-price s { font-weight: 500; font-size: .78em; color: var(--ec-text-muted); }

/* ===== categories, third batch ===== */
.ec-cat-snap { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px max(20px, calc((100vw - 1080px) / 2)) 14px; scrollbar-width: none; }
.ec-cat-snap::-webkit-scrollbar { display: none; }
.ec-cat-snap-card { position: relative; flex: 0 0 min(180px, 56vw); aspect-ratio: 3 / 4; scroll-snap-align: start; overflow: hidden; display: flex; align-items: flex-end; padding: 16px; border-radius: calc(var(--ec-radius) + 4px); color: #fff; font-weight: 800; font-size: 1.05rem; }
.ec-cat-snap-card:hover { text-decoration: none; filter: brightness(1.07); }
.ec-cat-snap-letter { position: absolute; top: 4px; inset-inline-end: 12px; font-size: 6rem; line-height: 1; font-weight: 900; opacity: .22; }
.ec-cat-snap-name { position: relative; }
.ec-cat-snap:focus-visible { outline: 2px solid var(--ec-accent); outline-offset: -2px; }

.ec-cat-stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-block: 6px; }
.ec-cat-sticker { padding: 12px 24px; border-radius: 999px; font-weight: 800; color: #fff; box-shadow: 0 8px 16px -8px rgba(0,0,0,.4); transition: transform .2s ease; }
.ec-cat-sticker:hover { text-decoration: none; transform: rotate(0) scale(1.06) !important; }
.ec-cat-sticker-0 { background: var(--ec-accent); transform: rotate(-2deg); }
.ec-cat-sticker-1 { background: var(--ec-accent-2); transform: rotate(1.5deg); }
.ec-cat-sticker-2 { background: var(--ec-text); transform: rotate(-1deg); }
.ec-cat-sticker-3 { background: color-mix(in srgb, var(--ec-accent) 60%, var(--ec-accent-2)); transform: rotate(2deg); }
.ec-cat-sticker-4 { background: color-mix(in srgb, var(--ec-accent-2) 70%, #000); transform: rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) { .ec-cat-sticker { transform: none !important; } }

.ec-cat-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 22px; }
.ec-cat-letter-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 16px; border-radius: var(--ec-radius); background: var(--ec-surface); border: 1px solid var(--ec-border); color: var(--ec-text); font-weight: 800; transition: border-color .2s, transform .2s; }
.ec-cat-letter-card:hover { text-decoration: none; border-color: var(--ec-accent); transform: translateY(-3px); }
.ec-cat-letter-big { position: absolute; top: -14px; inset-inline-start: 8px; font-size: 7.5rem; line-height: 1; font-weight: 900; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--ec-accent) 55%, transparent); }
.ec-cat-letter-card svg { position: absolute; top: 14px; inset-inline-end: 14px; width: 22px; height: 22px; color: var(--ec-accent); }
.ec-cat-letter-name { position: relative; }
@media (max-width: 480px) { .ec-cat-letters { grid-template-columns: 1fr 1fr; } .ec-cat-letter-card { min-height: 124px; padding: 12px; } .ec-cat-letter-big { font-size: 5.5rem; } }

.ec-cat-ticker { overflow: hidden; margin-top: 12px; padding-block: 10px; border-block: 2px solid var(--ec-text); }
.ec-cat-ticker-track { display: flex; width: max-content; animation: ec-tick 38s linear infinite; }
.ec-cat-ticker:hover .ec-cat-ticker-track, .ec-cat-ticker:focus-within .ec-cat-ticker-track { animation-play-state: paused; }
.ec-cat-ticker-track a { display: inline-flex; align-items: center; gap: 28px; padding-inline: 14px; font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 900; color: var(--ec-text); white-space: nowrap; }
.ec-cat-ticker-track a:hover { text-decoration: none; color: var(--ec-accent); }
.ec-cat-ticker-track i { font-style: normal; font-size: .5em; color: var(--ec-accent); }
@keyframes ec-tick { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ec-cat-ticker { overflow-x: auto; } .ec-cat-ticker-track { animation: none; } .ec-cat-ticker-track a[aria-hidden] { display: none; } }

.ec-cat-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.ec-cat-split-head { position: sticky; top: 90px; }
.ec-cat-split-head p { color: var(--ec-text-muted); line-height: 1.9; }
.ec-cat-split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.ec-cat-split-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 4px; border-bottom: 1px solid var(--ec-border); color: var(--ec-text); font-weight: 800; font-size: 1.05rem; transition: padding .2s, color .2s; }
.ec-cat-split-list a:hover { text-decoration: none; color: var(--ec-accent); padding-inline-start: 12px; }
.ec-cat-split-list svg { width: 20px; height: 20px; color: var(--ec-accent); flex: none; }
@media (max-width: 760px) { .ec-cat-split { grid-template-columns: 1fr; gap: 18px; } .ec-cat-split-head { position: static; } .ec-cat-split-list { grid-template-columns: 1fr; } }
