/* -------------------------------------------------
   Hostidex PDP UI Pack – Refined UI
   Scope: Elementor Woo Product Add to Cart widget
-------------------------------------------------- */

.elementor-widget-woocommerce-product-add-to-cart .elementor-add-to-cart{
  /* Fine-tuned tokens */
  --hxpdp-font: inherit;
  --hxpdp-text: #101114;
  --hxpdp-muted: rgba(16,17,20,.62);

  --hxpdp-border: rgba(16,17,20,.12);
  --hxpdp-border-strong: rgba(16,17,20,.18);

  --hxpdp-bg: #fff;
  --hxpdp-soft: rgba(16,17,20,.04);
  --hxpdp-soft-2: rgba(16,17,20,.06);

  --hxpdp-radius: 12px;
  --hxpdp-radius-sm: 10px;

  --hxpdp-h: 42px;       /* control height */
  --hxpdp-pad-x: 12px;   /* control horizontal padding */

  --hxpdp-shadow: 0 10px 28px rgba(16,17,20,.08);
  --hxpdp-focus: 0 0 0 3px rgba(13,110,253,.14);

  font-family: var(--hxpdp-font);
  color: var(--hxpdp-text);
}

/* -------------------------------------------------
   Layout: qty + button in a clean row
-------------------------------------------------- */
.elementor-widget-woocommerce-product-add-to-cart .variations_button,
.elementor-widget-woocommerce-product-add-to-cart form.cart{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.elementor-widget-woocommerce-product-add-to-cart .variations_button .quantity,
.elementor-widget-woocommerce-product-add-to-cart form.cart .quantity{
  margin: 0 !important;
}

.elementor-widget-woocommerce-product-add-to-cart .variations_button .single_add_to_cart_button,
.elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button{
  flex: 1 1 auto;
  min-width: 200px;
}

/* Mobile: stack nicely */
@media (max-width: 640px){
  .elementor-widget-woocommerce-product-add-to-cart .variations_button,
  .elementor-widget-woocommerce-product-add-to-cart form.cart{
    flex-direction: column;
    align-items: stretch;
  }
  .elementor-widget-woocommerce-product-add-to-cart .variations_button .single_add_to_cart_button,
  .elementor-widget-woocommerce-product-add-to-cart form.cart .single_add_to_cart_button{
    min-width: 0;
    width: 100%;
  }
}

/* -------------------------------------------------
   Quantity: subtle stepper
-------------------------------------------------- */
.elementor-widget-woocommerce-product-add-to-cart .quantity.hxpdp-qty{
  margin: 0;
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-wrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;

  border-radius: var(--hxpdp-radius);
  border: 1px solid var(--hxpdp-border);
  background: var(--hxpdp-bg);
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;

  border: 1px solid var(--hxpdp-border);
  background: #422626!important;
  color: var(--hxpdp-text);

  font-weight: 700;
  font-size: 16px;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;
  transition: background .14s ease, transform .14s ease, border-color .14s ease;
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-btn:hover{
  background: var(--hxpdp-soft);
  border-color: var(--hxpdp-border-strong);
  transform: translateY(-1px);
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-btn:active{
  transform: translateY(0);
}

.elementor-widget-woocommerce-product-add-to-cart .quantity input.qty.hxpdp-qty-input{
  height: 36px;
  width: 62px !important;
  min-width: 62px;

  text-align: center;
  padding:5px;

  border-radius: 8px;
  border: 1px solid var(--hxpdp-border);
  background: #fff;

  outline: none !important;
  box-shadow: none !important;

  font-size: 14px;
  font-weight: 600;
  color: var(--hxpdp-text);
}

.elementor-widget-woocommerce-product-add-to-cart .quantity input.qty.hxpdp-qty-input:focus{
  border-color: rgba(13,110,253,.35);
  box-shadow: var(--hxpdp-focus) !important;
}

/* Hide number spinners */
.elementor-widget-woocommerce-product-add-to-cart input[type=number]::-webkit-outer-spin-button,
.elementor-widget-woocommerce-product-add-to-cart input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.elementor-widget-woocommerce-product-add-to-cart input[type=number]{ -moz-appearance: textfield; }

@media (max-width: 640px){
  .elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-wrap{
    width: 100%;
    justify-content: center;
  }
  .elementor-widget-woocommerce-product-add-to-cart .quantity input.qty.hxpdp-qty-input{
    width: 90px !important;
  }
}

/* -------------------------------------------------
   Add to Cart button: cleaner, less “kaba”
-------------------------------------------------- */
.elementor-widget-woocommerce-product-add-to-cart button.single_add_to_cart_button{
  border-radius: var(--hxpdp-radius) !important;
  padding: 12px 18px !important;

  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .2px;
}

/* -------------------------------------------------
   Variations: modern, tight, readable
-------------------------------------------------- */
.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations th.label{
  vertical-align: middle;
  padding: 0 10px 0 0;
  width: 42%;

  font-size: 13px;
  font-weight: 600;
  color: var(--hxpdp-muted);
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations th.label label{
  margin: 0;
  font-weight: 600;
  color: var(--hxpdp-muted);
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations td.value{
  vertical-align: middle;
  padding: 0;
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations td.value > *{
  vertical-align: middle;
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations select.hxpdp-select{
  width: 100%;
  min-height: var(--hxpdp-h);

  border-radius: var(--hxpdp-radius);
  border: 1px solid var(--hxpdp-border);
  background: #fff;

  padding: 6px var(--hxpdp-pad-x);

  outline: none !important;
  box-shadow: none !important;

  font-size: 14px;
  font-weight: 600;
  color: var(--hxpdp-text);
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations select.hxpdp-select:focus{
  border-color: rgba(13,110,253,.35);
  box-shadow: var(--hxpdp-focus) !important;
}

/* Reset link: chip style, not a big button */
.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations a.reset_variations.hxpdp-reset{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-left: 10px;
  padding: 6px 10px;

  border-radius: 12px;
  border: 1px solid var(--hxpdp-border);
  background: rgba(16,17,20,.03);

  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: rgba(16,17,20,.75);

  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations a.reset_variations.hxpdp-reset:hover{
  background: rgba(16,17,20,.06);
  border-color: var(--hxpdp-border-strong);
  transform: translateY(-1px);
}

/* -------------------------------------------------
   Variation info box: subtle card
-------------------------------------------------- */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation.single_variation{
  margin-top: 10px;
  padding: 12px 14px;

  border-radius: var(--hxpdp-radius);
  border: 1px solid var(--hxpdp-border);
  background: rgba(16,17,20,.02);
}

.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price{
  font-weight: 800;
  font-size: 14px;
}

/* Sometimes themes add extra p margins */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-description p{
  margin: 0;
}

/* -------------------------------------------------
   Optional: reduce clutter in variations table on mobile
-------------------------------------------------- */
@media (max-width: 640px){
  .elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations{
    border-spacing: 0 8px;
  }

  .elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations th.label{
    width: 100%;
    padding: 0 0 6px 0;
    display: block;
  }

  .elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations td.value{
    display: block;
  }

  .elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations a.reset_variations.hxpdp-reset{
    margin-left: 0;
    margin-top: 8px;
  }
}


/* =================================================
   OVERRIDES: Reset always beside select + white +/- + price row
================================================= */

/* 1) Reset her zaman select yanında (mobilde de) */
.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations td.value{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;     /* alt satıra düşmesin */
}

.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations select.hxpdp-select{
  flex: 1 1 auto !important;
  min-width: 0 !important;          /* flex overflow fix */
}

/* Reset: asla alt satır */
.elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations a.reset_variations.hxpdp-reset{
  flex: 0 0 auto !important;
  margin: 0 !important;             /* alttan margin kaldır */
  white-space: nowrap !important;
}

/* Gerekirse select biraz “daha kompakt” */
.elementor-widget-woocommerce-product-add-to-cart .elementor-add-to-cart{
  --hxpdp-h: 40px;                   /* 42 -> 40 */
  --hxpdp-pad-x: 11px;               /* 12 -> 11 */
}

/* Mobilde select + reset sığmıyorsa reset’i daha da incelt */
@media (max-width: 640px){
  .elementor-widget-woocommerce-product-add-to-cart table.variations.hxpdp-variations a.reset_variations.hxpdp-reset{
    padding: 7px 9px !important;
    font-size: 11px !important;
  }
}


.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-btn{
  color: #282222 !important;
  background: #dfd0bf!important;
  border-color: rgba(200, 182, 173, 0.3) !important
}

.elementor-widget-woocommerce-product-add-to-cart .quantity .hxpdp-qty-btn:hover{
  background: rgba(206, 180, 151, 0.85) !important;
}

/* 3) Seçime göre fiyat alanı: tek satır, border’sız “table row” gibi */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation.single_variation{
  margin-top: 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Woo default price wrapper’ı temizle */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price{
  margin: 0 !important;
}

/* Tek satır “row” */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price .price{
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;

  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: rgba(16,17,20,.035) !important;

  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Label gibi davranacak prefix */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price .price::before{
  content: "Seçiminize göre güncel fiyat :";
  font-size: 13px;
  font-weight: 600;
  opacity: .72;
}

/* Fiyatın kendisi daha belirgin */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-price .woocommerce-Price-amount{
  font-weight: 800 !important;
  opacity: 1 !important;
}

/* Gereksiz boşluk üreten diğer variation alanlarını gizle (boşsa zaten) */
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-description:empty,
.elementor-widget-woocommerce-product-add-to-cart .woocommerce-variation-availability:empty{
  display: none !important;
}

.woocommerce div.product form.cart .variations {
    margin-bottom:0px!important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color:#422626!important;
    margin-top:-10px;
    margin-bottom:15px;
}

 .woocommerce div.product form.cart .variations th {
    line-height:1em!important;
    vertical-align:middle!important;
}



