/* ============================================================================
   NV PRODUCT WIDGETS - Nordic Precision Theme
   Lightweight Elementor widgets for WooCommerce product pages
   v1.1.0
   ============================================================================ */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Manrope:wght@400;500;700&family=Space+Grotesk:wght@700;800&display=swap');

/* ============================================================================
   PRODUCT GALLERY
   ============================================================================ */

.nv-pw-gallery {
  width: 100%;
}

.nv-pw-gallery--thumbs-left {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
}

.nv-pw-gallery--thumbs-left .nv-pw-gallery__thumbs {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.nv-pw-gallery__main {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFFFF;
}

.nv-pw-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nv-pw-gallery__track::-webkit-scrollbar {
  display: none;
}

.nv-pw-gallery__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.nv-pw-gallery__slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 14px;
}

/* --- Gallery dots — hard reset to prevent theme/Elementor button overrides --- */
.nv-pw-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

button.nv-pw-gallery__dot,
.nv-pw-gallery__dots .nv-pw-gallery__dot,
.nv-pw-gallery .nv-pw-gallery__dot,
.elementor-widget-nv-product-gallery .nv-pw-gallery__dot {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  max-width: 10px !important;
  max-height: 10px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #D4D4D0 !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  box-shadow: none !important;
  outline: none;
  transition: background 0.2s ease;
  display: inline-block !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-indent: -9999px;
  overflow: hidden;
}

button.nv-pw-gallery__dot.is-active,
.nv-pw-gallery__dots .nv-pw-gallery__dot.is-active,
.nv-pw-gallery .nv-pw-gallery__dot.is-active,
.elementor-widget-nv-product-gallery .nv-pw-gallery__dot.is-active {
  background: #111318 !important;
}

button.nv-pw-gallery__dot:hover,
.nv-pw-gallery__dots .nv-pw-gallery__dot:hover {
  background: #6a747f !important;
}

/* --- Gallery thumbnails — hard reset to prevent teal/theme overrides --- */
button.nv-pw-gallery__thumb,
.nv-pw-gallery__thumbs .nv-pw-gallery__thumb,
.nv-pw-gallery .nv-pw-gallery__thumb,
.elementor-widget-nv-product-gallery .nv-pw-gallery__thumb {
  flex: 0 0 auto;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border: 2px solid #E6E8EC !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  background: #FFFFFF !important;
  transition: border-color 0.2s ease;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
  line-height: 0 !important;
  font-size: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

button.nv-pw-gallery__thumb.is-active,
.nv-pw-gallery .nv-pw-gallery__thumb.is-active {
  border-color: #0f766e !important;
}

button.nv-pw-gallery__thumb:hover,
.nv-pw-gallery .nv-pw-gallery__thumb:hover {
  border-color: #0b5e58 !important;
}

button.nv-pw-gallery__thumb img,
.nv-pw-gallery__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.nv-pw-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nv-pw-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

/* ============================================================================
   PRODUCT TITLE
   ============================================================================ */

.nv-pw-product-title {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  color: #111318;
  margin: 6px 0 10px;
  word-break: break-word;
}

/* ============================================================================
   PRODUCT PRICE
   ============================================================================ */

.nv-pw-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 8px 0 14px;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.nv-pw-price ins {
  text-decoration: none;
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: #111318;
}

.nv-pw-price del {
  color: #6a747f;
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 700;
  text-decoration-thickness: 3px;
}

.nv-pw-price .amount {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
}

/* ============================================================================
   ADD TO CART
   ============================================================================ */

.nv-pw-add-to-cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: none;
  background: #0f766e !important;
  color: #FFFFFF !important;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 12px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nv-pw-add-to-cart .single_add_to_cart_button:hover {
  background: #0b5e58 !important;
}

.nv-pw-add-to-cart .single_add_to_cart_button:active {
  transform: scale(0.98);
}

.nv-pw-add-to-cart .variations {
  margin-bottom: 16px;
}

.nv-pw-add-to-cart .variations label {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #111318;
  display: block;
  margin-bottom: 8px;
}

.nv-pw-add-to-cart select {
  border-radius: 10px;
  border: 1px solid #E6E8EC;
  padding: 10px 12px;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 14px;
  color: #111318;
  background: #FFFFFF;
  width: 100%;
  margin-bottom: 12px;
}

.nv-pw-add-to-cart select:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.nv-pw-add-to-cart .quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.nv-pw-add-to-cart .quantity label {
  margin-bottom: 0;
  margin-right: 8px;
}

.nv-pw-add-to-cart .quantity input {
  border-radius: 10px;
  border: 1px solid #E6E8EC;
  padding: 8px 12px;
  width: 70px;
  font-family: 'Manrope', -apple-system, sans-serif;
  text-align: center;
}

.nv-pw-add-to-cart .quantity input:focus {
  outline: none;
  border-color: #0f766e;
}

/* ============================================================================
   FAQ ACCORDION
   ============================================================================ */

.nv-pw-faq {
  width: 100%;
}

.nv-pw-faq__title {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #111318;
  margin: 0 0 16px;
}

.nv-pw-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nv-pw-faq__item {
  border: 1px solid #E6E8EC;
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.nv-pw-faq__item[open] {
  box-shadow: 0 2px 8px rgba(17, 19, 24, 0.06);
}

.nv-pw-faq__question {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111318;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s ease;
}

.nv-pw-faq__question:hover {
  background: #F8F7F3;
}

.nv-pw-faq__question::-webkit-details-marker {
  display: none;
}

.nv-pw-faq__question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: #5F6874;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

details[open] .nv-pw-faq__question::after {
  content: '−';
  color: #0f766e;
}

.nv-pw-faq__answer {
  padding: 0 20px 16px;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #5F6874;
  background: #FFFFFF;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nv-pw-faq__answer a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nv-pw-faq__answer a:hover {
  color: #0b5e58;
  text-decoration: underline;
}

/* ============================================================================
   ELEMENTOR EDITOR PLACEHOLDER
   ============================================================================ */

.nv-pw-editor-placeholder {
  border: 2px dashed #E6E8EC;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  background: #FAFAF8;
}

.nv-pw-editor-placeholder__icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.5;
}

.nv-pw-editor-placeholder__title {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111318;
  margin: 0 0 4px;
}

.nv-pw-editor-placeholder__desc {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 13px;
  color: #5F6874;
  margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 680px) {
  .nv-pw-gallery--thumbs-left {
    display: block;
  }

  .nv-pw-gallery--thumbs-left .nv-pw-gallery__thumbs {
    flex-direction: row;
    order: 0;
    max-height: none;
  }

  /* CRITICAL: Hide thumbnails on mobile — show dots only */
  .nv-pw-gallery__thumbs {
    display: none !important;
  }

  .nv-pw-product-title {
    font-size: 26px;
  }

  .nv-pw-price {
    margin: 6px 0 12px;
  }

  .nv-pw-price ins {
    font-size: 28px;
  }

  .nv-pw-price del {
    font-size: 18px;
  }

  .nv-pw-add-to-cart .single_add_to_cart_button {
    min-height: 48px;
    font-size: 16px;
  }

  .nv-pw-faq__title {
    font-size: 24px;
  }

  .nv-pw-faq__question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .nv-pw-faq__answer {
    padding: 0 16px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nv-pw-gallery__dots {
    padding: 10px 0 2px;
    gap: 6px;
  }

  button.nv-pw-gallery__dot,
  .nv-pw-gallery__dots .nv-pw-gallery__dot,
  .elementor-widget-nv-product-gallery .nv-pw-gallery__dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
  }

  .nv-pw-product-title {
    font-size: 22px;
    margin: 4px 0 8px;
  }

  .nv-pw-price {
    margin: 4px 0 10px;
  }

  .nv-pw-price ins {
    font-size: 24px;
  }

  .nv-pw-price del {
    font-size: 16px;
  }

  .nv-pw-add-to-cart .single_add_to_cart_button {
    min-height: 44px;
    font-size: 15px;
  }

  .nv-pw-faq__question {
    padding: 12px 14px;
    font-size: 14px;
  }

  .nv-pw-faq__answer {
    padding: 0 14px 12px;
    font-size: 13px;
  }

  .nv-pw-faq__question::after {
    font-size: 18px;
    margin-left: 10px;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.nv-pw-add-to-cart {
  width: 100%;
}

/* Ensure all widgets respect container width */
.elementor-widget-nv-product-gallery,
.elementor-widget-nv-product-title,
.elementor-widget-nv-product-price,
.elementor-widget-nv-add-to-cart,
.elementor-widget-nv-faq {
  width: 100%;
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.nv-pw-gallery__dot:focus,
.nv-pw-gallery__thumb:focus,
.nv-pw-faq__question:focus,
.nv-pw-add-to-cart .single_add_to_cart_button:focus {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .nv-pw-gallery__dot,
  .nv-pw-gallery__thumb,
  .nv-pw-add-to-cart .single_add_to_cart_button,
  .nv-pw-faq__question,
  .nv-pw-faq__answer {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================================
   SHORT DESCRIPTION  (v1.3.0)
   ============================================================================ */

.nv-pw-short-desc {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #5F6874;
  margin: 0 0 16px;
}

.nv-pw-short-desc p {
  margin: 0 0 10px;
}

.nv-pw-short-desc ul,
.nv-pw-short-desc ol {
  padding-left: 20px;
  margin: 0 0 12px;
}

.nv-pw-short-desc li {
  margin-bottom: 4px;
}

.nv-pw-divider {
  border: none;
  border-top: 1px solid #E6E8EC;
  margin: 14px 0;
}

/* ============================================================================
   PRODUCT DESCRIPTION  (v1.3.0)
   ============================================================================ */

.nv-pw-desc {
  width: 100%;
}

.nv-pw-desc__title {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #111318;
  margin: 0 0 16px;
}

.nv-pw-desc__content {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #5F6874;
}

.nv-pw-desc__content p      { margin: 0 0 14px; }
.nv-pw-desc__content h2,
.nv-pw-desc__content h3,
.nv-pw-desc__content h4     { font-family: 'Sora', sans-serif; color: #111318; margin: 24px 0 10px; }
.nv-pw-desc__content ul,
.nv-pw-desc__content ol     { padding-left: 22px; margin: 0 0 14px; }
.nv-pw-desc__content li     { margin-bottom: 6px; }
.nv-pw-desc__content a      { color: #0f766e; text-decoration: underline; }
.nv-pw-desc__content a:hover { color: #0b5e58; }

/* WooCommerce tab mode */
.nv-pw-desc--tabs .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 2px solid #E6E8EC;
  list-style: none;
  display: flex;
  gap: 0;
}

.nv-pw-desc--tabs .woocommerce-tabs ul.tabs li {
  border: none;
  background: transparent;
}

.nv-pw-desc--tabs .woocommerce-tabs ul.tabs li a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #5F6874;
  padding: 12px 20px;
  display: block;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.nv-pw-desc--tabs .woocommerce-tabs ul.tabs li.active a,
.nv-pw-desc--tabs .woocommerce-tabs ul.tabs li a:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.nv-pw-desc--tabs .woocommerce-tabs .panel {
  font-family: 'Manrope', sans-serif;
  color: #5F6874;
  line-height: 1.75;
}

/* ============================================================================
   RELATED PRODUCTS  (v1.3.0)
   ============================================================================ */

.nv-pw-related {
  width: 100%;
}

.nv-pw-related__heading {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #111318;
  margin: 0 0 20px;
}

.nv-pw-related__grid {
  display: grid;
  grid-template-columns: repeat(var(--nv-rel-cols, 4), 1fr);
  gap: 20px;
}

.nv-pw-related__card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E6E8EC;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.nv-pw-related__card:hover {
  box-shadow: 0 8px 24px rgba(17, 19, 24, 0.10);
  transform: translateY(-2px);
}

.nv-pw-related__img-link {
  display: block;
  overflow: hidden;
}

.nv-pw-related__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nv-pw-related__card:hover .nv-pw-related__img {
  transform: scale(1.04);
}

.nv-pw-related__info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nv-pw-related__name {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111318;
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
  display: block;
}

.nv-pw-related__name:hover {
  color: #0f766e;
}

.nv-pw-related__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111318;
  margin-bottom: 12px;
}

.nv-pw-related__price del {
  font-size: 13px;
  color: #6a747f;
  font-weight: 500;
}

.nv-pw-related__btn {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 9px 16px;
  background: #111318;
  color: #FFFFFF;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nv-pw-related__btn:hover {
  background: #0f766e;
  color: #FFFFFF;
}

/* ============================================================================
   UPSELLS  (v1.3.0)
   ============================================================================ */

.nv-pw-upsells {
  width: 100%;
}

.nv-pw-upsells__heading {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #111318;
  margin: 0 0 20px;
}

.nv-pw-upsells__grid {
  display: grid;
  grid-template-columns: repeat(var(--nv-ups-cols, 3), 1fr);
  gap: 20px;
}

.nv-pw-upsells__card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E6E8EC;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nv-pw-upsells__card:hover {
  box-shadow: 0 8px 24px rgba(17, 19, 24, 0.10);
  transform: translateY(-2px);
}

.nv-pw-upsells__img-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.nv-pw-upsells__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nv-pw-upsells__card:hover .nv-pw-upsells__img {
  transform: scale(1.04);
}

.nv-pw-upsells__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EF4444;
  color: #FFFFFF;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 9999px;
}

.nv-pw-upsells__info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.nv-pw-upsells__name {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111318;
  text-decoration: none;
  line-height: 1.4;
  display: block;
}

.nv-pw-upsells__name:hover {
  color: #0f766e;
}

.nv-pw-upsells__excerpt {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: #5F6874;
  line-height: 1.5;
  margin: 0;
}

.nv-pw-upsells__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111318;
  margin: 4px 0 8px;
}

.nv-pw-upsells__price del {
  font-size: 13px;
  color: #6a747f;
  font-weight: 500;
}

.nv-pw-upsells__btn {
  display: block;
  text-align: center;
  padding: 10px 18px;
  background: #0f766e;
  color: #FFFFFF;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
  transition: background 0.2s ease;
}

.nv-pw-upsells__btn:hover {
  background: #0b5e58;
  color: #FFFFFF;
}

/* ============================================================================
   WIDGET UTILITY CLASSES UPDATE  (v1.3.0)
   ============================================================================ */

.elementor-widget-nv-short-description,
.elementor-widget-nv-product-description,
.elementor-widget-nv-related-products,
.elementor-widget-nv-upsells {
  width: 100%;
}

/* ============================================================================
   RESPONSIVE — RELATED + UPSELLS  (v1.3.0)
   ============================================================================ */

@media (max-width: 900px) {
  .nv-pw-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nv-pw-upsells__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .nv-pw-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .nv-pw-upsells__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .nv-pw-related__img {
    height: 160px;
  }
  .nv-pw-upsells__img {
    height: 180px;
  }
  .nv-pw-related__heading,
  .nv-pw-upsells__heading {
    font-size: 20px;
  }
}

/* ============================================================================
   BUNDLE SELECTOR  (v1.4.0)
   ============================================================================ */

.nv-pw-bundle {
  width: 100%;
}

/* ── Section header ── */
.nv-pw-bundle__header {
  margin: 0 0 20px;
}

.nv-pw-bundle__title {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #111318;
  margin: 0 0 6px;
  line-height: 1.15;
}

.nv-pw-bundle__subtitle {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  color: #5F6874;
  margin: 0;
}

/* ── Grid layouts ── */
.nv-pw-bundle--layout-row .nv-pw-bundle__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.nv-pw-bundle--layout-column .nv-pw-bundle__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Card base ── */
.nv-pw-bundle__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 2px solid #E6E8EC;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.nv-pw-bundle__card:hover {
  border-color: #b2d8d4;
  box-shadow: 0 6px 20px rgba(17, 19, 24, 0.08);
  transform: translateY(-2px);
}

/* Highlighted state (selected or default) */
.nv-pw-bundle__card.is-selected,
.nv-pw-bundle__card.is-default-highlight {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

/* ── Badge ── */
.nv-pw-bundle__badge {
  display: inline-block;
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1.3;
  z-index: 2;
}

.nv-pw-bundle__badge--teal {
  background: #0f766e;
  color: #FFFFFF;
}

.nv-pw-bundle__badge--amber {
  background: #F59E0B;
  color: #111318;
}

.nv-pw-bundle__badge--dark {
  background: #111318;
  color: #F8F7F3;
}

/* ── Card body ── */
.nv-pw-bundle__body {
  flex: 1;
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nv-pw-bundle__name {
  font-family: 'Sora', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111318;
  margin: 0;
  line-height: 1.2;
  /* Give space below badge if present */
  padding-right: 70px;
}

/* When no badge, no need for padding */
.nv-pw-bundle__card:not(:has(.nv-pw-bundle__badge)) .nv-pw-bundle__name {
  padding-right: 0;
}

.nv-pw-bundle__subtitle-text {
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 13px;
  color: #5F6874;
  margin: 0;
  line-height: 1.5;
}

/* ── Items list ── */
.nv-pw-bundle__items {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nv-pw-bundle__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 14px;
  color: #3c4349;
  line-height: 1.45;
}

.nv-pw-bundle__check {
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  flex-shrink: 0;
  line-height: 1.45;
}

/* ── Pricing ── */
.nv-pw-bundle__pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.nv-pw-bundle__price {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: #111318;
  line-height: 1;
}

.nv-pw-bundle__orig-price {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  line-height: 1;
}

/* ── Savings tag ── */
.nv-pw-bundle__savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #15803D;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 9999px;
  padding: 3px 10px;
  width: fit-content;
}

.nv-pw-bundle__savings-icon {
  font-size: 12px;
  line-height: 1;
}

/* ── Card footer (CTA) ── */
.nv-pw-bundle__footer {
  padding: 0 16px 16px;
}

.nv-pw-bundle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  background: #0f766e;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.3;
}

.nv-pw-bundle__btn:hover {
  background: #0b5e58;
}

.nv-pw-bundle__btn:active {
  transform: scale(0.98);
}

/* Loading state */
.nv-pw-bundle__btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Added state */
.nv-pw-bundle__btn.is-added {
  background: #16A34A;
}

/* Selected card: teal button */
.nv-pw-bundle__card.is-selected .nv-pw-bundle__btn,
.nv-pw-bundle__card.is-default-highlight .nv-pw-bundle__btn {
  background: #0f766e;
}

/* Un-selected card: dark button */
.nv-pw-bundle__card:not(.is-selected):not(.is-default-highlight) .nv-pw-bundle__btn {
  background: #111318;
}

.nv-pw-bundle__card:not(.is-selected):not(.is-default-highlight) .nv-pw-bundle__btn:hover {
  background: #0f766e;
}

/* ── Column layout: side-by-side pricing ── */
.nv-pw-bundle--layout-column .nv-pw-bundle__card {
  flex-direction: row;
  align-items: center;
}

.nv-pw-bundle--layout-column .nv-pw-bundle__body {
  flex: 1;
  padding: 16px 16px 16px 20px;
}

.nv-pw-bundle--layout-column .nv-pw-bundle__footer {
  padding: 16px 20px 16px 0;
  flex-shrink: 0;
  width: 200px;
  display: flex;
  align-items: center;
}

.nv-pw-bundle--layout-column .nv-pw-bundle__btn {
  white-space: nowrap;
}

/* ── Elementor widget class ── */
.elementor-widget-nv-bundle-selector {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .nv-pw-bundle--layout-row .nv-pw-bundle__grid {
    grid-template-columns: 1fr;
  }

  .nv-pw-bundle--layout-column .nv-pw-bundle__card {
    flex-direction: column;
  }

  .nv-pw-bundle--layout-column .nv-pw-bundle__footer {
    width: 100%;
    padding: 0 16px 16px;
  }

  .nv-pw-bundle__name {
    font-size: 17px;
    padding-right: 60px;
  }

  .nv-pw-bundle__price {
    font-size: 22px;
  }
}

/* ============================================================================
   WIDGET UTILITY CLASSES UPDATE  (v1.4.0)
   ============================================================================ */

.elementor-widget-nv-bundle-selector {
  width: 100%;
}
