/* Tazwdia Shop Pink 1.0.1
   CSS-only skin for existing WooCommerce elements. No new content or controls.
   Every selector is gated by an explicit, front-end-only page class.
   Do not set display/visibility on cart buttons or panels: WooCommerce owns them. */

body.tzsp-skin {
  --tzsp-pink: #c52c73;
  --tzsp-pink-light: #cf367c;
  --tzsp-pink-deep: #a72461;
  --tzsp-ink: #493640;
  --tzsp-line: #efd7e3;
  --tzsp-soft: #fff7fb;
  --tzsp-radius: 16px;
}

/* The original purchase button INSIDE a product only.
   Changed 2026-10-02 in 1.0.1: catalog buttons are entirely left to the theme.
   No loop button backgrounds, sizes, shadows or touch/hover overrides.
   Never target payment-provider/express buttons. */
body.tzsp-product form.cart .single_add_to_cart_button {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 24px !important;
  border: 1px solid var(--tzsp-pink) !important;
  border-radius: 13px !important;
  background-color: var(--tzsp-pink) !important;
  background-image: linear-gradient(115deg, var(--tzsp-pink-light), var(--tzsp-pink)) !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(171, 30, 91, .14) !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: .01em !important;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

body.tzsp-product form.cart .single_add_to_cart_button:not(:disabled):not(.disabled):hover {
  border-color: var(--tzsp-pink-deep) !important;
  background-color: var(--tzsp-pink-deep) !important;
  background-image: linear-gradient(115deg, #bd2d72, var(--tzsp-pink-deep)) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(171, 30, 91, .19) !important;
}

body.tzsp-product form.cart .single_add_to_cart_button:focus-visible {
  outline: 3px solid #8d1d56 !important;
  outline-offset: 4px !important;
}

body.tzsp-product form.cart .single_add_to_cart_button:is(:disabled, .disabled) {
  opacity: .5 !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Existing Description / Reviews tabs. IDs, order, links and click handlers stay. */
body.tzsp-product .woocommerce-tabs > ul.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important;
  overflow: visible !important;
}

body.tzsp-product .woocommerce-tabs > ul.tabs::before,
body.tzsp-product .woocommerce-tabs > ul.tabs::after,
body.tzsp-product .woocommerce-tabs > ul.tabs > li::before,
body.tzsp-product .woocommerce-tabs > ul.tabs > li::after {
  content: none !important;
}

body.tzsp-product .woocommerce-tabs > ul.tabs > li {
  display: block;
  flex: 0 1 auto;
  float: none !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: none !important;
}

body.tzsp-product .woocommerce-tabs > ul.tabs > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  height: 100%;
  margin: 0 !important;
  padding: 11px 22px !important;
  border: 1px solid #e9bfd3 !important;
  border-radius: 12px !important;
  background: #fff5fa !important;
  color: #873159 !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-style: normal;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-align: center;
  text-transform: none !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  transition: background-color .16s ease, border-color .16s ease;
}

body.tzsp-product .woocommerce-tabs > ul.tabs > li > a:hover {
  border-color: #d98aaf !important;
  background: #fde7f2 !important;
  color: #702447 !important;
}

body.tzsp-product .woocommerce-tabs > ul.tabs > li.active > a,
body.tzsp-product .woocommerce-tabs > ul.tabs > li.ui-tabs-active > a,
body.tzsp-product .woocommerce-tabs > ul.tabs > li > a[aria-selected="true"] {
  border-color: var(--tzsp-pink) !important;
  background: var(--tzsp-pink) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(171, 30, 91, .12) !important;
}

body.tzsp-product .woocommerce-tabs > ul.tabs > li > a:focus-visible {
  outline: 3px solid #8d1d56 !important;
  outline-offset: 3px !important;
}

/* Respect explicit hidden tab controls, including the native hidden attribute. */
body.tzsp-product .woocommerce-tabs > ul.tabs[hidden],
body.tzsp-product .woocommerce-tabs > ul.tabs > li[hidden],
body.tzsp-product .woocommerce-tabs > ul.tabs > li > a[hidden] {
  display: none !important;
}

/* Both descriptions use the same palette as the existing review panel.
   No max-height, clipping, content replacement or forced panel display. */
body.tzsp-product .woocommerce-product-details__short-description,
body.tzsp-product .woocommerce-tabs > #tab-description {
  box-sizing: border-box;
  padding: clamp(14px, 1.7vw, 20px) !important;
  border: 1px solid var(--tzsp-line) !important;
  border-inline-start: 3px solid #d779a5 !important;
  border-radius: var(--tzsp-radius) !important;
  background: linear-gradient(130deg, #fff8fc 0%, #fff2f8 74%, #faf4ff 100%) !important;
  box-shadow: 0 4px 16px rgba(94, 37, 70, .035) !important;
  color: var(--tzsp-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: normal;
  word-spacing: normal;
  overflow-wrap: break-word;
}

body.tzsp-product .woocommerce-product-details__short-description {
  margin-block: 12px 18px !important;
}

body.tzsp-product .woocommerce-product-details__short-description:empty {
  display: none;
}

body.tzsp-product .woocommerce-product-details__short-description > p,
body.tzsp-product .woocommerce-tabs > #tab-description > p {
  margin-block: 0 .75em;
  line-height: 1.7;
}

body.tzsp-product .woocommerce-product-details__short-description > :first-child,
body.tzsp-product .woocommerce-tabs > #tab-description > :first-child {
  margin-block-start: 0 !important;
}

body.tzsp-product .woocommerce-product-details__short-description > :last-child,
body.tzsp-product .woocommerce-tabs > #tab-description > :last-child {
  margin-block-end: 0 !important;
}

/* Earlier Tazwdia HTML boxes: no duplicate border or double padding.
   Targets only our known boxes inside the two descriptions, nowhere else. */
body.tzsp-product .woocommerce-product-details__short-description :is(.tz-product-info, .tazwdia-product-description),
body.tzsp-product .woocommerce-tabs > #tab-description :is(.tz-product-info, .tazwdia-product-description) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  color: inherit !important;
}

/* 1.0.1, 2026-10-02: compact, adjacent mobile tabs, not two stretched
   half-width columns. Reset the theme's widths as well as flex growth.
   No forced display: explicit hidden states remain controlled by WooCommerce. */
@media (max-width: 767px) {
  body.tzsp-product .woocommerce-tabs > ul.tabs {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }
  body.tzsp-product .woocommerce-tabs > ul.tabs > li {
    box-sizing: border-box;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.tzsp-product .woocommerce-tabs > ul.tabs > li > a {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 600px) {
  body.tzsp-product .woocommerce-product-details__short-description,
  body.tzsp-product .woocommerce-tabs > #tab-description {
    padding: 13px 14px !important;
    border-radius: 14px !important;
    font-size: 14px;
    line-height: 1.65;
  }
  body.tzsp-product form.cart .single_add_to_cart_button {
    padding: 12px 18px !important;
    font-size: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tzsp-product form.cart .single_add_to_cart_button,
  body.tzsp-product .woocommerce-tabs > ul.tabs > li > a {
    transition: none !important;
  }
}
