/* Frontend note: Styles for product inline. */
/* styles.css */
:root {
  --container: 1240px;
  --pad-x: 24px;

  --accent: #77b255;
  --accent-weak: rgba(119, 178, 85, 0.35);

  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.06);

  --bg: #ffffff;
  --card-bg: #ffffff;

  --radius: 16px;
  --radius-sm: 12px;

  --gap-lg: 26px;
  --gap-md: 18px;

  --text: #1c1c1c;
  --muted: rgba(0, 0, 0, 0.55);

  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.page {
  min-height: 100vh;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Category icons row ---------- */
.catbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 26px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}
.catbar__item {
  width: 88px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-radius: 14px;
}
.catbar__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.catbar__label {
  font-size: 12px;
  line-height: 1.1;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.catbar__item.is-active .catbar__icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.catbar__item.is-active .catbar__label {
  color: var(--accent);
}

/* ---------- HERO (gallery + info card) ---------- */
.hero {
  display: grid;
  grid-template-columns: 360px 1fr; /* RTL: first col is right area (info card) */
  transform: translateX(-80px);
  gap: 56px; /* wide air like screenshot */
  padding: 34px 0 22px;
  align-items: start;
}

/* Info card */
.pinfo__card {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.pinfo__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}

.pinfo__brandLine {
  height: 10px;
  width: 42%;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  margin-bottom: 10px;
}

.pinfo__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.7);
}

.pinfo__priceBlock {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pinfo__priceRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pinfo__price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(0, 0, 0, 0.75);
}
.price-unavailable {
  color: #f57c00;
  font-weight: 700;
}
.pinfo__currency {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}
.pinfo__subPrice {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

.pinfo__desc {
  margin: 14px 0 10px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

.pinfo__bullets {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  margin-top: 12px;
}
.pinfo__sectionTitle {
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 10px;
}
.pinfo__list {
  margin: 0;
  padding: 0 18px 0 0;
  display: grid;
  gap: 8px;
}
.pinfo__list li {
  height: auto;
  background: transparent;
  border-radius: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
  line-height: 1.8;
}
/* bottom add-to-cart row */
.pinfo__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keep items left, not stretched */
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  direction: ltr; /* keep + 1 - order */
}

.pinfo__cartBtn {
  width: 54px; /* square like screenshot */
  height: 54px;
  border-radius: 8px; /* less rounded than before */
  background: var(--accent);
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: none; /* screenshot looks flat */
  cursor: pointer;
}

.pinfo__cartIcon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1); /* make black icon white */
}

.pinfo__stepper {
  height: 54px; /* same height as cart */
  flex: 0 0 auto; /* do not grow */
  width: 160px; /* <-- adjust this number */
  min-width: 0; /* wide pill */
  padding: 0 18px;
  border-radius: 10px;
  background: #e9eaec; /* closer to screenshot */
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between; /* + left, - right */
  gap: 0;
}

.stepper__btn {
  width: 64px; /* big tap areas */
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 34px; /* bigger like screenshot */
  font-weight: 300;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.stepper__val {
  min-width: 40px;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
}

/* kill any css-injected icon behind your <img> */
.pinfo__cartBtn::before,
.pinfo__cartBtn::after {
  content: none !important;
  display: none !important;
}

.pinfo__cartBtn {
  background-image: none !important; /* if used */
}
/* mobile: keep proportions */
@media (max-width: 520px) {
  .pinfo__stepper {
    min-width: 220px;
  }
  .stepper__btn {
    width: 54px;
    font-size: 30px;
  }
  .stepper__val {
    font-size: 20px;
  }
}
/* Gallery (left big whitespace + centered product image) */
.pgallery {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.pgallery__stage {
  width: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.pgallery__image {
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pgallery__thumbsWrap {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  width: 420px;
  max-width: 100%;
}

.pgallery__nav {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.pgallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.thumb {
  width: 86px;
  height: 66px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

/* ---------- Tabs bar (shadowed pill bar) ---------- */
.tabs {
  margin: 18px auto 26px;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  overflow: hidden;
}

.tab {
  border: 0;
  background: #2f2f2f;
  padding: 14px 18px;
  cursor: default;
  font-size: 13px;
  color: #fff;
  width: 100%;
}
.tab.is-active {
  background: #2f2f2f;
  color: #fff;
}

/* ---------- Specs sections (table-like, airy) ---------- */
.specs {
  padding: 6px 0 30px;
}

.specs__title {
  font-size: 14px;
  margin: 18px 0 12px;
  color: rgba(0, 0, 0, 0.68);
}

.specTable {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.specRow {
  display: grid;
  grid-template-columns: 220px 1fr; /* label column on right in RTL is first cell */
  gap: 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.specRow:first-child {
  border-top: 0;
}

.specRow__label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  padding-inline-start: 6px;
}

.specRow__value {
  width: 100%;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- Recommendations row ---------- */
.reco {
  padding: 24px 0 34px;
}

.reco__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  align-self: center;
  margin-bottom: 18px;
}

.reco__title {
  margin: 0;
  font-size: 16px;
  color: rgba(119, 178, 85, 0.95);
  font-weight: 800;
  text-align: center;
}

.reco__arrows {
  display: flex;
  gap: 10px;
}
.reco__arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.reco__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-lg);
}

.rcard {
  height: 290px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-weak);
  background: #fff;
}

/* ---------- Footer placeholder ---------- */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 54px;
}
.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.foot__col {
  height: 150px;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 340px 1fr;
    gap: 34px;
  }
  .reco__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr; /* stack */
    gap: 18px;
  }
  .pinfo__card {
    order: 1;
  }
  .pgallery {
    order: 0;
  }

  .tabs {
    grid-template-columns: 1fr;
  }
  .reco__grid {
    grid-template-columns: 1fr;
  }
  .specRow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --- Product page refinements (match store cards) --- */
.hero {
  grid-template-columns: 420px 1fr;
  gap: 26px;
  transform: none;
  padding: 24px 0 18px;
}

.pgallery__stage {
  min-height: 280px;
}

.reco {
  padding: 18px 0 34px;
}

.reco__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* store-like product card for recommendation section */
.shelf-card {
  border: 1px solid #a2c84f;
  border-radius: 22px;
  min-height: 355px;
  background: #fefefe;
  padding: 18px 14px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.shelf-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.shelf-card__img {
  width: 72%;
  max-width: 150px;
  height: 132px;
  object-fit: contain;
  margin-bottom: 10px;
  align-self: center;
}
.shelf-card__title {
  margin: 0;
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  color: #364152;
  line-height: 1.7;
}
.shelf-card__brand {
  width: 100%;
  margin: 6px 0 0;
  font-size: 12px;
  color: #98a2b3;
  font-weight: 600;
}
.shelf-card__old {
  width: 100%;
  margin: auto 0 0;
  font-size: 12px;
  color: #98a2b3;
  text-decoration: line-through;
}
.shelf-card__price {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 195, 74, 0.16);
  font-size: 22px;
  font-weight: 800;
  color: #101828;
  line-height: 1.4;
  text-align: center;
}
.shelf-card__actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  direction: ltr;
  position: relative;
  z-index: 3;
}
.shelf-card__cart {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: #a2c84f;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}
.shelf-card__cart-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.shelf-card__qty {
  width: 100px;
  height: 28px;
  border-radius: 7px;
  background: #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.shelf-card__qty button {
  border: 0;
  background: transparent;
  color: #8d8d8d;
  font-size: 16px;
}
.shelf-card__qty span {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .reco__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reco__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Fine tune top two sections to objective --- */
.hero {
  grid-template-columns: 500px 1fr;
  gap: 20px;
  padding: 20px 0 14px;
}

.pinfo__card {
  border-color: #a2c84f;
  border-radius: 14px;
  padding: 20px 22px 18px;
}
.pinfo__brandLine {
  display: none;
}
.pinfo__title {
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
  line-height: 1.5;
}
.pinfo__subPrice {
  margin-top: 8px;
  width: auto;
  height: auto;
  background: transparent;
  font-size: 12px;
  color: #9a9a9a;
  text-decoration: line-through;
}
.pinfo__desc {
  margin: 18px 0 10px;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #3b3b3b;
}
.pinfo__sectionTitle {
  font-size: 16px;
  margin-bottom: 12px;
  color: #1f1f1f;
}
.pinfo__list {
  gap: 8px;
}
.pinfo__list li {
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #2f2f2f;
}

.pinfo__actions {
  direction: ltr;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.pinfo__cartBtn {
  width: 68px;
  height: 52px;
  border-radius: 7px;
  background: #a2c84f;
  position: relative;
  box-shadow: none;
}
.pinfo__cartBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M3.5 5h2l1.5 10.5h10.8l1.7-7.7H7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='19' r='1.4' fill='white'/%3E%3Ccircle cx='17' cy='19' r='1.4' fill='white'/%3E%3C/svg%3E");
}
.pinfo__stepper {
  min-width: 278px;
  height: 52px;
  border-radius: 7px;
  background: #ececec;
  border: 0;
  padding: 0 26px;
}

.pinfo__contact {
  color: #f57c00;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  direction: ltr;
}
.stepper__btn {
  font-size: 30px;
  line-height: 1;
  color: #7d7d7d;
  padding: 0;
}
.stepper__val {
  font-size: 32px;
  font-weight: 500;
  color: #3d3d3d;
}

.pgallery__image {
  width: min(500px, 100%);
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.thumb {
  background: #fff center/65% no-repeat;
}
.pgallery__nav {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  position: relative;
}
.pgallery__nav::before {
  content: "›";
  font-size: 28px;
  color: rgba(0, 0, 0, 0.55);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
}
.pgallery__nav[aria-label="Prev"]::before {
  content: "‹";
}

.tabs {
  margin: 54px auto 26px;
  width: min(1320px, 100%);
  border-radius: 14px;
}
.tab {
  padding: 20px 18px;
  font-size: 16px;
  font-weight: 700;
}

.specs {
  padding: 18px 0 30px;
}
.specs__title {
  font-size: 24px;
  margin: 14px 0 18px;
  color: #1f1f1f;
}
.specRow {
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 22px 0;
}
.specRow__label {
  font-size: 16px;
  color: #222;
  font-weight: 600;
}
.specRow__value {
  height: auto;
  width: auto;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  color: #8a8a8a;
  line-height: 1.9;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .specRow {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pinfo__stepper {
    min-width: 220px;
  }
}

/* --- Product info UX refresh --- */
.pinfo {
  position: sticky;
  top: 24px;
}

.pinfo__card {
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.pinfo__head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef1f4;
}

.pinfo__title {
  font-size: 24px;
  font-weight: 800;
  color: #101828;
  line-height: 1.7;
}

.pinfo__priceBlock {
  padding: 0 0 18px;
  border-bottom: 1px solid #eef1f4;
}

.pinfo__priceTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.pinfo__priceLabel {
  font-size: 13px;
  font-weight: 700;
  color: #667085;
}

.pinfo__stockBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #027a48;
  font-size: 12px;
  font-weight: 800;
}

.pinfo__stockBadge.is-out {
  background: #fff7ed;
  color: #c2410c;
}

.pinfo__priceRow {
  justify-content: flex-start;
}

.pinfo__price {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  color: #1d2939;
  line-height: 1.2;
}

.price-unavailable {
  color: #c2410c;
  font-weight: 800;
  font-size: 18px;
}

.pinfo__currency {
  display: none;
}

.pinfo__subPrice {
  margin-top: 10px;
  font-size: 13px;
  color: #98a2b3;
  text-decoration: line-through;
}

.pinfo__variantBlock {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
}

.pinfo__desc {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
  color: #475467;
}

.pinfo__bullets {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef1f4;
}

.pinfo__sectionTitle {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #101828;
}

.pinfo__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pinfo__list--features {
  display: grid;
  gap: 10px;
}

.pinfo__list--features li {
  position: relative;
  padding-right: 18px;
  background: transparent;
  font-size: 14px;
  line-height: 1.9;
  color: #344054;
}

.pinfo__list--features li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pinfo__list--specs {
  display: grid;
  gap: 10px;
}

.pinfo__list--specs li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
}

.pinfo__specLabel {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #475467;
}

.pinfo__specValue {
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
  color: #101828;
  text-align: left;
}

.pinfo__actions {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eef1f4;
  direction: rtl;
}

.pinfo__purchasePanel {
  width: 100%;
  display: grid;
  gap: 14px;
}

.pinfo__field {
  display: grid;
  gap: 8px;
}

.pinfo__fieldLabel {
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}

.pinfo__field--compact {
  gap: 4px;
}

.pinfo__select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #101828;
  font: inherit;
}

.pinfo__select--compact {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
  color: #344054;
  background: #f8fafc;
}

.pinfo__select--hidden {
  display: none;
}

.pinfo__buyRow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  direction: ltr;
  width: 100%;
}

.pinfo__stepper {
  flex: 0 0 170px;
  min-width: 170px;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
}

.stepper__btn {
  width: 48px;
  font-size: 28px;
  color: #475467;
}

.stepper__val {
  min-width: 36px;
  font-size: 20px;
  font-weight: 800;
  color: #101828;
}

.pinfo__cartBtn {
  flex: 1 1 220px;
  min-width: 220px;
  width: auto;
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  background: #8bc34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 12px 24px rgba(139, 195, 74, 0.24);
}

.pinfo__cartBtn:hover {
  transform: translateY(-1px);
  background: #7fb241;
  box-shadow: 0 16px 28px rgba(139, 195, 74, 0.3);
}

.pinfo__cartBtn::before,
.pinfo__cartBtn::after {
  content: none !important;
  display: none !important;
}

.pinfo__cartIcon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.pinfo__contact {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.pinfo__contactTitle {
  margin-bottom: 6px;
  color: #c2410c;
}

.pgallery__stage {
  min-height: 460px;
  border-radius: 24px;
  border: 1px solid #eef1f4;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pgallery__image {
  width: min(540px, 100%);
}

.thumb {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid #e4e7ec;
  background: #fff;
  padding: 6px;
  display: grid;
  place-items: center;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.thumb:hover {
  transform: translateY(-1px);
}

.thumb.is-active {
  border-color: #a2c84f;
  box-shadow: 0 0 0 3px rgba(162, 200, 79, 0.18);
}

.pgallery__thumbsWrap {
  width: 100%;
  max-width: 540px;
  grid-template-columns: 1fr;
}

.pgallery__thumbs {
  flex-wrap: wrap;
  justify-content: center;
}

.specTable {
  border: 1px solid #eef1f4;
  border-radius: 18px;
  overflow: hidden;
}

.specRow {
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid #eef1f4;
}

.specRow.is-hidden {
  display: none;
}

.specRow:nth-child(odd) {
  background: #fcfcfd;
}

.specRow__label {
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

.specRow__value {
  font-size: 14px;
  line-height: 1.9;
  color: #475467;
}

.specs__more {
  margin: 16px 0 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(119, 178, 85, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf1 100%);
  color: #5f8f37;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(119, 178, 85, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.specs__more:hover {
  color: #4f7b2d;
  border-color: rgba(119, 178, 85, 0.42);
  box-shadow: 0 14px 28px rgba(119, 178, 85, 0.12);
  transform: translateY(-1px);
}

.specs__more::before {
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.specs__more[aria-expanded="true"]::before {
  content: "-";
}

@media (max-width: 1100px) {
  .pinfo {
    position: static;
  }

  .pinfo__card {
    padding: 20px;
  }

  .pgallery__stage {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  main.container {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 14px;
  }

  .pgallery {
    order: 1;
    width: 100%;
  }

  .pinfo {
    order: 2;
    width: 100%;
  }

  .pinfo__card {
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .pinfo__title {
    font-size: 20px;
  }

  .pinfo__priceTop,
  .pinfo__list--specs li {
    flex-direction: column;
    align-items: flex-start;
  }

  .pinfo__actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(16, 24, 40, 0.1);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -14px 34px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .pinfo__purchasePanel {
    max-width: 520px;
    margin: 0 auto;
  }

  .pinfo__buyRow {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    direction: ltr;
  }

  .pinfo__cartBtn {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 13px;
  }

  .pinfo__stepper {
    flex: 0 0 132px;
    width: 132px;
    min-width: 0;
    height: 52px;
    padding: 0 8px;
    border-radius: 16px;
  }

  .stepper__btn {
    width: 40px;
    font-size: 26px;
  }

  .stepper__val {
    min-width: 28px;
    font-size: 18px;
  }

  .pgallery__stage {
    min-height: 280px;
    padding: 16px;
  }

  .pgallery__thumbs {
    justify-content: center;
  }

  .thumb {
    width: 72px;
    height: 72px;
  }

  .shelf-card__title,
  .shelf-card__brand,
  .shelf-card__old,
  .shelf-card__price {
    text-align: center;
  }

  .specRow {
    padding: 16px;
  }
}

/* --- Recommendation shelf cards: synced with store page --- */
.reco {
  margin-top: 42px;
  padding: 8px 0 0;
}

.reco__head {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 24px;
  text-align: center;
}

.reco__eyebrow {
  margin: 0;
  color: #7f9650;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reco__title {
  margin: 0;
  color: #1f241d;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0;
}

.reco__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.reco .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;
}

.reco .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);
}

.reco .shelf-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
}

.reco .shelf-card__surface {
  position: relative;
  width: 100%;
  min-height: 398px;
  overflow: hidden;
}

.reco .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;
}

.reco .shelf-card:hover .shelf-card__surface::before {
  transform: translateY(0);
}

.reco .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;
}

.reco .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);
}

.reco .shelf-card__media {
  width: 100%;
  min-height: 188px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 16px 14px 6px;
}

.reco .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;
}

.reco .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));
}

.reco .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;
}

.reco .shelf-card__brand {
  margin: 4px 0 0;
  color: #9aa095;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.65;
}

.reco .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;
}

.reco .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;
}

.reco .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;
}

.reco .shelf-card__price {
  margin: 0;
  min-width: 100%;
  color: #111111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color 300ms ease;
}

.reco .price-unavailable {
  color: #4a4f45;
  font-size: 14px;
  font-weight: 700;
  transition: color 300ms ease;
}

.reco .shelf-card:hover .shelf-card__old {
  color: rgba(220, 227, 207, 0.72);
}

.reco .shelf-card:hover .shelf-card__price {
  color: #f6f7f2;
}

.reco .shelf-card:hover .price-unavailable {
  color: #dce3cf;
}

@media (max-width: 1100px) {
  .reco__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reco .shelf-card,
  .reco .shelf-card__surface {
    min-height: 380px;
  }

  .reco .shelf-card__content {
    padding: 18px 18px 90px;
    border-radius: 28px;
  }

  .reco .shelf-card:hover .shelf-card__content {
    inset: 0 0 68px;
    border-radius: 18px;
  }

  .reco .shelf-card__media {
    min-height: 178px;
  }

  .reco .shelf-card__img {
    max-width: 156px;
    height: 146px;
  }
}

@media (max-width: 700px) {
  .reco__grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    margin: 0 calc(var(--pad-x) * -1);
    padding: 4px var(--pad-x) 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--pad-x);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .reco__grid::-webkit-scrollbar {
    display: none;
  }

  .reco .shelf-card,
  .reco .shelf-card__surface {
    flex: 0 0 min(78vw, 310px);
    min-height: 360px;
    border-radius: 26px;
    scroll-snap-align: start;
  }

  .reco .shelf-card__content {
    padding: 16px 16px 84px;
    border-radius: 26px;
  }

  .reco .shelf-card:hover .shelf-card__content {
    inset: 0 0 60px;
    border-radius: 16px;
  }

  .reco .shelf-card__media {
    min-height: 172px;
    margin-bottom: 2px;
  }

  .reco .shelf-card__img {
    max-width: 148px;
    height: 138px;
  }

  .reco .shelf-card__title {
    font-size: 13.5px;
  }

  .reco .shelf-card__price {
    font-size: 18px;
  }
}

/* Final mobile guard: specs/attributes alignment */
@media (max-width: 700px) {
  .tabs {
    width: 100%;
    margin: 18px 0 14px;
    border-radius: 12px;
    overflow: hidden;
  }

  .tab {
    width: 100%;
    padding: 14px 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
  }

  .specs {
    padding: 8px 0 22px;
  }

  .specs__title {
    margin: 10px 0 12px;
    font-size: 16px;
    line-height: 1.6;
  }

  .specTable {
    border-radius: 14px;
    overflow: hidden;
  }

  .specRow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 12px;
    align-items: start;
  }

  .specRow__label {
    padding: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #344054;
    line-height: 1.6;
    word-break: break-word;
  }

  .specRow__value {
    margin: 0;
    font-size: 12px;
    line-height: 1.85;
    color: #475467;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .specs__more {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    font-size: 12px;
  }
}
