/* =========================================================
   Royal Office Premium 3.0 - Product page
   Layout ampio, bianco, moderno - PrestaShop 8.2.x
   ========================================================= */

body#product,
body#product #wrapper,
body#product main,
.royal-product-page {
  background: #fff !important;
}

body#product #wrapper {
  padding-top: 0;
}

.royal-product-page {
  padding: 0 0 72px;
  color: #15233b;
}

.royal-product-container,
body#product #wrapper > .container,
body#product #wrapper .container {
  width: 100%;
  max-width: 1140px !important;
}

/* Main layout */
.royal-product-card {
  margin-top: 14px;
  padding: 18px 0 44px;
  border: 0;
  border-bottom: 1px solid #e9eff5;
  background: #fff;
  box-shadow: none;
}

.royal-product-grid {
  margin-right: -24px;
  margin-left: -24px;
}

.royal-product-grid > [class*="col-"] {
  padding-right: 24px;
  padding-left: 24px;
}

/* Gallery */
.royal-product-gallery {
  position: relative;
  min-height: 710px;
}

.royal-product-flags {
  position: absolute;
  top: 20px;
  left: 126px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.royal-product-flags .product-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(18, 142, 243, .16);
  border-radius: 999px;
  color: #0878d1;
  background: rgba(18, 142, 243, .08);
  box-shadow: 0 8px 24px rgba(31, 111, 181, .07);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.royal-product-flags .product-flag.new {
  border-color: rgba(0, 171, 190, .18);
  color: #008ca0;
  background: rgba(0, 171, 190, .08);
}

.royal-product-flags .product-flag.on-sale,
.royal-product-flags .product-flag.discount {
  border-color: rgba(236, 80, 90, .16);
  color: #d93645;
  background: rgba(236, 80, 90, .08);
}

.royal-product-flags .product-flag.pack {
  border-color: rgba(121, 84, 230, .16);
  color: #7453d9;
  background: rgba(121, 84, 230, .08);
}

.royal-gallery {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 26px;
  min-height: 710px;
}

.royal-gallery--single {
  grid-template-columns: minmax(0, 1fr);
}

.royal-gallery__thumbs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.royal-gallery__thumb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 625px;
  overflow-y: auto;
  scrollbar-width: none;
}

.royal-gallery__thumb-list::-webkit-scrollbar {
  display: none;
}

.royal-gallery__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 104px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #e5ebf1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.royal-gallery__thumb:hover,
.royal-gallery__thumb.is-active {
  border-color: #078CFF;
  box-shadow: 0 9px 24px rgba(18, 142, 243, .12);
  transform: translateY(-1px);
}

.royal-gallery__thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.royal-gallery__thumb-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0;
  border: 0;
  color: #8b98a9;
  background: transparent;
  font-size: 12px;
}

.royal-gallery__main {
  min-width: 0;
}

.royal-gallery__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 710px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid #edf2f6;
  border-radius: 18px;
  background: #fff;
}

.royal-gallery__cover,
.royal-gallery__image-wrap .js-qv-product-cover {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 650px !important;
  object-fit: contain !important;
  image-rendering: auto;
}

.royal-gallery__zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #dfe8f1;
  border-radius: 999px;
  color: #15334d;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(24, 53, 82, .08);
  font-size: 12px;
  font-weight: 700;
}

.royal-gallery__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  border: 1px solid #edf2f6;
  border-radius: 18px;
}

.royal-gallery__empty img {
  max-width: 90%;
}

/* Product information */
.royal-product-info {
  position: sticky;
  top: 20px;
  padding: 8px 0 0 14px;
}

.royal-product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
  color: #8a96a6;
  font-size: 11px;
}

.royal-product-reference,
.royal-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.royal-product-reference i {
  color: #078CFF;
}

.royal-product-stock {
  font-weight: 800;
}

.royal-product-stock.is-available {
  color: #1d9d63;
}

.royal-product-stock.is-unavailable {
  color: #e13e4f;
}

.royal-product-title {
  margin: 0 0 16px;
  max-width: 720px;
  color: #17233a;
  font-size: clamp(27px, 2.35vw, 40px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-transform: none;
}

.royal-product-short-description {
  max-width: 700px;
  margin-bottom: 20px;
  color: #667489;
  font-size: 14px;
  line-height: 1.7;
}

.royal-product-short-description p:last-child {
  margin-bottom: 0;
}

.royal-product-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.royal-product-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e8eef4;
  border-radius: 11px;
  background: #fff;
}

.royal-product-fact__icon,
.royal-mini-heading-icon,
.royal-section-heading__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #078CFF;
  background: rgba(18, 142, 243, .08);
}

.royal-product-fact__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.royal-product-fact > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.royal-product-fact small {
  color: #9aa4b2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.royal-product-fact strong {
  overflow: hidden;
  margin-top: 3px;
  color: #27364b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.royal-product-divider {
  height: 1px;
  margin: 24px 0;
  background: #edf2f6;
}

/* Prices */
.royal-product-prices {
  margin-bottom: 24px;
}

.royal-product-discount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.royal-product-discount-row .regular-price {
  color: #98a2b1;
  font-size: 15px;
  text-decoration: line-through;
}

.royal-discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  color: #d93645;
  background: rgba(236, 80, 90, .09);
  font-size: 11px;
  font-weight: 800;
}

.royal-current-price {
  color: #078CFF;
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.royal-unit-price,
.royal-tax-note,
.royal-ecotax,
.product-unit-price,
.product-pack-price {
  display: block;
  margin-top: 6px;
  color: #8f9aaa;
  font-size: 11px;
}

/* Variants and add to cart */
.royal-product-variants {
  padding-top: 2px;
}

.royal-variant-group {
  margin-bottom: 20px;
}

.royal-variant-label,
.royal-buy-label {
  margin-bottom: 8px;
  color: #26364b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .015em;
}

.royal-variant-selected {
  margin-left: 6px;
  color: #8e99a7;
  font-weight: 500;
}

.royal-product-variants select {
  min-height: 48px;
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  background: #fff;
}

.royal-color-list,
.royal-radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.royal-color-item input,
.royal-radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.royal-color-item .color {
  display: block;
  width: 36px;
  height: 36px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9e1e9;
  cursor: pointer;
}

.royal-color-item input:checked + .color {
  box-shadow: 0 0 0 2px #078CFF;
}

.royal-radio-option span {
  display: block;
  min-width: 46px;
  padding: 11px 15px;
  border: 1px solid #dfe7ee;
  border-radius: 9px;
  text-align: center;
  cursor: pointer;
}

.royal-radio-option input:checked + span {
  color: #fff;
  border-color: #173854;
  background: #173854;
}

.royal-buy-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}

.royal-buy-label {
  display: block;
}

.royal-qty input {
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #dfe8f0;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.royal-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #078CFF;
  box-shadow: 0 12px 26px rgba(18, 142, 243, .18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.royal-add-cart:hover,
.royal-add-cart:focus {
  background: #0c72c8;
  box-shadow: 0 14px 30px rgba(18, 142, 243, .24);
  transform: translateY(-1px);
}

.royal-add-cart:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.royal-product-availability {
  margin-top: 11px;
  color: #6f7d90;
  font-size: 11px;
}

.royal-stock-icon { color: #1d9d63; }
.royal-stock-warning { color: #e6a23c; }
.royal-stock-off { color: #e13e4f; }

.royal-inline-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #22334a;
  font-size: 14px;
}

.royal-inline-title i { color: #078CFF; }

/* Feature preview */
.royal-feature-preview {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #edf2f6;
}

.royal-feature-preview__title,
.royal-product-social__title,
.royal-product-subheading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #27364b;
  font-size: 12px;
  font-weight: 800;
}

.royal-mini-heading-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.royal-feature-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #edf2f6;
  border-radius: 11px;
}

.royal-feature-preview__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f6;
}

.royal-feature-preview__item:nth-child(odd) {
  border-right: 1px solid #edf2f6;
}

.royal-feature-preview__item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.royal-feature-preview__item span {
  color: #929eae;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.royal-feature-preview__item strong {
  margin-top: 2px;
  color: #334258;
  font-size: 11px;
  font-weight: 700;
}

/* Benefits */
.royal-product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 27px;
  padding: 17px 0;
  border-top: 1px solid #edf2f6;
  border-bottom: 1px solid #edf2f6;
}

.royal-product-benefit {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 0 10px;
}

.royal-product-benefit:first-child { padding-left: 0; }
.royal-product-benefit + .royal-product-benefit { border-left: 1px solid #edf2f6; }

.royal-product-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #078CFF;
  background: rgba(18, 142, 243, .08);
}


.royal-product-benefit__icon i {
  font-size: 19px;
  line-height: 1;
}

.royal-product-benefit > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.royal-product-benefit strong {
  overflow: visible;
  color: #314156;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

.royal-product-benefit small {
  overflow: visible;
  color: #8e99a8;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
}

/* Social share */
.royal-product-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}

.royal-product-social__title {
  margin: 0;
}

.royal-product-social__links {
  display: flex;
  align-items: center;
  gap: 7px;
}

.royal-product-social__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e2eaf2;
  border-radius: 50%;
  color: #627086;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.royal-product-social__links a:hover {
  border-color: #078CFF;
  color: #078CFF;
  background: rgba(18, 142, 243, .04);
  transform: translateY(-1px);
}

/* Reassurance */
.royal-product-reassurance {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #edf2f6;
}

.royal-product-subheading i {
  color: #078CFF;
}

.royal-product-additional {
  margin-top: 18px;
}

.royal-volume-discounts {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #e5edf4;
  border-radius: 10px;
}

.royal-volume-title,
.royal-volume-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 14px;
}

.royal-volume-title {
  background: #f8fbfd;
  font-weight: 800;
}

.royal-volume-row + .royal-volume-row {
  border-top: 1px solid #edf2f6;
}

/* Tabs */
.royal-product-tabs {
  margin-top: 38px;
  padding: 0 0 42px;
  border: 0;
  border-bottom: 1px solid #e9eff5;
  background: #fff;
}

.royal-product-tabs__heading,
.royal-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.royal-product-tabs__heading {
  margin-bottom: 18px;
}

.royal-section-heading__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 16px;
}

.royal-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #8d99a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.royal-product-tabs__heading h2,
.royal-section-heading h2 {
  margin: 0;
  color: #1f2f45;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.royal-tabs {
  display: flex;
  gap: 28px;
  margin: 0;
  border-bottom: 1px solid #e6edf4;
}

.royal-tabs .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 2px 14px;
  border: 0 !important;
  color: #8995a6;
  background: transparent !important;
  font-size: 12px;
  font-weight: 800;
}

.royal-tabs .nav-link i {
  color: #aab4c1;
}

.royal-tabs .nav-link.active,
.royal-tabs .nav-link.active i {
  color: #1f3047;
}

.royal-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #078CFF;
}

.royal-tab-content {
  padding-top: 28px;
}

.royal-description-content {
  max-width: 1120px;
  color: #657387;
  font-size: 14px;
  line-height: 1.8;
}

.royal-description-content img {
  max-width: 100%;
  height: auto;
}

.royal-product-details {
  max-width: 900px;
}

.royal-detail-row {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) 1.3fr;
  gap: 25px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f6;
}

.royal-detail-row span {
  color: #8c98a9;
}

.royal-detail-row strong {
  color: #2d3d52;
  font-weight: 700;
}

/* Accessories */
.royal-product-accessories,
.royal-product-footer-hook {
  margin-top: 38px;
}

.royal-section-heading {
  margin-bottom: 22px;
}

/* Modal */
.royal-product-modal {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
}

.royal-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  z-index: 5;
  font-size: 32px;
}

.royal-product-modal .modal-body {
  padding: 38px;
}

.royal-product-modal .carousel-item img {
  max-height: 82vh;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 1199.98px) {
  .royal-product-info {
    position: static;
    padding: 35px 0 0;
  }

  .royal-product-gallery,
  .royal-gallery {
    min-height: 620px;
  }

  .royal-gallery__image-wrap {
    min-height: 620px;
  }

  .royal-gallery__cover,
  .royal-gallery__image-wrap .js-qv-product-cover {
    max-height: 565px !important;
  }
}

@media (max-width: 991.98px) {
  .royal-product-grid {
    margin-right: -14px;
    margin-left: -14px;
  }

  .royal-product-grid > [class*="col-"] {
    padding-right: 14px;
    padding-left: 14px;
  }

  .royal-gallery {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 16px;
    min-height: 520px;
  }

  .royal-product-gallery {
    min-height: 520px;
  }

  .royal-gallery__thumb {
    width: 78px;
    height: 88px;
  }

  .royal-gallery__thumb-list {
    max-height: 450px;
  }

  .royal-gallery__image-wrap {
    min-height: 520px;
  }

  .royal-gallery__cover,
  .royal-gallery__image-wrap .js-qv-product-cover {
    max-height: 470px !important;
  }

  .royal-product-flags {
    left: 102px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .royal-product-page {
    padding-bottom: 44px;
  }

  .royal-product-page > .container,
  .royal-product-page .container,
  .royal-product-container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .royal-product-card {
    margin-top: 14px;
    padding-top: 8px;
  }

  .royal-product-grid {
    margin-right: -7px;
    margin-left: -7px;
  }

  .royal-product-grid > [class*="col-"] {
    padding-right: 7px;
    padding-left: 7px;
  }

  .royal-product-gallery {
    min-height: auto;
  }

  .royal-gallery,
  .royal-gallery--single {
    display: flex;
    min-height: auto;
    flex-direction: column-reverse;
    gap: 12px;
  }

  .royal-gallery__thumbs {
    display: block;
  }

  .royal-gallery__thumb-list {
    display: flex;
    max-width: 100%;
    height: auto;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
  }

  .royal-gallery__thumb {
    width: 68px;
    height: 74px;
    flex: 0 0 68px;
    border-radius: 9px;
  }

  .royal-gallery__thumb-arrow {
    display: none;
  }

  .royal-gallery__image-wrap {
    min-height: 390px;
    padding: 18px;
    border-radius: 13px;
  }

  .royal-gallery__cover,
  .royal-gallery__image-wrap .js-qv-product-cover {
    max-height: 355px !important;
  }

  .royal-gallery__zoom {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 12px;
  }

  .royal-product-flags {
    top: 12px;
    left: 12px;
  }

  .royal-product-flags .product-flag {
    padding: 7px 10px;
    font-size: 9px;
  }

  .royal-product-info {
    padding-top: 24px;
  }

  .royal-product-meta-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .royal-product-title {
    font-size: clamp(30px, 9vw, 42px);
  }

  .royal-product-facts,
  .royal-feature-preview__grid {
    grid-template-columns: 1fr;
  }

  .royal-feature-preview__item,
  .royal-feature-preview__item:nth-child(odd),
  .royal-feature-preview__item:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid #edf2f6;
  }

  .royal-feature-preview__item:last-child {
    border-bottom: 0;
  }

  .royal-buy-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .royal-product-benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .royal-product-benefit,
  .royal-product-benefit:first-child {
    padding: 0;
  }

  .royal-product-benefit + .royal-product-benefit {
    padding-top: 12px;
    border-top: 1px solid #edf2f6;
    border-left: 0;
  }

  .royal-product-benefit strong,
  .royal-product-benefit small {
    white-space: normal;
  }

  .royal-product-social {
    align-items: flex-start;
    flex-direction: column;
  }

  .royal-tabs {
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .royal-tabs::-webkit-scrollbar {
    display: none;
  }

  .royal-product-tabs__heading h2,
  .royal-section-heading h2 {
    font-size: 21px;
  }

  .royal-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* =========================================================
   Royal Office Premium 3.0.1 — Product proportions
   ========================================================= */
@media (min-width: 1200px) {
  .royal-product-gallery,
  .royal-gallery {
    min-height: 580px;
  }

  .royal-gallery {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .royal-gallery__thumb-list {
    max-height: 510px;
    gap: 10px;
  }

  .royal-gallery__thumb {
    width: 82px;
    height: 92px;
    padding: 7px;
  }

  .royal-gallery__image-wrap {
    min-height: 580px;
    padding: 24px;
  }

  .royal-gallery__cover,
  .royal-gallery__image-wrap .js-qv-product-cover {
    max-height: 520px !important;
  }

  .royal-product-flags {
    left: 104px;
  }

  .royal-product-info {
    padding-left: 8px;
  }

  .royal-product-title {
    max-width: 620px;
    font-size: clamp(30px, 2.35vw, 42px);
    line-height: 1.055;
    letter-spacing: -.035em;
  }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  .royal-product-gallery,
  .royal-gallery,
  .royal-gallery__image-wrap {
    min-height: 520px;
  }

  .royal-gallery__cover,
  .royal-gallery__image-wrap .js-qv-product-cover {
    max-height: 465px !important;
  }

  .royal-product-title {
    font-size: clamp(30px, 4vw, 40px);
  }
}

/* =========================================================
   Royal Office 3.0.21 — single product image full-width fix
   Keep the single-image gallery on one full-width column.
   ========================================================= */
body#product .royal-gallery.royal-gallery--single {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}

body#product .royal-gallery--single .royal-gallery__main,
body#product .royal-gallery--single .royal-gallery__image-wrap {
  width: 100% !important;
  min-width: 0 !important;
}

body#product .royal-gallery--single .royal-gallery__cover,
body#product .royal-gallery--single .royal-gallery__image-wrap .js-qv-product-cover {
  width: 100% !important;
  height: 520px !important;
  max-width: 100% !important;
  max-height: 520px !important;
  object-fit: contain !important;
  object-position: center !important;
}

body#product .royal-product-gallery:has(.royal-gallery--single) .royal-product-flags {
  left: 24px !important;
}

@media (max-width: 1199.98px) and (min-width: 768px) {
  body#product .royal-gallery--single .royal-gallery__cover,
  body#product .royal-gallery--single .royal-gallery__image-wrap .js-qv-product-cover {
    height: 465px !important;
    max-height: 465px !important;
  }
}

@media (max-width: 767.98px) {
  body#product .royal-gallery--single .royal-gallery__cover,
  body#product .royal-gallery--single .royal-gallery__image-wrap .js-qv-product-cover {
    width: 100% !important;
    height: 355px !important;
    max-height: 355px !important;
  }
}

/* =========================================================
   Royal Office 3.0.38 — clean product image modal
   No canvas, no auto-crop, no transforms. The ORIGINAL source image
   is always shown completely and centered inside the white popup.
   ========================================================= */
body#product #product-modal {
  padding-right: 0 !important;
}

body#product #product-modal .modal-dialog {
  width: min(920px, calc(100vw - 40px)) !important;
  max-width: 920px !important;
  margin: 20px auto !important;
}

body#product #product-modal .royal-product-modal--clean {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(10,34,65,.26) !important;
}

body#product #product-modal .royal-product-modal--clean .modal-body {
  width: 100% !important;
  height: min(760px, calc(100vh - 40px)) !important;
  min-height: 420px !important;
  margin: 0 !important;
  padding: 28px !important;
  overflow: hidden !important;
  background: #fff !important;
}

body#product #product-modal .royal-zoom-stage--clean,
body#product #product-modal #royalProductModalCarousel,
body#product #product-modal #royalProductModalCarousel .carousel-inner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body#product #product-modal #royalProductModalCarousel .carousel-item {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}

body#product #product-modal #royalProductModalCarousel .carousel-item.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body#product #product-modal .royal-modal-product-image {
  position: static !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-width: 92% !important;
  max-height: 92% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: auto !important;
  padding: 0 !important;
  inset: auto !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #fff !important;
}

/* Permanently disable every experimental zoom canvas from older releases. */
body#product #product-modal canvas.royal-zoom-fixed-canvas,
body#product #product-modal canvas.royal-zoom-canvas,
body#product #product-modal canvas.royal-modal-centered-canvas {
  display: none !important;
}

body#product #product-modal .royal-modal-close--floating {
  position: absolute !important;
  z-index: 30 !important;
  top: 12px !important;
  right: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #183654 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  opacity: 1 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 4px 16px rgba(20,45,72,.14) !important;
}

@media (max-width: 767.98px) {
  body#product #product-modal {
    padding: 0 !important;
  }

  body#product #product-modal .modal-dialog {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
  }

  body#product #product-modal .royal-product-modal--clean {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
    border-radius: 18px !important;
    background: #fff !important;
  }

  body#product #product-modal .royal-product-modal--clean .modal-body {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 20px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body#product #product-modal .royal-zoom-stage--clean,
  body#product #product-modal #royalProductModalCarousel,
  body#product #product-modal #royalProductModalCarousel .carousel-inner,
  body#product #product-modal #royalProductModalCarousel .carousel-item,
  body#product #product-modal #royalProductModalCarousel .carousel-item.active {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body#product #product-modal #royalProductModalCarousel .carousel-item.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body#product #product-modal .royal-modal-product-image,
  body#product #product-modal .carousel-item img.royal-modal-product-image {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 88% !important;
    max-height: 88% !important;
    margin: auto !important;
    padding: 0 !important;
    inset: auto !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#product #product-modal .carousel-control-prev,
  body#product #product-modal .carousel-control-next {
    display: none !important;
  }

  body#product #product-modal .royal-modal-close--floating {
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
  }
}

/* =========================================================
   Royal Office 3.0.39 — mobile zoom: subject centered
   The source JPG may contain asymmetric white margins. On mobile the
   JavaScript renderer removes ONLY the empty near-white border and draws
   the complete visible product centered inside the existing white popup.
   ========================================================= */
@media (max-width: 767.98px) {
  body#product #product-modal .royal-zoom-stage--clean,
  body#product #product-modal #royalProductModalCarousel,
  body#product #product-modal #royalProductModalCarousel .carousel-inner,
  body#product #product-modal #royalProductModalCarousel .carousel-item,
  body#product #product-modal #royalProductModalCarousel .carousel-item.active {
    overflow: hidden !important;
    background: #fff !important;
  }

  body#product #product-modal canvas.royal-zoom-render-canvas {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    pointer-events: none !important;
  }

  body#product #product-modal .carousel-item.royal-zoom-rendered > img.royal-modal-product-image {
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* ROYAL OFFICE product title definitive sizing */
body#product .royal-product-info h1.royal-product-title,
body#product h1.royal-product-title {
  font-size: clamp(24px, 2vw, 34px) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.03em !important;
}

/* Royal Office 2026-10-01 — quantity control stabile */
body#product #quantity_wanted{-moz-appearance:textfield!important}
body#product #quantity_wanted::-webkit-inner-spin-button,
body#product #quantity_wanted::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
body#product .royal-qty .bootstrap-touchspin{display:flex!important;align-items:stretch!important}
body#product .royal-qty .bootstrap-touchspin .input-group-btn-vertical{display:flex!important;flex-direction:column!important;width:34px!important}
body#product .royal-qty .bootstrap-touchspin .btn{position:static!important;width:34px!important;height:50%!important;min-height:0!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body#product .royal-qty .bootstrap-touchspin .btn:before{line-height:1!important}
body#product .royal-product-availability .product-unavailable,
body#product .royal-product-availability .product-last-items{margin-top:6px}

/* ROYAL QTY FIX — product detail */
body#product .royal-detail-qty{display:grid!important;grid-template-columns:36px 52px 36px!important;width:124px!important;height:46px!important;border:1px solid #d9e2ec!important;border-radius:8px!important;overflow:hidden!important;background:#fff!important}
body#product .royal-detail-qty__btn,
body#product #royal_quantity_wanted{position:static!important;width:100%!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;line-height:44px!important}
body#product .royal-detail-qty__btn{background:#f3f7fb!important;color:#17233a!important;font-size:20px!important;font-weight:700!important;cursor:pointer!important}
body#product #royal_quantity_wanted{background:#fff!important;color:#17233a!important;font-size:16px!important}
