/* Noorani theme: WooCommerce screens (cart, checkout, account, fallbacks) in the site's style. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.wp-page { padding-bottom: 96px; }
.wp-content { max-width: 1120px; font-size: 16px; line-height: 1.6; }
.wc-fallback { padding: 32px var(--gutter) 96px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt, .wc-block-components-button:not(.is-link), .wc-block-cart__submit-button {
  background: var(--red) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 13px 24px !important;
  font: 600 15px/1.2 var(--font) !important; min-height: 44px; transition: background .3s; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--ink) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce-page form .form-row input.input-text,
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select select {
  border: 1px solid var(--line) !important; border-radius: 12px !important; padding: 12px 14px !important; font: inherit !important; min-height: 46px; background: #fff; }
.woocommerce form .form-row label, .wc-block-components-text-input label { font-size: 14px; color: var(--ink-2); }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--r-md); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 600; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--red) !important; border-radius: 12px; background: var(--mist) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--red) !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--mist); color: var(--red-ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink) !important; font-weight: 600; }
.woocommerce span.onsale { background: var(--red) !important; }
.woocommerce ul.products li.product a img { background: var(--mist); border-radius: var(--r-md); }
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--graphite); }
.woocommerce .woocommerce-breadcrumb a { color: var(--graphite); }
#cart .cart-line a { color: inherit; }
/* the theme's cart drawer uses .cart and .qty; WooCommerce's own cart table, forms and quantity inputs must not inherit them */
table.cart, form.cart, .woocommerce table.shop_table.cart { position: static; inset: auto; z-index: auto; visibility: visible; display: table; }
form.cart { display: block; }
.woocommerce .quantity input.qty, .woocommerce input.qty { display: inline-block; width: 4.5em; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 6px; text-align: center; font: inherit; background: #fff; }
.woocommerce .quantity { display: inline-flex; border: 0; padding: 0; }
.woocommerce-cart-form { margin-bottom: 32px; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 14px 12px; }
.woocommerce table.shop_table img { width: 64px; height: 64px; object-fit: contain; background: var(--mist); border-radius: 10px; }
@media (max-width: 768px) { .woocommerce table.shop_table_responsive tr td::before { font-weight: 600; } }

/* ======================================================================
   Cart and checkout, big-store style (round 17)
   ====================================================================== */
.ns-steps { list-style: none; margin: 0 0 32px; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.ns-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--graphite); padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--mist); }
.ns-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 600; font-size: 13px; color: var(--graphite); }
.ns-steps li.on { background: var(--ink); color: #fff; }
.ns-steps li.on span, .ns-steps li.done span { background: var(--red); color: #fff; }

.ns-cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.ns-cart-h { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.ns-lines { display: block !important; position: static; visibility: visible; border: 0; }
.ns-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; grid-template-areas: "img info qty sub" "img info rm rm"; gap: 6px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ns-thumb { grid-area: img; width: 120px; height: 120px; border-radius: 16px; background: var(--mist); display: grid; place-items: center; padding: 10px; overflow: hidden; }
.ns-thumb img { width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; background: none !important; border-radius: 0 !important; }
.ns-info { grid-area: info; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ns-name { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.ns-name:hover { color: var(--red); }
.ns-unit { font-size: 14px; color: var(--graphite); }
.ns-stock { font-size: 13px; color: #1A7F37; }
.ns-qty { grid-area: qty; }
.ns-sub { grid-area: sub; font-weight: 600; font-size: 17px; min-width: 110px; text-align: right; }
.ns-remove { grid-area: rm; justify-self: end; }
.ns-remove a.remove { width: auto !important; height: auto !important; font-size: 14px !important; color: var(--graphite) !important; background: none !important; text-decoration: underline; border-radius: 0 !important; font-weight: 400 !important; }
.ns-remove a.remove:hover { color: var(--red) !important; }
.ns-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 20px 0 0; }
.ns-actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-actions .coupon .input-text { min-width: 180px; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; }
.woocommerce .ns-actions .button.ns-btn-ghost, .woocommerce .ns-actions .button.ns-update { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.woocommerce .ns-actions .button.ns-btn-ghost:hover, .woocommerce .ns-actions .button.ns-update:hover { border-color: var(--ink) !important; background: #fff !important; }
.ns-actions .button.ns-update[disabled] { opacity: .45; }
.ns-continue { display: inline-block; margin-top: 18px; font-weight: 500; color: var(--red); }
.ns-summary { position: sticky; top: 140px; background: var(--mist); border-radius: var(--r-lg); padding: 28px; }
.ns-summary .cart_totals { width: 100% !important; float: none !important; }
.ns-summary .cart_totals h2 { font-size: 20px; margin: 0 0 14px; }
.ns-summary table.shop_table { border: 0 !important; background: transparent; }
.ns-summary table.shop_table th, .ns-summary table.shop_table td { border-top: 1px solid var(--line) !important; padding: 14px 0 !important; background: transparent !important; }
.ns-summary .order-total th, .ns-summary .order-total td { font-size: 19px; }
.ns-summary .wc-proceed-to-checkout { padding: 8px 0 0; }
.ns-summary .wc-proceed-to-checkout .checkout-button { display: block; width: 100%; text-align: center; font-size: 17px !important; padding: 16px 24px !important; }
.ns-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ns-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--graphite); }
.ns-trust .ic { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.6; flex: none; }
.ns-trust strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.ns-trust a { color: var(--red); }
.woocommerce .quantity input.qty { width: 64px; }
.woocommerce .cart-empty { font-size: 20px; padding: 24px 0 8px; border: 0 !important; background: none !important; }
.woocommerce .cart-empty::before { display: none; }
.woocommerce .return-to-shop .button { padding: 14px 28px !important; }

/* checkout: details left, sticky order card right */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 0 48px; align-items: start; }
.woocommerce-checkout form.checkout > * { grid-column: 1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 2; }
.woocommerce-checkout #order_review_heading { grid-row: 1; margin: 0; padding: 28px 28px 0; background: var(--mist); border-radius: var(--r-lg) var(--r-lg) 0 0; font-size: 20px; }
.woocommerce-checkout #order_review { grid-row: 2; position: sticky; top: 140px; background: var(--mist); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 8px 28px 28px; }
.woocommerce-checkout .col2-set { display: block; width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: 100%; max-width: none; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 24px; }
.woocommerce-checkout h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 16px; }
.woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-additional-fields { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table { border: 0 !important; background: transparent; margin: 0 0 16px; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
.woocommerce-checkout table.woocommerce-checkout-review-order-table td, .woocommerce-checkout table.woocommerce-checkout-review-order-table th { border-top: 1px solid var(--line) !important; padding: 12px 0 !important; background: transparent !important; vertical-align: middle; }
.woocommerce-checkout .order-total th, .woocommerce-checkout .order-total td { font-size: 19px; }
.ns-co-item { display: flex; align-items: center; gap: 12px; }
.ns-co-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; padding: 5px; border: 1px solid var(--line); }
.ns-co-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ns-co-thumb b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.ns-co-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout #payment ul.payment_methods { border: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.woocommerce-checkout #payment ul.payment_methods li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--red); margin-right: 8px; }
.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; }
.woocommerce-checkout #payment div.payment_box { background: var(--mist) !important; border-radius: 10px; margin: 10px 0 0 !important; font-size: 13px; }
.woocommerce-checkout #payment div.payment_box::before { display: none !important; }
.woocommerce-checkout #payment .place-order { padding: 16px 0 0 !important; }
.woocommerce-checkout #place_order { width: 100%; font-size: 17px !important; padding: 16px 24px !important; float: none !important; }
.woocommerce-checkout .woocommerce-privacy-policy-text { font-size: 13px; color: var(--graphite); }

@media (max-width: 1068px) {
  .ns-cart { grid-template-columns: 1fr; gap: 28px; }
  .ns-summary, .woocommerce-checkout #order_review { position: static; }
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout #order_review_heading { margin-top: 28px; }
}
@media (max-width: 734px) {
  .ns-line { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "img info" "img qty" "sub rm"; gap: 8px 14px; }
  .ns-thumb { width: 88px; height: 88px; border-radius: 12px; }
  .ns-sub { text-align: left; min-width: 0; }
  .ns-name { font-size: 15px; }
  .ns-summary { padding: 22px; }
  .woocommerce-checkout .woocommerce-billing-fields, .woocommerce-checkout .woocommerce-additional-fields { padding: 18px; }
  .woocommerce-checkout #order_review_heading { padding: 22px 22px 0; }
  .woocommerce-checkout #order_review { padding: 8px 22px 22px; }
  .ns-actions .coupon { width: 100%; }
  .ns-actions .coupon .input-text { flex: 1; min-width: 0; }
  .ns-steps li { padding-right: 12px; font-size: 13px; }
}
