/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Your Name
Author URI: https://yourwebsite.com/
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Prices always black */
p.price,
p.price del,
p.price ins,
p.price .woocommerce-Price-amount,
p.price .woocommerce-Price-currencySymbol { color:#000 !important; }

/* Size dropdown (dress) */
.size-dropdown-wrapper{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:15px;gap:10px}
.size-dropdown-wrapper label{font-weight:600;font-size:14px}
#custom_size{padding:8px 12px;font-size:14px;border:1px solid #ccc;border-radius:4px;background:#fff url("data:image/svg+xml;utf8,<svg fill='gray' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;background-size:10px;appearance:none;width:100%;max-width:200px;box-sizing:border-box}
#custom_size:focus{border-color:#007cba;outline:none;box-shadow:0 0 5px rgba(0,124,186,.5)}

/* PDP button sizing & styles (matches functions.php JS/CSS) */
.single-product .summary form.cart .button,
.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary form.cart .pisol_single_buy_now,
.single-product .summary form.cart .pisol_buy_now_button{
  display:block!important;width:100%!important;max-width:none!important;height:52px!important;line-height:52px!important;
  padding:0!important;margin:10px 0 0!important;font-size:16px!important;font-weight:600!important;border:none!important;
  border-radius:6px!important;text-transform:uppercase;box-sizing:border-box;cursor:pointer
}
/* Buy Now strong green */
.single-product .summary form.cart .pisol_single_buy_now,
.single-product .summary form.cart .pisol_buy_now_button{background:#5c9735!important;color:#fff!important}
.single-product .summary form.cart .pisol_single_buy_now:hover,
.single-product .summary form.cart .pisol_buy_now_button:hover{filter:brightness(.95)}
/* Add to Cart softer green */
.single-product .summary form.cart .single_add_to_cart_button{background:#A1D67E!important;color:#000!important}
.single-product .summary form.cart .single_add_to_cart_button:hover{filter:brightness(.95)}
.single-product .summary form.cart .quantity{width:100%;max-width:none}

/* “আরো প্রোডাক্ট যুক্ত করুন” button styled like order */
#add-more-products-wrapper .add-more-products-btn{
  display:block!important;width:100%!important;height:50px!important;line-height:50px!important;background:#5c9735!important;color:#fff!important;
  font-size:16px!important;font-weight:600!important;border:none!important;border-radius:6px!important;text-align:center!important;text-decoration:none!important;
  box-sizing:border-box;cursor:pointer;padding:0!important
}
#add-more-products-wrapper .add-more-products-btn:hover{filter:brightness(.95)}

/* Checkout labels/inputs centered (fallback in case theme overrides) */
.woocommerce-checkout .form-row label{ text-align:center!important; display:block; width:100%; font-weight:600 }
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select{ text-align:center!important; width:100%!important }
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3{ text-align:center!important }



















/* ===== Daraz/Shopify Premium Qty Buttons ===== */

.tuktak-qty-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

@media (max-width: 520px){
  .tuktak-qty-grid{ grid-template-columns: 1fr; }
}

/* hide radio */
.tuktak-qty-pill input{ display:none; }

.tuktak-qty-pill{
  position:relative;
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* inner layout */
.tuktak-qty-pill span{
  display:flex;
  flex-direction:column;
  gap:4px;
  line-height:1.1;
}

.tuktak-qty-pill b{
  font-size:16px;
  font-weight:800;
}

.tuktak-qty-pill small{
  font-size:12px;
  font-weight:700;
  opacity:.85;
}

/* Hover */
.tuktak-qty-pill:hover{
  transform: translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,0.14);
  border-color: rgba(0,0,0,0.14);
}

/* Color themes (Daraz/Shopify vibe) */
.pill-2{ background: linear-gradient(135deg, #e8f3ff 0%, #ffffff 60%); }
.pill-3{ background: linear-gradient(135deg, #eafff0 0%, #ffffff 60%); }
.pill-4{ background: linear-gradient(135deg, #fff3dd 0%, #ffffff 60%); }
.pill-6{ background: linear-gradient(135deg, #ffe6f0 0%, #ffffff 60%); }

.pill-2 b, .pill-2 small{ color:#0b5bd3; }
.pill-3 b, .pill-3 small{ color:#1b7a3a; }
.pill-4 b, .pill-4 small{ color:#b85a00; }
.pill-6 b, .pill-6 small{ color:#b1144e; }

/* Selected (Shopify-style active glow) */
.tuktak-qty-pill input:checked + span{
  color:#111;
}

.tuktak-qty-pill:has(input:checked){
  border:2px solid #2f8f2f;
  box-shadow:0 12px 32px rgba(47,143,47,0.25);
  transform: translateY(-2px);
}

/* Left accent bar */
.tuktak-qty-pill::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  opacity:.9;
}
.pill-2::before{ background:#2196f3; }
.pill-3::before{ background:#4caf50; }
.pill-4::before{ background:#ff9800; }
.pill-6::before{ background:#e91e63; }

/* Best Deal ribbon */
.best-deal::after{
  content:"BEST DEAL";
  position:absolute;
  top:10px;
  right:-44px;
  transform: rotate(35deg);
  background:#ff9800;
  color:#fff;
  font-weight:900;
  font-size:11px;
  padding:6px 52px;
  letter-spacing:.8px;
  box-shadow:0 6px 16px rgba(0,0,0,0.18);
}

/* Live price box more premium */
.tuktak-live-price{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(47,143,47,0.25);
  background: linear-gradient(135deg, rgba(47,143,47,0.10), rgba(255,255,255,1));
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
}










































/* Force Full Width Buy Now Button */
.single-product form.cart .single_add_to_cart_button {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
    font-size: 18px;
    font-weight: 700;
    padding: 15px 0 !important;
    border-radius: 8px !important;
}

/* Override theme style completely */
.single-product .single_add_to_cart_button.button.alt {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    border: none !important;
    color: #ffffff !important;
}

.single-product .single_add_to_cart_button.button.alt:hover {
    background: linear-gradient(135deg, #1e7e34, #145a24) !important;
}


body.single-product button.single_add_to_cart_button {
    width: 100% !important;
    display: block !important;
}


















/* Astra: Single Product Add to Cart Full Width */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button{
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  margin: 12px 0 0 !important;
  padding: 16px 10px !important;
  line-height: normal !important;
  height: auto !important;
  text-align: center !important;
  border-radius: 10px !important;
}

/* Optional premium look */
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button{
  background: #5c9735 !important;
  color: #fff !important;
  border: none !important;
}
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover{
  filter: brightness(.95);
}


















/* ===== Eye-catchy Animated Buy Now / Place Order Button ===== */

.single_add_to_cart_button,
#place_order {

  width: 100% !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  text-align: center !important;
  padding: 18px 0 !important;
  border-radius: 12px !important;
  border: none !important;
  color: #fff !important;

  background: linear-gradient(90deg, #ff512f, #dd2476, #ff512f);
  background-size: 300% 100%;

  box-shadow: 0 8px 25px rgba(221,36,118,0.45);

  animation:
    gradientMove 3s linear infinite,
    pulseGlow 2s ease-in-out infinite,
    bounceSoft 2s ease-in-out infinite;

  position: relative;
  overflow: hidden;
}



/* hover extra effect */
.single_add_to_cart_button:hover,
#place_order:hover {
  transform: scale(1.03);
}