/* Appily Twentyfive — Market Floor shop (distinct from shared Appily sidebar shops) */

.at25-shop-body .page-wrap {
  overflow-x: clip;
}

@keyframes at25-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.06); }
}
@keyframes at25-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes at25-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* —— Split masthead —— */
.at25-mast {
  position: relative;
  padding: 48px 0 36px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 92% 8%, rgba(191,255,0,.18), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(90,122,20,.16), transparent 50%),
    linear-gradient(165deg, #121212 0%, #111111 40%, #1c1c1c 100%);
  color: #f4f4f2;
}
.at25-mast::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 22px,
      rgba(255,255,255,.025) 22px 23px
    );
  pointer-events: none;
}
.at25-mast-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  animation: at25-rise .55s var(--pu-ease, cubic-bezier(.22,1,.36,1)) both;
}
.at25-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e4ff8a;
}
.at25-kicker.soft { color: var(--pu-leaf, #4d6b12); }
.at25-mast-copy h1 {
  margin: 0 0 14px;
  font-family: var(--pu-font);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 12ch;
}
.at25-mast-lead {
  margin: 0 0 22px;
  max-width: 38ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(244,244,242,.78);
}
.at25-search-chip {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  color: #e4ff8a;
}
.at25-search {
  display: flex;
  gap: 0;
  max-width: 460px;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  transition: border-color .2s, box-shadow .2s;
}
.at25-search:focus-within {
  border-color: rgba(191,255,0,.65);
  box-shadow: 0 0 0 4px rgba(191,255,0,.18), 0 16px 40px rgba(0,0,0,.2);
}
.at25-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  background: transparent;
  color: #fff;
  font: inherit;
}
.at25-search input::placeholder { color: rgba(255,255,255,.45); }
.at25-search button {
  border: 0;
  padding: 0 20px;
  background: linear-gradient(135deg, #c6f000, var(--pu-lime, #bfff00));
  color: var(--pu-on-lime, #111);
  font-family: var(--pu-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .2s;
}
.at25-search button:hover { filter: brightness(1.08); }
.at25-mast-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 420px;
}
.at25-mast-stats div {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.at25-mast-stats strong {
  display: block;
  font-family: var(--pu-font);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
.at25-mast-stats span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(244,244,242,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Spotlight stage */
.at25-mast-stage {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.at25-stage-orb {
  position: absolute;
  width: min(88%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(191,255,0,.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(90,122,20,.4), transparent 60%);
  filter: blur(10px);
  animation: at25-drift 7s ease-in-out infinite;
  pointer-events: none;
}
.at25-stage-card {
  position: relative;
  width: min(100%, 340px);
  border-radius: 28px 28px 48px 18px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1.5px solid rgba(255,255,255,.2);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
  transform: rotate(2.5deg);
  transition: transform .35s var(--pu-ease, cubic-bezier(.22,1,.36,1));
}
.at25-stage-card:hover { transform: rotate(0deg) translateY(-6px); }
.at25-stage-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17,17,17,.82);
  color: #e4ff8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.at25-stage-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: linear-gradient(160deg, #f4f4f2, #e6e6de);
}
.at25-stage-meta {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, rgba(17,17,17,.2), rgba(17,17,17,.95));
}
.at25-stage-meta h2 {
  margin: 0 0 4px;
  font-family: var(--pu-font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.at25-stage-meta p {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(244,244,242,.65);
}
.at25-stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c6f000, var(--pu-lime, #bfff00));
  color: var(--pu-on-lime, #111);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(191,255,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.at25-stage-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(191,255,0,.4);
  color: var(--pu-on-lime, #111);
}

/* —— Sticky stand rail —— */
.at25-rail-wrap {
  position: sticky;
  top: var(--pu-header-h, 72px);
  z-index: 40;
  padding: 12px 0;
  background: rgba(247,247,245,.92);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--pu-border, #e2e2dc);
  box-shadow: 0 10px 28px rgba(17,17,17,.06);
}
.at25-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 28px 8px 2px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.at25-rail-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247,247,245,0), rgba(247,247,245,.96));
}
.at25-rail-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--pu-border, #e2e2dc);
  background: rgba(255,255,255,.85);
  color: var(--pu-black, #111111);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.at25-rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pu-leaf, #5a7a14);
  box-shadow: 0 0 0 3px rgba(90,122,20,.15);
}
.at25-rail-chip:nth-child(3n) .at25-rail-dot { background: var(--pu-lime, #bfff00); box-shadow: 0 0 0 3px rgba(191,255,0,.15); }
.at25-rail-chip:nth-child(3n+2) .at25-rail-dot { background: var(--pu-sky, #d4ff66); box-shadow: 0 0 0 3px rgba(191,255,0,.18); }
.at25-rail-chip em {
  font-style: normal;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pu-light, #f4f4f2);
  font-size: 11px;
  font-weight: 800;
  color: var(--pu-gray, #5c5c5c);
}
.at25-rail-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(191,255,0,.4);
  box-shadow: 0 10px 22px rgba(191,255,0,.12);
}
.at25-rail-chip.is-active {
  background: linear-gradient(135deg, #111111, #3d4f12);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 28px rgba(17,17,17,.22);
}
.at25-rail-chip.is-active .at25-rail-dot {
  background: #e4ff8a;
  box-shadow: 0 0 10px rgba(228,255,138,.6);
}
.at25-rail-chip.is-active em {
  background: rgba(255,255,255,.16);
  color: #fff;
}

/* —— Floor / aisle —— */
.at25-floor {
  padding: 36px 0 72px;
}
.at25-floor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.at25-floor-head h2 {
  margin: 0;
  font-family: var(--pu-font);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--pu-black, #111111);
}
.at25-floor-head h2 em {
  font-style: normal;
  color: var(--pu-leaf, #4d6b12);
}
.at25-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--pu-border, #e2e2dc);
}
.at25-sort label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pu-gray, #5c5c5c);
}
.at25-sort select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--pu-black, #111111);
  cursor: pointer;
  outline: none;
}

/* Featured aisle lead */
.at25-feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--pu-border, #e2e2dc);
  box-shadow: 0 18px 48px rgba(17,17,17,.1);
  animation: at25-rise .5s var(--pu-ease, cubic-bezier(.22,1,.36,1)) both;
}
.at25-feature-media {
  position: relative;
  display: block;
  background:
    radial-gradient(circle at 70% 20%, rgba(191,255,0,.14), transparent 45%),
    linear-gradient(160deg, #f7f7f5, #e8e8e2);
  min-height: 320px;
  height: 100%;
  overflow: hidden;
}
.at25-feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: transform .55s var(--pu-ease, cubic-bezier(.22,1,.36,1));
}
.at25-feature:hover .at25-feature-media img { transform: scale(1.05); }
.at25-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.5), transparent),
    linear-gradient(180deg, #fff, #f7f7f5);
}
.at25-feature-copy h3 {
  margin: 0 0 12px;
  font-family: var(--pu-font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.at25-feature-copy h3 a { text-decoration: none; color: inherit; }
.at25-feature-copy h3 a:hover { color: var(--pu-lime-dim, #7a9900); }
.at25-feature-copy > p {
  margin: 0 0 22px;
  max-width: 36ch;
  color: var(--pu-gray, #5c5c5c);
  line-height: 1.65;
}
.at25-feature-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.at25-tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pu-leaf, #5a7a14);
}
.at25-price {
  font-family: var(--pu-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pu-black, #111111);
}
.at25-price s {
  margin-left: 8px;
  font-family: var(--pu-body);
  font-size: .85rem;
  font-weight: 500;
  color: var(--pu-gray, #5c5c5c);
}
.at25-sale {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5a4a, var(--pu-red, #e53935));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(229,57,53,.3);
}

/* Bento market tiles */
.at25-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.at25-tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,226,220,.95);
  box-shadow: 0 10px 28px rgba(17,17,17,.06);
  transition: transform .3s var(--pu-ease, cubic-bezier(.22,1,.36,1)), box-shadow .3s, border-color .25s;
}
.at25-tile.is-wide {
  grid-column: span 8;
  flex-direction: row;
  align-items: stretch;
}
.at25-tile:hover {
  transform: translateY(-7px);
  border-color: rgba(191,255,0,.35);
  box-shadow: 0 22px 48px rgba(17,17,17,.12);
}
.at25-tile-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(191,255,0,.18), transparent 50%),
    linear-gradient(155deg, #f7f7f5, #ecece6);
  overflow: hidden;
}
.at25-tile.is-wide .at25-tile-media {
  flex: 0 0 46%;
  width: 46%;
  aspect-ratio: auto;
  align-self: stretch;
  min-height: 240px;
}
.at25-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transition: transform .45s var(--pu-ease, cubic-bezier(.22,1,.36,1));
}
.at25-tile:hover .at25-tile-media img { transform: scale(1.07) rotate(-1deg); }
.at25-tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}
.at25-tile.is-wide .at25-tile-body {
  justify-content: center;
  padding: 24px 26px;
}
.at25-tile-body h3 {
  margin: 0 0 14px;
  font-family: var(--pu-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.at25-tile.is-wide .at25-tile-body h3 { font-size: 1.45rem; }
.at25-tile-body h3 a { text-decoration: none; color: inherit; }
.at25-tile-body h3 a:hover { color: var(--pu-lime-dim, #7a9900); }
.at25-tile-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.at25-plus {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #111111, #3d4f12);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s, background .25s;
}
.at25-plus:hover {
  transform: translateX(3px) scale(1.06);
  background: linear-gradient(145deg, #c6f000, var(--pu-lime, #bfff00));
  color: var(--pu-on-lime, #111);
}

.at25-empty {
  text-align: center;
  padding: 64px 24px;
  border-radius: 24px;
  border: 1.5px dashed var(--pu-border, #e2e2dc);
  background: rgba(255,255,255,.75);
  color: var(--pu-gray, #5c5c5c);
}
.at25-empty .sub { margin: 6px 0 18px; font-size: 14px; }

/* Pagination sits inside floor */
.at25-floor .catalog-pagination { margin-top: 40px; }

/* —— Responsive —— */
@media (max-width: 1024px) {
  .at25-mast-grid { grid-template-columns: 1fr; gap: 28px; }
  .at25-mast-copy h1 { max-width: none; }
  .at25-mast-stage { min-height: 300px; }
  .at25-stage-card { transform: none; }
  .at25-feature { grid-template-columns: 1fr; }
  .at25-feature-media { min-height: 240px; }
  .at25-tile { grid-column: span 6; }
  .at25-tile.is-wide { grid-column: span 12; }
}
@media (max-width: 720px) {
  .at25-mast { padding: 36px 0 28px; }
  .at25-mast-stats { grid-template-columns: 1fr; max-width: none; }
  .at25-search { max-width: none; flex-wrap: wrap; border-radius: 18px; }
  .at25-search button { width: 100%; min-height: 46px; }
  .at25-rail-wrap { top: var(--pu-header-h, 64px); }
  .at25-tile,
  .at25-tile.is-wide {
    grid-column: span 12;
    flex-direction: column;
  }
  .at25-tile.is-wide .at25-tile-media {
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }
  .at25-floor-head { align-items: stretch; }
  .at25-sort { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .at25-stage-orb,
  .at25-mast-grid,
  .at25-feature,
  .at25-tile {
    animation: none !important;
  }
}

/* Fix accidental color token if old browsers choke — solid fallback already in gradient stops */
.at25-mast {
  background-color: #111111;
}
