/* Emotibears shop (WooCommerce screens only), 2 Nov 2026. Loaded after GeneratePress's WooCommerce
   CSS and on top of styles.css, whose brand tokens (--navy, --coral-btn, --cream, --line...) it uses. */

/* ---- page frame ---- */
.woocommerce .site-main, .woocommerce-page .site-main{font-family:"Nunito Sans", system-ui, sans-serif; color:#3A342E;}
.woocommerce .inside-article, .woocommerce-page .inside-article{border-radius:28px;}
.woocommerce-breadcrumb{font-size:.88rem !important; color:#6f6455 !important; margin-bottom:18px !important;}
.woocommerce-breadcrumb a{color:var(--coral-deep, #A74B2B) !important; font-weight:700;}
.woocommerce-products-header__title, .product_title{font-family:"Baloo 2", "Nunito Sans", sans-serif; color:var(--navy, #233A5C) !important; line-height:1.1 !important;}

/* ---- buttons: one Emotibears button everywhere (replaces Woo grey and purple) ---- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce-page a.button, .woocommerce-page button.button,
.wc-proceed-to-checkout a.checkout-button, #place_order, .woocommerce .single_add_to_cart_button{
  font-family:"Nunito Sans", system-ui, sans-serif !important; font-weight:800 !important; font-size:1rem !important;
  background:var(--coral-btn, #CE491A) !important; color:#fff !important; border:0 !important; border-radius:999px !important;
  padding:12px 24px !important; min-height:48px; line-height:1.2 !important;
  box-shadow:0 5px 0 var(--coral-btn-shadow, #A93C15) !important; transition:transform .12s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .wc-proceed-to-checkout a.checkout-button:hover,
#place_order:hover, .woocommerce .single_add_to_cart_button:hover{transform:translateY(-2px); background:var(--coral-btn, #CE491A) !important;}
.woocommerce a.button:focus-visible, .woocommerce button.button:focus-visible, #place_order:focus-visible,
.wc-proceed-to-checkout a.checkout-button:focus-visible{outline:3px solid var(--navy, #233A5C) !important; outline-offset:3px;}
/* secondary actions: outline buttons */
.woocommerce .woocommerce-message .button, .woocommerce .woocommerce-info .button,
.woocommerce button[name="apply_coupon"], .woocommerce button[name="update_cart"]{
  background:#fff !important; color:var(--navy, #233A5C) !important; border:2px solid var(--navy, #233A5C) !important; box-shadow:none !important;
}
.woocommerce button[name="update_cart"]:disabled{opacity:.45 !important;}
/* Quantities are hidden (downloads are one each), so "Update basket" has nothing to update: hide it (4 Nov 2026). */
body:not(.etb-cart-posted).woocommerce-cart table.cart button[name="update_cart"]{display:none !important;}
.woocommerce a.added_to_cart{font-weight:800; color:var(--navy, #233A5C); margin-left:10px;}
@media (prefers-reduced-motion:reduce){ .woocommerce a.button, .woocommerce button.button, #place_order{transition:none;} }

/* ---- prices ---- */
.woocommerce .price, .woocommerce-Price-amount{color:var(--navy, #233A5C) !important; font-weight:800 !important;}
.woocommerce div.product p.price{font-size:1.6rem !important; margin:8px 0 14px;}

/* ---- shop intro, promises, category pills ---- */
.etb-shop-hero{display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:clamp(18px,4vw,40px); align-items:center;
  background:var(--cream, #FBF3E7); border:1px solid var(--line, #E8DCC8); border-radius:24px; padding:clamp(18px,3vw,32px); margin:0 0 18px;}
.etb-shop-hero h1{font-family:"Baloo 2", "Nunito Sans", sans-serif; color:var(--navy, #233A5C); font-size:clamp(1.8rem,3.6vw,2.6rem); line-height:1.08; margin:8px 0 12px;}
.etb-shop-hero p{margin:0 0 10px; line-height:1.6; max-width:56ch;}
.etb-shop-hero-art{width:100%; height:auto; border-radius:18px; box-shadow:0 18px 30px -22px rgba(46,42,36,.6);}
.etb-promises{list-style:none; margin:0 0 22px; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px;}
.etb-promises li{background:#fff; border:1px solid var(--line, #E8DCC8); border-radius:16px; padding:12px 14px; display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:start;}
.etb-promise-icon{grid-row:span 2; font-size:1.4rem; line-height:1.2;}
.etb-promises strong{color:var(--navy, #233A5C); font-size:.95rem;}
.etb-promises li > span:last-child{font-size:.84rem; color:#584f40; line-height:1.45;}
.etb-promises--compact{grid-template-columns:1fr 1fr; margin:18px 0 0;}
.etb-promises--compact li{background:var(--cream, #FBF3E7);}
.etb-shop-cats ul{list-style:none; margin:0 0 22px; padding:0; display:flex; flex-wrap:wrap; gap:8px;}
.etb-shop-cats a{display:inline-flex; align-items:center; min-height:44px; padding:8px 18px; border-radius:999px; border:2px solid var(--line, #E8DCC8);
  background:#fff; color:var(--navy, #233A5C); font-weight:800; text-decoration:none;}
.etb-shop-cats a:hover{border-color:var(--coral, #E8734A);}
.etb-shop-cats a[aria-current="page"]{background:var(--navy, #233A5C); border-color:var(--navy, #233A5C); color:#fff;}
.etb-shop-cats a:focus-visible{outline:3px solid var(--coral-deep, #A74B2B); outline-offset:2px;}

/* ---- product cards ---- */
.woocommerce ul.products{display:grid !important; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:20px; margin:0 0 30px !important;}
.woocommerce ul.products::before, .woocommerce ul.products::after{display:none !important;}
.woocommerce ul.products li.product{width:auto !important; margin:0 !important; float:none !important; display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line, #E8DCC8); border-radius:22px; padding:12px 12px 16px !important;
  box-shadow:0 16px 30px -24px rgba(46,42,36,.45); transition:transform .15s ease, box-shadow .15s ease; text-align:left !important;}
.woocommerce ul.products li.product:hover{transform:translateY(-3px); box-shadow:0 22px 36px -24px rgba(46,42,36,.5);}
.woocommerce ul.products li.product a img{border-radius:14px; margin:0 0 12px !important;}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:"Baloo 2", "Nunito Sans", sans-serif; font-size:1.12rem !important; color:var(--navy, #233A5C); line-height:1.25; padding:0 !important; margin:0 0 6px !important;}
.woocommerce ul.products li.product .price{font-size:1.05rem !important; margin:0 0 12px !important;}
.woocommerce ul.products li.product .button{margin-top:auto !important; align-self:flex-start;}
@media (prefers-reduced-motion:reduce){ .woocommerce ul.products li.product{transition:none;} .woocommerce ul.products li.product:hover{transform:none;} }

/* ---- product page ---- */
.woocommerce div.product div.images img{border-radius:20px;}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:1.05rem; line-height:1.6;}
.woocommerce div.product form.cart{margin:16px 0 4px !important;}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding-left:0 !important;}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:12px 12px 0 0 !important;}
.woocommerce div.product .woocommerce-tabs .panel{line-height:1.7;}
.woocommerce div.product .woocommerce-tabs .panel ul{list-style:disc; padding-left:1.3em;}
.related.products > h2{font-family:"Baloo 2", "Nunito Sans", sans-serif; color:var(--navy, #233A5C);}

/* ---- notices ---- */
.woocommerce-message, .woocommerce-info, .woocommerce-error{border-radius:16px !important; border-top:0 !important; border-left:6px solid #3E8E82 !important;
  background:var(--cream, #FBF3E7) !important; color:#3A342E !important; padding:14px 18px 14px 48px !important; outline:0 !important;}
.woocommerce-info{border-left-color:#E0A937 !important;}
.woocommerce-error{border-left-color:#C0392B !important; background:#FCE9E2 !important;}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before{top:15px !important; left:18px !important;}
.woocommerce-message .button, .woocommerce-info .button{float:right; margin:-4px 0 0 12px !important;}

/* ---- basket ---- */
.woocommerce table.shop_table{border-radius:16px !important; overflow:hidden; border-color:var(--line, #E8DCC8) !important;}
.woocommerce table.shop_table th{background:var(--cream, #FBF3E7); color:var(--navy, #233A5C);}
.woocommerce-cart table.cart img{width:64px !important; border-radius:10px;}
.woocommerce-cart table.cart .product-name a{color:var(--navy, #233A5C); font-weight:800; text-decoration:none;}
.woocommerce a.remove{color:#C0392B !important; border:2px solid #f0c9c2; width:30px !important; height:30px !important; line-height:24px !important;}
.woocommerce a.remove:hover{background:#C0392B !important; color:#fff !important;}
/* downloads are one each: nothing to change in a quantity column */
body:not(.etb-cart-posted).woocommerce-cart table.cart th.product-quantity, body:not(.etb-cart-posted).woocommerce-cart table.cart td.product-quantity{display:none;}
.woocommerce-cart table.cart td.actions .coupon{display:flex; gap:8px; flex-wrap:wrap; align-items:center;}
.woocommerce-cart table.cart td.actions .coupon .input-text{width:200px !important; min-height:48px;}
.woocommerce .cart-collaterals .cart_totals{width:100% !important; max-width:420px; float:none !important; margin-left:auto;}
.woocommerce .cart-collaterals .cart_totals h2{font-family:"Baloo 2", "Nunito Sans", sans-serif; color:var(--navy, #233A5C);}
.wc-proceed-to-checkout a.checkout-button{display:block !important; text-align:center; font-size:1.1rem !important;}

/* ---- checkout ---- */
.woocommerce form .form-row label{font-weight:700; color:var(--navy, #233A5C);}
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text, .select2-container .select2-selection--single{
  font:inherit !important; font-size:1rem !important; border:1px solid rgba(46,42,36,.35) !important; border-radius:12px !important;
  padding:11px 14px !important; min-height:48px; background:#fff !important;}
.select2-container .select2-selection--single{height:48px !important; padding:8px 6px !important;}
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus{outline:3px solid var(--sky, #4FB6E0); outline-offset:1px;}
.woocommerce form .form-row .description{font-size:.85rem; color:#6f6455;}
.woocommerce-checkout #payment{background:var(--cream, #FBF3E7) !important; border-radius:18px !important;}
.woocommerce-checkout #payment div.payment_box{background:#fff !important; border-radius:12px;}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#fff !important;}
.etb-checkout-note{background:#E6F2EF; border-radius:12px; padding:12px 14px; font-weight:700; color:#2F6B61; margin:0 0 14px;}
.etb-digital-consent{background:#fff; border:2px solid var(--line, #E8DCC8); border-radius:12px; padding:12px 14px !important; margin:0 0 12px !important;}
.etb-digital-consent label{font-weight:600 !important; color:#3A342E !important; display:flex !important; gap:10px; align-items:flex-start;}
.etb-digital-consent input{width:20px; height:20px; margin-top:2px; flex:none;}
.woocommerce-terms-and-conditions-wrapper .form-row label{display:flex; gap:10px; align-items:flex-start;}
#place_order{width:100%; font-size:1.15rem !important;}

/* ---- phones ---- */
@media (max-width:760px){
  .etb-shop-hero{grid-template-columns:1fr;}
  .etb-shop-hero-art{max-width:360px; margin:0 auto;}
  .etb-promises--compact{grid-template-columns:1fr;}
  .woocommerce ul.products{grid-template-columns:1fr 1fr; gap:12px;}
  .woocommerce ul.products li.product .button{padding:10px 14px !important; font-size:.9rem !important;}
  .woocommerce-message .button, .woocommerce-info .button{float:none; display:block; margin:10px 0 0 !important; text-align:center;}
}
@media (max-width:420px){ .woocommerce ul.products{grid-template-columns:1fr;} }

/* Basket and checkout use the theme's page card, whose text column is capped at 70ch for reading.
   Forms and tables need the full card; on wide screens "Your order" sits beside the details. */
.woocommerce-cart .etb-entry-content, .woocommerce-checkout .etb-entry-content, .woocommerce-account .etb-entry-content{max-width:none;}
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2{width:100% !important; float:none !important;}
@media (min-width:900px){
  .woocommerce-checkout #customer_details{float:left; width:46%;}
  .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review{float:right; width:50%; clear:right;}
  .woocommerce-checkout #order_review_heading{margin-top:0;}
  .woocommerce-checkout form.checkout::after{content:""; display:table; clear:both;}
  .woocommerce-cart .woocommerce{display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:28px; align-items:start;}
  .woocommerce-cart .woocommerce > .woocommerce-notices-wrapper{grid-column:1 / -1;}
  .woocommerce-cart .cart-collaterals .cart_totals{max-width:none;}
}

/* ---- accessibility (2 Nov 2026) ---- */
/* WooCommerce's "show password" eye was 22px: WCAG 2.2 SC 2.5.8 asks for at least 24px. */
.woocommerce .show-password-input, .woocommerce-page .show-password-input{min-width:28px; min-height:28px;}
.woocommerce a:focus-visible, .woocommerce button:focus-visible, .woocommerce input:focus-visible,
.woocommerce select:focus-visible, .woocommerce textarea:focus-visible, .woocommerce .button:focus-visible{outline:3px solid var(--navy, #233A5C) !important; outline-offset:2px;}

/* Christmas multi-buy line (27 Nov 2026) */
.etb-multibuy{margin:0 0 18px; padding:10px 16px; border-radius:14px; background:#FFF4D6; border:1px solid #E0A937; color:#233A5C; font-weight:800; line-height:1.4;}
.etb-multibuy::before{content:"🎁 "; }

/* Posted gift boxes (30 Nov 2026): quantities matter again, so the quantity column and "Update basket" come back
   when a box is in the basket: the hide rules above skip body.etb-cart-posted (inc/shop.php). */
.etb-post-by{margin:0 0 18px; padding:10px 16px; border-radius:14px; background:#E6F2EF; border:1px solid #2F6B61;
  color:#233A5C; font-weight:800; line-height:1.4;}
