/* Joymax theme: shop list pages (all categories, tags, shop) and the cart. Loaded only there (inc/shop.php).
   The old "catalog layout" / "Storefront Layout" plugins and the old Additional CSS style the same WooCommerce parts,
   some with !important, so rules here start with "html body.joymax-theme…#content" and use !important only where
   an old rule does. Colours come only from the tokens in main.css. */

/* ====================== WooCommerce notices ======================
   Their look is in main.css (0.6.4, same on every shop page). Only the cart's spacing is here. */
/* In the filled cart the rows already have a 32 px gap */
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) > :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { margin: 0; }

/* ====================== Shop list pages ====================== */

/* Page title + toolbar ("Showing all X results" left, sort dropdown right) */
html body.joymax-theme.jx-shop #content .ast-archive-description { padding: 0; margin: 0 0 24px; border: 0; background: none; text-align: start; }   /* gap above: main.css (0.6.1) */
html body.joymax-theme.jx-shop #content .ast-archive-description .page-title { margin: 0; font: 700 var(--t-39)/1.15 var(--head); color: var(--paper) !important; }
html body.joymax-theme.jx-shop #content .ast-archive-description p { color: var(--ash); }
html body.joymax-theme.jx-shop #content .ast-shop-toolbar-container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 16px; }
html body.joymax-theme.jx-shop #content .ast-shop-toolbar-container > * { margin: 0; }
html body.joymax-theme.jx-shop #content .woocommerce-result-count { float: none; margin: 0; color: var(--ash) !important; font-size: var(--t-14); }
html body.joymax-theme.jx-shop #content .woocommerce-ordering { position: relative; float: none; margin: 0; }
html body.joymax-theme.jx-shop #content .woocommerce-ordering select {
  appearance: none; -webkit-appearance: none; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--edge) !important; border-radius: var(--r-btn);
  background: var(--plate) !important; color: var(--paper) !important; font: 500 var(--t-14) var(--body); cursor: pointer;
  transition: border-color var(--out) var(--ease-out); }
html body.joymax-theme.jx-shop #content .woocommerce-ordering select:hover { border-color: var(--ash) !important; }
html body.joymax-theme.jx-shop #content .woocommerce-ordering select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html body.joymax-theme.jx-shop #content .woocommerce-ordering option { background: var(--plate); color: var(--paper); }
/* Dropdown arrow drawn in --ash, so it shows in dark and light */
html body.joymax-theme.jx-shop #content .woocommerce-ordering::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; pointer-events: none; background: var(--ash);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Grid: 4 per row, 3 below 1100 px, 2 on phones. Every card stretches to the tallest in its row. */
html body.joymax-theme.jx-shop #content ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0 0 96px; list-style: none; }
html body.joymax-theme.jx-shop #content ul.products::before,
html body.joymax-theme.jx-shop #content ul.products::after { content: none; display: none; }
/* WooCommerce's <li> becomes a plain cell; the card inside carries the border (the old plugin put one on the <li>) */
html body.joymax-theme.jx-shop #content ul.products > li.product:not(.product-category) {
  display: flex; width: auto; margin: 0; padding: 0; float: none; clear: none; text-align: start;
  border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; }

/* The card (same look as the homepage account cards) */
html body.joymax-theme.jx-shop #content .jx-card {
  position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate); color: var(--paper); text-decoration: none;
  transition: border-color var(--out) var(--ease-out); }
/* Picture, name, price and stock are one link (a <div> when sold out); other plugins' extras sit under it */
html body.joymax-theme.jx-shop #content .jx-card-link { flex: 1; display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
html body.joymax-theme.jx-shop #content a.jx-card-link:focus-visible { outline: none; }
/* Other plugins' card extras (TeraWallet cashback text etc.), printed by their own hooks; hidden when there are none */
html body.joymax-theme.jx-shop #content .jx-card-extras { padding: 0 16px 16px; margin-top: -4px; color: var(--ash); font-size: var(--t-12); line-height: 1.45; overflow-wrap: anywhere; }
html body.joymax-theme.jx-shop #content .jx-card-extras:empty { display: none; }
html body.joymax-theme.jx-shop #content .jx-card-extras > * { margin: 0; }
html body.joymax-theme.jx-shop #content .jx-card-extras > * + * { margin-top: 6px; }
html body.joymax-theme.jx-shop #content .jx-card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--chip-bg); }
html body.joymax-theme.jx-shop #content .jx-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }
html body.joymax-theme.jx-shop #content .jx-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 16px; }
html body.joymax-theme.jx-shop #content .jx-card-name {
  margin: 0; padding: 0; font: 600 var(--t-16)/1.3 var(--head); color: var(--paper) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; overflow-wrap: anywhere; }
html body.joymax-theme.jx-shop #content .jx-card-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html body.joymax-theme.jx-shop #content .jx-card-price {
  font: 700 var(--t-25) var(--head); font-variant-numeric: tabular-nums; color: var(--paper); white-space: nowrap;
  transition: color var(--out) var(--ease-out); }
html body.joymax-theme.jx-shop #content .jx-card-price small { font: 500 var(--t-12) var(--body); color: var(--dim); margin-inline-start: 4px; }
html body.joymax-theme.jx-shop #content .jx-card-price small.jx-from { margin: 0 4px 0 0; }
html body.joymax-theme.jx-shop #content .jx-card-stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--dim); white-space: nowrap; }
html body.joymax-theme.jx-shop #content .jx-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }

@media (hover: hover) and (pointer: fine) {
  html body.joymax-theme.jx-shop #content .jx-card:has(> a.jx-card-link:hover) { border-color: var(--gold); transition-duration: var(--in); }
  html body.joymax-theme.jx-shop #content a.jx-card-link:hover .jx-card-price { color: var(--gold-text); transition-duration: var(--in); }
}
/* (0.6.16a) Mouse only: the picture grows 8 % inside its frame (300 ms; 4 % was too faint, owner). Not on sold-out
   cards; off with reduce motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html body.joymax-theme.jx-shop #content .jx-card:not(.jx-sold) .jx-card-img img { transition: transform 300ms var(--ease-out); }
  html body.joymax-theme.jx-shop #content .jx-card:not(.jx-sold) > a.jx-card-link:hover .jx-card-img img { transform: scale(1.08); }
}
html body.joymax-theme.jx-shop #content .jx-card:has(> a.jx-card-link:focus-visible) { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 2px; }

/* Sold out (approved option A): grey darkened photo, dark band with gold text, crossed-out price, grey pill,
   no hover, not a link (the card is a <div>, so it can't be clicked or focused) */
html body.joymax-theme.jx-shop #content .jx-card.jx-sold { cursor: default; }
html body.joymax-theme.jx-shop #content .jx-card.jx-sold .jx-card-img img { filter: grayscale(1) brightness(.45); }
html body.joymax-theme.jx-shop #content .jx-band {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 10px 8px;
  background: rgba(10,10,11,.85); color: #EFC31A; text-align: center; font: 700 var(--t-14)/1.4 var(--head); letter-spacing: .02em; }
html body.joymax-theme.jx-shop #content .jx-band [lang="ar"] { font-family: var(--ar); white-space: nowrap; }
html body.joymax-theme.jx-shop #content .jx-sold .jx-card-price { color: var(--dim); }
html body.joymax-theme.jx-shop #content .jx-sold .jx-num { text-decoration: line-through; text-decoration-thickness: 2px; }
html body.joymax-theme.jx-shop #content .jx-sold-pill {
  font-size: var(--t-12); line-height: 18px; padding: 2px 8px; border-radius: var(--r-badge);
  background: var(--chip-bg); border: 1px solid var(--edge); color: var(--ash); white-space: nowrap; }

/* Page numbers under the grid (only when a category has more than one page) */
html body.joymax-theme.jx-shop #content .woocommerce-pagination { margin: -64px 0 96px; }

@media (max-width: 1100px) {
  html body.joymax-theme.jx-shop #content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html body.joymax-theme.jx-shop #content .ast-archive-description { margin-bottom: 16px; }
  html body.joymax-theme.jx-shop #content .ast-archive-description .page-title { font-size: var(--t-31); }
  html body.joymax-theme.jx-shop #content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 64px; }
  html body.joymax-theme.jx-shop #content .jx-card-body { padding: 12px; gap: 10px; }
  html body.joymax-theme.jx-shop #content .jx-card-row { flex-wrap: wrap; }
  html body.joymax-theme.jx-shop #content .jx-card-price { font-size: var(--t-20); }
  html body.joymax-theme.jx-shop #content .jx-card-extras { padding: 0 12px 12px; }
  html body.joymax-theme.jx-shop #content a.jx-card-link .jx-card-price { color: var(--gold-text); }   /* touch screens have no hover */
  html body.joymax-theme.jx-shop #content .woocommerce-pagination { margin: -40px 0 64px; }
}

/* ====================== Cart ====================== */

/* --- Empty cart --- */
html body.joymax-theme.jx-cart #content .jx-cart-empty ~ .return-to-shop { display: none; }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-empty-mark { display: none !important; }   /* (0.6.8) marker only */
html body.joymax-theme.jx-cart #content .jx-cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 96px 0; }
html body.joymax-theme.jx-cart #content .jx-empty-ic {
  display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 24px; border-radius: 50%;
  background: var(--plate); border: 1px solid var(--edge); color: var(--gold-text); }
html body.joymax-theme.jx-cart #content .jx-empty-ic svg { width: 44px; height: 44px; }
html body.joymax-theme.jx-cart #content .jx-cart-empty h2 { margin: 0; font: 700 28px/1.25 var(--head); color: var(--paper); }
html body.joymax-theme.jx-cart #content .jx-cart-empty > p { margin: 8px 0 0; color: var(--ash); }
/* (0.6.15 round 6) All the homepage game tiles in one row that loops slowly (js/loop-row.js). Tiles are homepage size
   (360 px; homepage 392 px) and look exactly like the homepage's (home.css). ‹ › sit on the row's faded ends. */
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-loop { position: relative; width: 100%; margin-top: 32px; text-align: start; }
html body.joymax-theme.jx-cart #content .jx-loop-vp {
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
html body.joymax-theme.jx-cart #content .jx-loop-vp::-webkit-scrollbar { display: none; }
html body.joymax-theme.jx-cart #content .jx-loop-track { display: flex; gap: 12px; width: max-content; padding: 8px 0 14px; }
html body.joymax-theme.jx-cart #content .jx-loop-track > .jx-tile { flex: none; width: 360px; }
html body.joymax-theme.jx-cart #content .jx-loop-btn {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: var(--r-btn); background: var(--plate); color: var(--ash); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--edge), 0 8px 20px rgba(0,0,0,.35); transition: color var(--out) ease, box-shadow var(--out) ease; }
html body.joymax-theme.jx-cart #content .jx-loop-prev { left: 4px; }
html body.joymax-theme.jx-cart #content .jx-loop-next { right: 4px; }
html body.joymax-theme.jx-cart #content .jx-loop-btn:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--ash), 0 8px 20px rgba(0,0,0,.35); }
html body.joymax-theme.jx-cart #content .jx-loop-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html body.joymax-theme.jx-cart #content .jx-loop-btn svg { width: 18px; height: 18px; }
/* Phones, touch screens, reduced motion: no auto-move; swipe with snapping, no copies */
@media (max-width: 900px), (hover: none), (prefers-reduced-motion: reduce) {
  html body.joymax-theme.jx-cart #content .jx-loop-track > [aria-hidden="true"] { display: none; }
  html body.joymax-theme.jx-cart #content .jx-loop-vp { scroll-snap-type: x mandatory; scroll-padding-inline: 16px; mask-image: none; }
  html body.joymax-theme.jx-cart #content .jx-loop-track { padding-inline: 16px; }
  html body.joymax-theme.jx-cart #content .jx-loop-track > .jx-tile { width: 78vw; max-width: 360px; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  html body.joymax-theme.jx-cart #content .jx-loop-btn { display: none; }   /* phones: swipe */
}
html body.joymax-theme.jx-cart #content .jx-empty-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 32px; }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: var(--r-btn);
  font: 600 var(--t-16) var(--body); white-space: nowrap; text-decoration: none;
  transition: transform 160ms ease-out, background-color var(--out) ease; }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn:active { transform: scale(.97); }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn-gold { background: var(--gold); color: var(--on-gold); }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn-gold:hover { background: #FFD43A; }
html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
html body.joymax-theme.jx-cart #content .jx-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-text); font-weight: 600; text-decoration: none; }
html body.joymax-theme.jx-cart #content .jx-text-link:hover,
html body.joymax-theme.jx-cart #content .jx-text-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* --- Filled cart: items left, summary right. WooCommerce's own table, forms and buttons, only restyled. --- */
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 96px; }
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form)::before,
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form)::after { content: none; display: none; }
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1 / -1; min-width: 0; }
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; margin: 0; }
html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; width: auto; float: none; margin: 0; }

/* The items table becomes a list of item boxes.
   "#content#content": the old Storefront Layout rule ".joymax-design #content :is(.shop_table, … #payment …)" counts as
   two IDs and paints every table cell with !important; the doubled ID lets these few rules win. */
html body.joymax-theme.jx-cart #content#content .woocommerce-cart-form table.shop_table.cart {
  display: block; width: 100%; margin: 0; border: 0 !important; border-radius: 0; background: none !important; }
html body.joymax-theme.jx-cart #content table.shop_table.cart thead { display: none; }
html body.joymax-theme.jx-cart #content table.shop_table.cart tbody { display: grid; gap: 12px; }
html body.joymax-theme.jx-cart #content table.shop_table.cart tr.cart_item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "img name total" "img qty remove";
  column-gap: 20px; row-gap: 4px; align-items: center; padding: 16px;
  border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate); }
html body.joymax-theme.jx-cart #content#content table.shop_table.cart tr td {
  display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: start !important; min-width: 0; }
html body.joymax-theme.jx-cart #content table.shop_table.cart tr td::before { content: none !important; display: none !important; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-thumbnail { display: block !important; grid-area: img; align-self: center; width: auto; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-thumbnail img {
  display: block; width: 112px; height: 112px; max-width: none; object-fit: cover; border-radius: var(--r-btn); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name { grid-area: name; align-self: end; font: 600 var(--t-16)/1.4 var(--body); overflow-wrap: anywhere; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name a { color: var(--paper); text-decoration: none; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name a:hover,
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name a:focus-visible { color: var(--gold-text); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name :is(dl, p) { margin: 6px 0 0; color: var(--dim); font: 400 var(--t-14)/1.4 var(--body); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-price { display: none !important; }   /* one price per item: the line total */
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-subtotal {
  grid-area: total; justify-self: end; align-self: end; font: 700 var(--t-20) var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-subtotal .amount { color: var(--paper); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-quantity { grid-area: qty; align-self: start; color: var(--dim); font-size: var(--t-14); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-quantity .qty {
  width: 64px; height: 40px; padding: 0 8px; text-align: center; border-radius: var(--r-btn); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove { grid-area: remove; justify-self: end; align-self: start; width: auto; }
/* "×" becomes a bin icon + "Remove" (WooCommerce's link and its "Remove … from cart" screen-reader label stay) */
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove {
  display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: 44px; padding: 0; border-radius: 0;
  background: none !important; color: var(--ash) !important; font-size: 0 !important; line-height: 1; text-decoration: none; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove::before {
  content: ""; position: static; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6V7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2l1-12M9 7V4h6V7'/%3E%3C/svg%3E") center / contain no-repeat; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove::after { content: "Remove"; font: 500 var(--t-14)/1 var(--body); white-space: nowrap; }
/* Astra puts its own "x" picture (an SVG in span.ahfb-svg-iconset) inside the link; hide it so only bin + "Remove" show.
   Its round border on ::before is cleared too. The link itself and its screen-reader label stay. */
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove :is(svg, .ahfb-svg-iconset) { display: none !important; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove::before { border: 0; border-radius: 0; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove:hover,
html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove a.remove:focus-visible { color: var(--paper) !important; text-decoration: underline; text-underline-offset: 4px; }

/* Last row: WooCommerce's coupon box (Apply coupon) and Update cart, under the items */
html body.joymax-theme.jx-cart #content table.shop_table.cart tr:has(> td.actions) { display: block; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions {
  display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 0 !important; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .coupon { display: flex; flex: 1 1 280px; gap: 8px; float: none; margin: 0; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .coupon .input-text {
  flex: 1; min-width: 0; width: auto; height: 44px; margin: 0; padding: 0 12px; float: none;
  border: 1px solid var(--edge) !important; border-radius: var(--r-btn); background: var(--field-bg) !important; color: var(--paper) !important; font: 500 var(--t-16) var(--body); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .coupon .input-text::placeholder { color: var(--dim); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .coupon .input-text:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold-text); border-color: transparent !important; }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .button {
  float: none; height: 44px; margin: 0; padding: 0 18px; border: 0 !important; border-radius: var(--r-btn);
  background: transparent !important; box-shadow: inset 0 0 0 1px var(--edge); color: var(--paper) !important; font: 600 var(--t-14) var(--body); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .button:not(:disabled):hover { box-shadow: inset 0 0 0 1px var(--ash); }
html body.joymax-theme.jx-cart #content table.shop_table.cart td.actions .button:disabled { opacity: .45; cursor: default; }

/* Summary box ("Order summary") */
html body.joymax-theme.jx-cart #content .cart-collaterals .cart_totals {
  position: sticky; top: 88px; width: 100% !important; float: none; margin: 0; padding: 24px !important;
  border: 1px solid var(--edge) !important; border-radius: var(--r-card) !important; background: var(--plate) !important; }
html body.joymax-theme.jx-cart #content .cart_totals > h2 {
  margin: 0 0 16px; padding: 0; border: 0; background: transparent !important; font: 700 var(--t-20)/1.3 var(--head); color: var(--paper); }
html body.joymax-theme.jx-cart #content#content .cart_totals table.shop_table {
  width: 100%; margin: 0; border: 0 !important; border-radius: 0; background: none !important; }
html body.joymax-theme.jx-cart #content .cart_totals table.shop_table tr { display: table-row; }
html body.joymax-theme.jx-cart #content#content .cart_totals table.shop_table :is(th, td) {
  display: table-cell !important; padding: 10px 0 !important; border: 0 !important; background: none !important; vertical-align: middle; }
html body.joymax-theme.jx-cart #content .cart_totals table.shop_table td::before { content: none !important; display: none !important; }
html body.joymax-theme.jx-cart #content .cart_totals table.shop_table th { color: var(--ash); font-weight: 400; text-align: start; }
html body.joymax-theme.jx-cart #content .cart_totals table.shop_table td { text-align: end !important; font-variant-numeric: tabular-nums; color: var(--paper); }
html body.joymax-theme.jx-cart #content .cart_totals table.shop_table td .amount { color: inherit; }
html body.joymax-theme.jx-cart #content .cart_totals tr.cart-discount :is(th, td),
html body.joymax-theme.jx-cart #content .cart_totals tr.cart-discount td .amount { color: var(--live) !important; font-weight: 600; }
html body.joymax-theme.jx-cart #content .cart_totals tr.cart-discount td a { color: var(--ash); font-weight: 500; }
html body.joymax-theme.jx-cart #content .cart_totals tr.order-total :is(th, td) { padding-top: 16px !important; border-top: 1px solid var(--edge) !important; }
html body.joymax-theme.jx-cart #content .cart_totals tr.order-total th { color: var(--paper); font-weight: 600; }
html body.joymax-theme.jx-cart #content .cart_totals tr.order-total td strong .amount { font: 700 var(--t-31)/1 var(--head); color: var(--gold-text) !important; }
/* Joymax Auctions "LIVE" badge (0.6.3): the plugin draws it on Astra's card picture (li.jm-auc-live .astra-shop-thumbnail-wrap),
   which our cards replace; same badge, same look (copied from the plugin's jm-auc.css), on our card picture */
html body.joymax-theme.jx-shop #content li.jm-auc-live .jx-card-img::after {
  content: "LIVE"; position: absolute; top: 10px; right: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 22px; border-radius: 999px; font: 900 12px/1 var(--body); letter-spacing: .08em;
  background: rgba(0,0,0,.66); border: 1px solid rgba(255,255,255,.16); color: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.28);
  backdrop-filter: blur(2px); background-image: radial-gradient(circle at 12px 50%, #22c55e 0 4px, transparent 5px);
}
/* The cart's page title is switched off on live, which leaves Astra's empty title box with a 25.5 px bottom margin that pushed
   the cart down (0.6.1); the gap under the header now comes only from main.css */
html body.joymax-theme.jx-cart #content .entry-header { margin-bottom: 0; }
/* Cart prices like the product pages and cards: "29 AED" (0.6.0, display only; product.php's wc_price filter, cart page only) */
html body.joymax-theme.jx-cart #content .amount .jx-cur { margin-inline-start: 4px; font: 500 .6em var(--body); color: var(--ash); }
html body.joymax-theme.jx-cart #content .cart_totals .wc-proceed-to-checkout { padding: 20px 0 0; margin: 0; }
html body.joymax-theme.jx-cart #content .cart_totals .wc-proceed-to-checkout .checkout-button { width: 100%; margin: 0; }

/* Cross-sells (if any) go full width under the cart */
html body.joymax-theme.jx-cart #content .cart-collaterals .cross-sells { width: 100%; float: none; }

@media (max-width: 900px) {
  html body.joymax-theme.jx-cart #content .jx-cart-empty { padding: 56px 0; }
  html body.joymax-theme.jx-cart #content .jx-empty-ic { width: 80px; height: 80px; margin-bottom: 20px; }
  html body.joymax-theme.jx-cart #content .jx-empty-ic svg { width: 36px; height: 36px; }
  html body.joymax-theme.jx-cart #content .jx-cart-empty h2 { font-size: 25px; }
  html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-loop { margin-top: 28px; }
  html body.joymax-theme.jx-cart #content .jx-empty-cta { flex-direction: column; width: min(320px, 100%); gap: 4px; }
  html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn { width: 100%; }

  html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 64px; }
  html body.joymax-theme.jx-cart #content .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 1; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart tr.cart_item {
    grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img qty total" "img remove remove";
    column-gap: 14px; padding: 12px; align-items: start; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-thumbnail img { width: 80px; height: 80px; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-name { font-size: var(--t-14); align-self: start; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-subtotal { align-self: center; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-quantity { align-self: center; }
  html body.joymax-theme.jx-cart #content table.shop_table.cart td.product-remove { justify-self: start; }
  html body.joymax-theme.jx-cart #content .cart-collaterals .cart_totals { position: static; padding: 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.joymax-theme.jx-shop #content .jx-card,
  html body.joymax-theme.jx-cart #content .jx-cart-empty .jx-btn { transition: none; }
}
