/* Todo Camas NORPUQ — Cart / Checkout visual layer v1.7
   Scoped to WooCommerce cart + checkout only. No gateway, order or checkout logic is changed. */

:root{
  --tc-ink:#171714;
  --tc-paper:#fbfaf6;
  --tc-ivory:#f3efe7;
  --tc-line:rgba(23,23,20,.14);
  --tc-muted:#747168;
  --tc-copper:#a26f3e;
  --tc-green:#153c2d;
  --tc-white:#fff;
}

body.woocommerce-cart,
body.woocommerce-checkout{
  background:var(--tc-paper)!important;
  color:var(--tc-ink)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

/* Header: keep Astra/WooCommerce markup, visually align it with the NORPUQ home. */
body.woocommerce-cart #masthead,
body.woocommerce-checkout #masthead,
body.woocommerce-cart #ast-desktop-header,
body.woocommerce-checkout #ast-desktop-header,
body.woocommerce-cart #ast-mobile-header,
body.woocommerce-checkout #ast-mobile-header,
body.woocommerce-cart .ast-primary-header-bar,
body.woocommerce-checkout .ast-primary-header-bar,
body.woocommerce-cart .ast-main-header-wrap,
body.woocommerce-checkout .ast-main-header-wrap{
  background:rgba(251,250,246,.97)!important;
  color:var(--tc-ink)!important;
}
body.woocommerce-cart #masthead,
body.woocommerce-checkout #masthead{
  border-bottom:1px solid var(--tc-line)!important;
  box-shadow:none!important;
}
body.woocommerce-cart .main-header-menu > .menu-item > .menu-link,
body.woocommerce-checkout .main-header-menu > .menu-item > .menu-link,
body.woocommerce-cart .ast-header-account-wrap,
body.woocommerce-checkout .ast-header-account-wrap,
body.woocommerce-cart .ast-site-header-cart .ast-woo-header-cart-info-wrap,
body.woocommerce-checkout .ast-site-header-cart .ast-woo-header-cart-info-wrap,
body.woocommerce-cart .ast-site-header-cart .ast-icon-shopping-cart,
body.woocommerce-checkout .ast-site-header-cart .ast-icon-shopping-cart{
  color:var(--tc-ink)!important;
}
body.woocommerce-cart .main-header-menu > .menu-item > .menu-link,
body.woocommerce-checkout .main-header-menu > .menu-item > .menu-link{
  font-size:12px!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
body.woocommerce-cart .custom-logo-link img,
body.woocommerce-checkout .custom-logo-link img{
  max-height:76px!important;
  width:auto!important;
}

/* Main commerce canvas */
body.woocommerce-cart #content,
body.woocommerce-checkout #content,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content{
  background:var(--tc-paper)!important;
}
body.woocommerce-cart .ast-container,
body.woocommerce-checkout .ast-container{
  max-width:1180px!important;
  padding-left:clamp(18px,4vw,54px)!important;
  padding-right:clamp(18px,4vw,54px)!important;
}
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary{
  margin-top:clamp(42px,6vw,82px)!important;
  margin-bottom:clamp(64px,8vw,110px)!important;
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart h1,
body.woocommerce-checkout h1,
body.woocommerce-cart h2,
body.woocommerce-checkout h2,
body.woocommerce-cart h3,
body.woocommerce-checkout h3{
  font-family:Georgia,"Times New Roman",serif!important;
  color:var(--tc-ink)!important;
  letter-spacing:-.03em!important;
  font-weight:400!important;
}
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title{
  font-size:clamp(42px,5vw,72px)!important;
  line-height:.95!important;
  margin-bottom:34px!important;
}

/* Notices */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-error{
  background:var(--tc-ivory)!important;
  border:1px solid var(--tc-line)!important;
  border-top:3px solid var(--tc-copper)!important;
  color:var(--tc-ink)!important;
  border-radius:18px!important;
  padding:18px 20px!important;
  box-shadow:none!important;
}

/* Tables + cards */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout .woocommerce-additional-fields{
  background:#fff!important;
  border:1px solid var(--tc-line)!important;
  border-radius:26px!important;
  box-shadow:0 20px 48px rgba(23,23,20,.055)!important;
}
body.woocommerce-cart .woocommerce-cart-form{padding:clamp(16px,2vw,26px)!important;overflow:hidden!important}
body.woocommerce-cart .cart_totals{padding:clamp(22px,3vw,34px)!important}
body.woocommerce-checkout #customer_details{padding:clamp(22px,3vw,36px)!important}
body.woocommerce-checkout .woocommerce-checkout-review-order{padding:clamp(22px,3vw,34px)!important}
body.woocommerce-checkout .woocommerce-additional-fields{padding:22px!important;margin-top:22px!important}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table{
  border:0!important;
  border-collapse:collapse!important;
  background:transparent!important;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td{
  border-color:var(--tc-line)!important;
  color:var(--tc-ink)!important;
  padding:16px 12px!important;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th{
  font-size:10px!important;
  text-transform:uppercase!important;
  letter-spacing:.12em!important;
  color:var(--tc-muted)!important;
}
body.woocommerce-cart .product-name a,
body.woocommerce-checkout .product-name{
  color:var(--tc-ink)!important;
  font-weight:700!important;
}
body.woocommerce-cart .product-thumbnail img{
  border-radius:14px!important;
  background:var(--tc-ivory)!important;
}

/* Form controls */
body.woocommerce-cart input.input-text,
body.woocommerce-cart input.qty,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .select2-container--default .select2-selection--single{
  min-height:50px!important;
  background:#fff!important;
  color:var(--tc-ink)!important;
  border:1px solid rgba(23,23,20,.2)!important;
  border-radius:14px!important;
  box-shadow:none!important;
  padding:10px 14px!important;
}
body.woocommerce-checkout textarea{min-height:110px!important;resize:vertical!important}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
  color:var(--tc-ink)!important;
  line-height:28px!important;
}
body.woocommerce-checkout label,
body.woocommerce-cart label{
  color:var(--tc-ink)!important;
  font-size:12px!important;
  font-weight:650!important;
}

/* Buttons: replace legacy blue with the NORPUQ charcoal / ivory system. */
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce input.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout .woocommerce a.button,
body.woocommerce-checkout .woocommerce button.button,
body.woocommerce-checkout .woocommerce input.button,
body.woocommerce-checkout #place_order{
  background:var(--tc-ink)!important;
  border:1px solid var(--tc-ink)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-radius:999px!important;
  min-height:54px!important;
  padding:0 25px!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  box-shadow:none!important;
}
body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-checkout .woocommerce a.button:hover,
body.woocommerce-checkout .woocommerce button.button:hover,
body.woocommerce-checkout #place_order:hover{
  background:#2a2924!important;
  border-color:#2a2924!important;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout #place_order{
  width:100%!important;
  justify-content:center!important;
  text-align:center!important;
}

/* Cart totals */
body.woocommerce-cart .cart_totals > h2,
body.woocommerce-checkout #order_review_heading{
  font-size:clamp(30px,3.5vw,46px)!important;
  margin:0 0 22px!important;
}
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-checkout .order-total th,
body.woocommerce-checkout .order-total td{
  font-size:18px!important;
  font-weight:800!important;
}

/* Payment methods: preserve plugin markup/behavior, only skin the container. */
body.woocommerce-checkout #payment{
  background:var(--tc-ivory)!important;
  border-radius:22px!important;
  color:var(--tc-ink)!important;
  overflow:hidden!important;
}
body.woocommerce-checkout #payment ul.payment_methods{
  border-bottom:1px solid var(--tc-line)!important;
  padding:20px!important;
}
body.woocommerce-checkout #payment div.payment_box{
  background:#fff!important;
  color:var(--tc-ink)!important;
  border-radius:14px!important;
}
body.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:#fff!important}
body.woocommerce-checkout #payment .place-order{padding:20px!important}

/* Footer: remove the legacy navy visual and align with the home footer. */
body.woocommerce-cart #colophon,
body.woocommerce-checkout #colophon,
body.woocommerce-cart .site-footer,
body.woocommerce-checkout .site-footer,
body.woocommerce-cart .site-primary-footer-wrap,
body.woocommerce-checkout .site-primary-footer-wrap,
body.woocommerce-cart .site-below-footer-wrap,
body.woocommerce-checkout .site-below-footer-wrap{
  background:var(--tc-ink)!important;
  color:#fff!important;
  border:0!important;
}
body.woocommerce-cart #colophon a,
body.woocommerce-checkout #colophon a,
body.woocommerce-cart #colophon p,
body.woocommerce-checkout #colophon p,
body.woocommerce-cart #colophon .ast-footer-copyright,
body.woocommerce-checkout #colophon .ast-footer-copyright{
  color:#c8c4ba!important;
}

/* Strong, explicit contrast for the white showroom CTA. This also defeats parent-theme text-fill rules. */
body.todo-camas-norpuq-home .showroom-card-copy .actions .btn-light,
body.todo-camas-norpuq-home .showroom-card-copy .actions button.btn-light,
body.todo-camas-norpuq-home .showroom-card-copy .actions .btn-light:link,
body.todo-camas-norpuq-home .showroom-card-copy .actions .btn-light:visited{
  background:#fff!important;
  border-color:#fff!important;
  color:#171714!important;
  -webkit-text-fill-color:#171714!important;
  opacity:1!important;
  visibility:visible!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-indent:0!important;
  text-shadow:none!important;
}

@media(max-width:921px){
  body.woocommerce-cart .ast-container,
  body.woocommerce-checkout .ast-container{padding-left:18px!important;padding-right:18px!important}
  body.woocommerce-cart #primary,
  body.woocommerce-checkout #primary{margin-top:34px!important;margin-bottom:70px!important}
  body.woocommerce-cart .ast-primary-header-bar,
  body.woocommerce-checkout .ast-primary-header-bar{min-height:88px!important}
  body.woocommerce-cart .custom-logo-link img,
  body.woocommerce-checkout .custom-logo-link img{max-height:62px!important}
  body.woocommerce-cart .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle,
  body.woocommerce-checkout .ast-mobile-header-wrap .ast-button-wrap .menu-toggle.main-header-menu-toggle{
    background:var(--tc-ink)!important;
    color:#fff!important;
    border-radius:14px!important;
  }
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .woocommerce-checkout-review-order{
    border-radius:20px!important;
    box-shadow:none!important;
  }
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2{width:100%!important;float:none!important}
  body.woocommerce-checkout #order_review_heading{margin-top:34px!important}
}

@media(max-width:600px){
  body.woocommerce-cart .entry-title,
  body.woocommerce-checkout .entry-title{font-size:42px!important;margin-bottom:24px!important}
  body.woocommerce-cart table.shop_table_responsive tr,
  body.woocommerce-cart table.shop_table_responsive td{border-color:var(--tc-line)!important}
  body.woocommerce-cart .woocommerce-cart-form{padding:12px!important}
  body.woocommerce-cart .cart_totals{padding:20px!important}
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout .woocommerce-checkout-review-order{padding:20px!important}
  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
  body.woocommerce-checkout #place_order{min-height:58px!important;font-size:13px!important}
  body.woocommerce-cart #colophon,
  body.woocommerce-checkout #colophon{padding-left:18px!important;padding-right:18px!important}
}
