/* OCCAZLAND PRODUCT GALLERY V2 — full image, visible controls and accessible zoom. */
.product-miniature .product-flags {
  position: static !important;
  display: flex !important;
  width: auto !important;
  margin: 9px 0 0;
  padding: 0;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none !important;
}

.product-miniature .product-flags__flag {
  position: static !important;
  margin: 0 !important;
}

.page-product .product-flags {
  position: static !important;
  width: auto !important;
  margin: 0 0 12px;
  padding: 0;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto !important;
}

.page-product .product-flags__flag {
  position: static !important;
  margin: 0 !important;
}

.page-product .product-main-images,
.page-product .product-main-images .swiper-slide,
.page-product .modal-gallery .swiper-slide {
  background: #f5f5f3;
}

.page-product .js-product-main-images,
.page-product .js-modal-gallery {
  padding-bottom: 70px;
  background: #fff;
}

.page-product .product-main-images .swiper-slide,
.page-product .modal-gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.page-product .product-main-images .swiper-slide > img,
.page-product .product-main-images > img,
.page-product .modal-gallery .swiper-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.page-product .product-main-images > img {
  aspect-ratio: 1 / 1;
}

.page-product .product-main-images--single {
  position: relative;
  padding-bottom: 70px;
  background: #fff;
}

.page-product .product-main-images--single > img {
  height: auto;
  background: #f5f5f3;
}

.page-product .product-main-images__zoomable {
  cursor: zoom-in;
  touch-action: pan-y;
}

.page-product .product-main-images__zoomable:focus-visible {
  outline: 3px solid #ff2b2b;
  outline-offset: -4px;
}

.page-product .swiper-button-custom {
  width: 54px;
  height: 54px;
  top: auto;
  bottom: 8px;
  margin-top: 0;
  color: #fff !important;
  background: #ff2b2b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .38);
  opacity: 1;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.page-product .swiper-button-custom:hover,
.page-product .swiper-button-custom:focus-visible {
  color: #fff !important;
  background: #d90000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .5);
  outline: 3px solid #111;
  outline-offset: 2px;
}

.page-product .swiper-button-custom::after {
  display: none;
}

.page-product .swiper-button-custom .material-icons {
  font-size: 44px;
  line-height: 1;
}

.page-product .swiper-button-prev.swiper-button-custom {
  left: calc(50% - 92px);
}

.page-product .swiper-button-next.swiper-button-custom {
  right: calc(50% - 92px);
}

.page-product .swiper-button-custom.swiper-button-disabled {
  opacity: .38;
}

.page-product .product-main-images__modal-trigger-layer {
  right: auto;
  bottom: 8px;
  left: 50%;
  z-index: 4;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #fff !important;
  background: #ff2b2b !important;
  border: 3px solid #fff !important;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .48) !important;
  cursor: zoom-in;
}

.page-product .product-main-images__modal-trigger-layer:hover,
.page-product .product-main-images__modal-trigger-layer:focus-visible {
  color: #fff !important;
  background: #d90000 !important;
  border-color: #fff !important;
  outline: 3px solid #111;
  outline-offset: 2px;
  transform: translateX(-50%);
}

.page-product .product-main-images__modal-trigger-layer {
  transform: translateX(-50%);
}

.page-product .product-main-images__modal-trigger-layer .material-icons {
  font-size: 30px;
}

.page-product #product-modal .modal-dialog {
  width: min(1200px, 96vw);
  max-width: 1200px;
  margin: 2vh auto;
}

.page-product #product-modal .modal-content,
.page-product #product-modal .modal-body {
  background: #f5f5f3;
}

.page-product #product-modal .modal-body {
  padding: 14px;
}

.page-product .product-gallery-zoom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-bottom: 8px;
  padding: 7px 8px 7px 12px;
  color: #fff;
  background: #111;
  border-radius: 12px;
}

.page-product .product-gallery-zoom-hint {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-product .product-gallery-zoom-hint > .material-icons {
  color: #ff2b2b;
  font-size: 30px;
}

.page-product .product-gallery-zoom-hint strong,
.page-product .product-gallery-zoom-hint small {
  display: block;
  line-height: 1.2;
}

.page-product .product-gallery-zoom-hint small {
  margin-top: 2px;
  color: #ddd;
  font-size: .78rem;
}

.page-product .product-gallery-zoom-close {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: #ff2b2b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}

.page-product .product-gallery-zoom-close:hover,
.page-product .product-gallery-zoom-close:focus-visible {
  color: #fff;
  background: #d90000;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.page-product #product-modal .modal-gallery .swiper-slide {
  height: calc(96vh - 160px);
  max-height: 1000px;
  aspect-ratio: auto;
}

.page-product #product-modal .modal-gallery img {
  max-height: calc(96vh - 160px);
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  cursor: zoom-in;
}

.page-product #product-modal .modal-gallery__elem {
  overflow: hidden;
}

.page-product #product-modal .modal-gallery img.is-zoomed {
  cursor: grab;
}

.page-product #product-modal .modal-gallery img.is-zoomed:active {
  cursor: grabbing;
}

.page-product .viewer-container {
  z-index: 1100 !important;
  background: rgba(8, 8, 8, .96);
}

.page-product .viewer-button.viewer-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: #ff2b2b;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
}

.page-product .viewer-button.viewer-close::before {
  top: 13px;
  left: 13px;
}

.page-product .viewer-canvas > img {
  object-fit: contain;
}

.page-product .occaz-viewer-controls {
  position: absolute;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  z-index: 2015;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.page-product .occaz-viewer-controls button,
.page-product .occaz-viewer-direction-pad button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(17, 17, 17, .94);
  border: 2px solid #fff;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .45);
  pointer-events: auto;
}

.page-product .occaz-viewer-controls button:hover,
.page-product .occaz-viewer-controls button:focus-visible,
.page-product .occaz-viewer-direction-pad button:hover,
.page-product .occaz-viewer-direction-pad button:focus-visible {
  color: #fff;
  background: #ff2b2b;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.page-product .occaz-viewer-controls > button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.page-product .occaz-viewer-controls .material-icons {
  font-size: 38px;
}

.page-product .occaz-viewer-zoom {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.page-product .occaz-viewer-zoom button:nth-child(2) {
  min-width: 104px;
  padding: 0 14px;
  font-size: .8rem;
  font-weight: 700;
}

.page-product .occaz-viewer-zoom button:first-child,
.page-product .occaz-viewer-zoom button:last-child {
  font-size: 1.8rem;
  font-weight: 500;
}

.page-product .occaz-viewer-direction-pad {
  position: absolute;
  right: 22px;
  bottom: 94px;
  z-index: 2015;
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 46px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.page-product .occaz-viewer-direction-pad.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-product .occaz-viewer-direction-pad button {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.page-product .occaz-viewer-direction-pad button:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}

.page-product .occaz-viewer-direction-pad button:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.page-product .occaz-viewer-direction-pad__center {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 12px;
  height: 12px;
  background: #ff2b2b;
  border: 2px solid #fff;
  border-radius: 50%;
}

.page-product .occaz-viewer-direction-pad button:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.page-product .occaz-viewer-direction-pad button:nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}

.page-product .occaz-viewer-hint {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2015;
  max-width: calc(100vw - 160px);
  margin: 0;
  padding: 9px 14px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  background: rgba(17, 17, 17, .9);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px;
  opacity: 1;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .35s ease;
}

.page-product .occaz-viewer-hint.is-hidden {
  opacity: 0;
}

.page-product .occaz-viewer--single .occaz-viewer-controls > button {
  visibility: hidden;
}

.page-product .occaz-paypal-4x {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
  border: 2px solid #0070ba;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 112, 186, .13);
}

.page-product .occaz-paypal-4x img {
  display: block;
  width: 92px;
  height: auto;
  object-fit: contain;
}

.page-product .occaz-paypal-4x__text strong,
.page-product .occaz-paypal-4x__text small {
  display: block;
}

.page-product .occaz-paypal-4x__text strong {
  color: #111;
  font-size: 1rem;
}

.page-product .occaz-paypal-4x__text small {
  margin-top: 2px;
  color: #3f4b55;
  font-size: .76rem;
  line-height: 1.3;
}

.page-product .occaz-in-cart-message {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  color: #fff;
  background: #111;
  border-left: 5px solid #ff2b2b;
  border-radius: 10px;
}

.page-product .occaz-in-cart-message > .material-icons {
  color: #ff2b2b;
  font-size: 28px;
}

.page-product .occaz-in-cart-message strong,
.page-product .occaz-in-cart-message small {
  display: block;
}

.page-product .occaz-in-cart-message small {
  margin-top: 2px;
  color: #ddd;
  font-size: .75rem;
  line-height: 1.25;
}

.page-product .occaz-in-cart-message a {
  padding: 7px 9px;
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  background: #ff2b2b;
  border-radius: 7px;
  white-space: nowrap;
}

.page-product .product-flags__flag--in-cart {
  color: #fff;
  background: #0b7a36;
}

.page-product .product-thumbs__elem img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f5f5f3;
}

@media (max-width: 767.98px) {
  .page-product .viewer-button.viewer-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .page-product .viewer-button.viewer-close::before {
    top: 11px;
    left: 11px;
  }

  .page-product .occaz-viewer-controls {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: 48px 1fr 48px;
    gap: 6px;
  }

  .page-product .occaz-viewer-controls > button {
    width: 48px;
    height: 48px;
  }

  .page-product .occaz-viewer-zoom {
    gap: 5px;
  }

  .page-product .occaz-viewer-zoom button:nth-child(2) {
    min-width: 86px;
    padding: 0 10px;
  }

  .page-product .occaz-viewer-direction-pad {
    right: 10px;
    bottom: 78px;
    transform: scale(.88) translateY(8px);
    transform-origin: right bottom;
  }

  .page-product .occaz-viewer-direction-pad.is-visible {
    transform: scale(.88) translateY(0);
  }

  .page-product .occaz-viewer-hint {
    top: max(12px, env(safe-area-inset-top));
    max-width: calc(100vw - 130px);
    font-size: .68rem;
  }

  .page-product .product-gallery-zoom-toolbar {
    min-height: 50px;
    padding-left: 10px;
  }

  .page-product .product-gallery-zoom-hint > .material-icons {
    font-size: 27px;
  }

  .page-product .product-gallery-zoom-hint strong {
    font-size: .86rem;
  }

  .page-product .product-gallery-zoom-hint small {
    font-size: .68rem;
  }

  .page-product .product-gallery-zoom-close {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .page-product .occaz-paypal-4x,
  .page-product .occaz-in-cart-message {
    grid-template-columns: auto 1fr;
  }

  .page-product .occaz-in-cart-message a {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .page-product .occaz-paypal-4x {
    gap: 9px 11px;
    padding: 11px 12px;
  }

  .page-product .swiper-button-custom {
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }

  .page-product .swiper-button-custom .material-icons {
    font-size: 38px;
  }

  .page-product .swiper-button-prev.swiper-button-custom {
    left: calc(50% - 78px);
  }

  .page-product .swiper-button-next.swiper-button-custom {
    right: calc(50% - 78px);
  }

  .page-product .product-main-images__modal-trigger-layer {
    right: auto;
    bottom: 6px;
    width: 50px;
    height: 50px;
  }
}
