/**
 * NM-D Theme — product page (single product)
 * Author: Paweł Nosko / Design Cart
 */

body#product,
body.page-product {
  background: var(--nmd-bg, #f0f1f8);
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  color: var(--nmd-dark, #1a1c2e);
}

body#product #content-wrapper,
body.page-product #content-wrapper,
body#product #main,
body.page-product #main {
  background: transparent;
}

body#product #content,
body.page-product #content {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* ── Top buy block ─────────────────────────────────────────── */
body#product .product__container,
body.page-product .product__container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: start;
  margin: 24px 0 1.75rem;
}

body#product .product__left,
body#product .product__right,
body.page-product .product__left,
body.page-product .product__right {
  min-width: 0;
}

/* Gallery — one flat surface, no nested panels */
body#product .product__images,
body.page-product .product__images {
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: none;
}

body#product .product-cover,
body#product .product__carousel,
body#product .carousel-inner,
body#product .carousel-item,
body#product .product__carousel picture,
body.page-product .product-cover,
body.page-product .product__carousel,
body.page-product .carousel-inner,
body.page-product .carousel-item,
body.page-product .product__carousel picture {
  background: #fff !important;
  border-radius: 0;
  box-shadow: none;
}

body#product .product__carousel,
body.page-product .product__carousel {
  position: relative;
  background: #fff !important;
  border-radius: 12px;
  overflow: hidden;
}

body#product .product__carousel .carousel-item,
body.page-product .product__carousel .carousel-item {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: #fff !important;
}

body#product .product__carousel .carousel-item picture,
body.page-product .product__carousel .carousel-item picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #fff !important;
}

body#product .js-qv-product-cover,
body#product .product__carousel .carousel-item img,
body#product .product__carousel .carousel-item .img-fluid,
body.page-product .js-qv-product-cover,
body.page-product .product__carousel .carousel-item img,
body.page-product .product__carousel .carousel-item .img-fluid {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  mix-blend-mode: normal;
}

body#product .product__zoom,
body.page-product .product__zoom {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(26, 28, 46, 0.1) !important;
  color: var(--nmd-purple, #5b3fc8) !important;
  box-shadow: 0 6px 16px rgba(26, 28, 46, 0.1);
}

body#product .product__zoom:hover,
body.page-product .product__zoom:hover {
  background: var(--nmd-purple, #5b3fc8) !important;
  color: #fff !important;
  border-color: transparent !important;
}

body#product .product-flags,
body.page-product .product-flags {
  z-index: 4;
  gap: 0.35rem;
  padding: 0.75rem;
}

body#product .product-flags .badge,
body.page-product .product-flags .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px !important;
  border: none !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  color: #fff !important;
  background: var(--nmd-purple, #5b3fc8) !important;
  box-shadow: 0 4px 12px rgba(26, 28, 46, 0.18);
}

body#product .product-flags .badge.discount,
body.page-product .product-flags .badge.discount {
  background: #e5484d !important;
  color: #fff !important;
}

body#product .product-flags .badge.new,
body.page-product .product-flags .badge.new {
  background: var(--nmd-cyan, #00c8e8) !important;
  color: #fff !important;
}

body#product .product__thumbnails,
body.page-product .product__thumbnails {
  margin-top: 0.85rem;
}

body#product .product__thumbnails-list,
body.page-product .product__thumbnails-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#product .product__thumbnail,
body.page-product .product__thumbnail {
  width: 4rem;
  height: 4rem;
  padding: 0;
  border: 1px solid rgba(26, 28, 46, 0.1);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

body#product .product__thumbnail.active,
body#product .product__thumbnail:hover,
body.page-product .product__thumbnail.active,
body.page-product .product__thumbnail:hover {
  border-color: var(--nmd-purple, #5b3fc8);
  box-shadow: none;
}

body#product .product__thumbnail-image,
body.page-product .product__thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.3rem;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Buy panel */
body#product .product__right,
body.page-product .product__right {
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 16px;
  padding: 1.5rem 1.6rem 1.65rem;
  box-shadow: 0 8px 28px rgba(26, 28, 46, 0.05);
}

body#product .product__name,
body.page-product .product__name {
  margin: 0 0 0.55rem !important;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--nmd-dark, #1a1c2e);
}

body#product .product__manufacturer,
body.page-product .product__manufacturer {
  margin: 0 0 0.85rem;
}

body#product .product__manufacturer a,
body.page-product .product__manufacturer a {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(91, 63, 200, 0.1);
  color: var(--nmd-purple, #5b3fc8);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

body#product .product__manufacturer a:hover,
body.page-product .product__manufacturer a:hover {
  background: rgba(91, 63, 200, 0.16);
  color: var(--nmd-purple-dark, #3d2990);
}

body#product .nmd-product-meta,
body.page-product .nmd-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

body#product .nmd-product-meta__chip,
body.page-product .nmd-product-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: var(--nmd-bg, #f0f1f8);
  border: 1px solid rgba(26, 28, 46, 0.08);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  color: var(--nmd-muted, #6b6d8a);
}

body#product .nmd-product-meta__chip strong,
body.page-product .nmd-product-meta__chip strong {
  color: var(--nmd-dark, #1a1c2e);
  font-weight: 700;
}

/* Prices */
body#product .product__prices,
body.page-product .product__prices {
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(91, 63, 200, 0.06), rgba(0, 200, 232, 0.06));
  border: 1px solid rgba(91, 63, 200, 0.12);
}

body#product .product__price,
body.page-product .product__price {
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--nmd-purple, #5b3fc8);
}

body#product .product__regular-price,
body.page-product .product__regular-price {
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.9rem;
  color: var(--nmd-muted, #6b6d8a);
  text-decoration: line-through;
}

body#product .product__tax-infos,
body#product .product__tax-label,
body.page-product .product__tax-infos,
body.page-product .product__tax-label {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--nmd-muted, #6b6d8a);
}

body#product .product__description-short,
body.page-product .product__description-short {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--nmd-muted, #6b6d8a);
}

body#product .product__description-short p,
body.page-product .product__description-short p {
  margin: 0;
}

/* Actions row */
body#product .product__actions,
body.page-product .product__actions {
  margin-top: 0.25rem;
}

body#product .product__actions-qty-add,
body.page-product .product__actions-qty-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

body#product .product__quantity .quantity-button__group,
body#product .quantity-button__group,
body.page-product .product__quantity .quantity-button__group,
body.page-product .quantity-button__group {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(26, 28, 46, 0.12);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  height: 3rem;
}

body#product .quantity-button__group .btn,
body.page-product .quantity-button__group .btn {
  width: 2.6rem;
  height: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nmd-dark, #1a1c2e) !important;
  box-shadow: none !important;
}

body#product .quantity-button__group .btn:hover,
body.page-product .quantity-button__group .btn:hover {
  background: rgba(91, 63, 200, 0.08) !important;
  color: var(--nmd-purple, #5b3fc8) !important;
}

body#product .quantity-button__group input,
body#product .js-quantity-wanted,
body.page-product .quantity-button__group input,
body.page-product .js-quantity-wanted {
  width: 3rem;
  min-width: 3rem;
  height: 100%;
  border: 0 !important;
  border-left: 1px solid rgba(26, 28, 46, 0.08) !important;
  border-right: 1px solid rgba(26, 28, 46, 0.08) !important;
  border-radius: 0 !important;
  text-align: center;
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nmd-dark, #1a1c2e);
  background: transparent !important;
  box-shadow: none !important;
}

body#product .product__add-to-cart,
body.page-product .product__add-to-cart {
  flex: 1 1 auto;
  min-width: 12rem;
}

body#product .product__add-to-cart-button,
body.page-product .product__add-to-cart-button {
  width: 100%;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.35rem;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #5b3fc8, #00c8e8) !important;
  color: #fff !important;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(91, 63, 200, 0.32);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

body#product .product__add-to-cart-button:hover,
body.page-product .product__add-to-cart-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(91, 63, 200, 0.38);
  color: #fff !important;
}

body#product .product__add-to-cart-button:disabled,
body.page-product .product__add-to-cart-button:disabled {
  opacity: 0.55;
  transform: none;
  filter: none;
  box-shadow: none;
}

body#product .wishlist-button,
body.page-product .wishlist-button {
  flex-shrink: 0;
}

body#product .wishlist-button button,
body#product .wishlist-button .wishlist-button-add,
body.page-product .wishlist-button button,
body.page-product .wishlist-button .wishlist-button-add {
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(26, 28, 46, 0.12) !important;
  background: #fff !important;
  color: var(--nmd-purple, #5b3fc8) !important;
  box-shadow: none !important;
}

body#product .wishlist-button button:hover,
body.page-product .wishlist-button button:hover {
  border-color: var(--nmd-purple, #5b3fc8) !important;
  background: rgba(91, 63, 200, 0.08) !important;
}

body#product .product__availability,
body.page-product .product__availability {
  margin-bottom: 0.85rem;
}

body#product .product__availability-status,
body.page-product .product__availability-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 160, 107, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
}

body#product .product__additional-info,
body.page-product .product__additional-info {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 28, 46, 0.08);
}

body#product .ps-sharebuttons,
body.page-product .ps-sharebuttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body#product .ps-sharebuttons__list,
body.page-product .ps-sharebuttons__list {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body#product .ps-sharebuttons__list a,
body.page-product .ps-sharebuttons__list a {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nmd-bg, #f0f1f8);
  border: 1px solid rgba(26, 28, 46, 0.08);
  color: var(--nmd-muted, #6b6d8a);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body#product .ps-sharebuttons__list a:hover,
body.page-product .ps-sharebuttons__list a:hover {
  color: var(--nmd-purple, #5b3fc8);
  border-color: rgba(91, 63, 200, 0.35);
}

/* ── Bottom: accordion + reassurance ───────────────────────── */
body#product .product__bottom,
body.page-product .product__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 1.5rem;
  align-items: start;
  margin: 0 0 2rem;
}

body#product .product__accordion,
body.page-product .product__accordion {
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 28, 46, 0.05);
}

body#product .product__accordion .accordion-item,
body.page-product .product__accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid rgba(26, 28, 46, 0.07);
  background: transparent;
}

body#product .product__accordion .accordion-item:last-child,
body.page-product .product__accordion .accordion-item:last-child {
  border-bottom: 0;
}

body#product .product__accordion .accordion-button,
body.page-product .product__accordion .accordion-button {
  padding: 1.05rem 1.25rem;
  font-family: var(--nmd-font-sans, 'DM Sans', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--nmd-dark, #1a1c2e);
  background: #fff;
  box-shadow: none !important;
}

body#product .product__accordion .accordion-button:not(.collapsed),
body.page-product .product__accordion .accordion-button:not(.collapsed) {
  color: var(--nmd-purple, #5b3fc8);
  background: rgba(91, 63, 200, 0.04);
}

body#product .product__accordion .accordion-button::after,
body.page-product .product__accordion .accordion-button::after {
  filter: none;
}

body#product .product__accordion .accordion-body,
body.page-product .product__accordion .accordion-body {
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--nmd-muted, #6b6d8a);
}

body#product .product__description,
body.page-product .product__description {
  color: var(--nmd-dark, #1a1c2e);
}

body#product .product__description p,
body.page-product .product__description p {
  margin-bottom: 0.85rem;
}

body#product .product__description ul,
body#product .product__description ol,
body.page-product .product__description ul,
body.page-product .product__description ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
}

body#product .product__description li,
body.page-product .product__description li {
  margin-bottom: 0.4rem;
  padding-left: 0.2rem;
}

body#product .product__description li::marker,
body.page-product .product__description li::marker {
  color: var(--nmd-purple, #5b3fc8);
}

/* Product details / attributes list (Hummingbird) */
body#product .product-details,
body#product .js-product-details,
body.page-product .product-details,
body.page-product .js-product-details {
  margin-top: 0.35rem;
}

body#product .product-details dl,
body#product .js-product-details dl,
body.page-product .product-details dl,
body.page-product .js-product-details dl {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  margin: 0;
}

body#product .product-details dt,
body#product .js-product-details dt,
body.page-product .product-details dt,
body.page-product .js-product-details dt {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(26, 28, 46, 0.07);
  background: rgba(91, 63, 200, 0.04);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--nmd-dark, #1a1c2e);
}

body#product .product-details dd,
body#product .js-product-details dd,
body.page-product .product-details dd,
body.page-product .js-product-details dd {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(26, 28, 46, 0.07);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  color: var(--nmd-muted, #6b6d8a);
}

body#product .js-product-details .product-features,
body#product .product-features,
body.page-product .js-product-details .product-features,
body.page-product .product-features {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

body#product .product-features td,
body#product .product-features th,
body.page-product .product-features td,
body.page-product .product-features th {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(26, 28, 46, 0.07);
  font-size: 0.88rem;
  vertical-align: top;
}

body#product .product-features tr:last-child td,
body.page-product .product-features tr:last-child td {
  border-bottom: 0;
}

body#product .product-features .name,
body.page-product .product-features .name {
  width: 42%;
  font-weight: 700;
  color: var(--nmd-dark, #1a1c2e);
  background: rgba(91, 63, 200, 0.04);
}

body#product .product-features .value,
body.page-product .product-features .value {
  color: var(--nmd-muted, #6b6d8a);
  font-family: var(--nmd-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.82rem;
}

/* Reassurance */
body#product .product__bottom-right,
body.page-product .product__bottom-right {
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 8px 28px rgba(26, 28, 46, 0.05);
}

body#product .blockreassurance,
body#product .blockreassurance--product,
body.page-product .blockreassurance,
body.page-product .blockreassurance--product {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
}

body#product .blockreassurance .item,
body#product .blockreassurance li,
body.page-product .blockreassurance .item,
body.page-product .blockreassurance li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--nmd-bg, #f0f1f8);
  border: 1px solid rgba(26, 28, 46, 0.05);
}

body#product .blockreassurance img,
body.page-product .blockreassurance img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

body#product .blockreassurance .block-title,
body#product .blockreassurance p,
body.page-product .blockreassurance .block-title,
body.page-product .blockreassurance p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nmd-dark, #1a1c2e);
  line-height: 1.35;
}

/* Accessories */
body#product .product-accessories,
body.page-product .product-accessories {
  margin-top: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(26, 28, 46, 0.08);
  border-radius: 16px;
}

body#product .product-accessories .h3,
body.page-product .product-accessories .h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  body#product .product__container,
  body#product .product__bottom,
  body.page-product .product__container,
  body.page-product .product__bottom {
    grid-template-columns: 1fr;
  }

  body#product .product__right,
  body.page-product .product__right {
    padding: 1.25rem;
  }
}

@media (max-width: 575px) {
  body#product .product__actions-qty-add,
  body.page-product .product__actions-qty-add {
    flex-direction: column;
    align-items: stretch;
  }

  body#product .product__add-to-cart,
  body.page-product .product__add-to-cart {
    min-width: 0;
    width: 100%;
  }

  body#product .wishlist-button,
  body.page-product .wishlist-button {
    align-self: flex-start;
  }
}
