
/*
 * CWS / Roy's Wonderland responsive product-page correction 1.1.0
 * Desktop goal: a cleaner first-screen presentation with
 * left gallery thumbnails, center main image, and right product details.
 * Scoped selectors avoid changing ordinary WooCommerce and Elementor pages.
 */

/* 01 - Fluid product layout and typography */
#roy-product {
  --cws-roy-green: #173c30;
  --cws-roy-red: #970817;
  --cws-roy-red-hover: #750712;
  --cws-roy-gold: #d5b575;
  --cws-roy-border: #e7decd;
  --cws-roy-surface: #fbf8f2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#roy-product,
#roy-product *,
#roy-product *::before,
#roy-product *::after {
  box-sizing: border-box;
}
#roy-product .roy-wrap {
  width: min(1360px, calc(100% - 48px)) !important;
  max-width: 1360px !important;
  min-width: 0;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
#roy-product .roy-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 22px !important;
  line-height: 1.6;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#roy-product .roy-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr) !important;
  gap: clamp(24px, 3vw, 44px) !important;
  align-items: start !important;
  min-width: 0;
}
#roy-product .roy-hero > .roy-gallery,
#roy-product .roy-hero > .roy-summary {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
#roy-product .roy-summary > * {
  max-width: 100%;
}
#roy-product .roy-summary {
  padding-top: 4px !important;
}
#roy-product .roy-eyebrow {
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.6;
  letter-spacing: 0.16em;
  overflow-wrap: anywhere;
}
#roy-product .roy-product-title {
  margin: 10px 0 8px !important;
  font-size: clamp(32px, 3.4vw, 50px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
#roy-product .roy-subtitle {
  margin: 0 0 18px !important;
  line-height: 1.6 !important;
  font-size: clamp(13px, 1vw, 16px);
}
#roy-product .roy-price-wrap,
#roy-product .roy-price-wrap .single-price {
  max-width: 100%;
}
#roy-product .roy-price-wrap .price,
#roy-product .roy-price-wrap .woocommerce-Price-amount,
#roy-product .roy-price-wrap .woocommerce-Price-currencySymbol {
  color: var(--cws-roy-green) !important;
}
#roy-product .roy-price-wrap .price {
  font-size: clamp(20px, 2vw, 28px) !important;
  line-height: 1.45 !important;
  font-weight: 750 !important;
  overflow-wrap: anywhere;
}
#roy-product .roy-price-wrap .our-price {
  color: #5c625e !important;
  font-size: 14px;
}
#roy-product .roy-divider {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 !important;
  border-color: var(--cws-roy-border);
}

/* 02 - Desktop gallery: thumbs on left, main image at center */
#roy-product .roy-gallery {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0;
}
#roy-product .roy-main-photo {
  position: relative;
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5;
  max-height: min(68vh, 690px);
  overflow: hidden;
  border: 1px solid #ece7dd;
  border-radius: 14px;
  background: #f6f3ed;
}
#roy-product .roy-photo-link {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center;
  justify-content: center;
}
#roy-product .roy-photo-link .roy-active-image,
#roy-product .roy-main-photo .roy-active-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
#roy-product .roy-photo-counter {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  line-height: 1.2;
}
#roy-product .roy-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 88px;
  max-width: 88px;
  max-height: min(68vh, 690px);
  margin: 0 !important;
  padding: 2px 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-snap-type: y proximity;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#roy-product .roy-thumbs > .roy-thumb {
  display: block !important;
  flex: 0 0 84px !important;
  width: 84px !important;
  height: 88px !important;
  min-width: 0 !important;
  max-width: 84px !important;
  padding: 3px !important;
  overflow: hidden;
  border-radius: 9px;
  scroll-snap-align: start;
  cursor: pointer;
}
#roy-product .roy-thumbs > .roy-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 5px;
}
#roy-product .roy-thumbs > .roy-thumb:focus-visible,
#roy-product .roy-cart-form .variable-item:focus-visible,
#roy-product .roy-cart-form :is(button, a, input):focus-visible {
  outline: 3px solid var(--cws-roy-gold) !important;
  outline-offset: 2px;
}

/* 03 - One working size selector; retain SKU/product-code reference. */
#roy-product .roy-size-guide {
  display: none !important;
}
#roy-product .roy-size-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px 12px;
  margin: 0 0 8px !important;
}
#roy-product .roy-size-info strong {
  font-size: 14px;
  color: #263c32;
}
#roy-product .roy-size-info > span {
  font-size: 12px;
  color: #797f78;
}
#roy-product .roy-small-help {
  margin: 0 0 15px !important;
  color: #788078;
  font-size: 12px !important;
  line-height: 1.65 !important;
  overflow-wrap: anywhere;
}
#roy-product .roy-cart-form,
#roy-product .roy-cart-form form.cart {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
}
#roy-product .roy-cart-form table.variations,
#roy-product .roy-cart-form table.variations tbody,
#roy-product .roy-cart-form table.variations tr {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
#roy-product .roy-cart-form table.variations th.label,
#roy-product .roy-cart-form table.variations td.value,
#roy-product .roy-cart-form table.variations td.value.woo-variation-items-wrapper {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: normal !important;
  text-align: left !important;
  overflow: visible !important;
}
#roy-product .roy-cart-form table.variations th.label {
  margin-bottom: 9px !important;
}
#roy-product .roy-cart-form table.variations th.label label {
  display: inline-block !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: var(--cws-roy-green) !important;
}
#roy-product .roy-cart-form .single-product-variable-items,
#roy-product .roy-cart-form ul.variable-items-wrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
}
#roy-product .roy-cart-form .single-product-variable-items > li.variable-item,
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 58px !important;
  max-width: none !important;
  height: 45px !important;
  min-height: 45px;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #d9c9b1 !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--cws-roy-green) !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
}
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item .variable-item-span,
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item .variable-item-contents {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item.selected,
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item[aria-checked="true"] {
  background: var(--cws-roy-red) !important;
  color: #fff !important;
  border-color: var(--cws-roy-red) !important;
  box-shadow: 0 0 0 1px var(--cws-roy-red) !important;
}
#roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item:not(.selected):hover {
  border-color: var(--cws-roy-red) !important;
}
#roy-product .roy-cart-form .reset_variations {
  display: inline-flex !important;
  align-items: center;
  margin-top: 11px !important;
  padding: 2px 0 !important;
  color: var(--cws-roy-red) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  text-decoration: none;
}
#roy-product .roy-cart-form .reset_variations:focus-visible,
#roy-product .roy-cart-form .reset_variations:hover {
  text-decoration: underline !important;
}

/* 04 - Prices, quantity, Add to Cart and Buy Now */
#roy-product .roy-cart-form .single_variation_wrap {
  width: 100%;
  max-width: 100%;
  clear: both;
}
#roy-product .roy-cart-form .woocommerce-variation-price {
  width: 100% !important;
  margin: 10px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  text-align: left !important;
}
#roy-product .roy-cart-form .woocommerce-variation-price .price {
  display: block;
  margin: 0 !important;
  color: var(--cws-roy-green) !important;
  font-size: clamp(19px, 2vw, 26px) !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}
#roy-product .roy-cart-form .woocommerce-variation-price .price ins,
#roy-product .roy-cart-form .woocommerce-variation-price .price ins .amount {
  color: var(--cws-roy-green) !important;
  text-decoration: none !important;
}
#roy-product .roy-cart-form .woocommerce-variation-price .price del,
#roy-product .roy-cart-form .woocommerce-variation-price .price del .amount {
  color: #8a918a !important;
  font-size: 0.8em !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
}
#roy-product .roy-cart-form .woocommerce-variation-availability {
  margin: 4px 0 8px;
  line-height: 1.5;
}
#roy-product .roy-cart-form .woocommerce-variation-add-to-cart,
#roy-product .roy-cart-form .variations_button {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
#roy-product .roy-cart-form .addcart-wrapper.single-buynow {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 0.82fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100%;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  align-items: end !important;
  clear: both;
  background: none !important;
}
#roy-product .roy-cart-form .addcart-wrapper > .qty {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 -2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--cws-roy-green) !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  opacity: 1 !important;
}
#roy-product .roy-cart-form .addcart-wrapper > .quantity {
  grid-column: 1;
  display: block !important;
  float: none !important;
  position: static !important;
  width: 90px !important;
  min-width: 0;
  height: 49px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#roy-product .roy-cart-form .addcart-wrapper > .quantity input.qty {
  display: block !important;
  width: 100% !important;
  height: 49px !important;
  min-height: 49px;
  margin: 0 !important;
  padding: 0 6px !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  border: 1px solid #d8c7aa !important;
  border-radius: 8px !important;
  outline-offset: 2px;
  background: #fff !important;
  color: var(--cws-roy-green) !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 49px !important;
  text-align: center !important;
  opacity: 1 !important;
}
#roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button,
#roy-product .roy-cart-form .addcart-wrapper > a.button-buynow {
  float: none !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 49px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: normal !important;
  box-shadow: none !important;
  cursor: pointer;
}
#roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button {
  grid-column: 2;
  display: inline-flex !important;
  background: var(--cws-roy-red) !important;
  color: #fff !important;
}
#roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button:hover:not(:disabled) {
  background: var(--cws-roy-red-hover) !important;
  color: #fff !important;
}
#roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button:disabled,
#roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button.disabled {
  cursor: not-allowed;
  opacity: 0.55 !important;
}
#roy-product .roy-cart-form .addcart-wrapper > a.button-buynow {
  grid-column: 3;
  display: inline-flex !important;
  background: #fff9ed !important;
  border-color: var(--cws-roy-gold) !important;
  color: var(--cws-roy-red) !important;
}
#roy-product .roy-cart-form .addcart-wrapper > a.button-buynow:visited {
  color: var(--cws-roy-red) !important;
}
#roy-product .roy-cart-form .addcart-wrapper > a.button-buynow:hover {
  background: #f8eddb !important;
  color: var(--cws-roy-red-hover) !important;
}
#roy-product .roy-cart-form .addcart-wrapper > .clear {
  display: none !important;
}
#roy-product .roy-cart-form .addcart-wrapper > .item-bottom {
  grid-column: 1 / -1;
  float: none !important;
  position: static !important;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  clear: both;
}
#roy-product .roy-cart-form .yith-wcwl-add-to-wishlist-button-icon {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

/* 05 - Sections and related product cards */
#roy-product .roy-section-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  max-width: 100%;
  padding: 13px 0 !important;
}
#roy-product .roy-section-nav a {
  display: inline-flex;
  align-items: center;
  white-space: normal;
  line-height: 1.4;
}
#roy-product .roy-section,
#roy-product .roy-related,
#roy-product .roy-about {
  max-width: 100%;
  min-width: 0;
}
#roy-product .roy-spec-table > div {
  display: grid !important;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  align-items: start;
  gap: 8px 18px;
  overflow-wrap: anywhere;
}
#roy-product .roy-section :is(img, iframe, video) {
  max-width: 100%;
}
#roy-product .roy-section :is(p, li, span) {
  overflow-wrap: anywhere;
}
#roy-product .roy-related ul.products,
#roy-product .roy-related ul.products.products-loop {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none;
}
#roy-product .roy-related ul.products > li.product {
  display: block !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--cws-roy-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
#roy-product .roy-related ul.products > li.product .products-entry,
#roy-product .roy-related ul.products > li.product .item-detail {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}
#roy-product .roy-related ul.products > li.product img {
  max-width: 100% !important;
}

/* 06 - Tablet / narrower laptop */
@media (max-width: 1180px) {
  #roy-product .roy-wrap {
    width: calc(100% - 36px) !important;
  }
  #roy-product .roy-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) !important;
    gap: 24px !important;
  }
  #roy-product .roy-gallery {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  #roy-product .roy-thumbs {
    width: 76px;
    max-width: 76px;
  }
  #roy-product .roy-thumbs > .roy-thumb {
    flex-basis: 72px !important;
    width: 72px !important;
    max-width: 72px !important;
    height: 76px !important;
  }
  #roy-product .roy-related ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 768px) and (max-width: 960px) {
  #roy-product .roy-hero {
    gap: 20px !important;
  }
  #roy-product .roy-product-title {
    font-size: clamp(28px, 4.2vw, 40px) !important;
  }
  #roy-product .roy-gallery {
    grid-template-columns: 68px minmax(0, 1fr) !important;
  }
  #roy-product .roy-thumbs {
    width: 68px;
    max-width: 68px;
    gap: 8px !important;
  }
  #roy-product .roy-thumbs > .roy-thumb {
    flex-basis: 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 68px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper.single-buynow {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper > .quantity {
    width: 78px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper > a.button-buynow {
    grid-column: 1 / -1;
  }
}

/* 07 - Mobile: stack product columns, keep 2-up related items */
@media (max-width: 767px) {
  #roy-product .roy-wrap {
    width: calc(100% - 30px) !important;
    max-width: none !important;
  }
  #roy-product .roy-crumb {
    margin: 0 0 17px !important;
    font-size: 11px !important;
  }
  #roy-product .roy-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  #roy-product .roy-gallery,
  #roy-product .roy-summary {
    max-width: 100% !important;
  }
  #roy-product .roy-gallery {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #roy-product .roy-main-photo {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 3 / 3.75;
    max-height: none;
    border-radius: 12px;
  }
  #roy-product .roy-thumbs {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row !important;
    width: 100%;
    max-width: 100%;
    max-height: none;
    gap: 8px !important;
    padding-bottom: 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
  }
  #roy-product .roy-thumbs > .roy-thumb {
    flex-basis: 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 68px !important;
  }
  #roy-product .roy-product-title {
    margin-top: 6px !important;
    font-size: clamp(31px, 8vw, 42px) !important;
    line-height: 1.14 !important;
  }
  #roy-product .roy-subtitle {
    margin-bottom: 16px !important;
    font-size: 14px !important;
  }
  #roy-product .roy-divider {
    margin: 17px 0 !important;
  }
  #roy-product .roy-cart-form .woocommerce-variation-price {
    margin: 12px 0 !important;
    text-align: left !important;
  }
  #roy-product .roy-cart-form .woocommerce-variation-price .price {
    margin: 0 !important;
    color: var(--cws-roy-green) !important;
    top: auto !important;
    font-size: 21px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper.single-buynow {
    grid-template-columns: 80px minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper > .quantity {
    width: 80px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper > a.button-buynow {
    grid-column: 1 / -1;
  }
  #roy-product .roy-section-nav {
    gap: 6px !important;
    padding-block: 10px !important;
  }
  #roy-product .roy-spec-table > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  #roy-product .roy-related ul.products,
  #roy-product .roy-related ul.products.products-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  #roy-product .roy-related ul.products > li.product .item-content,
  #roy-product .roy-related ul.products > li.product .products-content {
    padding: 9px !important;
  }
  #roy-product .roy-related ul.products > li.product .item-content h4 {
    font-size: 13px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
  }

  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: 0 3px 12px rgba(25, 25, 25, 0.07);
    z-index: 100;
  }
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px 42px !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 68px;
    margin: 0 auto !important;
    padding: 7px 15px !important;
  }
  body.single-product #masthead .elementor-520 .elementor-element-5267dc0,
  body.single-product #masthead .elementor-520 .elementor-element-799bebf,
  body.single-product #masthead .elementor-520 .elementor-element-58cb84b {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.single-product #masthead .elementor-520 .elementor-element-2e955f1 img {
    width: 88px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 57px !important;
    object-fit: contain !important;
  }
  body.single-product #masthead .elementor-520 .elementor-element-c6a5631 .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 35px;
    max-width: 100%;
    padding: 7px 8px !important;
    border-radius: 7px !important;
    font-size: clamp(9px, 2.55vw, 12px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center;
  }
  body.single-product #masthead .elementor-520 .elementor-element-58cb84b .ekit-offcanvas-toggle-wraper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

@media (max-width: 360px) {
  #roy-product .roy-wrap {
    width: calc(100% - 24px) !important;
  }
  #roy-product .roy-cart-form ul.variable-items-wrapper > li.variable-item {
    min-width: 52px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding-inline: 9px !important;
  }
  #roy-product .roy-cart-form .addcart-wrapper > button.single_add_to_cart_button,
  #roy-product .roy-cart-form .addcart-wrapper > a.button-buynow {
    font-size: 12px !important;
  }
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 > .e-con-inner {
    grid-template-columns: minmax(0, 1fr) 75px 40px !important;
    gap: 5px !important;
    padding-inline: 10px !important;
  }
  body.single-product #masthead .elementor-520 .elementor-element-2e955f1 img {
    width: 75px !important;
  }
}

/* 08 - Forms in Reviews: prevent fixed textarea columns causing page overflow. */
#roy-product .roy-section .woocommerce-Reviews textarea,
#roy-product .roy-section .woocommerce-Reviews input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
#roy-product .roy-section .woocommerce-Reviews select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
#roy-product .roy-section .woocommerce-Reviews .comment-form,
#roy-product .roy-section .woocommerce-Reviews .comment-form > p,
#roy-product .roy-section .woocommerce-Reviews #respond {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 09 - Reuse the site's existing mobile/off-canvas header at 768-1024px. */
@media (min-width: 768px) and (max-width: 1024px) {
  body.single-product #masthead .elementor-520 > .elementor-element-2cad6fb {
    display: none !important;
  }
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    box-shadow: 0 3px 12px rgba(25, 25, 25, 0.07);
    z-index: 100;
  }
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 > .e-con-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 105px 46px !important;
    gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 76px;
    margin: 0 auto !important;
    padding: 8px 25px !important;
  }
  body.single-product #masthead .elementor-520 .elementor-element-5267dc0,
  body.single-product #masthead .elementor-520 .elementor-element-799bebf,
  body.single-product #masthead .elementor-520 .elementor-element-58cb84b {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* ============================================================
 * v1.2.1 TARGETED CORRECTION ONLY
 * Retain ALL v1.1 layout, columns, main photo dimensions,
 * responsive and product-detail positioning untouched.
 * Remove beige fill but preserve its existing empty space.
 * Position gallery arrows in actual empty side gutters only.
 * ============================================================ */
#roy-product .roy-main-photo {
  background: transparent !important;
}
#roy-product .roy-main-photo .roy-photo-link,
#roy-product .roy-main-photo .roy-active-image {
  background: transparent !important;
}
#roy-product .roy-main-photo .cws-roy-gallery-arrow {
  position: absolute !important;
  display: none !important; /* JS only reveals after confirming sufficient empty side space */
  z-index: 5 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #d7d3ca !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #253c32 !important;
  box-shadow: 0 2px 7px rgba(0,0,0,.11) !important;
  opacity: 1 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
#roy-product .roy-main-photo.cws-roy-has-side-gutters .cws-roy-gallery-arrow {
  display: inline-flex !important;
}
#roy-product .roy-main-photo .cws-roy-gallery-prev {
  left: var(--cws-roy-prev-left, 0px) !important;
  right: auto !important;
}
#roy-product .roy-main-photo .cws-roy-gallery-next {
  right: var(--cws-roy-next-right, 0px) !important;
  left: auto !important;
}
#roy-product .roy-main-photo .cws-roy-gallery-arrow svg {
  display: block !important;
  flex: 0 0 auto !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  stroke-width: 2.4 !important;
  pointer-events: none;
}
#roy-product .roy-main-photo .cws-roy-gallery-arrow:hover,
#roy-product .roy-main-photo .cws-roy-gallery-arrow:focus-visible {
  color: #970817 !important;
  border-color: #970817 !important;
  box-shadow: 0 2px 11px rgba(0,0,0,.16) !important;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #roy-product .roy-main-photo .cws-roy-gallery-arrow { transition: none !important; }
}

/* ============================================================
 * v1.2.2: Hide the duplicate static size information block only.
 * Leave the functioning WooCommerce size choices and price
 * calculation unchanged, along with all galleries / columns.
 * ============================================================ */
#roy-product .roy-summary > .roy-size-info,
#roy-product .roy-summary > .roy-size-guide,
#roy-product .roy-summary > .roy-small-help {
  display: none !important;
}


/* ============================================================
 * v1.2.5: Avoid duplicated Reviews heading.
 * The premium template already prints "Customer experiences / Reviews".
 * Hide only the WooCommerce inner list heading; keep the entire
 * review list, ratings, submission form and surrounding UI intact.
 * ============================================================ */
#roy-product #roy-reviews #reviews #comments > h2.woocommerce-Reviews-title {
  display: none !important;
}

/* ============================================================
 * v1.2.7 - Match desktop transparent sticky header behavior.
 * Original Elementor desktop header: transparent at top;
 * #680023B8 (rgba(104,0,35,.72)) after 60px of scroll.
 * Keep mobile/tablet logo, catalogue, menu, sizes and spacing intact.
 * Elementor itself remains in charge of sticky positioning.
 * ============================================================ */
@media (max-width: 1024px) {
  /* Desktop initially overlays the page transparently. Mobile should too.
   * Remove the old CSS white fill and the superseded v1.2.6 solid gradient. */
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: background-color 220ms ease, box-shadow 220ms ease,
                backdrop-filter 220ms ease !important;
  }

  /* The desktop sticky-header-effects configuration specifies
   * a semi-transparent burgundy fill after 60px scroll. */
  html.cws-roy-header-scrolled body.single-product #masthead .elementor-520 > .elementor-element-3da8478 {
    background-color: rgba(104, 0, 35, 0.72) !important;
    background-image: none !important;
    box-shadow: 0 4px 16px rgba(29, 14, 21, 0.14) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  body.single-product #masthead .elementor-520 > .elementor-element-3da8478 {
    transition: none !important;
  }
}
