/* =========================================================
   IDUWA SHOP PRODUCT DEMO
   ========================================================= */

.iduwa-shop-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.iduwa-shop-nav__links,
.iduwa-shop-nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.iduwa-shop-nav__links {
  justify-content: flex-start;
}

.iduwa-shop-nav__actions {
  justify-content: flex-end;
}

.iduwa-shop-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  font-weight: 900;
  line-height: 0.9;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.iduwa-shop-logo:hover,
.iduwa-shop-logo:focus {
  color: #ffffff;
  text-decoration: none;
}

.iduwa-shop-logo span:last-child {
  color: #ff9900;
}

.iduwa-shop-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0.35rem 0.55rem;
}

.shop_product_demo {
  background: #ffffff;
}

.shop_category_bar {
  border-bottom: 1px solid var(--iduwa-border);
}

.shop_category_link {
  color: var(--iduwa-text);
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.shop_category_link:hover,
.shop_category_link.is_active {
  color: var(--brand-wa);
  border-color: var(--brand-wa);
}

.shop_gallery {
  position: sticky;
  top: 1rem;
}

.shop_thumbnail_list {
  display: flex;
  min-height: 92px;
  max-width: 100%;
  overflow-x: auto;
}

.shop_thumbnail_button {
  flex: 0 0 74px;
  width: 74px;
  height: 92px;
  padding: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--iduwa-border);
  border-radius: 6px;
}

.shop_thumbnail_button.is_active {
  border-color: var(--brand-wa);
  box-shadow: var(--iduwa-focus);
}

.shop_thumbnail_button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Hier Grösse auf Vorschau bestimmen*/
.shop_main_image_wrap {
  --shop_preview_qr_size: 24%;
  --shop_preview_front_top: 34%;
  --shop_preview_back_top: 24%;
  --shop_preview_qr_opacity: 0.5;
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  background: #f7f8fa;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.shop_main_image_wrap.shop_preview_grid_enabled::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.12) 1px, transparent 1px),
    linear-gradient(to right, rgba(17, 24, 39, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.22) 1px, transparent 1px);
  background-size:
    5% 5%,
    5% 5%,
    25% 25%,
    25% 25%;
}

.shop_main_image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop_preview_overlay {
  position: absolute;
  left: 50%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  width: var(--shop_preview_qr_size);
  pointer-events: none;
  transform: translateX(-50%);
}

.shop_preview_overlay.is_front {
  top: var(--shop_preview_front_top);
}
/*Hier POSION QR Code, vermutlich  muss für KIDS USW  auch angepasst werden*/
.shop_preview_overlay.is_back {
  top: var(--shop_preview_back_top);
}

.shop_preview_group_men_shirt {
  --shop_preview_qr_size: 24%;
  --shop_preview_front_top: 28%;
  --shop_preview_back_top: 28%;
}

.shop_preview_group_kids {
  --shop_preview_qr_size: 18%;
  --shop_preview_front_top: 35%;
  --shop_preview_back_top: 35%;
}

.shop_preview_group_women {
  --shop_preview_qr_size: 23%;
  --shop_preview_front_top: 28%;
  --shop_preview_back_top: 28%;
}

.shop_preview_group_sweatshirt {
  --shop_preview_qr_size: 23%;
  --shop_preview_front_top: 28%;
  --shop_preview_back_top: 28%;
}

.shop_preview_group_hoodie {
  --shop_preview_qr_size: 23%;
  --shop_preview_front_top: 28%;
  --shop_preview_back_top: 28%;
}

.shop_preview_qr {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: var(--shop_preview_qr_opacity);
}
/*Hier  Slogan Grösses*/
.shop_preview_slogan {
  max-width: 100%;
  font-size: clamp(0.6rem, 1.25vw, 0.88rem);
  font-weight: 800;
  line-height: 1.05;
  opacity: 0.5;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  mix-blend-mode: multiply;
}

.shop_product_demo .form-check-input:checked {
  background-color: var(--brand-wa);
  border-color: var(--brand-wa);
}

.shop_product_demo .form-check-input:focus {
  border-color: var(--brand-wa);
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.22);
}

.shop_product_demo #shop_slogan_select {
  border-color: var(--brand-wa);
}

.shop_product_demo #shop_slogan_select:focus {
  border-color: var(--brand-wa);
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.22);
}

.shop_product_demo .btn-outline-orange:hover,
.shop_product_demo .btn-outline-orange:focus {
  background-color: transparent !important;
  border-color: #6c757d !important;
  color: #6c757d !important;
}

.shop_product_demo input[type="number"]::-webkit-outer-spin-button,
.shop_product_demo input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.shop_product_demo input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.shop_preview_overlay.is_slogan_top .shop_preview_slogan {
  order: -1;
}

.shop_preview_overlay.is_slogan_bottom .shop_preview_slogan {
  order: 1;
}

.shop_config_panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.shop_brand_label {
  color: var(--brand-wa);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.shop_price {
  color: var(--brand-anthrazit);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.shop_option_group {
  margin-top: 1.25rem;
}

.shop_swatch_cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
}

.shop_swatch_dot,
.shop_size_button {
  border: 1px solid var(--iduwa-border);
  background: #ffffff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.shop_swatch_dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 24px;
}

.shop_swatch_dot.is_active,
.shop_size_button.is_active {
  border-color: var(--brand-wa);
  box-shadow: var(--iduwa-focus);
}

.shop_swatch_dot.is_active {
  border-color: var(--brand-anthrazit);
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 3px var(--brand-anthrazit);
}

.shop_swatch_dot.is_disabled,
.shop_size_button.is_disabled {
  color: rgba(15, 23, 42, 0.35);
  opacity: 0.62;
}

.shop_swatch_circle {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.shop_swatch_preview {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 4;
  display: none;
  width: 74px;
  min-height: 104px;
  padding: 0.5rem 0.35rem 0.45rem;
  color: var(--iduwa-text);
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.shop_swatch_preview img {
  width: 46px;
  height: 58px;
  object-fit: contain;
}

.shop_swatch_preview_code {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.62rem;
  line-height: 1.05;
}

.shop_swatch_dot:hover .shop_swatch_preview,
.shop_swatch_dot:focus-visible .shop_swatch_preview {
  display: block;
}

.shop_size_grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.shop_size_button {
  min-height: 42px;
  font-weight: 700;
}

.shop_qr_options .list-group-item {
  border-color: var(--iduwa-border);
}

.shop_qr_design_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.shop_qr_design_option {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.shop_qr_design_preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border: 1px solid var(--iduwa-border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.shop_qr_design_preview img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  pointer-events: none;
}

.shop_qr_design_fallback {
  display: block;
  width: 86%;
  height: 86%;
  background:
    linear-gradient(90deg, var(--shop_qr_color) 12px, transparent 0) 0 0 / 18px
      18px,
    linear-gradient(var(--shop_qr_color) 12px, transparent 0) 0 0 / 18px 18px,
    #ffffff;
  border: 6px solid #ffffff;
  box-shadow: inset 0 0 0 2px var(--shop_qr_color);
}

.shop_qr_design_name {
  color: var(--brand-anthrazit);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.shop_qr_design_option:hover .shop_qr_design_preview,
.shop_qr_design_option:focus-within .shop_qr_design_preview {
  border-color: var(--brand-wa);
  box-shadow: 0 0 0 0.16rem rgba(76, 175, 80, 0.18);
}

.shop_qr_design_option input:checked + .shop_qr_design_preview {
  border-color: var(--brand-wa);
  box-shadow: var(--iduwa-focus);
  transform: translateY(-1px);
}

.shop_cart_bar {
  margin-top: 1.35rem;
}

.shop_quantity_group {
  flex: 0 0 138px;
}

.shop_checkout_panel {
  background: #fff;
  border: 1px solid rgba(18, 25, 38, 0.12);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.shop_checkout_summary {
  position: sticky;
  top: 1.25rem;
}

.shop_checkout_item {
  display: flex;
  gap: 0.9rem;
  padding: 0.9rem;
  background: #f8f9fa;
  border: 1px solid rgba(18, 25, 38, 0.1);
  border-radius: 0.5rem;
}

.shop_checkout_item_image {
  width: 72px;
  height: 90px;
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0.35rem;
  overflow: hidden;
}

.shop_checkout_item_image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop_checkout_totals {
  color: #212529;
}

@media (max-width: 991.98px) {
  .iduwa-page-nav-band {
    display: none;
  }

  .shop_gallery {
    position: static;
  }

  .shop_checkout_summary {
    position: static;
  }

  .shop-footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }

  .shop-footer-logo {
    font-size: 1.35rem;
    line-height: 1;
  }

  .shop-footer-copy {
    display: block;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .shop-footer-links {
    row-gap: 0.25rem !important;
    font-size: 0.72rem;
    line-height: 1.2;
  }
}

@media (max-width: 575.98px) {
  .shop_size_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop_qr_design_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop_quantity_group {
    flex-basis: auto;
  }

  .shop-footer-links {
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
  }
}
