/*
Theme Name:   BabyAwards Child
Theme URI:    https://babyawards.com
Description:  BabyAwards Child Theme for Hello Elementor — WooCommerce Ready
Author:       BabyAwards
Author URI:   https://babyawards.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  babyawards-child
*/

/* ============================================================
   BABYAWARDS – GLOBAL CSS
   All colours are CSS variables — change ONE place, updates everywhere.
   ============================================================ */

:root {
  --ba-green:       #2a7a62;
  --ba-green-mid:   #7dd4b8;
  --ba-green-lt:    #e8f7f2;
  --ba-blush:       #fce8ee;
  --ba-blush-mid:   #f4a7bc;
  --ba-blush-dk:    #c4476a;
  --ba-gold:        #f9c84a;
  --ba-cream:       #fffdf8;
  --ba-warm:        #fff5e8;
  --ba-text:        #2c2420;
  --ba-text-mid:    #6b5c55;
  --ba-text-lt:     #a8998f;
  --ba-white:       #ffffff;
  --ba-radius:      16px;
  --ba-radius-lg:   24px;
  --ba-shadow:      0 8px 32px rgba(0,0,0,0.08);
  --ba-shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
}

/* ── GLOBAL TYPOGRAPHY ── */
body,
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title {
  font-family: 'DM Sans', sans-serif;
  color: var(--ba-text);
}

h1, h2, h3,
.elementor-widget-heading .elementor-heading-title.elementor-size-xl,
.elementor-widget-heading .elementor-heading-title.elementor-size-xxl {
  font-family: 'Playfair Display', serif;
}

/* ── BODY BACKGROUND ── */
body { background-color: var(--ba-cream); }

/* ── SMOOTH SCROLL ── */
html { scroll-behavior: smooth; }

/* ============================================================
   WOOCOMMERCE — GLOBAL PRODUCT CARD STYLING
   These styles apply to every product card across the entire site.
   ============================================================ */

/* Product card wrapper */
ul.products li.product,
.woocommerce ul.products li.product {
  background: var(--ba-white);
  border-radius: var(--ba-radius-lg);
  border: 1.5px solid #f0ece8;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  padding: 0 !important;
}
ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: var(--ba-shadow-lg);
  border-color: var(--ba-green-mid);
}

/* Product image area */
ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img {
  border-radius: 0;
  margin-bottom: 0;
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
ul.products li.product:hover img { transform: scale(1.04); }

/* Product content padding */
ul.products li.product .woocommerce-loop-product__link,
ul.products li.product .button,
ul.products li.product .price,
ul.products li.product .woocommerce-loop-product__title {
  padding-left: 18px;
  padding-right: 18px;
}

/* Product title */
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--ba-text) !important;
  padding-top: 16px;
  line-height: 1.3;
}

/* Star ratings */
ul.products li.product .star-rating,
.woocommerce .star-rating {
  color: var(--ba-gold);
  font-size: 13px;
  margin: 6px 18px 8px;
}
.woocommerce .star-rating span::before { color: var(--ba-gold); }

/* Product price */
ul.products li.product .price,
.woocommerce ul.products li.product .price {
  color: var(--ba-green) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
  padding: 4px 18px 12px;
  display: block;
}
ul.products li.product .price del,
.woocommerce ul.products li.product .price del {
  color: var(--ba-text-lt) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins {
  text-decoration: none;
  color: var(--ba-blush-dk) !important;
}

/* Add to cart button */
ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce a.button,
.woocommerce button.button {
  background-color: var(--ba-green) !important;
  color: var(--ba-white) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 10px 22px !important;
  border: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
  margin: 0 18px 18px !important;
  display: inline-block !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-align: center !important;
  letter-spacing: 0.02em !important;
}
ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--ba-blush-dk) !important;
  transform: translateY(-1px) !important;
}

/* "Added to cart" / view cart state */
ul.products li.product .added_to_cart,
.woocommerce ul.products li.product .added_to_cart {
  display: inline-block;
  margin: 4px 18px 18px;
  font-size: 12px;
  color: var(--ba-green);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

/* Sale badge */
.woocommerce span.onsale,
ul.products li.product .onsale {
  background-color: var(--ba-blush-dk) !important;
  color: var(--ba-white) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 4px 12px !important;
  top: 12px !important;
  left: 12px !important;
  min-height: auto !important;
  line-height: 1.6 !important;
}

/* ============================================================
   WOOCOMMERCE — SINGLE PRODUCT PAGE
   ============================================================ */

/* Product title */
.single-product .product_title,
.woocommerce-page .product_title {
  font-family: 'Playfair Display', serif !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  color: var(--ba-text) !important;
  line-height: 1.15 !important;
}

/* Price */
.single-product .price,
.woocommerce div.product p.price {
  color: var(--ba-green) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
}

/* Qty input */
.woocommerce .quantity .qty {
  border: 1.5px solid #d8d0c8 !important;
  border-radius: 14px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  width: 70px !important;
}

/* Single add to cart */
.woocommerce div.product form.cart .single_add_to_cart_button {
  background-color: var(--ba-green) !important;
  color: var(--ba-white) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 36px !important;
  border: none !important;
  transition: background-color 0.2s, transform 0.15s !important;
  letter-spacing: 0.02em !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: var(--ba-blush-dk) !important;
  transform: translateY(-2px) !important;
}

/* Product tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  color: var(--ba-text-mid) !important;
  padding: 14px 24px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ba-green) !important;
  border-bottom: 2px solid var(--ba-green) !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
  border: 1.5px solid #f0ece8 !important;
  border-radius: 0 0 var(--ba-radius-lg) var(--ba-radius-lg) !important;
  padding: 32px !important;
}

/* Review stars */
.woocommerce #reviews #comments ol.commentlist li .star-rating {
  color: var(--ba-gold) !important;
}

/* ============================================================
   WOOCOMMERCE — CART PAGE
   ============================================================ */

.woocommerce-cart table.cart {
  border-radius: var(--ba-radius-lg) !important;
  overflow: hidden !important;
  border: 1.5px solid #f0ece8 !important;
}
.woocommerce-cart table.cart thead tr th {
  background: var(--ba-green) !important;
  color: var(--ba-white) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
}
.woocommerce-cart table.cart tbody tr td {
  padding: 16px 20px !important;
  font-family: 'DM Sans', sans-serif !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f0ece8 !important;
}
.woocommerce-cart .cart_totals {
  background: var(--ba-white) !important;
  border: 1.5px solid #f0ece8 !important;
  border-radius: var(--ba-radius-lg) !important;
  padding: 28px !important;
}
.woocommerce-cart .cart_totals h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}
/* Proceed to checkout */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--ba-green) !important;
  color: var(--ba-white) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 16px 36px !important;
  display: block !important;
  text-align: center !important;
  transition: background-color 0.2s !important;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: var(--ba-blush-dk) !important;
}

/* Coupon */
.woocommerce-cart .coupon input.input-text {
  border: 1.5px solid #d8d0c8 !important;
  border-radius: 50px !important;
  padding: 12px 20px !important;
  font-family: 'DM Sans', sans-serif !important;
}
.woocommerce-cart .coupon .button {
  border-radius: 50px !important;
  margin: 0 0 0 8px !important;
}

/* ============================================================
   WOOCOMMERCE — CHECKOUT PAGE
   ============================================================ */

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper input,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  border: 1.5px solid #d8d0c8 !important;
  border-radius: 14px !important;
  padding: 13px 18px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  color: var(--ba-text) !important;
  transition: border-color 0.2s !important;
}
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--ba-green) !important;
  outline: none !important;
}
.woocommerce-checkout label {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--ba-text-mid) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
.woocommerce-checkout h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--ba-text) !important;
}
/* Order review box */
.woocommerce-checkout #order_review_heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}
.woocommerce-checkout table.shop_table {
  border: 1.5px solid #f0ece8 !important;
  border-radius: var(--ba-radius-lg) !important;
  overflow: hidden !important;
}
/* Place order button */
#place_order,
.woocommerce-checkout #payment #place_order {
  background-color: var(--ba-green) !important;
  color: var(--ba-white) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 16px 40px !important;
  width: 100% !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.15s !important;
}
#place_order:hover { background-color: var(--ba-blush-dk) !important; transform: translateY(-1px) !important; }

/* Payment method radio buttons */
.woocommerce-checkout .payment_methods label {
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ba-text) !important;
}

/* ============================================================
   WOOCOMMERCE — MY ACCOUNT PAGE
   ============================================================ */

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  padding: 0 !important;
  background: var(--ba-white) !important;
  border-radius: var(--ba-radius-lg) !important;
  border: 1.5px solid #f0ece8 !important;
  overflow: hidden !important;
}
.woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 14px 22px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: var(--ba-text-mid) !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f0ece8 !important;
  transition: all 0.2s !important;
}
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--ba-green) !important;
  color: var(--ba-white) !important;
}

/* ============================================================
   ELEMENTOR OVERRIDES — BUTTONS, HEADINGS, FORMS
   ============================================================ */

/* Elementor buttons */
.elementor-button {
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 700 !important;
  transition: background-color 0.2s ease, transform 0.15s ease !important;
}
.elementor-button:hover { transform: translateY(-1px) !important; }

/* Elementor form inputs */
.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea {
  border: 1.5px solid #d8d0c8 !important;
  border-radius: 14px !important;
  padding: 13px 18px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  transition: border-color 0.2s !important;
}
.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
  border-color: var(--ba-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(42,122,98,0.12) !important;
}

/* ============================================================
   MINI CART / CART ICON IN HEADER
   ============================================================ */

.elementor-nav-menu .wc-menu-item-cart {
  position: relative;
}
.cart-contents .count,
.site-header-cart .count {
  background: var(--ba-gold) !important;
  color: var(--ba-text) !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
  ul.products li.product .woocommerce-loop-product__title,
  .woocommerce ul.products li.product h2 {
    font-size: 15px !important;
  }
  .woocommerce-checkout .col2-set { display: block !important; }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { width: 100% !important; }
}
