/* ---------- Hero ---------- */
.ap-hero { text-align: center; }
/* Pills are positioned in % so they follow the art at any width. */
.ap-hero__scene { position: relative; isolation: isolate; width: 100%; max-width: 420px; margin: 0 auto; }
.ap-hero__image { width: 100%; height: auto; aspect-ratio: 1; }
.ap-hero-label {
  position: absolute; z-index: 2; display: flex; min-width: 30%; min-height: 48px; border-radius: 999px;
  text-decoration: none; touch-action: manipulation;
}
.ap-hero-label { min-width: 0; }
/* Five pills around the frame: two on top, two on the flanks, one at the bottom (art coordinates). */
.ap-hero-label--s1 { right: 0; top: 7%; --entry-delay: 120ms; --wiggle-delay: 2.1s; }
.ap-hero-label--s2 { left: 0; top: 7%; --entry-delay: 220ms; --wiggle-delay: 3s; }
.ap-hero-label--s3 { right: -2%; top: 66%; --entry-delay: 320ms; --wiggle-delay: 3.9s; }
.ap-hero-label--s4 { left: -2%; top: 66%; --entry-delay: 420ms; --wiggle-delay: 4.6s; }
.ap-hero-label--s5 { left: 0; right: 0; top: 86%; width: max-content; margin-inline: auto; --entry-delay: 520ms; --wiggle-delay: 5.3s; }
.ap-hero-label::before { /* one sheen pass on entry */
  content: ''; position: absolute; z-index: 1; inset: 4% 2%; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 36%, #ffffff00 43%, #ffffffb3 50%, #ffffff00 57%, transparent 64%);
  background-size: 260% 100%; background-position: 150% 0;
}
.ap-hero-label:focus-visible { outline-offset: 4px; }
/* Frosted white pill: reads on the teal art without competing with it. */
.ap-hero-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 5px 14px 6px;
  border: 1px solid #ffffffd9; border-radius: inherit; background: #ffffffe6; color: var(--ap-brand-ink);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 1px 2px #0a3a5c14, 0 10px 24px -10px #0a3a5c59;
  font-size: clamp(.75rem, 3.3vw, .875rem); font-weight: 700; line-height: 1.45; white-space: nowrap;
  transform-origin: 50% 80%; transition: transform 260ms var(--ap-ease), box-shadow 260ms var(--ap-ease);
}
.ap-hero-pill small { color: var(--ap-muted); font-size: .625rem; font-weight: 400; line-height: 1.4; }
.ap-hero-pill { flex-direction: row; gap: 6px; min-height: 42px; padding: 6px 13px; }
.ap-hero-pill__icon { flex: none; width: 18px; height: 18px; color: var(--ap-accent); }
@media (hover: hover) and (pointer: fine) {
  .ap-hero-label:hover .ap-hero-pill { transform: translateY(-3px); box-shadow: 0 1px 2px #0a3a5c14, 0 16px 30px -12px #0a3a5c66; }
}
.ap-hero-label:active .ap-hero-pill { transform: scale(.96); }
.ap-hero__copy { margin-top: 10px; }
.ap-hero__title { color: var(--ap-ink); font-size: 1.5rem; font-weight: 700; line-height: 1.6; }
.ap-hero__title-line { display: block; }
.ap-hero__title-line--accent {
  color: var(--ap-accent);
  background: linear-gradient(90deg, #a14a07, #f59e0b 55%, #a14a07); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ap-hero__description { max-width: 340px; margin: 4px auto 0; color: var(--ap-muted); font-size: .875rem; line-height: 1.9; text-wrap: pretty; }

/* Search entry (inside the hero copy, like the cashback landing) */
.ap-search-entry { margin-top: 16px; }
.ap-search-entry__open {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 16px;
  border: 1px solid var(--ap-line); border-radius: 16px; background: var(--ap-surface); color: var(--ap-muted);
  font-size: .8125rem; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease;
}
.ap-search-entry__open svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--ap-brand); }
.ap-search-entry__open:active { background: var(--ap-brand-soft); }
@media (hover: hover) { .ap-search-entry__open:hover { border-color: var(--ap-brand-line); background: #fff; } }

/* ---------- Sections ---------- */
.ap-section { margin-top: 36px; scroll-margin-top: 64px; }
.ap-section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 4px; }
.ap-section__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.7; }
.ap-section__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ap-section__all {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 6px 4px 6px 0;
  color: var(--ap-link); font-size: .75rem; text-decoration: none;
}
.ap-section__all svg { width: 16px; height: 16px; }
/* Prev/next for mouse users; hidden on phones (desktop.css shows them). */
.ap-controls { display: none; }

/* ---------- Swiper rails ----------
 * The rail bleeds to the screen edge and keeps 8px above / 26px below inside its clip box, so card shadows
 * and the hover lift are never cut. Without Swiper (script blocked) it falls back to native scroll-snap. */
.ap-swiper {
  --ap-swiper-bleed: var(--ap-gutter);
  margin: -8px calc(var(--ap-gutter) * -1) -26px; padding: 8px 0 26px;
}
.ap-swiper:not(.swiper-initialized) { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ap-swiper:not(.swiper-initialized)::-webkit-scrollbar { display: none; }
.ap-swiper:not(.swiper-initialized) > .swiper-wrapper { gap: 12px; padding-inline: var(--ap-gutter); }
.ap-swiper:not(.swiper-initialized) .swiper-slide { scroll-snap-align: start; scroll-margin-inline: var(--ap-gutter); }
.ap-swiper > .swiper-wrapper { display: flex; align-items: stretch; }
.ap-slide { flex-shrink: 0; height: auto; display: flex; }
.ap-slide > * { flex: 1; min-width: 0; }
.ap-swiper .ap-slide--product { width: clamp(150px, calc((100vw - 56px) / 2.25), 186px); }
.ap-swiper .ap-slide--coupon { width: min(300px, calc(100vw - 64px)); }
.ap-swiper .ap-slide--after { width: 104px; }
.ap-swiper.swiper-initialized { cursor: grab; }
.ap-swiper.swiper-initialized:active { cursor: grabbing; }

.ap-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100%;
  border-radius: var(--ap-radius-l); background: var(--ap-surface); color: var(--ap-link);
  font-size: .75rem; font-weight: 700; text-decoration: none;
}
.ap-more__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--ap-elev-1); }
.ap-more__icon svg { width: 20px; height: 20px; }

.ap-rail--skeleton { display: flex; gap: 12px; overflow: hidden; margin-inline: calc(var(--ap-gutter) * -1); padding: 0 var(--ap-gutter) 4px; }
.ap-rail--skeleton > .ap-skeleton { flex-shrink: 0; }
.ap-skeleton--product { width: clamp(150px, calc((100vw - 56px) / 2.25), 186px); aspect-ratio: 5 / 8; border-radius: var(--ap-radius-l); }
.ap-skeleton--coupon { width: min(300px, calc(100vw - 64px)); height: 250px; }
.ap-skeleton--tile { aspect-ratio: 1; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.ap-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* ---------- Campaign banners (between sections) ---------- */
.ap-banner-slot { margin-top: 36px; }
.ap-banner { display: block; border-radius: var(--ap-radius-l); text-decoration: none; box-shadow: var(--ap-elev-1);
  transition: transform 260ms var(--ap-ease), box-shadow 260ms var(--ap-ease); }
.ap-banner__frame { display: block; overflow: hidden; border-radius: inherit; aspect-ratio: 1024 / 449; }
.ap-banner__frame img { width: 100%; height: 100%; object-fit: cover; }
.ap-banner:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .ap-banner:hover { transform: translateY(-3px); box-shadow: var(--ap-elev-2); } }

/* ---------- Merchant shelf ---------- */
.ap-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px calc(var(--ap-gutter) * -1) 6px;
  padding: 2px var(--ap-gutter) 6px; scroll-padding-inline: var(--ap-gutter);
}
.ap-tabs::-webkit-scrollbar { display: none; }
.ap-tab {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 42px; padding: 4px 6px 4px 14px;
  border: 1px solid var(--ap-line); border-radius: 999px; background: #fff; font-size: .75rem; white-space: nowrap;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.ap-tab[aria-selected="true"] { border-color: var(--ap-ink); background: var(--ap-ink); color: #fff; font-weight: 700; }
.ap-tab__logo { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #fff; }
.ap-tab__logo img { width: 100%; height: 100%; object-fit: cover; }
.ap-shelf__panel { min-height: 120px; }

.ap-empty { display: grid; justify-items: center; gap: 12px; padding: 20px 12px; border-radius: var(--ap-radius-m);
  background: var(--ap-surface); color: var(--ap-muted); text-align: center; font-size: .8125rem; line-height: 2; }
.ap-empty--error { background: #fff6f7; color: #8a2b38; }

/* ---------- Buying guide + FAQ (static, for search engines and people) ---------- */
.ap-guide { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ap-line); }
.ap-guide__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.7; }
.ap-guide__lead { margin-top: 8px; color: var(--ap-muted); font-size: .8125rem; line-height: 2.1; text-align: justify; }
.ap-faq { display: grid; gap: 8px; margin-top: 18px; }
.ap-faq__item { border: 1px solid var(--ap-line); border-radius: var(--ap-radius-m); background: #fff; }
.ap-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px;
  cursor: pointer; list-style: none;
}
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary::after {
  content: ''; flex: 0 0 10px; width: 10px; height: 10px; margin-top: -4px; border: solid var(--ap-subtle); border-width: 0 0 1.8px 1.8px;
  transform: rotate(-45deg); transition: transform 220ms var(--ap-ease);
}
.ap-faq__item[open] summary::after { transform: rotate(135deg); margin-top: 4px; }
.ap-faq__item h3 { font-size: .8125rem; font-weight: 700; line-height: 1.8; }
.ap-faq__item p { padding: 0 14px 14px; color: var(--ap-muted); font-size: .8125rem; line-height: 2.1; }

@media (max-width: 359px) {
  .ap-hero__title { font-size: 1.3125rem; }
  .ap-hero__description { font-size: .8125rem; }
  .ap-hero-pill { padding-inline: 9px; gap: 4px; }
  .ap-hero-pill__icon { width: 15px; height: 15px; }
  .ap-section__title { font-size: .9375rem; }
  .ap-grid { gap: 10px 8px; }
}

/* ---------- Category rows (کالاهای مصرفی) ---------- */
.ap-skeleton--category { flex: 0 0 80px; height: 112px; border-radius: 22px; }
.ap-cat-row { width: 100%; overflow: hidden; padding: 4px 0 6px; }
.ap-cat-row > .swiper-wrapper { display: flex; }
.ap-cat-row .ap-cat-slide { flex-shrink: 0; width: 80px; height: auto; } /* beats swiper-bundle's .swiper-slide { width: 100% } */
.ap-cat-row.is-static { overflow-x: auto; scrollbar-width: none; }
.ap-cat-row.is-static::-webkit-scrollbar { display: none; }
.ap-cat-row.is-static > .swiper-wrapper { gap: 12px; justify-content: safe center; }
.ap-cat-row.is-static .ap-cat-slide[data-copy="true"] { display: none; }
.ap-cat {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0;
  color: var(--ap-ink); text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; user-select: none;
}
.ap-cat__media { display: block; width: 76px; height: 76px; border-radius: 22px; transition: transform 220ms var(--ap-ease), filter 220ms ease; }
.ap-cat__image { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.ap-cat__name { display: block; width: 100%; font-size: .6875rem; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.ap-cat:active .ap-cat__media { transform: scale(.95); }
.ap-cat:focus-visible { outline: none; }
.ap-cat:focus-visible .ap-cat__media { box-shadow: 0 0 0 3px var(--ap-brand); }
@media (hover: hover) and (pointer: fine) {
  .ap-cat:hover .ap-cat__media { transform: translateY(-3px); filter: drop-shadow(0 6px 10px #a64b0533); }
}
@media (min-width: 1024px) {
  .ap-cat-row .ap-cat-slide { width: 104px; }
  .ap-cat__media { width: 96px; height: 96px; border-radius: 26px; }
  .ap-cat__name { font-size: .8125rem; }
  .ap-skeleton--category { flex-basis: 100px; height: 136px; }
}
@media (prefers-reduced-motion: reduce) { .ap-cat__media { transition: none; } }
@media (min-width: 768px) { .ap-cat-row.is-static > .swiper-wrapper { gap: 16px; } }
/* Soft edges while the rows drift. */
.ap-cat-row.swiper-initialized { -webkit-mask-image: linear-gradient(90deg, #0000, #000 28px, #000 calc(100% - 28px), #0000); mask-image: linear-gradient(90deg, #0000, #000 28px, #000 calc(100% - 28px), #0000); }

/* Two drifting rows + the spark layer */
.ap-cat-rows { position: relative; display: grid; gap: 6px; }
.ap-cat-row.swiper-initialized > .swiper-wrapper { will-change: transform; }
.ap-cat-fx { position: absolute; z-index: 2; inset: 0; overflow: visible; pointer-events: none; }
.ap-cat-spark { position: absolute; width: 0; height: 0; }
.ap-cat-spark i { position: absolute; left: 0; top: 0; display: block; }
.ap-cat-spark__flash {
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(closest-side, #ffffff, #fde68a99 45%, #facc1500);
  animation: ap-cat-flash 320ms ease-out both;
}
.ap-cat-spark__streak {
  width: 7px; height: 1.5px; margin-top: -.75px; border-radius: 2px; transform-origin: 0 50%;
  background: linear-gradient(90deg, #ffffff, #fde68a 50%, #facc1500); box-shadow: 0 0 4px #fde68a99;
  rotate: var(--rot); opacity: 0;
  animation: ap-cat-streak 560ms var(--d, 0ms) cubic-bezier(.15, .7, .3, 1) both;
}
.ap-cat-spark__smoke {
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, #fde68a55, #fde68a1f 60%, #fde68a00);
  filter: blur(1.5px);
  animation: ap-cat-smoke 1700ms var(--d, 0ms) ease-out both;
}
@keyframes ap-cat-flash { 0% { opacity: 0; transform: scale(.2); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes ap-cat-streak {
  0% { opacity: 0; translate: 0 0; transform: scaleX(.3); }
  15% { opacity: 1; }
  100% { opacity: 0; translate: var(--dx) var(--dy); transform: scaleX(1); }
}
@keyframes ap-cat-smoke {
  0% { opacity: 0; translate: 0 0; transform: scale(.5); }
  25% { opacity: .55; }
  100% { opacity: 0; translate: var(--sx) -26px; transform: scale(2.2); }
}
@media (prefers-reduced-motion: reduce) { .ap-cat-fx { display: none; } }


/* Campaign banners, discount-code tickets and the in-store row: styles/promo.css */

/* ---------- Designed tiles (tile_grid): quad = 2 × 2 / 4 in a row, pair = 2 tall, row4 = 4 tall in a row, trio = wide + 2 ---------- */
.ap-hk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ap-hk-tiles > li { min-width: 0; }
.ap-hk-tile { position: relative; display: block; border-radius: var(--ap-radius-l); text-decoration: none; isolation: isolate;
  transition: transform 420ms var(--ap-ease), box-shadow 420ms var(--ap-ease); box-shadow: 0 10px 24px -16px #7a4a0599; }
.ap-hk-tile__frame { position: relative; display: block; aspect-ratio: 867 / 761; overflow: hidden; border-radius: inherit; background: #f2b705; }
.ap-hk-tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ap-ease); }
.ap-hk-tile__frame::after { /* light sweep */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, #fff0 30%, #ffffff47 48%, #fff0 66%) -170% 0 / 260% 100% no-repeat;
}
.ap-hk-tile:active { transform: scale(.98); }
.ap-hk-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ap-brand); }
@media (hover: hover) and (pointer: fine) {
  .ap-hk-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -18px #7a4a05b3; }
  .ap-hk-tile:hover .ap-hk-tile__frame img { transform: scale(1.045); }
  .ap-hk-tile:hover .ap-hk-tile__frame::after { background-position: 170% 0; transition: background-position 1000ms var(--ap-ease); }
}
.ap-skeleton--hk-tile { flex: 1 1 calc(50% - 6px); aspect-ratio: 867 / 761; border-radius: var(--ap-radius-l); }
@media (min-width: 768px) {
  .ap-hk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); }
  .ap-skeleton--hk-tile { flex-basis: calc(25% - 12px); }
}
@media (prefers-reduced-motion: no-preference) {
  /* Entrance: each tile rises out of a soft blur, one after another, then the light sweeps across it once. */
  html.ap-motion .ap-section.is-reveal:not(.is-inview) .ap-hk-tile { opacity: 0; }
  html.ap-motion .ap-section.is-inview .ap-hk-tile { animation: ap-hk-tile-in 900ms calc(var(--i, 0) * 110ms) var(--ap-cine) both; }
  html.ap-motion .ap-section.is-inview .ap-hk-tile__frame::after { animation: ap-hk-tile-sweep 1300ms calc(500ms + var(--i, 0) * 110ms) var(--ap-ease) both; }
}
@keyframes ap-hk-tile-in {
  0% { opacity: 0; transform: translateY(22px) scale(.94); filter: blur(8px) saturate(.6); }
  60% { opacity: 1; filter: blur(0) saturate(1.05); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes ap-hk-tile-sweep { from { background-position: -170% 0; } to { background-position: 170% 0; } }

/* Tile kinds keep their artwork's proportions. */
.ap-hk-tile--pair .ap-hk-tile__frame { aspect-ratio: 1300 / 1367; }
.ap-hk-tile--tall .ap-hk-tile__frame { aspect-ratio: 1301 / 1142; }
.ap-hk-tile--bento-tall .ap-hk-tile__frame { aspect-ratio: 312 / 580; }
.ap-hk-tile--wide .ap-hk-tile__frame { aspect-ratio: 2734 / 1142; }
.ap-hk-tiles--trio > li.is-wide { grid-column: 1 / -1; }
.ap-skeleton--hk-tile:only-child { flex-basis: 100%; }
@media (min-width: 768px) {
  .ap-hk-tiles--pair { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
  .ap-hk-tiles--row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* one row: the wide tile (2734 px art) next to two 1301 px tiles, all the same height */
  .ap-hk-tiles--trio { grid-template-columns: 2734fr 1301fr 1301fr; }
  .ap-hk-tiles--trio > li.is-wide { grid-column: auto; }
}

/* ---------- Discount codes (coupon_rail): a light ticket per code; details in a bottom sheet ---------- */
.ap-voucher {
  --cut: 104px; /* the stub's width: where the ticket is notched */
  position: relative; display: flex; align-items: stretch; width: 100%; min-height: 118px; padding: 0; border: 0;
  border-radius: 16px; color: #fff; text-align: start; font: inherit; cursor: pointer;
  background: radial-gradient(120% 140% at 100% 0, #ff5a5f 0, #e3263b 48%, #b5122b 100%);
  -webkit-mask: radial-gradient(circle 9px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at var(--cut) 0, #0000 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at var(--cut) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  transition: transform .18s var(--ap-ease);
}
.ap-voucher:active { transform: scale(.985); }
.ap-voucher:focus-visible { outline: 3px solid #ffb4bd; outline-offset: 2px; }
.ap-voucher__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px 12px 10px; }
.ap-voucher__store { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.ap-voucher__store strong { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-voucher__logo { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: #fff; }
.ap-voucher__logo img { width: 100%; height: 100%; object-fit: contain; }
.ap-voucher__when { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; opacity: .95; }
.ap-voucher__when svg { width: 14px; height: 14px; }
.ap-voucher__chip { padding: 2px 8px; border-radius: 999px; background: #0000002e; font-size: .72rem; font-weight: 700; }
.ap-voucher__cta { margin-top: auto; padding: 5px 12px; border-radius: 999px; background: #fff; color: #b5122b; font-size: .76rem; font-weight: 800; }
.ap-voucher__stub { flex: none; width: var(--cut); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 6px; border-inline-start: 2px dashed #ffffff73; text-align: center; }
.ap-voucher__amount { font-size: 1.9rem; font-weight: 900; line-height: 1; color: #ffe27a; }
.ap-voucher__unit { font-size: .74rem; font-weight: 700; }
.ap-voucher__amount:only-child { font-size: 1.05rem; line-height: 1.4; }
/* The stub sits on the visual left, as in the campaign design: it is the last flex child in the RTL page. */

.ap-vsheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 480px; max-height: 88vh; margin: 0 auto; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ap-ink); overflow: auto;
  box-shadow: 0 -12px 40px #10182833; transform: translateY(var(--drag, 0px)); animation: ap-vsheet-in .26s var(--ap-ease); }
.ap-vsheet::backdrop { background: #0f172a73; animation: ap-fade-in .2s ease; }
.ap-vsheet.is-closing { transform: translateY(100%); transition: transform .22s ease-in; }
.ap-vsheet.is-closing::backdrop { opacity: 0; transition: opacity .22s; }
@keyframes ap-vsheet-in { from { transform: translateY(100%); } }
@keyframes ap-fade-in { from { opacity: 0; } }
.ap-vsheet__grab { display: grid; place-items: center; padding: 10px 0 2px; touch-action: none; cursor: grab; }
.ap-vsheet__grab span { width: 40px; height: 4px; border-radius: 4px; background: #d5dae3; }
.ap-vsheet__content { display: grid; gap: 14px; padding: 6px 18px calc(18px + var(--ap-safe-bottom)); }
.ap-vsheet__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; touch-action: none; }
.ap-vsheet__logo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 1px solid var(--ap-line); background: #fff; }
.ap-vsheet__logo img { width: 100%; height: 100%; object-fit: contain; }
.ap-vsheet__store { margin: 0; color: var(--ap-muted); font-size: .82rem; }
.ap-vsheet__title { margin: 2px 0 0; font-size: 1.08rem; font-weight: 900; color: #c41d34; }
.ap-vsheet__close { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ap-surface); color: var(--ap-ink); cursor: pointer; }
.ap-vsheet__close svg { width: 18px; height: 18px; }
.ap-vsheet__rows { margin: 0; display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ap-surface); }
.ap-vsheet__row { display: grid; gap: 2px; }
.ap-vsheet__row dt { color: var(--ap-muted); font-size: .76rem; }
.ap-vsheet__row dd { margin: 0; font-size: .88rem; font-weight: 600; line-height: 1.7; }
.ap-vsheet__code { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; border: 1.5px dashed #e3263b8c; border-radius: 14px; background: #fff5f6; }
.ap-vsheet__code code { flex: 1; padding-inline: 10px; font: 800 1.05rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: #8d0f22; text-align: left; overflow-wrap: anywhere; }
.ap-vsheet__copy { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 10px;
  background: #e3263b; color: #fff; font: inherit; font-size: .86rem; font-weight: 800; cursor: pointer; }
.ap-vsheet__copy svg { width: 16px; height: 16px; }
.ap-vsheet__copy.is-copied { background: var(--ap-success); }
.ap-vsheet__shop { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 12px;
  border: 1px solid var(--ap-line); color: var(--ap-ink); font-weight: 800; font-size: .9rem; text-decoration: none; }
.ap-vsheet__shop svg { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .ap-vsheet { bottom: 24px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-vsheet, .ap-vsheet::backdrop { animation: none; }
  .ap-vsheet.is-closing { transition: none; }
}

/* ---------- Product rail with tabs (product_tabs) ---------- */
.ap-product-tabs .ap-tabs { margin-bottom: 12px; }
.ap-tabs-body[aria-busy="true"] { opacity: .5; transition: opacity 200ms ease; }

/* ---------- Tile layouts: bento (a tall tile + two stacked beside it) ---------- */
.ap-hk-tiles--bento { grid-template-rows: auto auto; }
.ap-hk-tiles--bento > li.is-tall { grid-row: span 2; }
.ap-hk-tiles--bento > li.is-tall .ap-hk-tile, .ap-hk-tiles--bento > li.is-tall .ap-hk-tile__frame { height: 100%; }
.ap-hk-tiles--bento > li.is-tall .ap-hk-tile__frame { aspect-ratio: auto; }
@media (min-width: 768px) {
  .ap-hk-tiles--bento { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
}
