/*
 * Dosra Store - Home V2 Product Widgets (Tabbed) Slick UI
 * Scoped to `.product-widgets-section-v2.pw-v2-slick`
 */

.product-widgets-section-v2.pw-v2-slick {
  --pw-primary: var(--primary, #e55604);
  position: relative;
  padding: clamp(18px, 2vw, 28px) 0;
}

.product-widgets-section-v2.pw-v2-slick .section-header {
  margin-bottom: 18px !important;
}

.product-widgets-section-v2.pw-v2-slick .pw-title-v2 {
  font-family: var(--oswald, "Oswald", sans-serif);
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  letter-spacing: 0.4px;
  line-height: 1.05;
  color: #1b2735;
  margin: 0 0 8px;
  text-transform: none;
}

.product-widgets-section-v2.pw-v2-slick .pw-subtitle-v2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-wrapper {
  margin-bottom: 16px !important;
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-v2 {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.08);
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-v2 .nav-item {
  margin: 0;
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-v2 .nav-link {
  border: 0;
  background: transparent;
  color: #2b3b4f;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 8px 14px !important;
  transition: all .2s ease;
  white-space: nowrap;
  border-radius: 999px;
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-v2 .nav-link:hover {
  background: color-mix(in srgb, var(--pw-primary) 10%, #ffffff 90%);
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-v2 .nav-link.active {
  background: linear-gradient(105deg, var(--pw-primary), color-mix(in srgb, var(--pw-primary) 82%, #000000 18%));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--pw-primary) 35%, transparent 65%);
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.product-widgets-section-v2.pw-v2-slick .product-tabs-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pw-v2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid #dbe4ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 8px 22px rgba(15, 32, 58, 0.08);
  overflow: hidden;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.pw-v2-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pw-primary) 35%, #dbe4ef 65%);
  box-shadow: 0 12px 28px rgba(15, 32, 58, 0.14);
}

.pw-v2-card__media {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #ffffff 0%, #eff4fb 100%);
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid #e3ebf4;
}

.pw-v2-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
}

.pw-v2-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  transition: transform .3s ease;
}

.pw-v2-card:hover .pw-v2-card__thumb {
  transform: scale(1.04);
}

.pw-v2-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  flex: 1;
}

.pw-v2-card__title {
  margin: 0;
  font-family: var(--oswald, "Oswald", sans-serif);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
}

.pw-v2-card__title a {
  color: #1b2735;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-v2-card__price {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2f43;
  min-height: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-v2-card__price .pahla-dual-pricing {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  width: 100%;
}

.pw-v2-card__price .pahla-dual-pricing > .price {
  display: inline-flex !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100%;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
}

.pw-v2-card__price .pahla-dual-pricing > .pahla-bulk-range-loop {
  display: block;
  width: 100%;
  margin-top: 4px !important;
}

.pw-v2-card__price ins {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  background: transparent !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.pw-v2-card__price .amount {
  color: #1f2f43;
  line-height: 1;
  white-space: nowrap !important;
}

.pw-v2-card__price del {
  display: inline-flex;
  align-items: baseline;
  margin: 0;
  opacity: .85;
  white-space: nowrap !important;
}

.pw-v2-card__price del .amount {
  font-size: 0.92em;
}

.pw-v2-card__price .bulk-price-range-label,
.pw-v2-card__price .bulk-price-range-value {
  font-size: 0.85rem !important;
  line-height: 1.2;
}

.pw-v2-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 28px;
}

.pw-v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid #d0dbe8;
  background: #fff;
  color: #34485f;
  font-size: 10px;
  line-height: 1;
  padding: 5px 8px;
  font-weight: 700;
}

.pw-v2-chip--moq {
  border-color: color-mix(in srgb, var(--pw-primary) 45%, #d0dbe8 55%);
}

.pw-v2-chip--sample {
  border-color: color-mix(in srgb, var(--pw-primary) 50%, #d0dbe8 50%);
  color: #2f445d;
}

.pw-v2-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 34px)) 1fr;
  gap: 6px;
  align-items: center;
}

.pw-v2-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d2dbe7;
  background: #fff;
  color: #2a3d58;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s ease;
}

.pw-v2-icon-btn:hover {
  border-color: var(--pw-primary);
  color: var(--pw-primary);
}

.pw-v2-cta {
  height: 34px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(95deg, var(--pw-primary), color-mix(in srgb, var(--pw-primary) 78%, #000000 22%));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  padding: 0 10px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pw-v2-cta,
.pw-v2-cta:visited,
.pw-v2-cta:hover,
.pw-v2-cta:focus,
.pw-v2-cta:active {
  color: #fff !important;
  text-decoration: none;
}

.pw-v2-cta:hover,
.pw-v2-cta:focus {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 32, 58, 0.26);
}

@media (max-width: 991.98px) {
  .product-widgets-section-v2.pw-v2-slick .pw-title-v2 {
    font-size: clamp(1.75rem, 4.5vw, 2.2rem);
  }

  .pw-v2-card__title {
    font-size: 1.16rem;
  }
}

@media (max-width: 767.98px) {
  .product-widgets-section-v2.pw-v2-slick .product-tabs-v2 .nav-link {
    font-size: 10px;
    padding: 7px 11px !important;
  }

  .pw-v2-card {
    border-radius: 12px;
  }

  .pw-v2-card__body {
    padding: 9px;
    gap: 8px;
  }

  .pw-v2-card__actions {
    grid-template-columns: repeat(3, 32px) 1fr;
    gap: 6px;
  }

  .pw-v2-icon-btn,
  .pw-v2-cta {
    height: 32px;
  }
}
