/* Catalogue building blocks shared by both designs: product cards, rails, section heads,
   image tiles and carousels. Desktop sizes follow the 1440 artboard; .be-m scales them down. */

/* ---------- Section heads ---------- */
.be-sec {
  margin-top: 64px;
}

.be-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.be-sec__title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.be-sec__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  color: var(--be-ink);
}

.be-sec__see-all {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffe5e0;
  color: var(--be-coral);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

.be-sec__see-all:hover {
  background: var(--be-blush-line);
}

.be-sec__nav {
  display: flex;
  gap: 12px;
}

.be-sec__nav button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffe5e0;
  color: var(--be-ink);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.be-sec__nav button:first-child {
  background: #e7ddd7;
}

.be-sec__nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

.be-wm-head {
  margin-bottom: 32px;
}

.be-wm-head .be-watermark__title {
  font-size: 32px;
  line-height: 40px;
}

.be-wm-head__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: var(--be-coral);
}

.be-wm-head__sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--be-muted);
}

/* ---------- Horizontal rails (scroll-snap, arrow buttons on desktop) ---------- */
.be-rail {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.be-rail::-webkit-scrollbar {
  display: none;
}

.be-rail > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Bleed to the viewport edge while the first card lines up with the container. */
.be-rail--bleed {
  margin: 0 calc(-1 * var(--be-gutter));
  padding: 0 var(--be-gutter);
  scroll-padding-left: var(--be-gutter);
}

/* ---------- Product card ---------- */
.be-pc {
  position: relative;
  width: 240px;
  display: flex;
  flex-direction: column;
}

.be-pc__img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--be-white);
}

.be-pc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.be-pc:hover .be-pc__img img {
  transform: scale(1.04);
}

.be-pc__flag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 249, 244, 0.92);
  color: var(--be-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 22px;
}

.be-pc__flag--off {
  background: var(--be-blush);
  color: var(--be-coral);
}

.be-pc__heart-form {
  position: absolute;
  top: 10px;
  right: 10px;
}

.be-pc__heart {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--be-ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.be-pc__heart:hover {
  background: rgba(255, 249, 244, 0.85);
}

.be-pc__heart.is-on {
  color: var(--be-coral);
}

.be-pc__heart.is-on svg {
  fill: currentColor;
}

.be-pc__heart.is-busy {
  transform: scale(0.88);
}

.be-pc__brand-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.be-pc__brand {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
  color: var(--be-ink-soft);
}

.be-pc__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--be-ink-soft);
}

.be-pc__rating svg {
  color: var(--be-coral-soft);
  stroke: none;
}

.be-pc__name {
  margin-top: 2px;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 16px;
  line-height: 26px;
  color: var(--be-muted);
}

.be-pc__name:hover {
  color: var(--be-ink);
}

.be-pc__price-row {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.be-pc__prices {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.be-pc__mrp {
  font-size: 14px;
  line-height: 22px;
  color: rgba(90, 35, 51, 0.45);
}

.be-pc__price {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  color: var(--be-ink);
}

.be-pc__na {
  font-size: 13px;
  line-height: 26px;
  color: var(--be-muted);
}

.be-pc__add {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--be-coral-soft);
  border-radius: 50%;
  background: var(--be-canvas);
  color: var(--be-coral-soft);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.be-pc__add:hover {
  background: var(--be-coral-soft);
  color: var(--be-white);
}

.be-pc__add.is-busy {
  transform: scale(0.9);
  opacity: 0.7;
}

.be-pc__add.is-done {
  background: var(--be-coral-soft);
  color: var(--be-white);
}

/* ---------- Round-cornered image tiles (stages, ages, gifts, shortcuts) ---------- */
.be-tiles {
  display: flex;
  gap: 16px;
}

.be-tile {
  flex: 0 0 104px;
  width: 104px;
  text-align: center;
}

.be-tile__img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px dashed var(--be-line);
  background: var(--be-canvas);
  transition: transform 0.2s ease;
}

.be-tile.is-for-you {
  position: relative;
}

.be-tile.is-for-you .be-tile__img {
  border: 2px solid var(--be-coral-soft);
}

.be-tile__badge {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  padding: 0 8px;
  border-radius: 999px;
  background: var(--be-coral);
  color: var(--be-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
}

.be-tile:hover .be-tile__img {
  transform: translateY(-2px);
}

.be-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.be-tile__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--be-ink);
}

.be-tile__sub {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--be-muted);
}

/* ---------- Pills (tab switchers) ---------- */
.be-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.be-pills button,
.be-pills a {
  height: 38px;
  padding: 0 16px;
  border: 2px solid var(--be-line);
  border-radius: 24px;
  background: var(--be-white);
  color: var(--be-coral);
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
}

.be-pills .is-active {
  background: var(--be-blush);
  border-color: var(--be-coral-soft);
}

/* ---------- Carousel dots (heart for the active slide) ---------- */
.be-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 20px;
}

.be-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1.5px solid var(--be-muted);
  border-radius: 50%;
  background: transparent;
  opacity: 0.4;
  display: grid;
  place-items: center;
}

.be-dots button.is-active {
  width: 20px;
  height: 20px;
  border: 0;
  opacity: 1;
  color: var(--be-coral-soft);
}

.be-dots button svg {
  display: none;
}

.be-dots button.is-active svg {
  display: block;
}

/* ---------- Empty states ---------- */
.be-empty {
  padding: 32px 24px;
  border: 1px dashed var(--be-line);
  border-radius: 24px;
  text-align: center;
  color: var(--be-muted);
}

.be-empty .be-btn {
  margin-top: 16px;
}

/* ---------- Breadcrumbs and rich text (admin HTML) ---------- */
.be-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-size: 12px;
  color: var(--be-muted);
}

.be-crumbs a:hover {
  color: var(--be-coral);
}

.be-crumbs [aria-current] {
  color: var(--be-ink);
  font-weight: 600;
}

.be-prose {
  color: var(--be-ink-soft);
  font-size: 14px;
  line-height: 24px;
}

.be-prose h1,
.be-prose h2,
.be-prose h3,
.be-prose h4 {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 25px;
  color: var(--be-ink);
}

.be-prose h1 {
  font-size: 19px;
  line-height: 27px;
}

.be-prose > :first-child {
  margin-top: 0;
}

.be-prose img {
  border-radius: 16px;
}

.be-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.be-prose td,
.be-prose th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--be-line);
  text-align: left;
}

.be-prose p,
.be-prose ul,
.be-prose ol {
  margin: 0 0 12px;
}

.be-prose ul {
  padding-left: 20px;
  list-style: disc;
}

.be-prose ol {
  padding-left: 20px;
  list-style: decimal;
}

.be-prose a {
  color: var(--be-coral);
  text-decoration: underline;
}

/* ---------- Mobile scale ---------- */
.be-m .be-sec {
  margin-top: 40px;
}

.be-m .be-sec__head {
  margin-bottom: 16px;
}

.be-m .be-sec__title {
  font-size: 18px;
  line-height: 26px;
}

.be-m .be-sec__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--be-coral);
}

.be-m .be-wm-head {
  margin-bottom: 20px;
}

.be-m .be-wm-head .be-watermark__word {
  font-size: 56px;
  line-height: 48px;
  letter-spacing: -4px;
}

.be-m .be-wm-head .be-watermark__title {
  margin-top: -28px;
  font-size: 22px;
  line-height: 30px;
}

.be-m .be-rail {
  gap: 16px;
}

.be-m .be-rail--bleed {
  margin: 0 calc(-1 * var(--be-m-pad));
  padding: 0 var(--be-m-pad);
  scroll-padding-left: var(--be-m-pad);
}

.be-m .be-pc {
  width: 160px;
}

.be-m .be-pc__img {
  border-radius: 20px;
}

.be-m .be-pc__heart {
  width: 32px;
  height: 32px;
}

.be-m .be-pc__heart-form {
  top: 6px;
  right: 6px;
}

.be-m .be-pc__brand-row {
  margin-top: 8px;
  min-height: 20px;
}

.be-m .be-pc__brand {
  font-size: 13px;
  line-height: 20px;
}

.be-m .be-pc__rating {
  font-size: 12px;
  line-height: 20px;
}

.be-m .be-pc__name {
  min-height: 40px;
  font-size: 13px;
  line-height: 20px;
}

.be-m .be-pc__price-row {
  padding-top: 8px;
}

.be-m .be-pc__mrp {
  font-size: 12px;
  line-height: 18px;
}

.be-m .be-pc__price {
  font-size: 15px;
  line-height: 22px;
}

.be-m .be-pc__add {
  width: 36px;
  height: 36px;
}

.be-m .be-tile {
  flex-basis: 88px;
  width: 88px;
}

.be-m .be-tile__img {
  width: 76px;
  height: 76px;
  border-radius: 22px;
}

.be-m .be-tile__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.be-m .be-tile__sub {
  font-size: 11px;
  line-height: 16px;
}

.be-m .be-pills {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.be-m .be-pills button {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 30px;
}

/* Desktop rails shrink cards on narrower screens */
@media (max-width: 1279px) {
  .be-d .be-rail {
    gap: 24px;
  }

  .be-d .be-pc {
    width: 220px;
  }
}

@media (max-width: 1023px) {
  .be-d .be-pc {
    width: 200px;
  }

  .be-d .be-pc__brand,
  .be-d .be-pc__name {
    font-size: 14px;
  }
}
