/* En Balance 100 — Glass cart & checkout
   Scoped strictly to body.woocommerce-cart / body.woocommerce-checkout
   so nothing else on the site is touched. */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&display=swap');

body.woocommerce-cart,
body.woocommerce-checkout {
  background: linear-gradient(150deg, #eef8f8 0%, #f8f5ee 45%, #faf1e6 100%) fixed;
}

/* real site header: glass on these two pages only */
body.woocommerce-cart #header,
body.woocommerce-checkout #header {
  background: rgba(255,255,255,0.6) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.eb-glass-page{
  position:relative;
  overflow:hidden;
  padding-bottom: 60px;
  font-family: "Albert Sans", system-ui, sans-serif;
  color:#161514;
}
.eb-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:0.5;pointer-events:none;z-index:0;}
.eb-blob-a{width:420px;height:420px;background:#5fd3de;top:-140px;left:-120px;}
.eb-blob-b{width:380px;height:380px;background:#f0b48a;top:100px;right:-160px;opacity:0.35;}
.eb-blob-c{width:320px;height:320px;background:#bfe9c9;bottom:-100px;left:35%;opacity:0.3;}

/* fade-in on load — the one "indispensable" motion touch */
.eb-cart-content, .eb-checkout-content{
  animation: eb-fade-up .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes eb-fade-up{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}
@media (prefers-reduced-motion: reduce){
  .eb-cart-content, .eb-checkout-content{ animation:none; }
}

/* ---- steps ---- */
.eb-steps-wrap{position:relative;z-index:2;display:flex;justify-content:center;padding:30px 24px 6px;}
.eb-steps{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,0.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,0.7);border-radius:999px;padding:10px 22px;box-shadow:0 4px 18px rgba(31,41,42,0.06);}
.eb-step-item{display:flex;align-items:center;gap:9px;}
.eb-step-dot{width:26px;height:26px;border-radius:50%;border:1.5px solid rgba(22,21,20,0.18);color:#8a8681;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .3s ease;}
.eb-step-dot--active{background:#161514;border-color:#161514;color:#fff;}
.eb-step-label{font-size:13.5px;font-weight:500;color:#8a8681;}
.eb-step-label--active{font-weight:700;color:#161514;}
.eb-step-line{width:44px;height:1px;background:rgba(22,21,20,0.15);}
.eb-step-line--done{background:#161514;}

/* ---- cart layout ---- */
.eb-cart-content, .eb-checkout-content{position:relative;z-index:2;max-width:1180px;margin:0 auto;padding:24px 24px 0;}
.eb-cart-content{display:grid;grid-template-columns:1fr 380px;gap:40px;align-items:start;}

.eb-title-row{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px;}
.eb-title-row h1, .eb-checkout-h1{font-family:'Cormorant Garamond',Georgia,serif;font-size:28px;font-weight:600;margin:0 0 18px;}
.eb-count{font-size:14px;color:#6b6864;}

.eb-cart-item{display:flex;gap:18px;padding:20px 0;border-bottom:1px solid rgba(22,21,20,0.10);}
.eb-item-thumb{width:88px;height:88px;border-radius:14px;flex-shrink:0;overflow:hidden;background:rgba(255,255,255,0.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.75);}
.eb-item-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.eb-item-body{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;}
.eb-item-top{display:flex;justify-content:space-between;gap:12px;}
.eb-item-name a{color:#161514;text-decoration:none;font-size:15px;font-weight:600;line-height:1.35;}
.eb-item-meta{font-size:12.5px;color:#767370;}
.eb-item-remove{background:none;border:none;cursor:pointer;padding:6px;color:#8a8681;align-self:flex-start;border-radius:50%;transition:background .2s ease, color .2s ease;}
.eb-item-remove:hover{background:rgba(217,90,60,0.1);color:#c94b2f;}
.eb-item-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:6px;flex-wrap:wrap;gap:10px;}
.eb-item-price{font-size:16px;font-weight:700;color:#c96a3f;}

/* theme's own quantity stepper — restyled, logic untouched */
.eb-item-qty .quantity, .eb-item-qty .detail-qty{
  display:flex;align-items:center;
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.8);
  border-radius:999px;overflow:hidden;
  width:fit-content;
}
.eb-item-qty a.qty-up, .eb-item-qty a.qty-down{
  width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  color:#161514;text-decoration:none;transition:background .15s ease, transform .1s ease;
}
.eb-item-qty a.qty-up:hover, .eb-item-qty a.qty-down:hover{background:rgba(22,21,20,0.06);}
.eb-item-qty a.qty-up:active, .eb-item-qty a.qty-down:active{transform:scale(0.9);}
.eb-item-qty input.qty{
  width:34px;text-align:center;border:none;background:none;font-size:14px;font-weight:600;
  font-family:inherit;color:#161514;
}

.eb-cart-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:22px;}
.eb-coupon{display:flex;gap:10px;flex:1;min-width:260px;}
.eb-coupon input{flex:1;padding:12px 16px;border:1px solid rgba(22,21,20,0.16);border-radius:10px;font-size:14px;font-family:inherit;background:rgba(255,255,255,0.55);}
.eb-coupon-btn, .eb-update-cart{
  padding:12px 20px !important;border:1px solid #161514 !important;border-radius:10px !important;background:none !important;
  font-size:14px !important;font-weight:600 !important;cursor:pointer;color:#161514 !important;white-space:nowrap;font-family:inherit !important;
  transition:background .2s ease, color .2s ease, transform .1s ease;
  box-shadow:none !important;text-transform:none !important;
}
.eb-coupon-btn:hover, .eb-update-cart:hover{background:#161514 !important;color:#fff !important;}
.eb-coupon-btn:active, .eb-update-cart:active{transform:scale(0.97);}

.eb-continue-shopping{display:inline-flex;align-items:center;gap:6px;margin-top:22px;font-size:14px;font-weight:600;color:#2b98a5;text-decoration:none;}
.eb-continue-shopping:hover{color:#3bbfce;}

/* ---- summary glass card (cart + checkout order review) ---- */
.eb-summary, .eb-order-review-glass{
  position:sticky;top:20px;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(22px) saturate(160%);
  -webkit-backdrop-filter:blur(22px) saturate(160%);
  border:1px solid rgba(255,255,255,0.75);
  border-radius:20px;
  padding:26px;
  box-shadow:0 12px 40px rgba(31,41,42,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
.eb-summary-title{font-size:16px;font-weight:700;margin-bottom:16px;}
.eb-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#6b6864;padding:8px 0;}
.eb-strong{color:#161514;font-weight:600;}
.eb-sage{color:#3f7a52;font-weight:600;}
.eb-divider{height:1px;background:rgba(22,21,20,0.12);margin:10px 0;}
.eb-total span:first-child{font-size:15px;font-weight:700;color:#161514;}
.eb-total-amt{font-size:22px;font-weight:700;color:#161514;}

.eb-proceed{margin-top:18px;}
.eb-proceed a.checkout-button,
#place_order{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;padding:16px;background:#000 !important;color:#fff !important;border:none;
  border-radius:12px;font-size:15px;font-weight:700;cursor:pointer;text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,0.18);transition:transform .12s ease, box-shadow .2s ease;
  font-family:inherit;
}
.eb-proceed a.checkout-button:hover, #place_order:hover{box-shadow:0 10px 26px rgba(0,0,0,0.24);}
.eb-proceed a.checkout-button:active, #place_order:active{transform:scale(0.98);}

.eb-secure{display:flex;align-items:center;gap:8px;justify-content:center;margin-top:16px;font-size:12.5px;color:#6b6864;}
.eb-chips{display:flex;align-items:center;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(22,21,20,0.10);flex-wrap:wrap;}
.eb-chip{background:rgba(255,255,255,0.6);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.75);border-radius:8px;padding:5px 10px;font-size:10.5px;font-weight:700;color:#6b6864;}
.eb-chip--accent{color:#2b98a5;}

/* cart totals table bits that remain (shipping calc select, coupon remove x) */
.eb-summary table, .eb-summary th, .eb-summary td{all:unset;display:block;}
.eb-row select, .eb-row input[type="text"]{
  font-family:inherit;padding:8px 10px;border-radius:8px;border:1px solid rgba(22,21,20,0.15);background:rgba(255,255,255,0.6);
}

/* ---- checkout ---- */
.eb-checkout-cols{display:grid;grid-template-columns:1fr 400px;gap:44px;align-items:start;}
.eb-fields-glass .form-row{margin-bottom:14px;}
.eb-fields-glass label{font-size:12.5px;font-weight:600;color:#767370;margin-bottom:5px;display:block;}
.eb-fields-glass input.input-text,
.eb-fields-glass select,
.eb-fields-glass textarea{
  width:100%;padding:12px 14px;border:1px solid rgba(22,21,20,0.14);border-radius:10px;
  font-size:14px;font-family:inherit;color:#161514;
  background:rgba(255,255,255,0.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.eb-fields-glass input.input-text:focus,
.eb-fields-glass select:focus,
.eb-fields-glass textarea:focus{
  outline:none;border-color:#3bbfce;box-shadow:0 0 0 3px rgba(59,191,206,0.18);
}

/* payment method list -> selectable glass cards */
ul.payment_methods{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:10px;}
ul.payment_methods li.woocommerce-PaymentMethod{
  border:1.5px solid rgba(22,21,20,0.12);border-radius:12px;padding:14px 16px;
  background:rgba(255,255,255,0.5);transition:border-color .2s ease, background .2s ease;
}
ul.payment_methods li.woocommerce-PaymentMethod--active{
  border-color:#2b98a5;background:rgba(59,191,206,0.08);
}
ul.payment_methods label{font-weight:700;font-size:14px;}
.woocommerce-checkout-payment .payment_box{
  margin-top:10px;padding:14px;border-radius:10px;background:rgba(255,255,255,0.6);font-size:13.5px;
}

.eb-order-review-glass table.shop_table{width:100%;border-collapse:collapse;}
.eb-order-review-glass table.shop_table th, .eb-order-review-glass table.shop_table td{
  text-align:left;padding:8px 0;font-size:14px;color:#6b6864;border:none;
}
.eb-order-review-glass table.shop_table tr.order-total th,
.eb-order-review-glass table.shop_table tr.order-total td{font-size:16px;font-weight:700;color:#161514;}
.eb-order-review-glass .product-name{color:#161514;}

.woocommerce-terms-and-conditions-wrapper{margin:16px 0;font-size:12.5px;color:#6b6864;}

@media (max-width: 900px){
  .eb-cart-content{grid-template-columns:1fr;}
  .eb-checkout-cols{grid-template-columns:1fr;}
  .eb-summary, .eb-order-review-glass{position:static;}
}
