/* Frontend note: Styles for store inline. */
:root {
  --color-primary: #a2c84f;
  --color-primary-hover: #bcd685;
  --color-primary-dark: #1d4e11;

  --color-secondary: #3a4045;
  --color-secondary-dark: #1d232a;
  --color-secondary-light: #393b3d;

  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-light: #ededed;
}

/* Base container */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 72px;
  font-family: "Vazirmatn", system-ui, sans-serif;
}

/* ---------- Categories row ---------- */

/* ---------- Hero ---------- */
.hero {
  border: 1px solid #b7d874;
  border-radius: 24px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 18px 0 42px;
  background: #fefefe;
  text-align: center;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.hero:hover,
.hero:focus-within {
  border-color: #a2c84f;
  box-shadow: 0 18px 38px rgba(29, 35, 22, 0.08);
  transform: translateY(-2px);
}
.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(152, 187, 63, 0.1) 0%,
    rgba(152, 187, 63, 0.05) 38%,
    rgba(152, 187, 63, 0) 72%
  );
  pointer-events: none;
}

.hero__media::after {
  content: "";
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(31, 36, 24, 0.14) 0%,
    rgba(31, 36, 24, 0.07) 45%,
    rgba(31, 36, 24, 0) 78%
  );
  filter: blur(8px);
  pointer-events: none;
}

.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  height: auto;
  object-fit: contain;
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 28px rgba(28, 35, 22, 0.08));
  transition:
    transform 320ms ease,
    filter 320ms ease;
}

.hero:hover .hero__img,
.hero:focus-within .hero__img {
  animation: hero-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 24px 34px rgba(28, 35, 22, 0.12));
}

@media (max-width: 1100px) {
  .hero__media {
    min-height: 280px;
  }

  .hero__media::before {
    width: 300px;
    height: 300px;
  }

  .hero__img {
    max-width: 460px;
  }
}

@media (max-width: 860px) {
  .hero__media {
    min-height: auto;
  }

  .hero__media::before {
    width: 240px;
    height: 240px;
  }

  .hero__media::after {
    bottom: 18px;
    width: 180px;
    height: 20px;
  }

  .hero__img {
    max-width: 320px;
    transform: translateY(-2px);
  }
}

.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero__content:focus-visible {
  outline: none;
}

.hero__kicker {
  color: #98bb3f;
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 30px;
}
.hero__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 800;
  color: #161616;
  line-height: 1.4;
  text-align: center;
}
.hero__desc {
  margin: 0 0 20px;
  color: #4e4e4e;
  max-width: 420px;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.95;
  text-align: center;
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* ---------- Promo cards ---------- */
.promo-grid {
  position: relative;
  margin: 0 0 76px;
  padding: 38px 22px 24px;
}

.promo-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(
    180deg,
    rgba(249, 250, 246, 0.96) 0%,
    rgba(255, 255, 255, 0.72) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 40px rgba(26, 33, 21, 0.05);
  pointer-events: none;
}

.promo-grid__intro {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto 38px;
  padding: 0 44px;
  text-align: center;
  border: 0;
}

.promo-grid__eyebrow {
  margin: 0;
  color: #7f9650;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-grid__title {
  margin: 4px 0 0;
  position: relative;
  z-index: 1;
  color: #1f241d;
  max-width: 520px;
  margin-inline: auto;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
}

.promo-grid__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.promo-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  direction: ltr;
  cursor: pointer;
  box-shadow:
    0 16px 36px rgba(29, 35, 42, 0.08),
    0 6px 16px rgba(29, 35, 42, 0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 200, 79, 0.32);
  box-shadow:
    0 24px 48px rgba(29, 35, 42, 0.12),
    0 10px 22px rgba(29, 35, 42, 0.07);
}

.promo-card:focus-visible {
  outline: 2px solid rgba(162, 200, 79, 0.72);
  outline-offset: 4px;
}

.promo-card__inner {
  position: relative;
  width: 100%;
  min-height: 260px;
  padding: 32px 30px 28px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.promo-card__content {
  position: relative;
  z-index: 3;
  width: min(48%, 280px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  direction: rtl;
  text-align: right;
}

.promo-card__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.promo-card__title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.promo-card__title span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.promo-card__action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.promo-card__action-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  background: var(--color-white);
  color: var(--color-secondary-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(0);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.promo-card:hover .promo-card__action-icon,
.promo-card:focus-visible .promo-card__action-icon,
.promo-card__action:hover .promo-card__action-icon {
  transform: translateX(-6px) rotate(-42deg);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.promo-card__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.promo-card__image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.16))
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.1));
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
}

.promo-card:hover .promo-card__image {
  transform: translate3d(0, -3px, 0);
}

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.1) 24%,
    rgba(0, 0, 0, 0.02) 42%,
    rgba(0, 0, 0, 0) 58%
  );
}

.promo-card--primary {
  background:
    radial-gradient(
      circle at 88% 14%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 22%
    ),
    linear-gradient(135deg, #8db93a 0%, var(--color-primary) 45%, #b9d872 100%);
}

.promo-card--light {
  background: linear-gradient(180deg, #f7f7f5 0%, var(--color-gray-light) 100%);
}

.promo-card--light::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.62) 22%,
    rgba(255, 255, 255, 0.18) 42%,
    rgba(255, 255, 255, 0) 60%
  );
}

.promo-card--light .promo-card__title {
  color: var(--color-secondary-dark);
}

.promo-card--light .promo-card__title span {
  color: rgba(29, 35, 42, 0.54);
}

.promo-card--light .promo-card__eyebrow {
  color: rgba(29, 35, 42, 0.62);
}

.promo-card--light .promo-card__action {
  color: var(--color-secondary-dark);
}

.promo-card--light .promo-card__action-icon {
  background: var(--color-secondary-dark);
  color: var(--color-white);
}

.promo-card--dark {
  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(162, 200, 79, 0.18) 0%,
      rgba(162, 200, 79, 0) 22%
    ),
    linear-gradient(
      135deg,
      var(--color-secondary) 0%,
      var(--color-secondary-dark) 100%
    );
}

.promo-card--dark .promo-card__title {
  color: var(--color-white);
}

.promo-card--dark .promo-card__title span {
  color: rgba(255, 255, 255, 0.62);
}

.promo-card--dark .promo-card__eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.promo-card--dark .promo-card__action {
  color: var(--color-white);
}

.promo-card--dark .promo-card__action-icon {
  background: var(--color-primary);
  color: var(--color-secondary-dark);
}

/* image positioning */
.promo-card__image--smart {
  width: 250px;
  right: -14px;
  bottom: -2px;
}

.promo-card__image--solar {
  width: 270px;
  right: -18px;
  bottom: -4px;
}

.promo-card__image--audio {
  width: 290px;
  right: -26px;
  bottom: -8px;
  transform: rotate(-8deg);
}

.promo-card:hover .promo-card__image--audio {
  transform: rotate(-6deg) translate3d(0, -3px, 0);
}

.promo-card__image--light {
  width: 220px;
  right: 28px;
  bottom: 26px;
}

.promo-card--compact-copy .promo-card__content {
  width: min(44%, 250px);
}

.promo-card--wide-copy .promo-card__content {
  width: min(52%, 300px);
}

@media (max-width: 1200px) {
  .promo-card {
    min-height: 236px;
  }

  .promo-card__inner {
    min-height: 236px;
    padding: 26px 24px 22px;
  }

  .promo-card__title {
    font-size: 26px;
  }

  .promo-card__image--smart {
    width: 220px;
    right: -8px;
  }

  .promo-card__image--solar {
    width: 236px;
    right: -10px;
  }

  .promo-card__image--audio {
    width: 250px;
    right: -16px;
  }

  .promo-card__image--light {
    width: 190px;
    right: 18px;
    bottom: 22px;
  }
}

@media (max-width: 860px) {
  .promo-grid {
    margin: 46px 0 78px;
    padding: 28px 14px 10px;
  }

  .promo-grid__intro {
    margin-bottom: 24px;
    padding: 0 28px;
  }

  .promo-grid__wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .promo-card,
  .promo-card__inner {
    min-height: 230px;
  }

  .promo-card__content {
    width: min(50%, 270px);
  }
}

@media (max-width: 640px) {
  .promo-card {
    min-height: auto;
    border-radius: 22px;
  }

  .promo-card__inner {
    min-height: auto;
    padding: 22px 20px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }

  .promo-card__title {
    font-size: 22px;
  }

  .promo-card__action {
    font-size: 13px;
    gap: 10px;
  }

  .promo-card__action-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 15px;
  }

  .promo-card__content {
    width: 100%;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }

  .promo-card__media {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 164px;
  }

  .promo-card__image {
    position: relative;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: min(82vw, 240px);
  }

  .promo-card__image--smart {
    width: min(82vw, 180px);
  }

  .promo-card__image--solar {
    width: min(82vw, 190px);
  }

  .promo-card__image--audio {
    width: min(82vw, 205px);
    transform: translateX(-50%) rotate(-8deg);
  }

  .promo-card__image--light {
    width: min(82vw, 150px);
  }
}

@media (max-width: 420px) {
  .promo-grid {
    margin: 38px 0 42px;
    padding: 22px 10px 4px;
  }

  .promo-grid__title {
    font-size: 14px;
  }

  .promo-grid__intro {
    padding: 0 18px;
  }

  .promo-card {
    min-height: auto;
    border-radius: 18px;
  }

  .promo-card__inner {
    min-height: auto;
    padding: 18px 16px 18px;
    gap: 16px;
  }

  .promo-card__title {
    font-size: 19px;
  }

  .promo-card__title span {
    margin-top: 4px;
  }

  .promo-card__eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .promo-card__content {
    width: 100%;
  }

  .promo-card__action {
    margin-top: 16px;
    font-size: 12px;
  }

  .promo-card__action-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 14px;
  }

  .promo-card__media {
    min-height: 138px;
  }

  .promo-card__image--smart {
    width: min(80vw, 158px);
  }

  .promo-card__image--solar {
    width: min(80vw, 165px);
  }

  .promo-card__image--audio {
    width: min(80vw, 178px);
  }

  .promo-card__image--light {
    width: min(80vw, 132px);
  }
}

@media (max-width: 460px) {
  .promo-card:hover .promo-card__image {
    transform: translateX(-50%) scale(1.04);
  }

  .promo-card:hover .promo-card__image--audio {
    transform: translateX(-50%) rotate(-8deg) scale(1.04);
  }
}

/* ---------- Slider sections ---------- */

/* Product card skeleton */
/* ---------- Guarantees strip (redesign) ---------- */
/* ===== Guarantees (pixel-close to screenshot) ===== */
.guarantees {
  position: relative;
  margin: 60px;
  padding-block: 8px;
}

.guarantees__box {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  padding: 34px 34px 30px;
  border: 1px solid rgba(162, 200, 79, 0.18);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at top center,
      rgba(162, 200, 79, 0.12),
      rgba(162, 200, 79, 0) 34%
    ),
    linear-gradient(180deg, #ffffff 0%, #fbfcf8 100%);
  box-shadow:
    0 16px 40px rgba(29, 35, 22, 0.05),
    0 4px 14px rgba(29, 35, 22, 0.03);
  overflow: hidden;
}

.guarantees__box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(162, 200, 79, 0.08),
    transparent
  );
  opacity: 0.65;
}

.guarantees__title {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  color: #1f241d;
}

.guarantees__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.gcol {
  padding: 22px 20px 20px;
  border: 1px solid rgba(162, 200, 79, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(29, 35, 22, 0.04);
  text-align: center;
}

.gcol__ico {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f4f9e8 0%, #edf5dc 100%);
  color: #86c33d;
}

.gcol__ico svg {
  width: 24px;
  height: 24px;
  display: block;
}

.gcol__h {
  font-size: 14px;
  font-weight: 700;
  color: #1f241d;
  margin-bottom: 8px;
  line-height: 1.7;
}

.gcol__p {
  font-size: 11.5px;
  line-height: 1.9;
  color: #6c7368;
  max-width: 240px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .guarantees {
    margin-block: 56px 60px;
    padding-block: 0;
  }

  .guarantees__box {
    max-width: 640px;
    padding: 28px 22px 24px;
    border-radius: 28px;
  }

  .guarantees__title {
    margin-bottom: 18px;
  }

  .guarantees__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gcol {
    padding: 18px 18px 17px;
    border-radius: 20px;
  }

  .gcol__p {
    max-width: 320px;
  }
}

/* ---------- Footer ---------- */

/* ---------- Placeholders (remove later) ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__title {
    font-size: 38px;
  }
  .hero__desc {
    margin: 0 0 22px;
    color: #4e4e4e;
    max-width: 420px;
    width: 100%;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.95;
    text-align: right;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 20px;
    margin-bottom: 36px;
  }
  .hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero__kicker {
    font-size: 30px;
  }
  .hero__title {
    font-size: 32px;
  }
  .hero__desc {
    margin: 0 0 22px;
    color: #4e4e4e;
    max-width: 420px;
    width: 100%;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.95;
    text-align: right;
  }
}

.pdf-hero-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pdf-hero-actions .pdf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: #a2c84f;
  text-decoration: none;
  gap: 6px;
  box-shadow: none;
  position: relative;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.pdf-hero-actions .pdf-btn-primary::before {
  display: none;
}

.pdf-hero-actions .pdf-btn-primary::after {
  content: "";
  width: 0;
  height: 0;
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    width 180ms ease,
    height 180ms ease;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M15 12H8' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10.5 9.5L8 12l2.5 2.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pdf-hero-actions .pdf-btn-primary:hover::after,
.hero:hover .pdf-hero-actions .pdf-btn-primary::after,
.hero:focus-within .pdf-hero-actions .pdf-btn-primary::after {
  width: 16px;
  height: 16px;
  opacity: 1;
  transform: translateX(0);
}

.hero:hover .pdf-hero-actions .pdf-btn-primary,
.hero:focus-within .pdf-hero-actions .pdf-btn-primary {
  background: #8eb73d;
}
/* ---------- New product cards (3x3) ---------- */

.shelf-sections {
  margin: 0 0 44px;
  background: #ffffff;
  display: grid;
  gap: 46px;
  padding-top: 4px;
}

.shelf-row {
  display: grid;
  gap: 18px;
}

.shelf-row__head {
  margin-bottom: 0;
  text-align: center;
  padding-inline: 10px;
}

.shelf-row__eyebrow {
  margin: 0 0 7px;
  color: #7f9650;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shelf-row__title {
  margin: 0;
  color: #1f241d;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.shelf-row__body {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 18px;
  direction: ltr;
  background: #ffffff;
}

.shelf-nav {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2c3229;
  font-size: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  padding: 0;
  transition:
    transform 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
  opacity: 0.78;
  cursor: pointer;
}

.shelf-nav::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  display: block;
  transform-origin: center;
}

.shelf-nav--next::before {
  transform: rotate(45deg);
}

.shelf-nav--prev::before {
  transform: rotate(225deg);
}

.shelf-nav:hover {
  transform: scale(1.08);
  color: #8eb73d;
  opacity: 1;
}

.shelf-nav:active {
  transform: scale(0.96);
}

.shelf-nav:focus-visible {
  outline: 3px solid rgba(162, 200, 79, 0.28);
  outline-offset: 3px;
}

.shelf-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  direction: rtl;
  background: #ffffff;
}

.shelf-viewport::-webkit-scrollbar {
  display: none;
}

.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 248px;
  justify-content: start;
  gap: 20px;
  padding: 12px 6px;
  background: #ffffff;
}

.shelf-card {
  position: relative;
  min-height: 398px;
  padding: 0;
  border: 1px solid rgba(162, 200, 79, 0.2);
  border-radius: 34px;
  background: #ffffff;
  box-shadow:
    0 10px 24px rgba(29, 35, 22, 0.04),
    0 22px 46px rgba(29, 35, 22, 0.05);
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.shelf-card:hover {
  transform: translateY(-4px);
  border-color: rgba(162, 200, 79, 0.34);
  box-shadow:
    0 16px 34px rgba(29, 35, 22, 0.06),
    0 28px 56px rgba(29, 35, 22, 0.08);
}

.shelf-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
}

.shelf-card__surface {
  position: relative;
  width: 100%;
  min-height: 398px;
  overflow: hidden;
}

.shelf-card__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #727a5c 0%, #22251a 100%);
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.shelf-card:hover .shelf-card__surface::before {
  transform: translateY(0);
}

.shelf-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  min-height: auto;
  padding: 20px 20px 98px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfdfb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    inset 300ms ease,
    border-radius 300ms ease,
    box-shadow 300ms ease;
}

.shelf-card:hover .shelf-card__content {
  inset: 0 0 74px;
  border-radius: 20px;
  box-shadow:
    0 12px 28px rgba(29, 35, 22, 0.06),
    0 18px 34px rgba(29, 35, 22, 0.08);
}

.shelf-card__media {
  width: 100%;
  min-height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 16px 14px 6px;
}

.shelf-card__img {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 168px;
  height: 156px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(29, 35, 22, 0.08))
    drop-shadow(0 22px 24px rgba(29, 35, 22, 0.05));
  transform: translateY(0);
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center bottom;
}

.shelf-card:hover .shelf-card__img {
  transform: translateY(-10px) scale(1.01);
  filter: drop-shadow(0 14px 22px rgba(29, 35, 22, 0.1))
    drop-shadow(0 28px 32px rgba(29, 35, 22, 0.08));
}

.shelf-card__pricing {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  width: 100%;
  padding: 10px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}

.shelf-card__title {
  margin: 0;
  min-height: 46px;
  color: #23271f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-card__brand {
  margin: 4px 0 0;
  color: #9aa095;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.shelf-card__desc {
  margin: 6px 0 0;
  color: #6f756b;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.shelf-card__old {
  margin: 0 0 8px;
  color: #9aa095;
  font-size: 11px;
  font-weight: 500;
  text-decoration: line-through;
  line-height: 1.5;
  transition: color 300ms ease;
}

.shelf-card__price {
  margin: 0;
  min-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 300ms ease;
}

.price-unavailable {
  color: #4a4f45;
  font-size: 14px;
  font-weight: 700;
  transition: color 300ms ease;
}

.shelf-card:hover .shelf-card__old {
  color: rgba(220, 227, 207, 0.72);
}

.shelf-card:hover .shelf-card__price {
  color: #f6f7f2;
}

.shelf-card:hover .price-unavailable {
  color: #dce3cf;
}

@media (max-width: 1100px) {
  .shelf-track {
    grid-auto-columns: 230px;
  }
}

@media (max-width: 820px) {
  .shelf-sections {
    gap: 38px;
    margin-bottom: 40px;
  }

  .shelf-row {
    gap: 16px;
  }

  .shelf-track {
    grid-auto-columns: 214px;
    gap: 16px;
  }

  .shelf-card {
    min-height: 380px;
    border-radius: 28px;
  }

  .shelf-card__surface {
    min-height: 380px;
  }

  .shelf-card__content {
    border-radius: 28px;
    padding: 18px 18px 90px;
  }

  .shelf-card:hover .shelf-card__content {
    inset: 0 0 68px;
    border-radius: 18px;
  }

  .shelf-card__media {
    min-height: 178px;
  }

  .shelf-card__img {
    max-width: 156px;
    height: 146px;
  }
}

@media (max-width: 640px) {
  .promo-grid {
    margin-bottom: 52px;
  }

  .shelf-sections {
    gap: 32px;
    margin-bottom: 34px;
  }

  .shelf-row {
    gap: 14px;
  }

  .shelf-row__body {
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
  }

  .shelf-nav {
    width: 32px;
    height: 32px;
  }

  .shelf-nav::before {
    width: 12px;
    height: 12px;
  }

  .shelf-track {
    grid-auto-columns: 78%;
    gap: 12px;
    padding: 10px 2px;
  }

  .shelf-card {
    min-height: 360px;
    border-radius: 26px;
  }

  .shelf-card__surface {
    min-height: 360px;
  }

  .shelf-card__content {
    padding: 16px 16px 84px;
    border-radius: 26px;
  }

  .shelf-card:hover .shelf-card__content {
    inset: 0 0 60px;
    border-radius: 16px;
  }

  .shelf-card__media {
    min-height: 172px;
    margin-bottom: 2px;
  }

  .shelf-card__img {
    max-width: 148px;
    height: 138px;
  }

  .shelf-card__content {
    width: auto;
    max-width: none;
  }

  .shelf-card__title {
    font-size: 13.5px;
  }

  .shelf-card__price {
    font-size: 18px;
  }
}

/* ---------- Auth modal ---------- */
@media (max-width: 1100px) {
  .shelf-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 700px) {
  .shelf-track {
    grid-auto-columns: 100%;
  }
  .shelf-row__title {
    font-size: 22px;
  }

  .shelf-card__title,
  .shelf-card__brand,
  .shelf-card__old,
  .shelf-card__price {
    text-align: center;
  }
}

/* ---------- Category highlight strips ---------- */
.category-strips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 8px 0 56px;
}

.category-panel {
  position: relative;
  min-height: 150px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  padding: 18px 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
  isolation: isolate;
}

.category-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 38%
    );
}

.category-panel--audio {
  background: linear-gradient(90deg, #495b44 0%, #325827 40%, #165205 100%);
}

.category-panel--solar {
  background: linear-gradient(90deg, #1e7fd9 0%, #0f67c1 42%, #0952a6 100%);
}

.category-panel--light {
  background: linear-gradient(90deg, #2da8a2 0%, #22928e 42%, #1d7d79 100%);
}

.category-panel__text,
.category-panel__visual {
  position: relative;
  z-index: 1;
}

.category-panel__text--primary {
  text-align: right;
  color: #fff;
  padding-right: 4px;
}

.category-panel__text--secondary {
  text-align: left;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 4px;
}

.category-panel__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.category-panel__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.28;
}

.category-panel__desc {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  max-width: 320px;
}

.category-panel__cta {
  min-width: 94px;
  height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #141414;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.category-panel__cta:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.category-panel__cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.category-panel__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.category-panel__visual::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 18, 22, 0.28) 0%,
    rgba(12, 18, 22, 0.1) 46%,
    rgba(12, 18, 22, 0) 78%
  );
  filter: blur(8px);
  pointer-events: none;
}

.category-panel__product {
  position: relative;
  z-index: 2;
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
  transition: transform 0.22s ease;
}

.category-panel:hover .category-panel__product {
  transform: translateY(-3px);
}

.category-panel__product--audio {
  max-width: 255px;
}

.category-panel__product--solar {
  max-width: 195px;
}

.category-panel__product--light {
  max-width: 110px;
}

.category-panel__latin {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0.92;
}

.category-panel__latin-strong {
  font-size: 38px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.8px;
  color: #ffffff;
}

.category-panel__latin-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  opacity: 0.9;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .category-panel {
    grid-template-columns: 1fr 1fr;
    padding: 18px 22px;
  }

  .category-panel__text--secondary {
    display: none;
  }

  .category-panel__title {
    font-size: 24px;
  }

  .category-panel__desc {
    max-width: 300px;
  }

  .category-panel__product--audio {
    max-width: 220px;
  }

  .category-panel__product--solar {
    max-width: 175px;
  }

  .category-panel__product--light {
    max-width: 98px;
  }
}

@media (max-width: 760px) {
  .category-strips {
    gap: 14px;
    margin-bottom: 40px;
  }

  .category-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px 16px 16px;
    min-height: auto;
  }

  .category-panel__text--primary {
    order: 2;
    text-align: center;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .category-panel__visual {
    order: 1;
    min-height: 120px;
    margin-bottom: 8px;
  }

  .category-panel__title {
    font-size: 22px;
  }

  .category-panel__desc {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.85;
  }

  .category-panel__cta {
    min-width: 104px;
    height: 36px;
  }

  .category-panel__product--audio {
    max-width: 190px;
  }

  .category-panel__product--solar {
    max-width: 155px;
  }

  .category-panel__product--light {
    max-width: 88px;
  }
}

@media (max-width: 480px) {
  .category-panel {
    border-radius: 16px;
    padding: 16px 14px 14px;
  }

  .category-panel__eyebrow {
    font-size: 10px;
    margin-bottom: 7px;
  }

  .category-panel__title {
    font-size: 19px;
    margin-bottom: 7px;
  }

  .category-panel__desc {
    margin-bottom: 12px;
  }

  .category-panel__cta {
    font-size: 12px;
    min-width: 96px;
    height: 34px;
  }
}

/* FINAL: targeted mobile shop fixes */
@media (max-width: 700px) {
  .promo-grid__intro,
  .promo-grid__eyebrow,
  .promo-grid__title,
  .shelf-row:first-of-type .shelf-row__head,
  .shelf-row:first-of-type .shelf-row__eyebrow,
  .shelf-row:first-of-type .shelf-row__title {
    text-align: right !important;
  }

  .promo-grid__title {
    margin-inline: 0 auto !important;
  }

  .promo-grid {
    margin-bottom: 44px !important;
    padding: 24px 12px 12px !important;
  }

  .promo-grid__intro {
    margin-bottom: 18px !important;
    padding-inline: 8px !important;
  }

  .promo-grid__wrap {
    gap: 12px !important;
  }

  .promo-card,
  .promo-card__inner {
    min-height: 154px !important;
  }

  .promo-card {
    border-radius: 22px !important;
  }

  .promo-card__inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 118px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px !important;
    direction: rtl !important;
  }

  .promo-card__content,
  .promo-card--compact-copy .promo-card__content,
  .promo-card--wide-copy .promo-card__content {
    width: 100% !important;
    max-width: none !important;
    min-height: 118px !important;
    align-items: flex-start !important;
    text-align: right !important;
  }

  .promo-card__title {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  .promo-card__title span {
    font-size: 12px !important;
    margin-top: 4px !important;
  }

  .promo-card__action {
    margin-top: 12px !important;
    font-size: 12px !important;
  }

  .promo-card__media {
    position: relative !important;
    inset: auto !important;
    min-height: 118px !important;
    width: 118px !important;
  }

  .promo-card__image {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 50% !important;
    transform: translate(-50%, 50%) !important;
    max-width: 112px !important;
  }

  .promo-card__image--smart,
  .promo-card__image--solar {
    width: 112px !important;
  }

  .promo-card__image--audio {
    width: 118px !important;
    transform: translate(-50%, 50%) rotate(-8deg) !important;
  }

  .promo-card__image--light {
    width: 86px !important;
  }

  .shelf-row__body {
    display: block !important;
  }

  .shelf-nav {
    display: none !important;
  }

  .shelf-viewport {
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-inline: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory !important;
  }

  .shelf-track {
    grid-auto-columns: min(72vw, 270px) !important;
    gap: 12px !important;
    padding-inline: 14px !important;
  }

  .shelf-card {
    scroll-snap-align: center !important;
  }

  .shelf-row__head,
  .shelf-row__eyebrow,
  .shelf-row__title {
    text-align: right !important;
  }

  .shelf-row__head {
    padding-inline: 4px !important;
  }

  .shelf-row__eyebrow {
    margin-bottom: 4px !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
  }

  .shelf-row__title {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
  }

  .category-strips {
    gap: 12px !important;
    margin-bottom: 38px !important;
  }

  .category-panel {
    grid-template-columns: minmax(0, 1fr) 120px !important;
    min-height: 150px !important;
    padding: 16px !important;
    text-align: right !important;
  }

  .category-panel__text--primary {
    order: 1 !important;
    align-items: flex-start !important;
    text-align: right !important;
    padding: 0 !important;
  }

  .category-panel__visual {
    order: 2 !important;
    min-height: 116px !important;
    margin: 0 !important;
  }

  .category-panel__title {
    font-size: 17px !important;
    line-height: 1.45 !important;
  }

  .category-panel__desc {
    max-width: 24ch !important;
    font-size: 11px !important;
    line-height: 1.75 !important;
  }

  .category-panel__product--audio {
    max-width: 118px !important;
  }

  .category-panel__product--solar {
    max-width: 98px !important;
  }
}

@media (max-width: 420px) {
  .shelf-track {
    grid-auto-columns: 76vw !important;
  }

  .promo-card__inner {
    grid-template-columns: minmax(0, 1fr) 104px !important;
  }

  .promo-card__media {
    width: 104px !important;
  }

  .category-panel {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    padding: 14px !important;
  }

  .category-panel__desc {
    max-width: 21ch !important;
  }
}
