/* Variation options as buttons */
.lp-pdp-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-pdp-option-pills__item {
  min-width: 104px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gds-color-border, #d6d7da);
  border-radius: var(--gds-radius-control, 8px);
  background: var(--gds-color-surface, #fff);
  color: var(--gds-color-text, #111316);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.lp-pdp-option-pills__item[aria-pressed="true"] {
  border-color: var(--gds-color-text, #111316);
  box-shadow: inset 0 0 0 1px var(--gds-color-text, #111316);
}

.lp-pdp-option-pills__item:focus-visible {
  outline: 2px solid var(--gds-color-text, #111316);
  outline-offset: 2px;
}

.lp-pdp-option-pills__item:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  text-decoration: line-through;
}

.lp-pdp-option-pills__select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.lp-pdp-option-pills-row .reset_variations {
  display: none !important;
}

/* Variantes: cada una con su título arriba (el tema los oculta pensando en las muestras de color, que ya muestran
   el nombre) y el desplegable a todo el ancho, cómodo para el dedo. */
.single-product form.variations_form table.variations,
.single-product form.variations_form table.variations tbody,
.single-product form.variations_form table.variations tr.lp-pdp-option-row,
.single-product form.variations_form table.variations tr.lp-pdp-option-row > th,
.single-product form.variations_form table.variations tr.lp-pdp-option-row > td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.single-product form.variations_form table.variations tr.lp-pdp-option-row + tr.lp-pdp-option-row {
  margin-top: 16px;
}

.single-product form.variations_form table.variations tr.lp-pdp-option-row > th.label {
  display: block !important;
  margin: 0 0 8px;
  text-align: left;
}

.single-product form.variations_form table.variations tr.lp-pdp-option-row > th.label label {
  color: var(--gds-color-text, #111316);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.lp-pdp-option-label__value:not(:empty)::before {
  content: ": ";
}

.lp-pdp-option-label__value {
  font-weight: 400;
  color: var(--gds-color-text-muted, #5d6169);
}

.single-product form.variations_form table.variations tr.lp-pdp-option-row select:not(.lp-pdp-option-pills__select) {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px;
  margin: 0 !important;
  padding: 0 40px 0 14px;
  border: 1px solid var(--gds-color-border, #d6d7da);
  border-radius: var(--gds-radius-control, 8px);
  background: var(--gds-color-surface, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111316' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--gds-color-text, #111316);
  font: inherit;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}

.single-product form.variations_form table.variations tr.lp-pdp-option-row select:not(.lp-pdp-option-pills__select):focus-visible {
  outline: 2px solid var(--gds-color-text, #111316);
  outline-offset: 2px;
}

/* Phone buy bar */
.lp-pdp-buy-bar {
  position: fixed;
  z-index: 99980;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--gds-color-border, #e5e5e5);
  border-radius: var(--gds-radius-card, 12px);
  background: var(--gds-color-surface, #fff);
  box-shadow: 0 12px 32px rgba(17, 19, 22, 0.18), 0 2px 8px rgba(17, 19, 22, 0.08);
  color: var(--gds-color-text, #111316);
}

.lp-pdp-buy-bar[hidden] {
  display: none !important;
}

.lp-pdp-buy-bar__price {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-pdp-buy-bar__price del {
  margin-right: 4px;
  color: var(--gds-color-text-muted, #5f6368);
  font-size: 12px;
  font-weight: 400;
}

.lp-pdp-buy-bar__price ins {
  text-decoration: none;
}

.lp-pdp-buy-bar__button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--gds-radius-control, 8px);
  background: #111316;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

body.lp-pdp-buy-bar-visible {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  .lp-pdp-buy-bar {
    display: none !important;
  }
}

/* The product's sticky header (z-index 99999) and the phone buy bar sat on top of the cart
   drawer and the menu, hiding the drawer's title and close button. */
body:has(.loq-cart-drawer.is-open, .loq-drawer.is-open) #loq-sticky-pdp-header,
body:has(.loq-cart-drawer.is-open, .loq-drawer.is-open) .lp-pdp-buy-bar {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Feedback while the product goes into the cart (the drawer takes about a second). */
.lqsp-buyflow .lq-btn-add-cart.is-adding,
.lp-pdp-buy-bar__button.is-adding {
  cursor: progress;
  opacity: 0.72;
  pointer-events: none;
}

/* Descuento al lado del precio: violeta de marca, sin degradé. */
body.single-product .lq-sp .lqsp-priceflow .lq-badge-sale.lq-badge-sale--inline[data-price-role="sale-pct"],
body .lq-badge-sale.lq-badge-sale--inline {
  border-radius: 999px !important;
  background: #0b0c10 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Keep "100 ml" together when the format name wraps. */
.lp-fragrance-formats__size {
  white-space: nowrap;
}

/* While the drawer waits for the refreshed cart after "Agregar", hide the stale content
   ("No hay productos en el carrito.") and say what is happening. */
.loq-cart-drawer.lp-cart-refreshing .widget_shopping_cart_content {
  visibility: hidden;
}

.loq-cart-drawer.lp-cart-refreshing .loq-cart-drawer__panel::after {
  position: absolute;
  top: 45%;
  right: 0;
  left: 0;
  color: #5f636a;
  font-size: 15px;
  text-align: center;
  content: "Agregando a tu carrito…";
}
