/*
Theme Name: BCS TCG
Description: Loja BCS TCG (Pokémon, One Piece, Disney Lorcana) em WordPress + WooCommerce: cópia do site feito no Hostinger Horizons (bcs_site/).
Version: 1.0.57
Requires at least: 6.4
Requires PHP: 8.1
Author: BCS TCG
Text Domain: bcs-tcg
WC requires at least: 9.0
*/

/* Base reset: the parts of Tailwind's preflight the old site relied on. */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, blockquote, dl, dd, figure, pre, fieldset, legend { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button, [role="button"] { cursor: pointer; background: transparent; }
a { text-decoration: inherit; }
dialog { padding: 0; }
[hidden] { display: none !important; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ===== From bcs_site/apps/web/src/index.css (unchanged except the image paths). ===== */
:root {
  --ink: #141414;
  --paper: #f6f1e4;
  --gold: #e6c200;
  --green: #2f9e3a;
  --red: #e23b22;
  --blue: #2f7de1;
  --line: rgba(230, 194, 0, 0.35);
}

body {
  font-family: "DM Sans", sans-serif;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  margin: 0;
}

h1, h2, h3 {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

a { color: inherit; }

.announcement {
  background: var(--gold);
  color: #141414;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 0.55rem 1rem;
}

.site-header, .footer-top, .catalog, .cart-page, .status-page {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 100px; height: 100px; }
.site-header nav { display: flex; gap: 1.6rem; flex-wrap: wrap; font-size: 1.3rem; font-weight: 500; }
.site-header nav a { display: inline-flex; align-items: center; gap: 0.2rem; white-space: nowrap; text-decoration: none; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { color: var(--gold); }
/* Computer: logo and menu sit at the left edge of the page. */
@media (min-width: 801px) {
  .site-header { width: auto; padding: 0.45rem clamp(1.5rem, 3vw, 3rem); }
}
/* Tablets: a bit smaller so the menu stays on one line. */
@media (min-width: 801px) and (max-width: 1099px) {
  .site-header nav { font-size: 1.1rem; gap: 1.1rem; }
}

/* Home: the call + three cards fill the first screen and sit in its middle. --chrome = announcement
   bar + header height, --tag-fs = call font size (follows width and height); the cards shrink on
   short screens so they and their texts fit without scrolling. */
.hero { --chrome: 152px; --tag-fs: clamp(1.8rem, min(3.6vw, 6vh), 3.2rem); min-height: calc(100svh - var(--chrome)); display: flex; flex-direction: column; justify-content: center; padding: 0.6rem 0 1.6rem; box-sizing: border-box; }
/* Two-line call above the cards: heading font, cream line on top, the question in gold below. */
.hero-tagline { width: min(1120px, calc(100% - 2rem)); margin: 0 auto clamp(1.4rem, 3.5vh, 2.6rem); text-align: center; font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.03em; font-size: var(--tag-fs); line-height: 1.1; color: var(--paper); }
.hero-tagline em { display: block; margin-top: 0.3em; font-style: normal; color: var(--gold); }
.eyebrow { color: var(--gold); letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 700; }
.game-portals { width: min(1280px, calc(100% - 2rem)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.game-portal { text-decoration: none; }
.portal-art { width: min(80%, calc((100svh - var(--chrome) - 13rem - 2.5 * var(--tag-fs)) * 63 / 88)); margin: 0 auto; aspect-ratio: 63 / 88; }
/* Card images (public/cards) share the 63x88 card shape with rounded corners. */
/* First drop-shadow is a ~1px light outline that follows the rounded corners, so dark cards
   (Lorcana) still separate from the page background. */
.portal-art img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 1px rgba(246, 241, 228, 0.5)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.2s ease; }
.game-portal:hover .portal-art > img, .game-portal:focus-visible .portal-art > img { transform: translateY(-6px); }
/* The cards flip over to their front (games.ts) on hover/focus like the footer's social buttons, and flip
   by themselves now and then on touch screens; on hover they also get the same lift as the others. */
.card-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face.back { transform: rotateY(180deg); }
.portal-art { perspective: 1400px; }
.game-portal:hover .card-flip, .game-portal:focus-visible .card-flip { transform: translateY(-6px) rotateY(180deg); }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .card-flip { animation: card-flip 8s ease-in-out infinite; }
}
@keyframes card-flip { 0%, 40% { transform: rotateY(0deg); } 50%, 85% { transform: rotateY(180deg); } 95%, 100% { transform: rotateY(360deg); } }
.portal-label { padding: 0.6rem 0.15rem 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
/* Under each card: the game's official logo. Logos differ in shape (One Piece is wide, Pokémon is
   tall), so each gets the same AREA (--logo-a squared), not the same box: width = a * sqrt(ratio),
   height = a / sqrt(ratio). They then look the same size. --ratio = width / height, set in hero.tsx. */
.portal-logo { --logo-a: 8.6rem; display: block; width: calc(var(--logo-a) * sqrt(var(--ratio, 2))); height: auto; max-width: 100%; transition: transform 0.2s ease; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
.portal-logo[src*="lorcana"] { filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
.portal-label { min-height: 6.2rem; justify-content: center; }
.all-link { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--gold); font-size: 0.9rem; letter-spacing: 0.12em; font-weight: 700; text-decoration: none; }
.all-link { width: min(1120px, calc(100% - 2rem)); margin: 1.2rem auto 0; }
.hero-bottom { width: min(1120px, calc(100% - 2rem)); margin: 1.4rem auto 0; display: flex; justify-content: space-between; gap: 1rem; color: #b7ae9b; font-size: 0.78rem; letter-spacing: 0.12em; }

.catalog h1, .cart-page h1, .status-page h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0.2rem 0 1rem; line-height: 0.95; }

/* Catalog grid: 5 per row on a computer (20 per page = 4 rows), 4 on tablets, 2 on phones. */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
@media (min-width: 801px) and (max-width: 1099px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-tile { text-decoration: none; background: #1c1c1c; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.product-image { position: relative; aspect-ratio: 1; background: #101010; display: grid; place-items: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
/* Tags in their own line under the image, above the name, so they never cover the picture, in this
   order: type (gold), set (green), condition on single cards (orange), language (blue); green,
   orange and blue are the page background's colours. */
.product-badges { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.75rem 0.75rem 0; }
.product-badge { background: var(--gold); color: #141414; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; padding: 0.25rem 0.4rem; border-radius: 999px; white-space: nowrap; }
.product-badge.set { background: #a0c899; white-space: normal; text-align: center; }
/* Set names can be long: the set tag may wrap to two lines. */
.product-badge.lang-text { background: #96b0d5; }
/* Language: the country's flag (components/product/lang-flag.tsx), as tall as the other tags. */
.lang-flag { display: inline-flex; align-self: center; }
.lang-flag svg { display: block; height: 1.15rem; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.product-info .lang-flag svg { height: 1.4rem; }
.product-badge.cond { background: #ef9e7a; }
/* Finish (Foil, Reverse Foil, Promo…): the page background's blue, next to its green (set) and orange (condition). */
.product-badge.finish { background: #96b0d5; }
.product-tile, .tile-info { display: flex; flex-direction: column; }
.tile-info { flex: 1; }
.product-tile h3 { margin: 0.5rem 0.75rem 0.3rem; font-size: 0.95rem; line-height: 1.2; }
/* Price row sits at the bottom of the tile, so a row of tiles lines up even when a title wraps. */
.product-price { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; margin-top: auto; padding: 0 0.75rem 0.75rem; color: #cfc6b2; font-size: 0.85rem; }
.product-badge { font-size: 0.6rem; }

/* Page links under the catalog grid. */
.pager { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 2rem 0 0; }
.pager > div, .pager-group { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem; }
.pager a, .pager .on, .pager .off { min-width: 2.6rem; min-height: 2.6rem; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.8rem; border-radius: 999px; border: 1px solid var(--line); background: #1c1c1c; color: var(--paper); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.pager .on { background: var(--gold); border-color: var(--gold); color: #141414; }
.pager .off { opacity: 0.45; }
.pager .gap { padding: 0 0.2rem; }
/* Price in the heading font, gold and larger than the name, so it is the first thing read after the image. */
/* Stock in units, right side of the price line. */
.product-stock { font-size: 0.85rem; color: #cfc6b2; white-space: nowrap; }
.product-stock.out { color: #ff8d7d; font-weight: 700; }
html:has(.page-art) .tile-info .product-stock:not(.out) { color: #2b2620; font-weight: 600; }
.product-price strong { font-family: Oswald, sans-serif; font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gold); }

.btn, .btn.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.7rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; }
.btn { background: var(--gold); color: #141414; }
.btn.secondary { background: transparent; color: var(--paper); border: 1px solid var(--line); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; }

/* Footer = the banner.
   Computer (>= 1024px), laid over the artwork: Redes sociais bottom-left, centred on the four
   Pokémon icons, which are the social buttons; copyright and cookie preferences under the logo.
   Tablet/phone: stacked (see the max-width: 1023px query). */
.site-footer {
  position: relative;
  margin-top: 2.5rem;
  /* Natural banner height (25.26vw = 776/3072) up to ~1280px wide, then it grows more slowly
     so the footer does not dwarf the page on wide screens (386px at 1920px instead of 485px). */
  --footer-h: min(25.26vw, calc(15.7vw + 85px));
  /* The image is scaled to the footer width (3072px -> 100vw, so 1 image px = 1vw / 30.72) and
     cropped 79% from the top / 21% from the bottom. An image row r then sits
     0.21 x height + (613 - r) / 30.72 vw above the footer bottom. The icons were centred on
     row 671, x 424.5, radius 52.6. */
  --icons-x: 13.82%;
  --icon-d: 3.424vw;
  --icons-bottom: calc(0.21 * var(--footer-h) - 3.6vw);
  height: var(--footer-h);
  background: #f8f2e2;
  color: #141414;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
/* public/footer-banner-v3.webp: the colourful band of the original Hostinger banner, recomposed
   with a smaller centred BCS TCG logo; the Pokémon icons were cut out of it and are now the
   social buttons (public/footer-social/*.webp). */
.footer-banner {
  position: absolute;
  inset: 0;
  background-color: #e9e4d6;
  background-image: url("assets/img/footer-banner-v3.webp");
  background-repeat: no-repeat;
  background-size: cover;
  /* When the height is capped, crop mostly from the empty top so the logo and the pokéballs
     stay whole. */
  background-position: center 79%;
}
.footer-top, .footer-copy { position: absolute; z-index: 1; }
.footer-top { inset: 0; width: auto; margin: 0; pointer-events: none; }
.footer-top > div, .footer-copy { pointer-events: auto; text-shadow: 0 0 6px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }
/* One type style for every column: headings and links match in all three. */
.site-footer h3 { color: #141414; margin: 0 0 0.4rem; font-size: clamp(1.3rem, 1.95vw, 1.85rem); line-height: 1.2; }
.site-footer a, .site-footer button { display: block; background: none; border: 0; color: #141414; text-align: inherit; padding: 0.2rem 0; text-decoration: none; cursor: pointer; font: inherit; font-weight: 600; }
.site-footer .footer-top a { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.35; }
/* Small computer screens: closer lines so Produtos and Redes sociais fit above each other. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer .footer-top a { padding: 0.05rem 0; line-height: 1.2; }
}
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; }
.footer-social { position: absolute; left: var(--icons-x); bottom: var(--icons-bottom); transform: translateX(-50%); text-align: center; white-space: nowrap; }

/* Social buttons: each shows a Pokémon (the icons of the banner) and flips over to the network's
   badge on hover/focus; on touch screens they flip by themselves now and then. Networks without a
   profile link yet render as a span instead of a link. */
.social-buttons { display: flex; justify-content: center; gap: 0.709vw; }
.site-footer .social-btn { position: relative; display: block; width: var(--icon-d); height: var(--icon-d); padding: 0; perspective: 600px; transition: transform .2s ease; }
.social-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; transition: transform .45s ease; }
.social-face img, .social-face svg { width: 100%; height: 100%; display: block; }
.social-face.back { transform: rotateY(180deg); }
.site-footer .social-btn:hover, .site-footer .social-btn:focus-visible { transform: translateY(-6px); text-decoration: none; }
.social-btn:hover .front, .social-btn:focus-visible .front { transform: rotateY(-180deg); }
.social-btn:hover .back, .social-btn:focus-visible .back { transform: rotateY(0deg); }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .social-face.front { animation: social-front 7s ease-in-out infinite; }
  .social-face.back { animation: social-back 7s ease-in-out infinite; }
  .social-btn:nth-child(2) .social-face { animation-delay: .25s; }
  .social-btn:nth-child(3) .social-face { animation-delay: .5s; }
  .social-btn:nth-child(4) .social-face { animation-delay: .75s; }
}
@keyframes social-front { 0%, 40% { transform: rotateY(0deg); } 50%, 85% { transform: rotateY(-180deg); } 95%, 100% { transform: rotateY(-360deg); } }
@keyframes social-back { 0%, 40% { transform: rotateY(180deg); } 50%, 85% { transform: rotateY(0deg); } 95%, 100% { transform: rotateY(-180deg); } }

/* Centred under the logo, between the social buttons (left) and the pokéballs (right). */
.footer-copy { left: 50%; bottom: 3%; transform: translateX(-50%); width: 50%; margin: 0; text-align: center; font-size: clamp(0.75rem, 0.7vw, 0.95rem); line-height: 1.45; }
.site-footer .footer-copy button { display: inline; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal { font-size: 0.92em; color: #333; }

.catalog-head p:last-child { color: #d8d0be; max-width: 38rem; }
/* Type links + search box: one row of controls, all the same size, starting at the left edge. */
.filters { --ctl-w: 12.5rem; --ctl-h: 2.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.2rem; }
.filters > a, .filter-search { width: var(--ctl-w); height: var(--ctl-h); box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; background: #1c1c1c; color: inherit; }
.filters > a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.filters .on { background: var(--gold); color: #141414; border-color: var(--gold); }
/* The search box is twice as wide as a button (plus the gap between two), a full row on phones. */
.filter-search { display: flex; align-items: center; overflow: hidden; width: calc(2 * var(--ctl-w) + 0.5rem); }
/* Centred in the whole box: the left padding matches the search icon button on the right.
   Placeholder in the heading font (Oswald), lighter than the button labels. */
.filter-search input { flex: 1; min-width: 0; height: 100%; background: transparent; color: inherit; border: 0; padding: 0 0 0 2.6rem; font: inherit; text-align: center; outline: none; }
.filter-search input::placeholder { color: rgba(246, 241, 228, 0.42); font-family: Oswald, sans-serif; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.filter-search button { flex: none; width: 2.6rem; height: 100%; padding: 0; background: transparent; color: inherit; border: 0; cursor: pointer; display: grid; place-items: center; }
/* Short gold line between the typing area and the magnifier, so the icon reads as its own button. */
.filter-search button { position: relative; }
.filter-search button::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--gold); opacity: 0.55; }
.filter-search button:hover { color: var(--gold); }
.filter-search:focus-within { border-color: var(--gold); }
.filter-search:focus-within button::before { opacity: 0.9; }
/* Phone: two controls per row. */
/* Computer: the catalog uses the same side margins as the header (lined up with the logo and the
   menu edge) instead of the narrow centre column; title (or game logo) on the left with the controls
   right next to it, centred on it, with room above and below. */
@media (min-width: 1100px) {
  .catalog { width: auto; max-width: 1680px; padding-inline: clamp(1.5rem, 3vw, 3rem); margin-inline: auto; }
  .catalog-top { display: flex; align-items: center; justify-content: flex-start; gap: 1.5rem clamp(2rem, 4vw, 4rem); flex-wrap: wrap; margin: 1.2rem 0 3rem; }
  .catalog-top .catalog-head h1 { margin: 0; }
  .catalog-wordmark { --logo-a: 13.5rem; }
  .catalog-top .catalog-head p { margin: 0.6rem 0 0; }
  /* Buttons follow the screen width so title + buttons + double search fit one line from ~1200px. */
  .catalog-top .filters { margin: 0; --ctl-w: clamp(9.5rem, 12vw, 12.5rem); }
  .product-grid { gap: 4.4rem 1.6rem; }
}
@media (max-width: 599px) { .filters { --ctl-w: calc(50% - 0.25rem); } }
.empty { padding: 2rem 0 3rem; }
.empty h2 { font-size: 2rem; }

.product-layout, .cart-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
.product-stage { background: #1c1c1c; border: 3px solid var(--gold); border-radius: 1.2rem; min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.product-stage img { width: 100%; height: 100%; object-fit: cover; }
.price { font-family: Oswald, sans-serif; font-size: 2rem; color: var(--gold); margin: 0.2rem 0 1rem; }
.rich { color: #ddd4c2; }
.buy-panel, .qty-row { display: grid; gap: 0.7rem; margin-top: 1rem; }
.qty-row input { width: 4.5rem; background: #1c1c1c; color: inherit; border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.45rem; }
.variant-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.variant-row button { border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; padding: 0.4rem 0.7rem; }
.variant-row .on { background: var(--gold); color: #141414; }
.note { color: #d8d0be; }
.note.ok { color: #8ddea0; }
.note.bad { color: #ff8d7d; }

/* Cart: all items in one box, and the total box, both see-through over the page art like the
   catalog tiles' details boxes. A long list scrolls inside its box, so the page stays short. */
.cart-box, .cart-layout aside { background: rgb(28 28 28 / 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 1rem; }
.cart-items { list-style: none; margin: 0; padding: 0 0.9rem; max-height: max(24rem, calc(100svh - 17rem)); overflow-y: auto; overscroll-behavior: contain; }
/* Scrollbar: a thin gold bar without arrows, kept clear of the box's rounded corners. */
.cart-items::-webkit-scrollbar { width: 6px; }
.cart-items::-webkit-scrollbar-button { display: none; height: 0; }
.cart-items::-webkit-scrollbar-track { background: transparent; margin-block: 1.1rem; }
.cart-items::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
@supports not selector(::-webkit-scrollbar) { .cart-items { scrollbar-width: thin; scrollbar-color: var(--gold) transparent; } }
.cart-items > li { display: flex; gap: 1rem; padding: 0.9rem 0; align-items: stretch; }
.cart-items > li + li { border-top: 1px solid var(--line); }
/* "Remover" (bcs.js): the item fades out, then folds away. */
.cart-items > li { transition: opacity 0.2s ease, height 0.25s ease, padding 0.25s ease; }
.cart-items > li.is-removing { opacity: 0; pointer-events: none; }
.cart-items > li.is-folding { overflow: hidden; padding-block: 0; border-top-color: transparent; }
/* "Esvaziar Carrinho" under the last item, in the same box with the same divider: shaped like
   "Finalizar compra", in the site's red with gold words. */
.cart-box { display: flex; flex-direction: column; overflow: hidden; }
.cart-empty-row { margin: 0 0.9rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.cart-box .cart-empty-row a.empty-cart-button { width: 100%; background: var(--red); color: var(--gold); }
.cart-box .cart-empty-row a.empty-cart-button:hover { filter: brightness(1.08); }
/* As tall as the photo: the name at the top, the tags in the middle, price and quantity at the foot. */
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; }
.cart-items .product-badges { margin: 0; }
.cart-items .product-badge { font-size: 0.66rem; }
.cart-item-info > strong { font-size: 1.05rem; line-height: 1.25; }
/* Price and "Remover" on the left, the quantity counter on the right of the same line. */
.cart-item-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.8rem; flex-wrap: wrap; }
.cart-item-price { display: grid; gap: 0.55rem; justify-items: start; }
/* Price as on the catalog tiles: large, gold, in the heading font. */
.cart-item-price .price-line { font-family: Oswald, sans-serif; font-size: 1.45rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; color: var(--gold); }
/* The "Quantidade" label centred over its counter. */
.cart-items .quantity { justify-items: center; }
/* The whole card (5:7), large enough to see it; sealed photos fit inside the same frame. */
.cart-items img, .cart-items .thumb { flex: none; width: 120px; height: 168px; object-fit: contain; border-radius: 0.6rem; }
.cart-items .thumb { background: #101010; }
.cart-layout aside { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; }
/* The checkout button stays at the foot of the totals box when the box is stretched. */
.cart-layout aside .cart_totals { flex: 1; display: flex; flex-direction: column; }
.cart-layout aside .wc-proceed-to-checkout { margin-top: 0; padding-top: 0.7rem; }
/* The box's spare height goes above the total, so the total sits right over the checkout button. */
.cart-layout aside .cart_totals table, .cart-layout aside .cart_totals tbody { flex: 1; display: flex; flex-direction: column; }
.cart-layout aside .cart_totals tr.order-total { margin-top: auto; }
/* While a quantity change is being saved, the totals dim a little. */
.cart-layout aside { transition: opacity 0.15s ease; }
.cart-layout aside.is-updating { opacity: 0.6; pointer-events: none; }
/* With scripts, bcs.js sets the list's height (3 items); without, the CSS limit above applies. */
.js-on .cart-items { max-height: none; }
.js-on .cart-actions { margin: 0; }
.status-page { padding: 4rem 0 5rem; }
.cookie-banner { position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: 1rem; background: #1b1b1b; color: var(--paper); border: 1px solid var(--gold); border-radius: 1rem; padding: 1rem; display: grid; gap: 0.8rem; max-width: 760px; margin-inline: auto; }
.cookie-banner fieldset { border: 1px solid var(--line); border-radius: 0.8rem; display: grid; gap: 0.45rem; }
.cookie-banner label { display: flex; gap: 0.5rem; align-items: flex-start; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Tablet and phone: social buttons first, then the banner, then copyright + cookies. The buttons
   are the same Pokémon/brand flip buttons, at touch size. */
@media (max-width: 1023px) {
  .site-footer { height: auto; display: flex; flex-direction: column; }
  .footer-banner { position: static; order: 2; aspect-ratio: 3072 / 776; border-block: 4px solid var(--gold); }
  .footer-top, .footer-copy { position: static; transform: none; }
  .footer-top > div, .footer-copy { text-shadow: none; }
  .footer-top { order: 1; width: auto; margin: 0; padding: 1.6rem clamp(1rem, 4vw, 2.5rem); pointer-events: auto; }
  .footer-social { position: static; transform: none; text-align: left; white-space: normal; }
  .social-buttons { justify-content: flex-start; gap: 0.6rem; margin-top: 0.3rem; }
  .site-footer .social-btn { width: 2.9rem; height: 2.9rem; }
  .footer-copy { order: 3; width: auto; text-align: left; padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.2rem; font-size: 0.85rem; }
  .footer-sep, .footer-copy br { display: none; }
  .site-footer .footer-copy button { display: block; margin: 0.15rem 0 0.35rem; }
}
/* Phone: narrower side padding. */
@media (max-width: 599px) {
  .footer-top { padding: 1.6rem 1rem; }
  .footer-copy { padding: 1rem 1rem 1.2rem; }
}

@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  /* Two tiles per row: smaller tags so type + language + condition fit one line. */
  .product-badges { gap: 0.2rem; margin: 0.6rem 0.5rem 0; }
  .product-badge { font-size: 0.56rem; letter-spacing: 0.03em; padding: 0.22rem 0.38rem; }
  .product-tile h3 { margin-inline: 0.5rem; }
  .product-price { padding-inline: 0.5rem; }
  .product-price strong { font-size: 1.2rem; }
  /* Half-width tiles: the stock goes under the price when both do not fit one line. */
  .product-price { flex-wrap: wrap; row-gap: 0.1rem; }
  .product-stock { font-size: 0.78rem; }
  .product-layout, .cart-layout { grid-template-columns: 1fr; }
  /* Game cards: one swipeable row; the next card peeks in so it reads as scrollable. */
  .game-portals { width: 100%; display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 1rem 0.6rem; scroll-padding-inline: 1rem; box-sizing: border-box; scrollbar-width: none; overscroll-behavior-x: contain; }
  .game-portals::-webkit-scrollbar { display: none; }
  /* Narrower on short phones so card + texts still fit on the first screen. */
  .game-portal { flex: 0 0 min(64%, calc((100svh - var(--chrome) - 15rem - 2.5 * var(--tag-fs)) * 63 / 88)); scroll-snap-align: start; }
  .portal-art { width: 100%; }
  .portal-logo { --logo-a: 6rem; }
  .portal-label { min-height: 4.3rem; }
  .brand img { width: 76px; height: 76px; }
  .hero { --chrome: 208px; --tag-fs: 1.6rem; padding: 1rem 0 1.5rem; }
  .hero-tagline { margin-bottom: 1.6rem; }
  .site-header { flex-wrap: wrap; row-gap: 0.7rem; }
  /* Five menu items do not fit one phone-width row; wrap so "Carrinho" is never off-screen. */
  .site-header nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0.6rem 1.2rem; font-size: 1rem; }
  .hero-bottom { flex-direction: column; }
  .desktop { display: none; }
}
/* Narrow phones (< 380px): tags a bit smaller still. */
@media (max-width: 379px) { .product-badge { font-size: 0.5rem; padding: 0.2rem 0.3rem; } }

/* ===== TEST 2026-10-22: one blob background (public/page-bg.webp, same style and colours as the
   footer banner) behind the whole home page, footer included; the footer keeps only the logo and
   the pokéballs (public/footer-art.webp). Pages marked .page-art: home + each game's catalog. Delete this block to undo. */
html:has(.page-art) { background: #e6e7e7 url("assets/img/page-bg.webp") center / cover no-repeat fixed; }
html:has(.page-art) body { background: transparent; color: #141414; }
html:has(.page-art) .site-header nav a,
html:has(.page-art) .hero-tagline { color: #141414; text-shadow: 0 0 8px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }
html:has(.page-art) .site-header nav a[aria-current="page"], html:has(.page-art) .site-header nav a:hover { color: #141414; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
html:has(.page-art) .hero-tagline em { color: var(--gold); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
html:has(.page-art) .portal-art img { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
/* Catalog on the light background: dark page texts with the same cream glow; tiles and filter
   buttons stay dark, so their own text goes back to cream. */
html:has(.page-art) .catalog-head p:last-child { color: #141414; }
html:has(.page-art) .catalog-head p:last-child, html:has(.page-art) .empty { text-shadow: 0 0 8px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }
html:has(.page-art) .filters > a, html:has(.page-art) .filter-search, html:has(.page-art) .product-tile { color: var(--paper); }
html:has(.page-art) .filters .on { color: #141414; }
/* Computer: the footer art is empty at the top, so the catalog's footer moves up closer to the page
   links. The footer lets clicks through, except on its links and buttons. */
@media (min-width: 1024px) {
  html:has(main.page-art) .site-footer { margin-top: -1.5rem; pointer-events: none; }
}
/* Tiles: the image area lets the page background through (sealed photos have a transparent
   background), only the details below sit in the dark box; the shadow follows the product's shape. */
html:has(.page-art) .product-tile { background: none; border: 0; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.28)); }
/* Same lift as the home page's game cards and the footer's social buttons. */
.product-tile { transition: transform 0.2s ease; }
.product-tile:hover, .product-tile:focus-visible { transform: translateY(-6px); }
html:has(.page-art) .product-image { background: none; }
/* Every tile's image area has the card shape (5:7), so all tiles and their details boxes line up;
   card photos fill it whole with all four corners rounded, sealed photos stand at its bottom. */
html:has(.page-art) .product-image { aspect-ratio: 5 / 7; }
html:has(.page-art) .product-image:not(.sealed) img { border-radius: 1rem; }
/* Only sealed products on the page, or in a row of a mixed page ("Tudo"; rows marked by bcs.js): a
   shorter image area, so the packages and their boxes sit higher. A row with a card keeps the card
   shape, so its tiles still line up. */
html:has(.page-art) .product-grid.all-sealed .product-image,
html:has(.page-art) .product-tile.row-sealed .product-image { aspect-ratio: 1 / 1.2; }
html:has(.page-art) .tile-info { flex: 1; display: flex; flex-direction: column; margin-top: 0.5rem; background: rgb(28 28 28 / 0.2); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 1rem; }
/* Sealed photos are cut to the package: whole, standing at the bottom of the image area, just above
   the details box. */
html:has(.page-art) .product-image.sealed img { position: absolute; inset: 0; object-fit: contain; object-position: center bottom; padding: 5% 4% 4%; box-sizing: border-box; }
html:has(.page-art) .site-footer { background: transparent; border-block: 0; }
/* Short pages (few products, empty search): the page grows to fill the screen so the footer art sits
   at the bottom edge instead of floating mid-screen. */
html:has(main.page-art) #root { display: flex; flex-direction: column; min-height: 100svh; }
html:has(main.page-art) main.page-art { flex: 1 0 auto; }
/* In that column, auto side margins would shrink the full-width header and page to their content. */
@media (min-width: 801px) {
  html:has(main.page-art) .site-header { margin-inline: 0; }
}
@media (min-width: 1100px) {
  html:has(main.page-art) main.page-art { width: 100%; box-sizing: border-box; }
}
/* Cart: same frame as the catalog (header side margins, up to 1680px), dark page texts with the
   cream glow; the item cards and the total box stay dark with cream text. */
@media (min-width: 1100px) {
  .cart-page.page-art { width: auto; max-width: 1680px; padding-inline: clamp(1.5rem, 3vw, 3rem); margin-inline: auto; }
  .cart-page.page-art h1 { margin: 1.2rem 0 2rem; }
}
/* The cart and checkout have no visible title (page.php): the boxes start the page, a little below the menu. */
main.cart-page > .woocommerce { padding-top: 2rem; }
html:has(.page-art) .cart-page h1, html:has(.page-art) .cart-page > .note { text-shadow: 0 0 8px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }
html:has(.page-art) .cart-page > .note { color: #141414; }
html:has(.page-art) .cart-box, html:has(.page-art) .cart-layout aside { color: var(--paper); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25); }
/* Product window: the card image (5:7) stands frameless over the blurred catalog, as tall as the
   screen allows, and the details sit next to it in a dark panel like the tiles. */
.product-view { grid-template-columns: auto minmax(0, 38rem); justify-content: center; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.product-view .product-stage { background: none; border: 0; border-radius: 0; min-height: 0; overflow: visible; }
.product-view .product-stage img { width: clamp(16rem, calc((100svh - 14rem) * 5 / 7), 34rem); height: auto; border-radius: 4.5% / 3.2%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
/* Sealed photos are cut to the package (often wider than tall): sized by the screen height instead. */
.product-view.sealed .product-stage img { width: auto; max-width: min(34rem, 45vw); max-height: calc(100svh - 16rem); border-radius: 0; }
.product-info { background: #1c1c1c; color: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25); }
.product-info .product-badges { gap: 0.35rem; margin: 0 0 1rem; }
/* Product window: two lines of tags, what the product is (type, set), then this copy (finish,
   condition, language); each line wraps on its own when narrow. */
.product-badges.rows { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.product-info .product-badge { font-size: 0.78rem; padding: 0.32rem 0.65rem; }
.product-info .product-title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin: 0 0 0.9rem; }
/* Price and stock, then a gold line, then the condition note and the buy row. */
.product-info .product-price { padding: 0 0 1rem; margin: 0 0 1.1rem; align-items: baseline; border-bottom: 1px solid var(--line); }
.product-info .price { margin: 0; }
.product-info .product-stock { font-size: 0.95rem; }
.product-note { margin: -0.3rem 0 1.1rem; font-size: 0.92rem; color: #cfc6b2; }
.product-note strong { color: var(--paper); font-weight: 700; }
@media (max-width: 1023px) {
  .product-view { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .product-view .product-stage img, .product-view.sealed .product-stage img { width: min(100%, 24rem); max-width: 100%; max-height: none; }
  .product-info { width: 100%; box-sizing: border-box; }
}
html:has(.page-art) .footer-banner { background-color: transparent; background-image: url("assets/img/footer-art.webp"); }
@media (max-width: 1023px) {
  html:has(.page-art) .footer-banner { border-block: 0; }
  html:has(.page-art) .footer-top > div, html:has(.page-art) .footer-copy { text-shadow: 0 0 8px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }
}
/* Catalog product window (components/product/quick-view.tsx): the product over the blurred
   catalog, same layout as the product page; the X sits on the details panel's corner. */
.quick-view { width: min(1200px, calc(100vw - 2rem)); max-width: none; max-height: calc(100svh - 2rem); padding: 1.5rem; border: 0; background: none; color: inherit; overflow: auto; }
.quick-view::backdrop { background: rgba(20, 20, 20, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html:has(.quick-view[open]) { overflow: hidden; }
.quick-view .product-info { position: relative; }
.quick-view-close { position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line); background: #141414; color: var(--paper); cursor: pointer; }
.quick-view-close:hover { border-color: var(--gold); color: var(--gold); }
.quick-view .product-badges { padding-right: 2.6rem; }
.quick-view-status { width: min(28rem, 100%); margin: 20svh auto 0; padding-right: 3.6rem; }
/* Stacked (photo above the panel): the X stays in the screen's top corner while scrolling. */
@media (max-width: 1023px) {
  .quick-view { padding: 1rem 0.5rem; }
  .quick-view-close { position: fixed; top: 1.4rem; right: 1.4rem; z-index: 1; }
}
/* ===== end TEST */

/* Official game logo as the catalog title (data/games.ts; Pokémon: the Brazilian "Pokémon Estampas
   Ilustradas" logo from copag.com.br, upscaled 4x). */
.catalog-wordmark { --logo-a: 8.5rem; display: block; width: calc(var(--logo-a) * sqrt(var(--ratio, 2))); height: auto; max-width: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25)); }
/* Same area for every logo (see .portal-logo), so they look the same size. Lorcana's white letters get a dark outline glow to read on the light background. */
.catalog-wordmark[src*="lorcana"] { filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
html:has(.page-art) .catalog-head h1:not(:has(img)) { text-shadow: 0 0 8px rgba(248, 242, 226, 0.95), 0 0 2px rgba(248, 242, 226, 0.95); }

/* Signed in to WordPress: its admin bar (32px, 46px on phones) also sits above the page, so the
   home cards shrink by that much and their logos stay on the first screen. */
.admin-bar .hero { --chrome: 184px; }
@media (max-width: 800px) { .admin-bar .hero { --chrome: 254px; } }

/* Cart on a computer: the item column only as wide as it needs, the total box next to it. */
@media (min-width: 801px) {
  .cart-layout { grid-template-columns: minmax(0, 34rem) minmax(0, 37rem); justify-content: center; align-items: stretch; }
  /* The cart sits in the middle of the page: the title and notices line up with the boxes' left edge. */
  main.cart-page:not(.checkout-page) > h1, main.cart-page:not(.checkout-page) > .woocommerce { max-width: 73rem; margin-inline: auto; }
  /* Both boxes the same height: the item box fills its column, the totals box stretches. */
  .cart-layout .woocommerce-cart-form { display: flex; flex-direction: column; }
  .cart-layout .cart-box { flex: 1 1 auto; }
  /* Wide enough for each shipping option and the destination to stay on one line. */
  .woocommerce-shipping-methods label, .woocommerce-shipping-destination { white-space: nowrap; }
}

/* ===== WooCommerce pages =====
   WooCommerce's own look is switched off (functions.php); its forms get the site's style: dark
   panels with cream text and gold lines over the background art, round gold buttons. */
.admin-bar .quick-view-close { top: calc(0.6rem); }
.site-header nav .bcs-cart-link[aria-current="page"] { color: var(--gold); }

/* Notices (added to cart, coupon applied, errors). */
.woocommerce-notices-wrapper:empty { display: none; }
/* Notices: see-through over the page art like the cart and catalog boxes. */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { list-style: none; margin: 0 0 1.2rem; padding: 0.9rem 1.1rem; background: rgb(28 28 28 / 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 1rem; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25); display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; }
.woocommerce-error { border-left-color: var(--red); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Buttons from WooCommerce templates look like the site's .btn. */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .checkout-button, #place_order, .single_add_to_cart_button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.7rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; background: var(--gold); color: #141414; text-align: center; line-height: 1.2;
}
.woocommerce .button:disabled, .woocommerce .button.disabled, .single_add_to_cart_button:disabled { opacity: 0.55; cursor: default; }
.woocommerce .button:active, .single_add_to_cart_button:active { transform: scale(0.98); }

/* Inputs in the dark panels. */
.cart-page input[type="text"], .cart-page input[type="email"], .cart-page input[type="tel"], .cart-page input[type="number"], .cart-page input[type="password"], .cart-page select, .cart-page textarea,
.buy-panel input[type="number"] {
  background: #141414; color: var(--paper); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.55rem 0.7rem; min-height: 2.6rem;
}
.cart-page input:focus, .cart-page select:focus, .cart-page textarea:focus, .buy-panel input:focus { outline: none; border-color: var(--gold); }
.cart-page label { color: inherit; }
.cart-page .select2-container .select2-selection { background: #141414; border: 1px solid var(--line); border-radius: 0.6rem; min-height: 2.6rem; }
.cart-page .select2-container .select2-selection__rendered { color: var(--paper); line-height: 2.5rem; }
.select2-dropdown { background: #1c1c1c; color: var(--paper); border-color: var(--line); }
.select2-results__option--highlighted { background: var(--gold) !important; color: #141414 !important; }
.select2-search__field { background: #141414; color: var(--paper); }

/* Product window: WooCommerce's add-to-cart form in the old buy panel's layout. */
.buy-panel form.cart { display: grid; gap: 0.7rem; }
.buy-panel form.cart:not(.variations_form), .buy-panel .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; }
.product-info .buy-panel { margin-top: 0; }
.buy-panel .quantity, .cart-layout .quantity { display: grid; gap: 0.35rem; }
.qty-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #cfc6b2; }
/* Quantity counter: − 1 / 4 +, a pill as tall as the add button (product window and cart). */
.qty-stepper { display: inline-flex; align-items: center; height: 44px; padding: 0 0.2rem; border: 1px solid var(--line); border-radius: 999px; background: #141414; }
.qty-stepper:focus-within { border-color: var(--gold); }
.qty-step { width: 2.2rem; height: 100%; padding: 0; border: 0; background: none; color: var(--paper); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.qty-step:hover:not(:disabled) { color: var(--gold); }
.qty-step:disabled { opacity: 0.3; cursor: default; }
.buy-panel .qty-stepper input.qty, .cart-page .qty-stepper input.qty { width: 2.2rem; min-height: 0; height: 100%; padding: 0; border: 0; background: none; text-align: center; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; appearance: textfield; }
.qty-stepper input.qty::-webkit-outer-spin-button, .qty-stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-of { padding: 0 0.15rem 0 0.05rem; color: #cfc6b2; font-size: 0.95rem; white-space: nowrap; }
.buy-panel .single_add_to_cart_button { flex: 1; min-width: 12rem; }
.buy-panel .buy-message { margin: 0.2rem 0 0; }
.buy-panel .stock { display: none; }
.buy-panel .variations { width: 100%; border-collapse: collapse; }
.buy-panel .variations th, .buy-panel .variations td { display: block; text-align: left; padding: 0.2rem 0; }
.buy-panel .reset_variations { color: #ffb1a6; font-size: 0.85rem; }
.buy-panel .woocommerce-variation-price .price { font-size: 1.4rem; margin: 0; }

/* Cart: the old site's item cards; the total box holds WooCommerce's totals, with shipping. */
.cart-layout .woocommerce-cart-form { min-width: 0; }

.cart-layout dl.variation { display: flex; flex-wrap: wrap; gap: 0 0.4rem; font-size: 0.85rem; color: #cfc6b2; }
.cart-layout dl.variation dd p { margin: 0; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; align-items: center; }
/* The cart updates by itself when a quantity changes; the button stays for browsers without scripts. */
.js-on .cart-actions .update-cart { display: none; }
html:has(.page-art) .cart-actions .btn.secondary { background: #1c1c1c; color: var(--paper); }
/* No "Total no carrinho" title: the box starts with the subtotal. */
.cart_totals h2 { display: none; }
/* The cart's quantity counter, a size smaller than the product window's. */
.cart-items .qty-stepper { height: 36px; padding: 0 0.15rem; }
.cart-items .qty-step { width: 1.8rem; font-size: 1.05rem; }
.cart-page .cart-items .qty-stepper input.qty { width: 1.8rem; font-size: 0.95rem; }
.cart-items .qty-of { font-size: 0.85rem; }

/* Small gold buttons: "Mudar endereço", "Aplicar" and each item's "Remover". */
.btn.btn-small, .shipping-calculator-button { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 0; padding: 0.4rem 0.95rem; border-radius: 999px; background: var(--gold); color: #141414; font-size: 0.85rem; font-weight: 700; line-height: 1.2; text-decoration: none; }
.btn.btn-small:hover, .shipping-calculator-button:hover { filter: brightness(1.08); text-decoration: none; }
.cart_totals table, .woocommerce-checkout-review-order-table, .woocommerce-table--order-details, .shop_table { width: 100%; border-collapse: collapse; }
.cart_totals th, .cart_totals td, .shop_table th, .shop_table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 500; }
.cart_totals td, .shop_table td:last-child, .shop_table th:last-child { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td, .shop_table .order-total th, .shop_table .order-total td { border-bottom: 0; padding-top: 0.9rem; }
.cart_totals .order-total .amount, .shop_table .order-total .amount { font-family: Oswald, sans-serif; font-size: 2rem; color: var(--paper); }
/* Totals: each label as large as the value on its line. */
.cart_totals th, .cart_totals td { font-size: 1.15rem; vertical-align: baseline; padding: 0.9rem 0; }
.cart_totals th { font-weight: 700; }
/* Labels (Subtotal, Envio, Endereço de Entrega) in the site's gold; the total keeps its own style. */
.cart_totals tr:not(.order-total) th { color: var(--gold); }
.cart_totals tr:first-child th, .cart_totals tr:first-child td { padding-top: 0.2rem; }
.cart_totals .order-total th { font-family: Oswald, sans-serif; font-size: 2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
/* Each line of the box is a row: label left, value right. Shipping is a column: "Envio", then the
   options right under it, then where it goes, then the address button. */
.cart_totals table, .cart_totals tbody { display: block; }
.cart_totals tr { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); }
.cart_totals tr.order-total { border-bottom: 0; }
.cart_totals th, .cart_totals td { display: block; border-bottom: 0; }
.cart_totals tr.shipping { flex-direction: column; align-items: stretch; gap: 0; }
.cart_totals tr.shipping th { text-align: left; padding-bottom: 0.5rem; }
.cart_totals tr.shipping td { text-align: left; padding-top: 0; display: grid; gap: 0.85rem; justify-items: stretch; }
.cart_totals tr.shipping .shipping-calculator-button { justify-self: start; }
/* Checkout's order summary: "Envio" on its line (set like the other labels there), each option on a
   whole line under it: the radio centred under the word, then the name, and the price at the right
   edge, in line with the box's other values. */
/* The summary's foot (Subtotal, Envio, Total) as whole lines, label left and value at the right edge,
   so "Envio" can take the full width; the product rows above stay a table. */
.woocommerce-checkout-review-order-table { display: block; }
.woocommerce-checkout-review-order-table thead, .woocommerce-checkout-review-order-table tbody { display: table; width: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order-table tfoot { display: block; }
.woocommerce-checkout-review-order-table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); }
.woocommerce-checkout-review-order-table tfoot th, .woocommerce-checkout-review-order-table tfoot td { display: block; border-bottom: 0; }
.woocommerce-checkout-review-order-table tr.shipping { flex-direction: column; align-items: stretch; gap: 0; }
.woocommerce-checkout-review-order-table tr.shipping th { padding-bottom: 0.3rem; }
.woocommerce-checkout-review-order-table tr.shipping td { padding-top: 0; text-align: left; }
/* Coupon line, under the subtotal: the code box across the line, the small gold button after it. */
.cart_totals tr.cart-coupon td { flex: 1; padding: 0.85rem 0; }
.coupon-form { display: flex; align-items: center; gap: 0.6rem; }
.cart-page .coupon-form input[type="text"], .cart-page #calc_shipping_postcode { flex: 1; min-width: 0; min-height: 0; height: 2.2rem; padding: 0 0.85rem; border-radius: 999px; background: rgb(20 20 20 / 0.55); font-size: 0.95rem; }
.cart-page .coupon-form input::placeholder, .cart-page #calc_shipping_postcode::placeholder { color: rgba(246, 241, 228, 0.55); }
.coupon-form .btn.btn-small { height: 2.2rem; flex: none; }
/* A code that doesn't apply: the error right under the code box, starting at its left edge, after a
   "*", in a softer take on the site's red so it reads well over the see-through box. */
/* The same look for "no shipping option for this address" (functions.php), under "Envio". */
.coupon-error, .shipping-error { margin: 0.55rem 0 0; text-align: left; font-family: Oswald, sans-serif; font-size: 0.95rem; font-weight: 500; font-style: italic; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.25; color: #f08070; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.coupon-error::before, .shipping-error::before { content: "* "; }
.shipping-error { margin: 0; }
.shipping-error strong { font-weight: inherit; color: inherit; display: inline; }
/* An applied coupon: its line shows the discount and "[Remover]". */
.cart_totals tr.cart-discount td a { color: #ffb1a6; font-size: 0.85rem; margin-left: 0.4rem; }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; text-align: left; }
/* Each option on its own line with a light line under it, and the chosen one on a faint gold
   background, so the options read apart. */
.woocommerce-shipping-methods li { display: flex; gap: 0.6rem; align-items: center; margin: 0 -0.5rem; padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(246, 241, 228, 0.4); } /* the negative margin keeps the text lined up with the subtotal */
.woocommerce-shipping-methods li:has(input:checked) { background: rgba(230, 194, 0, 0.14); border-radius: 0.4rem 0.4rem 0 0; }
/* The radio sits in a column as wide as the word "Envio" above it (--envio-w, measured in bcs.js),
   centred under it. */
.woocommerce-shipping-methods input[type="radio"] { flex: none; width: 1.05rem; height: 1.05rem; margin: 0 calc((var(--envio-w, 2.9rem) - 1.05rem) / 2); accent-color: var(--gold); }
.woocommerce-shipping-methods label { flex: 1; min-width: 0; display: block; font-size: 1.08rem; cursor: pointer; color: #fff; } /* options in white */
/* Price on the right of each option. */
.woocommerce-shipping-methods label .amount { float: right; margin-left: 0.8rem; font-weight: 700; }
.woocommerce-shipping-contents { font-size: 1rem; line-height: 1.4; color: #ddd4c2; margin: 0; }
/* "Endereço de Entrega" set like the "Subtotal" and "Envio" labels; the address under it, set like the
   shipping options. */
.woocommerce-shipping-destination { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; color: var(--gold); }
.woocommerce-shipping-destination strong { display: block; margin-top: 0.5rem; font-size: 1.08rem; font-weight: 500; color: #fff; } /* the shopper's address in white, like the shipping options */
.shipping-calculator-form { display: grid; gap: 0.5rem; margin-top: 0.6rem; text-align: left; width: 100%; }
.shipping-calculator-form p { margin: 0; }
/* Only the CEP (functions.php): the box and its button on one line, like the coupon line. */
.shipping-calculator-form { grid-template-columns: 1fr auto; align-items: center; gap: 0.6rem; }
.shipping-calculator-form p:has(#calc_shipping_postcode) { display: flex; }
.shipping-calculator-form label[for="calc_shipping_postcode"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* the box says "CEP" */
.shipping-calculator-form button[name="calc_shipping"] { display: inline-flex; align-items: center; height: 2.2rem; min-height: 0; padding: 0 0.95rem; border-radius: 999px; font-size: 0.85rem; }
.wc-proceed-to-checkout { margin-top: 1rem; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
/* No CEP with a shipping option yet (woocommerce/cart/proceed-to-checkout-button.php). */
.wc-proceed-to-checkout .checkout-button.disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.4); }

/* Checkout: billing details and the order summary in dark panels, side by side on a computer. */
.checkout-page form.checkout { display: grid; gap: 1.6rem; align-items: start; }
/* Details on the left, the order on the right, both boxes starting on the same line. */
@media (min-width: 1024px) { .checkout-page form.checkout { grid-template-columns: 1.1fr 0.9fr; } .checkout-page #customer_details { grid-column: 1; grid-row: 1; } .checkout-page #order_review { grid-column: 2; grid-row: 1; align-self: start; } }
/* See-through boxes like the catalog's tag and price boxes, so the page art shows behind them. */
.checkout-page #customer_details, .checkout-page #order_review, .checkout-page .woocommerce-form-login, .woocommerce-order { background: rgb(28 28 28 / 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--paper); border: 1px solid var(--line); border-radius: 1rem; padding: 1.4rem; box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25); }
/* No visible "Seu pedido": the box says it (kept for screen readers). */
.checkout-page #order_review_heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* "Produto", "Subtotal", "Envio" and "Total" larger, in the site's gold. */
.woocommerce-checkout-review-order-table thead th, .woocommerce-checkout-review-order-table tr.cart-subtotal th, .woocommerce-checkout-review-order-table tr.shipping th, .woocommerce-checkout-review-order-table tr.order-total th { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
/* No "Subtotal" over the product prices (the column stays, so the prices keep their place). */
.woocommerce-checkout-review-order-table thead th:last-child { visibility: hidden; }
.checkout-page .col2-set { display: grid; gap: 1.4rem; }
.checkout-page .col2-set .col-1, .checkout-page .col2-set .col-2 { width: auto; float: none; }
.checkout-page h3 { font-size: 1.3rem; margin: 0 0 0.8rem; color: var(--gold); }
.checkout-page .form-row { display: grid; gap: 0.3rem; margin: 0 0 0.8rem; padding: 0; }
.checkout-page .form-row .required { color: #ff8d7d; text-decoration: none; }
.checkout-page .woocommerce-billing-fields__field-wrapper, .checkout-page .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.checkout-page .form-row-wide, .checkout-page .notes, .checkout-page #billing_address_1_field, .checkout-page #billing_address_2_field, .checkout-page #shipping_address_1_field, .checkout-page #shipping_address_2_field { grid-column: 1 / -1; }
@media (max-width: 599px) { .checkout-page .woocommerce-billing-fields__field-wrapper, .checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; } }
.checkout-page .woocommerce-input-wrapper { display: block; }
.checkout-page .woocommerce-input-wrapper input, .checkout-page .woocommerce-input-wrapper select, .checkout-page .woocommerce-input-wrapper textarea { width: 100%; }
.checkout-page #payment { background: rgb(28 28 28 / 0.2); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1rem; margin-top: 1rem; }
.checkout-page #payment ul.payment_methods { display: grid; gap: 0.6rem; margin: 0 0 1rem; }
.checkout-page #payment .payment_box { background: rgb(28 28 28 / 0.2); border-radius: 0.6rem; padding: 0.8rem; margin-top: 0.5rem; font-size: 0.92rem; color: #ddd4c2; }
.checkout-page #payment .payment_box::before { display: none; }
.checkout-page #place_order { width: 100%; margin-top: 0.8rem; }
.checkout-page .woocommerce-privacy-policy-text { font-size: 0.85rem; color: #cfc6b2; }
.checkout-page a { color: var(--gold); }
/* Order received: the old success page's words over WooCommerce's order summary. */
.woocommerce-order { display: grid; gap: 1rem; max-width: 900px; }
.woocommerce-thankyou-order-received { display: grid; gap: 0.6rem; color: #ddd4c2; }
.woocommerce-thankyou-order-received .eyebrow { margin: 0; }
.thanks-title { font-family: Oswald, sans-serif; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; color: var(--paper); }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; padding: 0; margin: 0; }
.woocommerce-order-overview li { font-size: 0.85rem; color: #cfc6b2; }
.woocommerce-order-overview strong { display: block; color: var(--paper); font-size: 1rem; }
.woocommerce-order h2 { font-size: 1.3rem; color: var(--gold); margin: 0.6rem 0; }
.woocommerce-customer-details address { font-style: normal; color: #ddd4c2; }
@media (min-width: 1100px) {
  .checkout-page.page-art { width: auto; max-width: 1680px; padding-inline: clamp(1.5rem, 3vw, 3rem); margin-inline: auto; }
}
.checkout-page .blockUI.blockOverlay { background: rgba(20, 20, 20, 0.5) !important; }
