/* Agossa v4.5 — final commerce UX layer.
 * Focus: seamless checkout canvas, compact category hero, category price,
 * and a genuinely mobile-first cart. Loaded after every previous commerce layer.
 */
:root{
  --ag45-ink:#171716;
  --ag45-muted:#74716b;
  --ag45-line:#e5e2de;
  --ag45-soft:#f7f5f2;
  --ag45-soft-2:#f2efeb;
  --ag45-white:#fff;
  --ag45-radius:10px;
}

/* ---------------------------------------------------------
 * CHECKOUT — one continuous form, right canvas to viewport end
 * --------------------------------------------------------- */
body.woocommerce-checkout{background:#fff!important;overflow-x:hidden!important}
body.woocommerce-checkout .agossa-checkout-form{
  position:relative!important;
  left:50%!important;
  width:100vw!important;
  max-width:none!important;
  margin-left:-50vw!important;
  background:#fff!important;
  overflow:visible!important;
}
body.woocommerce-checkout .agossa-checkout-topbar{height:92px!important;background:#fff!important;border-bottom:1px solid #eceae7!important}
body.woocommerce-checkout .agossa-checkout-topbar-inner{width:min(calc(100% - 48px),1260px)!important}
body.woocommerce-checkout .agossa-checkout-back{
  width:42px!important;height:42px!important;border:1px solid transparent!important;border-radius:999px!important;
  transition:background .18s ease,border-color .18s ease!important;
}
body.woocommerce-checkout .agossa-checkout-back:hover{background:#f7f6f4!important;border-color:#ece9e5!important}
body.woocommerce-checkout .agossa-checkout-back svg{display:block!important;width:23px!important;height:23px!important}

body.woocommerce-checkout .agossa-checkout-layout{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:minmax(0,55%) minmax(0,45%)!important;
  width:100vw!important;
  max-width:none!important;
  min-height:760px!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
  overflow:visible!important;
  background:linear-gradient(to right,#fff 0,#fff 55%,var(--ag45-soft) 55%,var(--ag45-soft) 100%)!important;
}
body.woocommerce-checkout .agossa-checkout-layout::after{
  content:""!important;position:absolute!important;z-index:-1!important;top:0!important;bottom:0!important;left:55%!important;right:-50vw!important;
  background:var(--ag45-soft)!important;pointer-events:none!important;
}
body.woocommerce-checkout .agossa-checkout-left{padding:36px 0 72px!important;background:#fff!important}
body.woocommerce-checkout .agossa-checkout-inner{width:min(calc(100% - 48px),640px)!important;max-width:640px!important;margin:0 70px 0 auto!important}
body.woocommerce-checkout .agossa-checkout-right{padding:36px 0 72px 48px!important;background:transparent!important;border-left:1px solid #e7e3df!important}
body.woocommerce-checkout .agossa-order-summary{width:min(calc(100% - 54px),510px)!important;max-width:510px!important;background:transparent!important}

/* Remove artificial form section cards/headings. */
body.woocommerce-checkout .agossa-contact-section,
body.woocommerce-checkout .agossa-delivery-section,
body.woocommerce-checkout .agossa-checkout-shipping-section{display:none!important}
body.woocommerce-checkout .agossa-billing-fields,
body.woocommerce-checkout .agossa-checkout-primary-fields{width:100%!important;margin:0!important;padding:0!important}
body.woocommerce-checkout .agossa-checkout-primary-fields{
  display:flex!important;flex-wrap:wrap!important;gap:10px 12px!important;
}
body.woocommerce-checkout .agossa-checkout-primary-fields .form-row{margin:0!important;padding:0!important}
body.woocommerce-checkout .agossa-checkout-primary-fields .form-row-wide{width:100%!important}
body.woocommerce-checkout .agossa-checkout-primary-fields .form-row-first,
body.woocommerce-checkout .agossa-checkout-primary-fields .form-row-last{width:calc(50% - 6px)!important;float:none!important}
body.woocommerce-checkout #billing_country_field{display:none!important}
body.woocommerce-checkout #billing_email_field{order:46!important}
body.woocommerce-checkout .agossa-phone-shell{order:48!important;width:100%!important;margin:0!important}
body.woocommerce-checkout .agossa-corporate-toggle-row{order:70!important;width:100%!important}
body.woocommerce-checkout #billing_company_field{order:71!important;width:100%!important}
body.woocommerce-checkout #billing_tax_office_field{order:72!important;width:calc(50% - 6px)!important}
body.woocommerce-checkout #billing_tax_no_field{order:73!important;width:calc(50% - 6px)!important}

body.woocommerce-checkout .agossa-checkout-form input.input-text,
body.woocommerce-checkout .agossa-checkout-form textarea,
body.woocommerce-checkout .agossa-checkout-form select,
body.woocommerce-checkout .agossa-checkout-form .select2-container .select2-selection--single{
  min-height:52px!important;border:1px solid #d8d5d1!important;border-radius:7px!important;background:#fff!important;
  font-size:13px!important;color:#222!important;box-shadow:none!important;transition:border-color .16s ease,box-shadow .16s ease!important;
}
body.woocommerce-checkout .agossa-checkout-form input.input-text:focus,
body.woocommerce-checkout .agossa-checkout-form textarea:focus,
body.woocommerce-checkout .agossa-checkout-form select:focus,
body.woocommerce-checkout .agossa-checkout-form .select2-container--open .select2-selection--single{
  border-color:#8f8b84!important;box-shadow:0 0 0 2px rgba(27,27,25,.05)!important;outline:0!important;
}
body.woocommerce-checkout .agossa-checkout-form textarea{min-height:98px!important;padding:13px 14px!important;resize:vertical!important}

/* Phone control: email sits directly above this shell. */
body.woocommerce-checkout .agossa-phone-shell{
  display:grid!important;grid-template-columns:128px minmax(0,1fr)!important;gap:0!important;
  min-height:52px!important;border:1px solid #d8d5d1!important;border-radius:7px!important;background:#fff!important;overflow:hidden!important;
}
body.woocommerce-checkout .agossa-phone-shell.is-other{grid-template-columns:112px 82px minmax(0,1fr)!important}
body.woocommerce-checkout .agossa-phone-shell .form-row{width:auto!important;min-width:0!important}
body.woocommerce-checkout .agossa-phone-shell select,
body.woocommerce-checkout .agossa-phone-shell input.input-text,
body.woocommerce-checkout .agossa-phone-shell .select2-selection--single{
  min-height:50px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;
}
body.woocommerce-checkout .agossa-phone-shell #billing_phone_country_type_field,
body.woocommerce-checkout .agossa-phone-shell #billing_phone_country_code_field{border-right:1px solid #e5e2de!important}

/* Corporate + marketing checkboxes: clean neutral rows, no tinted blocks. */
body.woocommerce-checkout .agossa-corporate-toggle-row,
body.woocommerce-checkout .agossa-marketing-checkbox{
  padding:2px 0!important;background:transparent!important;border:0!important;border-radius:0!important;
}
body.woocommerce-checkout .agossa-corporate-toggle-row label,
body.woocommerce-checkout .agossa-marketing-checkbox label{display:flex!important;align-items:flex-start!important;gap:10px!important;font-size:11px!important;line-height:1.5!important;color:#5f5c56!important}
body.woocommerce-checkout input[type="checkbox"]{
  appearance:none!important;-webkit-appearance:none!important;flex:0 0 18px!important;width:18px!important;height:18px!important;
  margin:0!important;border:1px solid #cfcac4!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important;
  display:inline-grid!important;place-content:center!important;
}
body.woocommerce-checkout input[type="checkbox"]::before{
  content:""!important;width:8px!important;height:5px!important;border-left:1.7px solid #fff!important;border-bottom:1.7px solid #fff!important;
  transform:rotate(-45deg) scale(0)!important;transform-origin:center!important;transition:transform .12s ease!important;
}
body.woocommerce-checkout input[type="checkbox"]:checked{background:#171716!important;border-color:#171716!important}
body.woocommerce-checkout input[type="checkbox"]:checked::before{transform:rotate(-45deg) scale(1)!important}

/* Order notes remain part of the same continuous form. */
body.woocommerce-checkout .woocommerce-additional-fields{margin-top:24px!important}
body.woocommerce-checkout .woocommerce-additional-fields h3{display:none!important}
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper{display:block!important}

/* Payment: calm, premium, gateway-compatible. */
body.woocommerce-checkout .agossa-checkout-payment{margin-top:36px!important;padding-top:28px!important;border-top:1px solid #e6e3df!important}
body.woocommerce-checkout .agossa-checkout-payment>h2{font-size:20px!important;font-weight:650!important;letter-spacing:-.025em!important}
body.woocommerce-checkout #payment,
body.woocommerce-checkout .woocommerce-checkout-payment{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.woocommerce-checkout #payment ul.payment_methods{margin:0!important;padding:0!important;border:1px solid #dcd8d3!important;border-radius:9px!important;background:#fff!important;overflow:hidden!important}
body.woocommerce-checkout #payment ul.payment_methods>li{margin:0!important;padding:0!important;border-bottom:1px solid #e5e2de!important;background:#fff!important}
body.woocommerce-checkout #payment ul.payment_methods>li:last-child{border-bottom:0!important}
body.woocommerce-checkout #payment ul.payment_methods>li>label{display:flex!important;align-items:center!important;min-height:54px!important;margin:0!important;padding:0 16px!important;font-size:13px!important;font-weight:550!important;color:#252421!important;background:#fff!important}
body.woocommerce-checkout #payment div.payment_box{margin:0!important;padding:16px!important;border:0!important;border-top:1px solid #ebe8e4!important;background:#fbfaf8!important;border-radius:0!important;box-shadow:none!important}
body.woocommerce-checkout #payment div.payment_box::before{display:none!important}
body.woocommerce-checkout #payment .place-order{margin:18px 0 0!important;padding:0!important}
body.woocommerce-checkout #payment #place_order{width:100%!important;min-height:56px!important;border:0!important;border-radius:7px!important;background:#171716!important;color:#fff!important;font-size:13px!important;font-weight:650!important;letter-spacing:.035em!important;box-shadow:none!important}
body.woocommerce-checkout #payment #place_order:hover{background:#2c2b29!important}
body.woocommerce-checkout .agossa-checkout-actions-bottom{margin-top:24px!important}
body.woocommerce-checkout .agossa-back-cart{display:inline-flex!important;align-items:center!important;gap:7px!important;color:#68655f!important;text-decoration:none!important;font-size:11px!important}
body.woocommerce-checkout .agossa-back-cart svg{width:15px!important;height:15px!important}

/* Right summary: transparent contents over a full-bleed tinted canvas. */
body.woocommerce-checkout .agossa-review-order,
body.woocommerce-checkout .agossa-review-products,
body.woocommerce-checkout .agossa-review-coupon,
body.woocommerce-checkout .agossa-review-totals{background:transparent!important}
body.woocommerce-checkout .agossa-review-products{max-height:430px!important;overflow:auto!important;padding-right:4px!important;scrollbar-width:thin!important}
body.woocommerce-checkout .agossa-review-product{grid-template-columns:58px minmax(0,1fr) auto!important;gap:12px!important;padding:8px 0!important;border:0!important}
body.woocommerce-checkout .agossa-review-product-image{width:58px!important;height:58px!important;border-radius:7px!important;background:#fff!important;border:1px solid #e2ded9!important}
body.woocommerce-checkout .agossa-review-product-image img{width:56px!important;height:56px!important;border-radius:6px!important;object-fit:cover!important}
body.woocommerce-checkout .agossa-review-product-image>span{top:-8px!important;right:-8px!important;min-width:20px!important;height:20px!important;padding:0 6px!important;background:#77736e!important;font-size:9px!important;line-height:20px!important}
body.woocommerce-checkout .agossa-review-product-info strong{font-size:11.5px!important;line-height:1.35!important;font-weight:600!important}
body.woocommerce-checkout .agossa-review-product-info .variation{margin-top:3px!important;font-size:9.5px!important;color:#7c7872!important}
body.woocommerce-checkout .agossa-review-product-price{font-size:11px!important;font-weight:600!important;white-space:nowrap!important}
body.woocommerce-checkout .agossa-remove-checkout-item{opacity:0!important;transition:opacity .15s ease!important}
body.woocommerce-checkout .agossa-review-product:hover .agossa-remove-checkout-item{opacity:.65!important}
body.woocommerce-checkout .agossa-review-coupon{margin:20px 0!important;padding:20px 0!important;border-top:1px solid #dfdcd8!important;border-bottom:1px solid #dfdcd8!important}
body.woocommerce-checkout .agossa-coupon-form{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;gap:10px!important}
body.woocommerce-checkout .agossa-coupon-code{min-height:48px!important;border-radius:6px!important;background:#fff!important}
body.woocommerce-checkout .agossa-apply-coupon{min-height:48px!important;border:1px solid #d8d4cf!important;border-radius:6px!important;background:#e8e5e1!important;color:#5b5752!important;font-size:11px!important;font-weight:600!important}
body.woocommerce-checkout .agossa-review-totals{padding:0!important}
body.woocommerce-checkout .agossa-review-row{padding:6px 0!important;font-size:11px!important;color:#66625d!important}
body.woocommerce-checkout .agossa-review-total{margin-top:12px!important;padding:18px 0 0!important;border-top:1px solid #dcd8d3!important}
body.woocommerce-checkout .agossa-review-total span{font-size:16px!important;font-weight:650!important}
body.woocommerce-checkout .agossa-review-total strong,
body.woocommerce-checkout .agossa-review-total .amount{font-size:19px!important;font-weight:700!important}
/* Keep shipping choices functional in the summary, but do not create a separate left-side Kargo section. */
body.woocommerce-checkout .agossa-review-shipping-options{margin:8px 0 12px!important}
body.woocommerce-checkout .agossa-shipping-table{width:100%!important;margin:0!important;border:0!important;background:transparent!important}
body.woocommerce-checkout .agossa-shipping-table td{padding:8px 0!important;border:0!important;background:transparent!important}

/* ---------------------------------------------------------
 * VARIATION CATEGORY — slightly shorter hero + visible category price
 * --------------------------------------------------------- */
.agossa-var-archive-v36 .agossa-var-hero-v36{height:clamp(240px,19vw,350px)!important;min-height:240px!important}
.agossa-var-archive-v36 .agossa-var-title-line-v45{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:24px!important;width:100%!important}
.agossa-var-archive-v36 .agossa-var-title-line-v45>div:first-child{display:flex!important;align-items:baseline!important;gap:12px!important;min-width:0!important}
.agossa-var-archive-v36 .agossa-category-price-v45{display:flex!important;align-items:baseline!important;gap:8px!important;margin-left:auto!important;white-space:nowrap!important}
.agossa-var-archive-v36 .agossa-category-price-v45 span{font-size:10px!important;font-weight:450!important;color:#8c8881!important;text-transform:uppercase!important;letter-spacing:.08em!important}
.agossa-var-archive-v36 .agossa-category-price-v45 strong{font-size:16px!important;font-weight:600!important;color:#1b1a18!important;letter-spacing:-.02em!important}

/* ---------------------------------------------------------
 * CART — phone layout rebuilt as product cards, not a squeezed desktop table
 * --------------------------------------------------------- */
@media (max-width:700px){
  body.woocommerce-cart .agossa-cart-page-v40{width:100%!important;padding:24px 16px 54px!important}
  body.woocommerce-cart .agossa-cart-heading-v40{align-items:flex-end!important;margin-bottom:20px!important;padding-bottom:14px!important}
  body.woocommerce-cart .agossa-cart-heading-v40 h1{font-size:30px!important;letter-spacing:-.045em!important}
  body.woocommerce-cart .agossa-cart-count-v40{font-size:10px!important}
  body.woocommerce-cart .agossa-cart-layout-v40{gap:28px!important}
  body.woocommerce-cart .agossa-cart-products-v40{min-width:0!important}
  body.woocommerce-cart .agossa-cart-items-v40{display:grid!important;gap:12px!important}
  body.woocommerce-cart .agossa-cart-item-v40{
    display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;grid-template-areas:"product product" "qty qty" "tax total"!important;
    gap:14px 12px!important;margin:0!important;padding:16px!important;border:1px solid #e7e4df!important;border-radius:12px!important;background:#fff!important;
  }
  body.woocommerce-cart .agossa-cart-product-v40{grid-area:product!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 24px!important;gap:12px!important;align-items:center!important}
  body.woocommerce-cart .agossa-cart-remove-v40.remove{grid-column:3!important;grid-row:1!important;position:static!important;align-self:start!important;justify-self:end!important;width:24px!important;height:24px!important;order:3!important}
  body.woocommerce-cart .agossa-cart-image-v40{grid-column:1!important;grid-row:1!important}
  body.woocommerce-cart .agossa-cart-image-v40,
  body.woocommerce-cart .agossa-cart-image-v40 a,
  body.woocommerce-cart .agossa-cart-image-v40 img{width:76px!important;height:76px!important;border-radius:9px!important}
  body.woocommerce-cart .agossa-cart-copy-v40{grid-column:2!important;grid-row:1!important;align-self:center!important;min-width:0!important}
  body.woocommerce-cart .agossa-cart-copy-v40 h2{font-size:13px!important;line-height:1.3!important;margin:0 0 5px!important}
  body.woocommerce-cart .agossa-cart-copy-v40 p{font-size:10.5px!important;line-height:1.45!important;margin:0!important;color:#77736d!important}
  body.woocommerce-cart .agossa-cart-item-qty-v40{grid-area:qty!important;display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;padding-top:13px!important;border-top:1px solid #efede9!important}
  body.woocommerce-cart .agossa-cart-item-qty-v40::before{content:attr(data-label)!important;min-width:0!important;font-size:9px!important;letter-spacing:.08em!important;color:#96918a!important}
  body.woocommerce-cart .agossa-cart-stepper-v40{height:36px!important;border:1px solid #dedad5!important;border-radius:8px!important;background:#fff!important}
  body.woocommerce-cart .agossa-cart-stepper-v40 button{width:34px!important;height:34px!important;font-size:16px!important}
  body.woocommerce-cart .agossa-cart-stepper-v40 input{width:58px!important;height:34px!important;font-size:11px!important}
  body.woocommerce-cart .agossa-cart-qty-label-v40{font-size:10px!important;color:#7d7973!important}
  body.woocommerce-cart .agossa-cart-tax-v40{grid-area:tax!important}
  body.woocommerce-cart .agossa-cart-price-v40{grid-area:total!important}
  body.woocommerce-cart .agossa-cart-tax-v40,
  body.woocommerce-cart .agossa-cart-price-v40{padding-top:15px!important;font-size:12px!important;font-weight:600!important}
  body.woocommerce-cart .agossa-cart-price-v40{text-align:right!important}
  body.woocommerce-cart .agossa-cart-footer-v40{padding-top:6px!important}
  body.woocommerce-cart .agossa-cart-coupon-v40{display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;gap:8px!important}
  body.woocommerce-cart .agossa-cart-coupon-v40 input,
  body.woocommerce-cart .agossa-cart-coupon-v40 button{min-height:46px!important;border-radius:8px!important}
  body.woocommerce-cart .agossa-cart-summary-v40{width:100%!important;justify-self:stretch!important}
  body.woocommerce-cart .agossa-cart-summary-card-v40{border-radius:12px!important}
  body.woocommerce-cart .agossa-cart-checkout-v40 a.checkout-button{height:52px!important;border-radius:8px!important;font-size:13px!important}
}

/* Checkout responsive — summary first only on smaller screens, full-bleed soft canvas preserved. */
@media (max-width:980px){
  body.woocommerce-checkout .agossa-checkout-form{left:0!important;width:100%!important;margin-left:0!important}
  body.woocommerce-checkout .agossa-checkout-layout{display:flex!important;flex-direction:column!important;width:100%!important;background:#fff!important}
  body.woocommerce-checkout .agossa-checkout-layout::after{display:none!important}
  body.woocommerce-checkout .agossa-checkout-right{order:1!important;width:100%!important;padding:24px 20px 28px!important;border-left:0!important;border-bottom:1px solid #e4e0dc!important;background:var(--ag45-soft)!important}
  body.woocommerce-checkout .agossa-order-summary{position:static!important;width:min(100%,680px)!important;max-width:680px!important;margin:0 auto!important}
  body.woocommerce-checkout .agossa-checkout-left{order:2!important;padding:30px 20px 54px!important}
  body.woocommerce-checkout .agossa-checkout-inner{width:min(100%,680px)!important;max-width:680px!important;margin:0 auto!important}
}
@media (max-width:560px){
  body.woocommerce-checkout .agossa-checkout-topbar{height:72px!important}
  body.woocommerce-checkout .agossa-checkout-topbar-inner{width:calc(100% - 28px)!important}
  body.woocommerce-checkout .agossa-checkout-logo img{max-width:128px!important;max-height:34px!important}
  body.woocommerce-checkout .agossa-checkout-right{padding:20px 14px 24px!important}
  body.woocommerce-checkout .agossa-checkout-left{padding:24px 14px 46px!important}
  body.woocommerce-checkout .agossa-checkout-primary-fields{gap:9px!important}
  body.woocommerce-checkout .agossa-checkout-primary-fields .form-row-first,
  body.woocommerce-checkout .agossa-checkout-primary-fields .form-row-last,
  body.woocommerce-checkout #billing_tax_office_field,
  body.woocommerce-checkout #billing_tax_no_field{width:100%!important}
  body.woocommerce-checkout .agossa-phone-shell{grid-template-columns:112px minmax(0,1fr)!important}
  body.woocommerce-checkout .agossa-phone-shell.is-other{grid-template-columns:96px 68px minmax(0,1fr)!important}
  body.woocommerce-checkout .agossa-review-products{max-height:310px!important}
  body.woocommerce-checkout .agossa-review-product{grid-template-columns:52px minmax(0,1fr) auto!important;gap:9px!important}
  body.woocommerce-checkout .agossa-review-product-image{width:52px!important;height:52px!important}
  body.woocommerce-checkout .agossa-review-product-image img{width:50px!important;height:50px!important}
  body.woocommerce-checkout .agossa-coupon-form{grid-template-columns:minmax(0,1fr) 94px!important}
  .agossa-var-archive-v36 .agossa-var-hero-v36{height:190px!important;min-height:190px!important}
  .agossa-var-archive-v36 .agossa-var-title-line-v45{align-items:flex-start!important;gap:12px!important}
  .agossa-var-archive-v36 .agossa-var-title-line-v45>div:first-child{display:block!important}
  .agossa-var-archive-v36 .agossa-category-price-v45{display:block!important;text-align:right!important}
  .agossa-var-archive-v36 .agossa-category-price-v45 span{display:block!important;margin-bottom:2px!important;font-size:8px!important}
  .agossa-var-archive-v36 .agossa-category-price-v45 strong{font-size:13px!important}
}
@media (min-width:561px) and (max-width:991.98px){
  .agossa-var-archive-v36 .agossa-var-hero-v36{height:215px!important;min-height:215px!important}
}
body.woocommerce-checkout .site-footer,
body.woocommerce-checkout footer.site-footer,
body.woocommerce-checkout .desktop-footer,
body.woocommerce-checkout .mobile-footer{display:block!important;visibility:visible!important}
