/* Single store — SimplyCodes MLP layout, ReviewDecode light theme */

.rd-store-page {
  background: linear-gradient(180deg, #fff 0%, var(--sc-shell-bg, #f4f7fc) 100%);
  padding-bottom: 4rem;
}

.rd-store-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .rd-store-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 2rem;
    row-gap: 1.25rem;
    padding: 1.25rem 1.5rem 3rem;
    align-items: start;
  }

  .rd-store-breadcrumbs {
    grid-column: 1 / -1;
  }

  .rd-store-sidebar {
    grid-row: 2;
    position: sticky;
    top: calc(var(--sc-nav-h, 64px) + 1rem);
  }

  .rd-store-main {
    grid-row: 2;
    min-width: 0;
  }
}

/* Breadcrumbs */
.rd-store-breadcrumbs {
  font-size: 0.9rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-breadcrumbs a {
  color: var(--sc-shell-text, #0f172a);
  text-decoration: none;
  font-weight: 600;
}

.rd-store-breadcrumbs a:hover {
  color: var(--brand, #1a73e8);
}

.rd-store-breadcrumbs__sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}

/* Sidebar */
.rd-store-sidebar__card {
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.rd-store-sidebar__logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 118px;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.08));
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.75rem;
}

.rd-store-sidebar__logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rd-store-sidebar__logo-ph {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand, #1a73e8);
}

.rd-store-sidebar__name {
  margin: 0.75rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sc-shell-text, #0f172a);
}

.rd-store-sidebar__domain {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-sidebar__divider {
  border: 0;
  border-top: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  margin: 0;
}

.rd-store-sidebar__block-title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--sc-shell-text, #0f172a);
}

.rd-store-sidebar__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-sidebar__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rd-store-sidebar__list a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sc-shell-text, #0f172a);
  text-decoration: none;
}

.rd-store-sidebar__list a:hover {
  color: var(--brand, #1a73e8);
}

.rd-store-sidebar__list a span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd-store-sidebar__visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--brand, #1a73e8);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in oklab, var(--brand, #1a73e8) 28%, transparent);
  transition: filter 0.15s, transform 0.15s;
}

.rd-store-sidebar__visit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 1023px) {
  .rd-store-sidebar {
    display: none;
  }
}

/* Hero */
.rd-store-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .rd-store-hero {
    display: block;
  }
}

.rd-store-hero__mobile-logo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  padding: 0.5rem;
  overflow: hidden;
}

.rd-store-hero__mobile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (min-width: 768px) {
  .rd-store-hero__mobile-logo {
    display: none;
  }
}

.rd-store-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--sc-shell-text, #0f172a);
  grid-column: 2;
}

@media (min-width: 768px) {
  .rd-store-hero__title {
    grid-column: auto;
  }
}

.rd-store-hero__stats-wrap {
  position: relative;
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .rd-store-hero__stats-wrap {
    grid-column: auto;
  }
}

.rd-store-hero__stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  font-size: 0.8125rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-hero__stats::-webkit-scrollbar {
  display: none;
}

.rd-store-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.rd-store-hero__stat strong {
  color: var(--sc-shell-text, #0f172a);
  font-weight: 800;
}

.rd-store-hero__stat-divider {
  color: var(--sc-shell-border, rgba(15, 23, 42, 0.25));
}

.rd-store-hero__scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  align-items: center;
}

.rd-store-hero__scroll-btn button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.12));
  background: #fff;
  color: var(--sc-shell-text, #0f172a);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.rd-store-hero__scroll-btn--left {
  left: 0;
}

.rd-store-hero__scroll-btn--right {
  right: 0;
}

/* Sticky nav */
.rd-store-nav-wrap {
  position: sticky;
  top: calc(var(--sc-nav-h, 64px) - 1px);
  z-index: 20;
  margin: 0 -1rem;
  padding: 0 1rem;
  background: color-mix(in oklab, var(--sc-shell-bg, #f4f7fc) 88%, #fff);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.08));
}

@media (min-width: 1024px) {
  .rd-store-nav-wrap {
    margin: 0;
    padding: 0;
  }
}

.rd-store-nav {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.65rem 0;
}

.rd-store-nav::-webkit-scrollbar {
  display: none;
}

.rd-store-nav__link {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sc-shell-muted, #64748b);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.rd-store-nav__link:hover {
  color: var(--sc-shell-text, #0f172a);
  background: rgba(255, 255, 255, 0.8);
}

.rd-store-nav__link.is-active {
  background: var(--brand, #1a73e8);
  color: #fff;
}

/* Sections */
.rd-store-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.rd-store-section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sc-shell-text, #0f172a);
}

.rd-store-info-box {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 0.75rem;
  background: #fff;
  color: var(--sc-shell-muted, #64748b);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.rd-store-info-box__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand, #1a73e8);
}

.rd-store-info-box__text {
  flex: 1;
  min-width: 0;
}

.rd-store-info-box__text.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rd-store-info-box__toggle {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand, #1a73e8);
  text-decoration: underline;
  white-space: nowrap;
}

/* Coupon cards */
.rd-store-codes {
  display: grid;
  gap: 0.85rem;
}

.rd-mlp-card-wrap {
  position: relative;
  margin-top: 1rem;
}

.rd-mlp-card-wrap:first-child {
  margin-top: 0;
}

.rd-mlp-card__ribbon {
  position: absolute;
  top: -1rem;
  left: -0.35rem;
  z-index: 1;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem 0.5rem 0.5rem 0;
  background: var(--brand, #1a73e8);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  white-space: nowrap;
}

.rd-mlp-card {
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 0 1.25rem 1.25rem 1.25rem;
  overflow: clip;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  container-type: inline-size;
  container-name: rd-coupon-card;
}

.rd-mlp-card--top {
  border-color: color-mix(in oklab, var(--brand, #1a73e8) 35%, #fff);
}

.rd-mlp-card__header {
  padding: 1rem;
}

.rd-mlp-card__grid {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.rd-mlp-card__logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.08));
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rd-mlp-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rd-mlp-card__title-row {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.rd-mlp-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--sc-shell-text, #0f172a);
}

.rd-mlp-card__title a {
  color: inherit;
  text-decoration: none;
}

.rd-mlp-card__title a:hover {
  color: var(--brand, #1a73e8);
}

.rd-mlp-card__badge-row {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.rd-mlp-card__type-pill {
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  color: var(--sc-shell-muted, #64748b);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-mlp-card__type-pill--wide {
  display: none;
}

.rd-mlp-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #059669;
  font-weight: 600;
}

.rd-mlp-card__scope {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.12));
  color: var(--sc-shell-muted, #64748b);
  font-size: 0.75rem;
}

.rd-mlp-card__cta {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

@container rd-coupon-card (min-width: 390px) {
  .rd-mlp-card__cta {
    grid-row: 1 / span 2;
  }

  .rd-mlp-card__type-pill--wide {
    display: inline-block;
  }

  .rd-mlp-card__type-pill--narrow {
    display: none;
  }
}

.rd-mlp-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--brand, #1a73e8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in oklab, var(--brand, #1a73e8) 30%, transparent);
  transition: filter 0.15s;
}

.rd-mlp-card__btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.rd-mlp-card__btn--deal {
  background: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.rd-mlp-card__detail {
  margin: 0;
  padding: 0 1rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--sc-shell-muted, #64748b);
}

.rd-mlp-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0 1rem 1rem;
  font-size: 0.8125rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-mlp-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rd-mlp-card__health {
  font-weight: 700;
  color: var(--brand, #1a73e8);
}

.rd-mlp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.08));
  background: #f8fafc;
}

.rd-mlp-card__votes .user-ratting {
  display: flex;
  gap: 0.35rem;
}

.rd-mlp-card__success {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--sc-shell-muted, #64748b);
}

/* About + FAQ overrides on store page */
.rd-store-about {
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.rd-store-about__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-about__extra {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-page .storeFAQ {
  margin: 0;
}

.rd-store-page .storeFAQ .homeSection__head {
  margin-bottom: 1rem;
}

/* Similar merchants */
.rd-store-similar__scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.rd-store-similar__scroll::-webkit-scrollbar {
  display: none;
}

.rd-store-similar__card {
  flex-shrink: 0;
  width: 148px;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s, transform 0.15s;
}

.rd-store-similar__card:hover {
  border-color: color-mix(in oklab, var(--brand, #1a73e8) 35%, #fff);
  transform: translateY(-2px);
  color: inherit;
}

.rd-store-similar__logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #fff;
  border-bottom: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.06));
}

.rd-store-similar__logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.rd-store-similar__body {
  padding: 0.5rem 0.65rem 0.65rem;
}

.rd-store-similar__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-store-similar__count {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--sc-shell-border, rgba(15, 23, 42, 0.1));
  border-radius: 1rem;
  color: var(--sc-shell-muted, #64748b);
}

.rd-store-section {
  scroll-margin-top: calc(var(--sc-nav-h, 64px) + 3.5rem);
}
