/* =====================================================================
   WooCommerce — shop, product, cart, checkout and My account in the News. look.
   Uses the theme tokens (--ink, --paper, --line, --red…), so dark mode and the
   design styles (Newspaper / Magazine) follow automatically.
   ===================================================================== */

.shop-page{ padding:28px 0 72px; color:var(--ink); }
.shop-head{ padding-bottom:20px; margin-bottom:28px; border-bottom:1px solid var(--line); }
.shop-head__crumbs{ font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.shop-head__crumbs a{ color:var(--muted); text-decoration:none; }
.shop-head__crumbs a:hover{ color:var(--ink); }
.shop-head__title{ font-family:var(--display); font-size:clamp(28px,3.4vw,42px); line-height:1.1; font-weight:800; letter-spacing:-.01em; margin:0; }
.news-shop .term-description,
.news-shop .page-description{ color:var(--muted); font-family:var(--sans); max-width:720px; }

.shop-body{ font-family:var(--sans); font-size:15px; line-height:1.55; }
.shop-body a{ color:var(--red); }
.shop-body h2,.shop-body h3{ font-family:var(--display); color:var(--ink); line-height:1.2; }

/* ---- Buttons ---------------------------------------------------------- */
.news-shop .woocommerce a.button,
.news-shop .woocommerce button.button,
.news-shop .woocommerce input.button,
.news-shop .woocommerce #respond input#submit,
.news-shop a.button,
.news-shop button.button,
.news-shop .wc-block-components-button:not(.is-link),
.news-shop .wp-block-button__link,
.news-shop .wp-element-button{
  background:var(--red); color:#fff; border:0; border-radius:var(--radius-s);
  font-family:var(--sans); font-weight:700; font-size:14px; line-height:1.2;
  padding:12px 20px; text-decoration:none; cursor:pointer;
  transition:background-color .15s, color .15s;
}
.news-shop .woocommerce a.button:hover,
.news-shop .woocommerce button.button:hover,
.news-shop a.button:hover,
.news-shop button.button:hover,
.news-shop .wc-block-components-button:not(.is-link):hover,
.news-shop .wp-element-button:hover{ background:var(--btn-hover, #2B2B30); color:#fff; filter:none; }
.news-shop .woocommerce a.button.alt,
.news-shop .woocommerce button.button.alt{ background:var(--ink); color:var(--paper); }
.news-shop .woocommerce a.button.alt:hover,
.news-shop .woocommerce button.button.alt:hover{ background:var(--ink); color:var(--paper); }
.news-shop .woocommerce button.button:disabled,
.news-shop .woocommerce button.button.disabled{ opacity:.5; background:var(--red); color:#fff; }

/* ---- Notices ---------------------------------------------------------- */
.news-shop .woocommerce-message,
.news-shop .woocommerce-info,
.news-shop .woocommerce-error,
.news-shop .wc-block-components-notice-banner{
  background:var(--paper-2); color:var(--ink); border:1px solid var(--line);
  border-left:4px solid var(--red); border-radius:var(--radius-s); font-family:var(--sans);
}
.news-shop .woocommerce-message::before,
.news-shop .woocommerce-info::before{ color:var(--red); }
.news-shop .woocommerce-error{ border-left-color:#B42318; }

/* ---- Product grid ----------------------------------------------------- */
.news-shop .woocommerce ul.products{ display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:28px 24px; margin:0; }
.news-shop .woocommerce ul.products::before,
.news-shop .woocommerce ul.products::after{ display:none; }
.news-shop .woocommerce ul.products li.product{ width:auto; margin:0; float:none; display:flex; flex-direction:column; }
.news-shop .woocommerce ul.products li.product a img{ border-radius:var(--radius-m); margin-bottom:12px; aspect-ratio:1; object-fit:cover; background:var(--paper-2); }
.news-shop .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--display); font-size:17px; font-weight:700; line-height:1.25; color:var(--ink); padding:0; margin:0 0 6px;
}
.news-shop .woocommerce ul.products li.product .price{ color:var(--ink); font-weight:700; font-size:15px; }
.news-shop .woocommerce ul.products li.product .button{ margin-top:auto; align-self:flex-start; }
.news-shop .woocommerce span.onsale{
  background:var(--red); color:#fff; border-radius:var(--radius-s); min-height:0; min-width:0;
  padding:4px 9px; line-height:1.2; font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; top:10px; left:10px;
}
.news-shop .woocommerce .price del{ color:var(--muted); opacity:1; font-weight:400; }
.news-shop .woocommerce .price ins{ text-decoration:none; }
.news-shop .woocommerce .star-rating,
.news-shop .woocommerce p.stars a{ color:var(--red); }
.news-shop .woocommerce-result-count{ color:var(--muted); font-size:13px; }
.news-shop .woocommerce-ordering select{ min-height:40px; }
.news-shop .woocommerce nav.woocommerce-pagination ul{ border:0; display:flex; gap:6px; justify-content:center; }
.news-shop .woocommerce nav.woocommerce-pagination ul li{ border:0; }
.news-shop .woocommerce nav.woocommerce-pagination ul li a,
.news-shop .woocommerce nav.woocommerce-pagination ul li span{ border:1px solid var(--line); border-radius:var(--radius-s); min-width:38px; padding:9px 10px; color:var(--ink); }
.news-shop .woocommerce nav.woocommerce-pagination ul li span.current{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

/* ---- Single product --------------------------------------------------- */
.news-shop .woocommerce div.product .product_title{ font-family:var(--display); font-size:clamp(26px,3vw,38px); line-height:1.12; font-weight:800; }
.news-shop .woocommerce div.product p.price,
.news-shop .woocommerce div.product span.price{ color:var(--ink); font-size:22px; font-weight:800; }
.news-shop .woocommerce div.product div.images img{ border-radius:var(--radius-m); }
.news-shop .woocommerce div.product .woocommerce-product-details__short-description{ color:var(--muted); font-size:16px; }
.news-shop .woocommerce div.product form.cart .quantity .qty{ min-height:44px; width:70px; }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs{ padding:0; margin:0 0 20px; border-bottom:1px solid var(--line); }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs::before{ display:none; }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs li{ background:transparent; border:0; border-radius:0; margin:0 18px 0 0; padding:0; }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs li::after{ display:none; }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs li a{ color:var(--muted); font-weight:700; padding:10px 0; }
.news-shop .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{ color:var(--ink); box-shadow:inset 0 -3px 0 var(--red); }
.news-shop .woocommerce .related > h2,
.news-shop .woocommerce .upsells > h2{ font-size:22px; margin:40px 0 18px; }
.news-shop .product_meta{ color:var(--muted); font-size:13px; }

/* ---- Forms ------------------------------------------------------------ */
.news-shop .woocommerce form .form-row input.input-text,
.news-shop .woocommerce form .form-row textarea,
.news-shop .woocommerce form .form-row select,
.news-shop .woocommerce .quantity .qty,
.news-shop .woocommerce-ordering select,
.news-shop .select2-container .select2-selection--single{
  background:var(--paper-2); color:var(--ink); border:1px solid var(--line); border-radius:var(--radius-s);
  padding:10px 12px; font-family:var(--sans); font-size:15px; min-height:44px;
}
.news-shop .select2-container .select2-selection--single{ height:44px; padding:6px 4px; }
.news-shop .select2-container--default .select2-selection--single .select2-selection__rendered{ color:var(--ink); }
.news-shop .select2-dropdown{ background:var(--paper-2); color:var(--ink); border-color:var(--line); }
.news-shop .woocommerce form .form-row label{ font-weight:600; font-size:13px; color:var(--ink); }
.news-shop .woocommerce form .form-row input.input-text:focus,
.news-shop .woocommerce form .form-row textarea:focus{ outline:2px solid var(--red); outline-offset:1px; }
.news-shop .woocommerce form.login,
.news-shop .woocommerce form.register,
.news-shop .woocommerce form.checkout_coupon,
.news-shop .woocommerce form.lost_reset_password{ border:1px solid var(--line); border-radius:var(--radius-m); background:var(--paper-2); padding:24px; }

/* ---- Tables (classic cart, orders) ------------------------------------ */
.news-shop .woocommerce table.shop_table{ border:1px solid var(--line); border-radius:var(--radius-m); border-collapse:separate; background:var(--paper-2); }
.news-shop .woocommerce table.shop_table th,
.news-shop .woocommerce table.shop_table td{ border-top-color:var(--line); color:var(--ink); }
.news-shop .woocommerce table.shop_table th{ font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.news-shop .woocommerce a.remove{ color:var(--red) !important; }
.news-shop .woocommerce a.remove:hover{ background:var(--red); color:#fff !important; }
.news-shop .woocommerce .cart-collaterals .cart_totals,
.news-shop .woocommerce-page .cart-collaterals .cart_totals{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius-m); padding:20px; }

/* ---- Cart & Checkout blocks ------------------------------------------- */
.news-shop .wc-block-components-text-input input,
.news-shop .wc-block-components-text-input textarea,
.news-shop .wc-block-components-combobox .wc-block-components-combobox-control input,
.news-shop .wc-blocks-components-select .wc-blocks-components-select__select,
.news-shop .wc-block-components-textarea{
  background:var(--paper-2) !important; color:var(--ink) !important; border-color:var(--line) !important; border-radius:var(--radius-s) !important;
}
.news-shop .wc-block-components-text-input label,
.news-shop .wc-blocks-components-select__label{ color:var(--muted) !important; }
.news-shop .wc-block-components-sidebar .wc-block-components-totals-wrapper,
.news-shop .wc-block-components-order-summary,
.news-shop .wp-block-woocommerce-checkout-order-summary-block{ border-color:var(--line) !important; }
.news-shop .wp-block-woocommerce-checkout-order-summary-block,
.news-shop .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block{ background:var(--paper-2); border:1px solid var(--line); border-radius:var(--radius-m); }
.news-shop .wc-block-components-title,
.news-shop .wc-block-components-checkout-step__title,
.news-shop .wc-block-cart__totals-title{ font-family:var(--display) !important; color:var(--ink); }
.news-shop .wc-block-components-checkout-step__container::after{ border-color:var(--line); }
.news-shop .wc-block-components-radio-control__option,
.news-shop .wc-block-components-radio-control-accordion-option{ color:var(--ink); }
.news-shop .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before{ background:var(--red); }
.news-shop .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked{ background:var(--red); border-color:var(--red); }
.news-shop .wc-block-components-product-name{ color:var(--ink); font-weight:700; }
.news-shop .wc-block-components-formatted-money-amount{ color:var(--ink); }
.news-shop .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{ font-size:20px; font-weight:800; }
.news-shop .wc-block-cart-items__row,
.news-shop .wc-block-cart-items th,
.news-shop .wc-block-cart-items{ border-color:var(--line) !important; }
.news-shop .wc-block-components-button.wc-block-components-checkout-place-order-button{ width:100%; min-height:52px; font-size:16px; }
.news-shop .wc-block-components-quantity-selector{ border-color:var(--line); }
.news-shop .wc-block-components-quantity-selector input,
.news-shop .wc-block-components-quantity-selector button{ color:var(--ink); background:transparent; }

/* ---- My account ------------------------------------------------------- */
.news-shop .woocommerce-account .woocommerce,
.news-shop.woocommerce-account .woocommerce{ display:grid; grid-template-columns:220px 1fr; gap:36px; align-items:start; }
.news-shop.woocommerce-account .woocommerce > .woocommerce-notices-wrapper{ grid-column:1 / -1; }
.news-shop.woocommerce-account .woocommerce-MyAccount-navigation,
.news-shop.woocommerce-account .woocommerce-MyAccount-content{ width:auto; float:none; }
.news-shop .woocommerce-MyAccount-navigation ul{ list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; background:var(--paper-2); }
.news-shop .woocommerce-MyAccount-navigation li + li{ border-top:1px solid var(--line); }
.news-shop .woocommerce-MyAccount-navigation a{ display:block; padding:12px 16px; color:var(--ink); text-decoration:none; font-weight:600; font-size:14px; }
.news-shop .woocommerce-MyAccount-navigation a:hover{ background:var(--paper); }
.news-shop .woocommerce-MyAccount-navigation li.is-active a{ box-shadow:inset 3px 0 0 var(--red); color:var(--red); }
/* Logged out (login / register forms) the account page has no navigation: one column. */
.news-shop.woocommerce-account:not(.logged-in) .woocommerce{ display:block; }
.news-shop .woocommerce form .col2-set,
.news-shop .woocommerce-page .u-columns.col2-set{ gap:24px; }

/* News Premium status (My account dashboard, from News. Core). */
.news-wc-premium{ border:1px solid var(--line); border-left:4px solid var(--muted); border-radius:var(--radius-m); background:var(--paper-2); padding:16px 20px; margin:0 0 24px; }
.news-wc-premium.is-active{ border-left-color:var(--red); }
.news-wc-premium p{ margin:0 0 6px; }
.news-wc-premium p:last-child{ margin-bottom:0; }
.news-wc-premium__title{ font-family:var(--display); font-size:18px; }
.news-wc-premium__badge{ display:inline-block; margin-left:6px; vertical-align:2px; background:var(--red); color:#fff; font-family:var(--sans); font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; padding:2px 8px; border-radius:99px; }

/* ---- Small screens ---------------------------------------------------- */
@media (max-width: 860px){
  .news-shop.woocommerce-account .woocommerce{ grid-template-columns:1fr; gap:20px; }
  .news-shop .woocommerce ul.products{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 14px; }
  .shop-page{ padding-top:20px; }
}

/* WooCommerce sets `.woocommerce-page img { height:auto }` on every image of shop pages, which
   collapses SVG logos (no intrinsic size). Restore the theme's logo and badge sizes. */
.news-shop .brand__logo{ height:30px; width:auto; }
.news-shop .brand__logo--health{ height:40px; }
.news-shop .brand__logo--parenting{ height:34px; }
.news-shop .footer-hero__logo{ height:35px; width:auto; }
.news-shop .footer-col__badge img{ height:40px; }
@media (max-width:860px){
  .news-shop .brand__logo{ height:28px; }
  .news-shop .brand__logo--health{ height:38px; }
  .news-shop .brand__logo--parenting{ height:30px; }
}

/* Cart totals box: inner padding (the block itself has none). */
.news-shop .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block{ padding:6px 18px 10px; }
.news-shop .wc-block-cart__sidebar .wc-block-cart__totals-title{ padding-top:10px; font-size:12px; letter-spacing:.06em; color:var(--muted); }
.news-shop .wc-block-cart__submit{ margin-top:14px; }
