/* =========================================
   DSCA PREMIUM CLUB COLLECTION
   COMPLETE CSS - SALLA
========================================= */

#dsca-products {
  --dsca-primary:
    var(--color-primary,
    var(--primary-color, #c8a35e));

  --dsca-text:
    var(--color-text, #191919);

  --dsca-muted: #858585;
  --dsca-white: #ffffff;
  --dsca-soft: #f4f4f4;
  --dsca-border: rgba(0,0,0,.075);
  --dsca-shadow:
    0 14px 38px rgba(0,0,0,.065);

  width: min(1320px, 94%);
  margin: 45px auto 60px;
  direction: rtl;
  font-family: inherit;
  color: var(--dsca-text);
  isolation: isolate;
}

#dsca-products *,
#dsca-products *::before,
#dsca-products *::after {
  box-sizing: border-box;
}

/* Main heading */

#dsca-products .dsca-heading {
  text-align: center;
  margin-bottom: 27px;
}

#dsca-products .dsca-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--dsca-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
}

#dsca-products .dsca-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.45;
  font-weight: 900;
  color: var(--dsca-text);
}

#dsca-products .dsca-heading p {
  margin: 7px 0 15px;
  color: var(--dsca-muted);
  font-size: 13px;
}

#dsca-products .dsca-heading-line {
  width: 75px;
  height: 3px;
  margin: auto;
  border-radius: 20px;
  background: var(--dsca-primary);
}

/* Navigation tabs */

#dsca-products .dsca-tabs-wrap {
  width: 100%;
  margin-bottom: 30px;
}

#dsca-products .dsca-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--dsca-border);
  border-radius: 999px;
  background: var(--dsca-soft);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#dsca-products .dsca-tabs::-webkit-scrollbar {
  display: none;
}

#dsca-products .dsca-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 45px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dsca-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    color .25s ease;
}

#dsca-products .dsca-tab:hover:not(.active) {
  background: rgba(0,0,0,.055);
  transform: translateY(-1px);
}

#dsca-products .dsca-tab.active {
  background: var(--dsca-primary);
  color: #fff;
  box-shadow: 0 5px 16px rgba(0,0,0,.1);
}

#dsca-products .dsca-tab:focus-visible {
  outline: 2px solid var(--dsca-primary);
  outline-offset: 3px;
}

/* Products heading */

#dsca-products .dsca-content {
  width: 100%;
}

#dsca-products .dsca-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
  padding: 0 3px 13px;
  border-bottom: 1px solid var(--dsca-border);
}

#dsca-products .dsca-overline {
  display: block;
  margin-bottom: 5px;
  color: var(--dsca-muted);
  font-size: 11px;
  font-weight: 500;
}

#dsca-products .dsca-current {
  margin: 0;
  font-family: inherit;
  font-size: 21px;
  font-weight: 850;
  color: var(--dsca-text);
}

#dsca-products .dsca-accent-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dsca-primary);
  box-shadow: 0 0 0 5px rgba(0,0,0,.045);
}

/* Native Salla product list */

#dsca-products .dsca-grid {
  display: block !important;
  width: 100%;
  min-height: 120px;
}

#dsca-products .dsca-native-products {
  display: block;
  width: 100%;
  min-height: 100px;
}

#dsca-products .s-products-list-wrapper,
#dsca-products .dsca-native-products > .grid,
#dsca-products .dsca-native-products > div.grid {
  display: grid !important;
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) !important;
  gap: 23px !important;
  width: 100%;
}

/* Product elements */

#dsca-products custom-salla-product-card,
#dsca-products salla-product-card {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
}

/* Premium card */

#dsca-products .product-block {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 13px;
  background: var(--dsca-white);
  border-radius: 26px;
  border: 1px solid rgba(0,0,0,.045);
  box-shadow: var(--dsca-shadow);
  overflow: hidden;
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;
}

#dsca-products .product-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 19px 48px rgba(0,0,0,.1);
  border-color: var(--dsca-primary);
}

/* Product image */

#dsca-products .product-block__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 21px;
  background: #f7f7f7;
}

#dsca-products .product-block__thumb .thumb-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
}

#dsca-products .product-block__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}

#dsca-products .product-block:hover
.product-block__thumb img {
  transform: scale(1.035);
}

/* Native promotional badge */

#dsca-products .product-block__thumb .badge,
#dsca-products .product-block__thumb .badge--ribbon {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 4;
  max-width: calc(100% - 65px);
  padding: 8px 12px !important;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 999px !important;
  background: rgba(255,255,255,.92) !important;
  color: #222 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.5;
  box-shadow: 0 5px 15px rgba(0,0,0,.07);
  backdrop-filter: blur(10px);
}

/* Circular view link */

#dsca-products .dsca-card-view {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 5px 16px rgba(0,0,0,.09);
  transition: transform .25s ease;
}

#dsca-products .dsca-card-view:hover {
  transform: rotate(45deg);
}

/* Product details */

#dsca-products .product-block__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 1px 6px 6px !important;
}

#dsca-products .product-title {
  display: block;
  padding: 0 !important;
  text-decoration: none !important;
}

#dsca-products .product-block__info h3,
#dsca-products .product-title h3,
#dsca-products .product-title .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 9px !important;
  color: #171717 !important;
  font-family: inherit;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
  letter-spacing: -.15px;
}

/* Subtitle when supplied by store */

#dsca-products .product-subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 6px !important;
  color: #929292 !important;
  font-size: 11px !important;
  line-height: 1.6;
}

/* Category and ratings */

#dsca-products .product-category-name {
  display: none !important;
}

#dsca-products .rating-wrapper {
  margin: 5px 0;
}

/* Native price styling */

#dsca-products .product-block__info
:is(
  .product-price,
  .product-block__price,
  .sale-price,
  .starting-price,
  .price-wrapper
) {
  font-weight: 850 !important;
}

/* Price pill where native markup allows */

#dsca-products .product-block__info
:is(
  .product-price,
  .product-block__price,
  .price-wrapper
) {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #171717;
  font-size: 14px;
  line-height: 1.5;
}

/* Product CTA */

#dsca-products .dsca-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  margin-top: auto;
  padding: 8px 10px 8px 15px;
  border: none;
  border-radius: 999px;
  background: #141414;
  color: #fff !important;
  text-decoration: none !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background .25s ease,
    transform .25s ease;
}

#dsca-products .dsca-card-cta:hover {
  background: var(--dsca-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

#dsca-products .dsca-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

/* Native purchase actions remain functional */

#dsca-products .product-block__info button,
#dsca-products .product-block__info salla-add-product-button {
  font-family: inherit;
}

/* Bottom category CTA */

#dsca-products .dsca-bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

#dsca-products .dsca-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 49px;
  margin: 0;
  padding: 12px 28px;
  border: 1.5px solid var(--dsca-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--dsca-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

#dsca-products .dsca-more:hover {
  background: var(--dsca-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Tablet */

@media (max-width: 1024px) {
  #dsca-products .dsca-tabs {
    justify-content: flex-start;
  }

  #dsca-products .s-products-list-wrapper,
  #dsca-products .dsca-native-products > .grid,
  #dsca-products .dsca-native-products > div.grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }

  #dsca-products .product-block {
    border-radius: 23px;
  }
}

/* Mobile */

@media (max-width: 650px) {
  #dsca-products {
    width: 94%;
    margin: 27px auto 38px;
  }

  #dsca-products .dsca-heading {
    margin-bottom: 20px;
  }

  #dsca-products .dsca-heading h2 {
    font-size: 25px;
  }

  #dsca-products .dsca-heading p {
    font-size: 12px;
  }

  #dsca-products .dsca-tabs-wrap {
    margin-bottom: 22px;
  }

  #dsca-products .dsca-tabs {
    justify-content: flex-start;
    gap: 5px;
    padding: 7px;
    border-radius: 18px;
  }

  #dsca-products .dsca-tab {
    min-height: 40px;
    padding: 10px 15px;
    font-size: 12px;
  }

  #dsca-products .dsca-current {
    font-size: 17px;
  }

  #dsca-products .s-products-list-wrapper,
  #dsca-products .dsca-native-products > .grid,
  #dsca-products .dsca-native-products > div.grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
  }

  #dsca-products .product-block {
    padding: 9px;
    border-radius: 19px;
  }

  #dsca-products .product-block__thumb {
    border-radius: 14px;
    margin-bottom: 11px;
  }

  #dsca-products .product-block__thumb .badge,
  #dsca-products .product-block__thumb .badge--ribbon {
    top: 8px !important;
    right: 8px !important;
    padding: 5px 8px !important;
    font-size: 9px !important;
    max-width: calc(100% - 51px);
  }

  #dsca-products .dsca-card-view {
    top: 8px;
    left: 8px;
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  #dsca-products .product-block__info {
    padding: 0 3px 5px !important;
  }

  #dsca-products .product-block__info h3,
  #dsca-products .product-title h3,
  #dsca-products .product-title .title {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  #dsca-products .product-subtitle {
    font-size: 10px !important;
  }

  #dsca-products .product-block__info
  :is(
    .product-price,
    .product-block__price,
    .price-wrapper
  ) {
    font-size: 12px;
    padding: 6px 9px;
  }

  #dsca-products .dsca-card-cta {
    min-height: 40px;
    padding: 6px 8px 6px 11px;
    font-size: 11px;
  }

  #dsca-products .dsca-cta-arrow {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  #dsca-products .dsca-bottom-action {
    margin-top: 24px;
  }

  #dsca-products .dsca-more {
    width: 100%;
    max-width: 320px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  #dsca-products *,
  #dsca-products *::before,
  #dsca-products *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}



/* =====================================
   DSCA PREMIUM CARD - FIXES V2
===================================== */

/* Card */
#dsca-products .product-block {
  padding: 12px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.055) !important;
  border: 1px solid rgba(0,0,0,.045) !important;
}

/* Image */
#dsca-products .product-block__thumb {
  margin-bottom: 13px !important;
  border-radius: 19px !important;
  background: #f4f4f4 !important;
}

#dsca-products .product-block__thumb img {
  object-fit: contain !important;
}

/* Hide duplicate custom icons/buttons */
#dsca-products .dsca-card-view,
#dsca-products .dsca-card-cta {
  display: none !important;
}

/* Product badge */
#dsca-products .product-block__thumb .badge {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  padding: 7px 11px !important;
  max-width: 75%;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  background: rgba(255,255,255,.94) !important;
  color: #222 !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.05) !important;
}

/* Details */
#dsca-products .product-block__info {
  padding: 3px 6px 8px !important;
  gap: 0 !important;
}

/* Product title */
#dsca-products .product-block__info h3,
#dsca-products .product-title h3,
#dsca-products .product-title .title {
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.65 !important;
  margin: 3px 0 10px !important;
  letter-spacing: 0 !important;
  text-align: right !important;
}

/* Subtitle */
#dsca-products .product-subtitle {
  font-size: 11px !important;
  color: #999 !important;
  margin-bottom: 5px !important;
}

/* Reset broken price container styling */
#dsca-products .product-block__info
:is(.price-wrapper, .product-price, .product-block__price) {
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 1.65 !important;
}

/* Price color */
#dsca-products .product-block__info
:is(.sale-price, .special-price, .price-after-discount) {
  font-weight: 850 !important;
}

/* Native add-to-cart button */
#dsca-products .product-block__info
:is(
  salla-add-product-button,
  button.add-to-cart,
  .add-to-cart,
  .btn--add-to-cart
) {
  width: 100%;
  max-width: 100%;
}

/* Native button styles */
#dsca-products .product-block__info
:is(
  .add-to-cart,
  .btn--add-to-cart,
  salla-add-product-button button
) {
  min-height: 46px !important;
  border-radius: 999px !important;
  background: #151515 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  transition: background .2s ease, transform .2s ease;
}

#dsca-products .product-block__info
:is(
  .add-to-cart,
  .btn--add-to-cart,
  salla-add-product-button button
):hover {
  background: var(--dsca-primary, #222) !important;
  transform: translateY(-2px);
}

/* Remove excess spacing */
#dsca-products .product-block__info > :last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 650px) {
  #dsca-products .product-block {
    padding: 9px !important;
    border-radius: 19px !important;
  }

  #dsca-products .product-block__thumb {
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }

  #dsca-products .product-block__info {
    padding: 2px 3px 5px !important;
  }

  #dsca-products .product-block__info h3,
  #dsca-products .product-title h3 {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  #dsca-products .product-block__thumb .badge {
    font-size: 9px !important;
    padding: 5px 8px !important;
  }

  #dsca-products .product-block__info
  :is(.add-to-cart, .btn--add-to-cart, salla-add-product-button button) {
    min-height: 40px !important;
    font-size: 11px !important;
  }
}