/* ==========================================================================
   EGR Car Shop — Single product page
   Source of truth: doc/egr-html-prototype/assets/css/product.css
   Values are measured from that file; class names are WooCommerce's own, so
   the FlexSlider / Photoswipe / variation scripts keep finding their targets.

   Scope: .egr-pdp-page (body class added by inc/woocommerce/single-product.php).
   Nothing here reaches the shop, category, cart or account surfaces.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container
   Prototype: 1140px max-width, 15px side padding, 30px above the columns.
   GP's chain is .grid-container (20px) > #primary > main#main > .inside-article
   (padding) > .entry-content, all of which is zeroed so only the values below
   apply.
   -------------------------------------------------------------------------- */
.egr-pdp-page {
  background-color: #ffffff;
}

.egr-pdp-page .grid-container {
  box-sizing: border-box;
  max-width: 1170px;
  padding-left: 0;
  padding-right: 0;
}

.egr-pdp-page .site-content,
.egr-pdp-page #primary,
.egr-pdp-page #main,
.egr-pdp-page .site-main,
.egr-pdp-page .inside-article,
.egr-pdp-page .entry-content {
  margin: 0;
  padding: 0;
}

.egr-pdp-page .entry-content > .product {
  margin: 0;
}

/* GP's `product_archive_alignment` setting puts woocommerce-text-align-center
   on the product wrapper, which is right for the archive card and wrong here:
   the prototype's buy box is left-aligned throughout. */
.egr-pdp-page .summary {
  text-align: left;
}

/* The gallery + summary flex row is opened by egr_wc_pdp_layout_open(). */
.egr-pdp-page .egr-pdp__layout {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 15px 0;
}

/* --------------------------------------------------------------------------
   Gallery: thumbnails in a 64px column on the left, 1:1 main image.

   At init FlexSlider replaces the wrapper's children with .flex-viewport and
   moves the slides plus ol.flex-control-thumbs directly under
   .woocommerce-product-gallery. Reversing *that* row puts the thumbnail list
   on the left without moving any node the script looks for.
   -------------------------------------------------------------------------- */
.egr-pdp-page .woocommerce-product-gallery {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 55%;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  float: none;
  width: 55%;
  max-width: 55%;
  margin: 0;
}

/* The thumbnail list is moved to the gallery element after FlexSlider runs,
   so its position is set with order rather than by DOM position. */
.egr-pdp-page .woocommerce-product-gallery > .flex-control-thumbs {
  order: -1;
}

/* Before init the wrapper is the only child; cap it at the prototype's 449px
   image width. FlexSlider then wraps it in .flex-viewport and turns it into an
   800%-wide track — the 449px cap must NOT follow it inside, or the track is
   clamped, the slides wrap vertically and clicking a thumbnail changes the
   active class without moving the visible image. */
.egr-pdp-page .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  flex: 0 1 449px;
  min-width: 0;
  max-width: 449px;
}

.egr-pdp-page .woocommerce-product-gallery .flex-viewport > .woocommerce-product-gallery__wrapper {
  min-width: 0;
  max-width: none;
  margin: 0;
}

/* WooCommerce's full-screen magnifier. GP's sticky header owns z-index: 99,
   so the trigger's default 99 paints above the navigation dropdowns. Keep it
   above the slide but below all header chrome. The selector matches WC's own
   `.woocommerce div.product div.images .woocommerce-product-gallery__trigger`
   depth so the value wins on specificity. */
body.woocommerce.egr-pdp-page div.product div.images .woocommerce-product-gallery__trigger {
  z-index: 3;
}

.egr-pdp-page .woocommerce-product-gallery .flex-viewport {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 449px;
}

.egr-pdp-page .woocommerce-product-gallery__image a {
  display: block;
}

.egr-pdp-page .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  background: #ffffff;
}

/* Thumbnail column.
   GP targets `.woocommerce div.product div.images .flex-control-thumbs li`
   for its horizontal strip, so the column selectors carry the same depth.
   .egr-pdp__thumbs-col is added by the child-theme script, which also moves
   the list inside it so the arrows sit above and below rather than beside. */
.egr-pdp-page .egr-pdp__thumbs-col {
  display: flex;
  flex: 0 0 64px;
  flex-direction: column;
  align-items: center;
  order: -1;
  width: 64px;
}

.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  width: 64px;
  max-height: 396px;
  margin: 6px 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: none;
}

.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs li {
  flex: 0 0 64px;
  float: none;
  width: 64px;
  max-width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
}

/* FlexSlider writes width/height attributes from each image's natural size,
   which is what !important is here to defeat. */
.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs img {
  box-sizing: border-box;
  display: block;
  width: 64px !important;
  height: 64px !important;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff;
  object-fit: contain;
  background: #ffffff;
  opacity: 1;
  cursor: pointer;
}

.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs img.flex-active,
.egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs img:hover {
  border-color: #212121;
}

/* Scroll arrows, inserted by the child-theme script. */
.egr-pdp-page .egr-pdp__thumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 22px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #212121;
  color: #ffffff;
  cursor: pointer;
}

.egr-pdp-page .egr-pdp__thumb-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.egr-pdp-page .egr-pdp__thumb-nav[hidden] {
  display: none;
}

/* Swipe counter, shown below 960px only (prototype behaviour). */
.egr-pdp-page .egr-pdp__counter {
  display: none;
}

/* --------------------------------------------------------------------------
   Summary column
   -------------------------------------------------------------------------- */
.egr-pdp-page .summary.entry-summary {
  box-sizing: border-box;
  flex: 0 0 45%;
  float: none;
  width: 45%;
  max-width: 45%;
  margin: 0;
  padding: 0 0 0 15px;
  overflow: visible;
}

.egr-pdp-page .product_title {
  margin: 0 0 18px;
  padding: 0;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

/* Price: 24px, dark brick red. Sale price keeps the struck-through regular. */
.egr-pdp-page .summary .price {
  margin: 0 0 14px;
  color: #7c3845;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
}

.egr-pdp-page .summary .price .woocommerce-Price-amount {
  color: #7c3845;
  font-size: 24px;
  font-weight: 400;
}

.egr-pdp-page .summary .price del {
  margin-right: 10px;
  color: #9a9a9a;
  font-size: 18px;
  opacity: 1;
}

.egr-pdp-page .summary .price ins {
  color: #7c3845;
  font-weight: 400;
  text-decoration: none;
}

.egr-pdp-page .egr-pdp__sku {
  margin: 0 0 24px;
  color: #222222;
  font-size: 15px;
  line-height: 1.4;
}

/* Short description is only shown inside the description accordion, never in
   the buy box — the prototype's information column has no excerpt. */
.egr-pdp-page .summary .woocommerce-product-details__short-description {
  display: none;
}

/* --------------------------------------------------------------------------
   Quantity: label above a 30/34/30 stepper, matching the prototype.
   GP's quantity buttons are real anchors after its script runs, and
   pseudo-elements before it does; both are sized here.
   -------------------------------------------------------------------------- */
.egr-pdp-page .egr-pdp__qty-label {
  margin: 22px 0 10px;
  color: #222222;
  font-size: 15px;
  line-height: 1.4;
}

.egr-pdp-page .egr-pdp__qty-label span {
  color: #9a9a9a;
}

.egr-pdp-page .summary form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* `.egr-pdp-page div.product …` carries the class and element count needed to
   beat WooCommerce's `.woocommerce div.product form.cart div.quantity` margin
   rule. Without it the stepper keeps WC's 4px right margin and sits flush
   against Add to Cart. */
.egr-pdp-page div.product .summary form.cart div.quantity {
  display: inline-flex;
  align-self: flex-start;
  align-items: stretch;
  float: none;
  margin: 0 0 26px;
}

.egr-pdp-page .summary form.cart .quantity .qty {
  box-sizing: border-box;
  width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 14px;
  text-align: center;
  appearance: textfield;
}

.egr-pdp-page .summary form.cart .quantity .qty::-webkit-outer-spin-button,
.egr-pdp-page .summary form.cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.egr-pdp-page .summary form.cart .quantity .minus,
.egr-pdp-page .summary form.cart .quantity .plus {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
  /* WooCommerce sets min-height: 50px on .buttons-added controls; without
     this the stepper renders 50px tall inside the 34px box. */
  min-height: 34px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #efefef;
  color: #757575;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.egr-pdp-page .summary form.cart .quantity .plus {
  background: #ffffff;
  color: #222222;
}

.egr-pdp-page .summary form.cart .quantity .minus {
  border-right: 0;
}

.egr-pdp-page .summary form.cart .quantity .plus {
  border-left: 0;
}

/* --------------------------------------------------------------------------
   Add to Cart: 49px, white fill, 1px black border.
   GenerateBlocks is not involved here, so no fallback hover skin applies.
   -------------------------------------------------------------------------- */
.egr-pdp-page .summary form.cart .single_add_to_cart_button {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #212121;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  transition: background var(--egr-transition-fast, 0.2s linear);
}

.egr-pdp-page .summary form.cart .single_add_to_cart_button:hover,
.egr-pdp-page .summary form.cart .single_add_to_cart_button:focus {
  background: #f7f7f7;
  color: #222222;
}

.egr-pdp-page .summary form.cart .single_add_to_cart_button.disabled,
.egr-pdp-page .summary form.cart .single_add_to_cart_button[disabled] {
  background: #f1f1f1;
  color: #6d6d6d;
  cursor: not-allowed;
}

/* Stock notice, only present when WooCommerce has something to say. */
.egr-pdp-page .summary .stock {
  margin: 0 0 12px;
  color: #222222;
  font-size: 15px;
}

.egr-pdp-page .summary .stock.out-of-stock {
  color: #9b3c44;
}

/* --------------------------------------------------------------------------
   Native variations table (no variable products exist yet; styled so the
   controls match the buy box when one is added).
   -------------------------------------------------------------------------- */
.egr-pdp-page .summary table.variations {
  width: 100%;
  margin: 0 0 12px;
  border: 0;
}

.egr-pdp-page .summary table.variations th.label,
.egr-pdp-page .summary table.variations td.value {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
}

.egr-pdp-page .summary table.variations th.label label {
  display: block;
  margin: 0 0 10px;
  color: #222222;
  font-size: 15px;
  font-weight: 400;
}

.egr-pdp-page .summary table.variations td.value select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 13px;
}

.egr-pdp-page .summary table.variations .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: #9a9a9a;
  font-size: 12px;
}

.egr-pdp-page .summary .single_variation_wrap {
  margin-top: 22px;
}

.egr-pdp-page .summary .woocommerce-variation-price {
  margin: 0 0 14px;
  color: #7c3845;
  font-size: 24px;
}

.egr-pdp-page .summary .woocommerce-variation-description {
  margin: 0 0 14px;
  color: #3d4246;
  font-size: 15px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Share row
   -------------------------------------------------------------------------- */
.egr-pdp-page .egr-pdp__share {
  display: flex;
  justify-content: flex-end;
  gap: 56px;
  margin-top: 26px;
}

.egr-pdp-page .egr-pdp__share-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.egr-pdp-page .egr-pdp__share-link:hover,
.egr-pdp-page .egr-pdp__share-link:focus {
  color: #212121;
}

.egr-pdp-page .egr-pdp__share-link svg {
  display: block;
  flex: 0 0 18px;
}

/* --------------------------------------------------------------------------
   Lower section: Product Description accordion + Customer Reviews
   -------------------------------------------------------------------------- */
.egr-pdp-page .egr-pdp__lower {
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 15px 60px;
}

.egr-pdp-page .egr-pdp__description {
  width: 62%;
  margin: 110px auto 0;
  border-bottom: 1px solid #e5e5e5;
}

.egr-pdp-page .egr-pdp__description-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.egr-pdp-page .egr-pdp__description-chevron {
  flex: 0 0 14px;
  transition: transform var(--egr-transition-fast, 0.2s linear);
}

.egr-pdp-page .egr-pdp__description-toggle[aria-expanded="true"] .egr-pdp__description-chevron {
  transform: rotate(180deg);
}

.egr-pdp-page .egr-pdp__description-body {
  padding: 8px 4px 20px;
  color: #3d4246;
  font-size: 15px;
  line-height: 1.7;
}

.egr-pdp-page .egr-pdp__description-body[hidden] {
  display: none;
}

.egr-pdp-page .egr-pdp__description-body h2,
.egr-pdp-page .egr-pdp__description-body h3,
.egr-pdp-page .egr-pdp__description-body h4 {
  margin: 1em 0 0.5em;
  color: #222222;
  font-weight: 700;
}

.egr-pdp-page .egr-pdp__description-body h2 {
  font-size: 20px;
}

.egr-pdp-page .egr-pdp__description-body h3 {
  font-size: 18px;
}

.egr-pdp-page .egr-pdp__description-body h4 {
  font-size: 16px;
}

.egr-pdp-page .egr-pdp__description-body p,
.egr-pdp-page .egr-pdp__description-body ul,
.egr-pdp-page .egr-pdp__description-body ol {
  margin: 0 0 1em;
}

.egr-pdp-page .egr-pdp__description-body a {
  color: #7c3845;
}

.egr-pdp-page .egr-pdp__short-description {
  margin: 0 0 1em;
}

/* WooCommerce's own tab panel wrappers are not used here; the tab callbacks
   print their own <h2> heading, which the accordion toggle replaces. */
.egr-pdp-page .egr-pdp__description-content > h2:first-child {
  display: none;
}

/* Reviews */
.egr-pdp-page .egr-pdp__reviews {
  margin-top: 48px;
}

.egr-pdp-page .egr-pdp__reviews-title {
  margin: 0 0 28px;
  color: #222222;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.egr-pdp-page .egr-pdp__reviews-empty {
  box-sizing: border-box;
  max-width: 1010px;
  margin: 0 auto;
  padding: 36px 20px;
  border: 1px solid #e5e5e5;
  text-align: center;
}

.egr-pdp-page .egr-pdp__reviews-empty p {
  margin: 0 0 20px;
  color: #222222;
  font-size: 15px;
}

.egr-pdp-page .egr-pdp__reviews-btn {
  box-sizing: border-box;
  min-width: 262px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: #212121;
  color: #ffffff;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 14px;
  cursor: pointer;
}

.egr-pdp-page .egr-pdp__review-form[hidden] {
  display: none;
}

.egr-pdp-page .egr-pdp__review-form {
  max-width: 1010px;
  margin: 32px auto 0;
}

/* The section heading above already says "Customer Reviews". */
.egr-pdp-page .woocommerce-Reviews .woocommerce-Reviews-title {
  display: none;
}

.egr-pdp-page .woocommerce-Reviews .woocommerce-noreviews {
  margin: 0;
  color: #222222;
  font-size: 15px;
  text-align: center;
}

.egr-pdp-page .woocommerce-Reviews #review_form_wrapper {
  margin-top: 24px;
}

.egr-pdp-page .woocommerce-Reviews .comment-reply-title {
  display: block;
  margin: 0 0 20px;
  color: #222222;
  font-size: 20px;
  font-weight: 700;
}

.egr-pdp-page .woocommerce-Reviews .comment-form label {
  display: block;
  margin: 0 0 6px;
  color: #222222;
  font-size: 14px;
}

.egr-pdp-page .woocommerce-Reviews .comment-form input[type="text"],
.egr-pdp-page .woocommerce-Reviews .comment-form input[type="email"],
.egr-pdp-page .woocommerce-Reviews .comment-form textarea,
.egr-pdp-page .woocommerce-Reviews .comment-form select {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 14px;
}

.egr-pdp-page .woocommerce-Reviews .comment-form textarea {
  min-height: 140px;
}

.egr-pdp-page .woocommerce-Reviews .form-submit input[type="submit"] {
  box-sizing: border-box;
  min-width: 262px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #212121;
  color: #ffffff;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 14px;
  cursor: pointer;
}

/* Star ratings in the review form keep WooCommerce's behaviour. */
.egr-pdp-page .woocommerce-Reviews .comment-form-rating .stars a {
  color: #ffc700;
}

/* --------------------------------------------------------------------------
   Sticky purchase bar (desktop) and mobile bottom bar
   -------------------------------------------------------------------------- */
.egr-pdp-page .egr-pdp__stickybar[hidden],
.egr-pdp-page .egr-pdp__mobilebar[hidden] {
  display: none;
}

.egr-pdp-page .egr-pdp__stickybar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 98;
  background: #ffffff;
  box-shadow: 0 -1px 6px 0 rgba(0, 0, 0, 0.12);
}

.egr-pdp-page .egr-pdp__stickybar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 15px;
}

.egr-pdp-page .egr-pdp__stickybar-media {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
}

.egr-pdp-page .egr-pdp__stickybar-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.egr-pdp-page .egr-pdp__stickybar-title {
  flex: 0 1 400px;
  margin: 0;
  overflow: hidden;
  color: #222222;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.egr-pdp-page .egr-pdp__stickybar-price {
  margin: 0;
  color: #7c3845;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.egr-pdp-page .egr-pdp__stickybar-price del {
  display: none;
}

.egr-pdp-page .egr-pdp__stickybar-variant select {
  box-sizing: border-box;
  min-width: 108px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #ffffff;
  color: #222222;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 13px;
}

.egr-pdp-page .egr-pdp__stickybar-qty {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 34px;
  border: 1px solid #e5e5e5;
}

.egr-pdp-page .egr-pdp__stickybar-qty button {
  width: 30px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #757575;
  font-size: 15px;
  cursor: pointer;
}

.egr-pdp-page .egr-pdp__stickybar-qty button[disabled] {
  color: #b5b5b5;
  cursor: default;
}

.egr-pdp-page .egr-pdp__stickybar-qty span {
  min-width: 26px;
  color: #222222;
  font-size: 14px;
  text-align: center;
}

.egr-pdp-page .egr-pdp__stickybar-add {
  min-width: 146px;
  height: 40px;
  margin-left: auto;
  padding: 0 16px;
  border: 0;
  background: #ee662c;
  color: #ffffff;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile: full-width orange bar instead of the desktop sticky bar. */
.egr-pdp-page .egr-pdp__mobilebar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 98;
}

.egr-pdp-page .egr-pdp__mobilebar button {
  display: block;
  width: 100%;
  height: 52px;
  border: 0;
  background: #ee662c;
  color: #ffffff;
  font-family: var(--egr-font-body, "Work Sans", sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Responsive — prototype breakpoints 959.98px and 480px
   -------------------------------------------------------------------------- */
@media (max-width: 959.98px) {
  .egr-pdp-page .grid-container {
    max-width: 570px;
  }

  .egr-pdp-page .egr-pdp__layout {
    flex-direction: column;
    align-items: stretch;
    max-width: 570px;
    padding: 12px 15px 0;
  }

  /* The flex row becomes a column here, so the 55/45 basis has to go with it. */
  .egr-pdp-page .woocommerce-product-gallery {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }

  .egr-pdp-page .summary.entry-summary {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    padding: 6px 16px 0;
  }

  /* The prototype hides the thumbnail column on narrow screens and swipes
     the slides instead, with a 1 / N counter. The selector repeats the
     desktop depth so it wins on specificity, not on source order. The wrapper
     and viewport caps are lifted so the swipe track can use the full width. */
  .egr-pdp-page .woocommerce-product-gallery {
    max-width: none;
    flex-direction: column;
  }

  .egr-pdp-page .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
  .egr-pdp-page .woocommerce-product-gallery .flex-viewport {
    max-width: none;
  }

  .egr-pdp-page .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    flex: 0 0 auto;
  }

  .egr-pdp-page .egr-pdp__thumbs-col,
  .egr-pdp-page div.product div.images ol.flex-control-nav.flex-control-thumbs,
  .egr-pdp-page .egr-pdp__thumb-nav {
    display: none;
  }

  .egr-pdp-page .egr-pdp__counter {
    display: block;
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 2;
    min-width: 44px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(102, 102, 102, 0.75);
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    transform: translateX(-50%);
  }

  .egr-pdp-page .summary.entry-summary {
    width: 100%;
    padding: 6px 16px 0;
  }

  .egr-pdp-page .product_title {
    margin-bottom: 14px;
    font-size: 22px;
  }

  .egr-pdp-page .summary .price,
  .egr-pdp-page .summary .price .woocommerce-Price-amount {
    font-size: 20px;
  }

  .egr-pdp-page .egr-pdp__sku {
    margin-bottom: 20px;
  }

  .egr-pdp-page .egr-pdp__share {
    justify-content: center;
    gap: 40px;
  }

  .egr-pdp-page .egr-pdp__lower {
    max-width: 570px;
    padding: 28px 16px 90px;
  }

  .egr-pdp-page .egr-pdp__description {
    width: 100%;
  }

  .egr-pdp-page .egr-pdp__reviews-title {
    font-size: 24px;
  }

  .egr-pdp-page .egr-pdp__stickybar {
    display: none;
  }

  .egr-pdp-page .egr-pdp__mobilebar {
    display: block;
  }

  .egr-pdp-page .egr-pdp__mobilebar[hidden] {
    display: none;
  }
}

@media (max-width: 480px) {
  .egr-pdp-page .product_title {
    font-size: 20px;
  }

  .egr-pdp-page .egr-pdp__reviews-btn,
  .egr-pdp-page .woocommerce-Reviews .form-submit input[type="submit"] {
    width: 100%;
    min-width: 0;
  }
}
