/* Self-hosted Inter — replaces the external fonts.googleapis.com/css2 request
   (see theme/inc/seo.php's now-removed 'pcseal-inter-font' enqueue and
   theme/inc/login.php's duplicate @font-face, since the login screen
   doesn't load this stylesheet). Google's css2 endpoint serves the SAME
   variable-font woff2 file (wght axis 100-900) for all four requested
   weights per subset — verified via fontTools (fvar wght 100/400/900) — so
   only two physical files exist (inter-latin.woff2, inter-vietnamese.woff2)
   even though 8 @font-face blocks reference them below, one per
   weight x subset. Subsets: latin (base Latin/ASCII) + vietnamese (a
   distinct unicode-range Google Fonts ships specifically for Vietnamese
   precomposed diacritics, e.g. U+1EA0-1EF9 — this site's content is
   Vietnamese, and that range is NOT covered by latin-ext, so vietnamese is
   kept instead of latin-ext here, matching what browsers already fetch
   today from the external stylesheet). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Self-hosted Source Sans Pro — replaces Storefront parent theme's own
   external 'storefront-fonts' enqueue (dequeued in functions.php at
   wp_enqueue_scripts priority 20). Subsets kept: latin + latin-ext, exactly
   matching Storefront's own original request URL
   (family=Source+Sans+Pro:...&subset=latin,latin-ext) — no vietnamese
   subset was ever requested by Storefront for this font, so this
   self-hosted version preserves that pre-existing behavior/appearance
   as-is rather than expanding font coverage. */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/source-sans-pro-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/source-sans-pro-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/source-sans-pro-300italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/source-sans-pro-300italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-400italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-sans-pro-400italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-pro-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-sans-pro-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-pro-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-sans-pro-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/source-sans-pro-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/source-sans-pro-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Dark-tech redesign (2026-07-14) — replaces the prior light palette that
     mirrored duytripc.com. Same accent hues (blue/orange) carried forward
     for brand continuity, brightened here for neon glow on a dark base. */
  --bg: #0a0e16;
  --surface: #131a2b;
  --surface-2: #1c2540;
  --ink: #eef2fb;
  --muted: #8b96ad;
  --accent: #29a3ff;
  --accent-strong: #0f6fe0;
  --accent-tint: rgba(41, 163, 255, 0.14);
  --gold: #ff7a45;
  --gold-tint: rgba(255, 122, 69, 0.16);
  --line: #232d47;
  --masthead-bg: #0d1424;
  /* Text color for anything sitting on --masthead-bg (topbar, header,
     footer) — these surfaces stay dark in BOTH themes (see the light-mode
     block below), so their text must NOT follow --ink/--muted, which flip
     to dark colors in light mode and would render dark-on-dark. Not
     overridden anywhere — always the dark-mode-appropriate light values. */
  --masthead-ink: #eef2fb;
  --masthead-muted: #8b96ad;

  /* Dark-tech additions */
  --glow-blue: 0 0 24px rgba(41, 163, 255, 0.45);
  --glow-blue-soft: 0 0 12px rgba(41, 163, 255, 0.28);
  --glow-orange: 0 0 24px rgba(255, 122, 69, 0.4);
  --glass-bg: rgba(19, 26, 43, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(41, 163, 255, 0.07);
  --content-max: 1880px;

  /* Fluid Apple-like animation tokens */
  --transition-spring: 380ms cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Ease Out Back */
  --transition-fluid: 250ms cubic-bezier(0.25, 1, 0.5, 1); /* Fluid Ease Out */
  --transition-bounce: 450ms cubic-bezier(0.34, 1.56, 0.64, 1); /* Natural bounce */
}

/* Light-mode token set (theme toggle, theme/assets/theme-toggle.js). Header
   chrome (topbar/masthead/menu-row/footer) intentionally keeps --masthead-bg
   dark in both modes — only body/content surfaces switch — so the toggle
   never has to fight the always-dark brand bar. Kept soft (not pure white)
   per explicit ask to avoid a blinding light mode. */
:root[data-theme="light"] {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --ink: #16202f;
  --muted: #5c6577;
  --accent: #0f6fe0;
  --accent-strong: #0b57b3;
  --accent-tint: rgba(15, 111, 224, 0.10);
  --gold: #d9541a;
  --gold-tint: rgba(217, 84, 26, 0.12);
  --line: #dbe1ea;
  --glow-blue: 0 0 16px rgba(15, 111, 224, 0.18);
  --glow-blue-soft: 0 0 8px rgba(15, 111, 224, 0.12);
  --glow-orange: 0 0 16px rgba(217, 84, 26, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(15, 32, 60, 0.08);
  --grid-line: rgba(15, 111, 224, 0.05);
}

/* Toggling data-theme flips ~15 custom properties at once — without a
   transition every element using them snaps instantly, which reads as a
   harsh flash. This class is added just before the flip and removed after,
   so the switch cross-fades instead. */
html.pcseal-theme-transition,
html.pcseal-theme-transition * {
  transition: background-color 320ms ease, color 320ms ease, border-color 320ms ease, box-shadow 320ms ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.pcseal-theme-transition,
  html.pcseal-theme-transition * {
    transition: none !important;
  }
}

body { background: var(--bg); color: var(--ink); font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

/* Sitewide micro-interactions & spring eases */
.button, button, input[type="submit"], input[type="button"],
.woocommerce button.button, .woocommerce a.button,
.pcseal-hotline, .pcseal-cart, .pcseal-menu-toggle,
.pcseal-build-btn, .pcseal-search button,
.pcseal-float-btn, .pcseal-card, .pcseal-tile, .pcseal-delivery-banner {
  transition: transform var(--transition-fluid), background var(--transition-fluid), box-shadow var(--transition-fluid), border-color var(--transition-fluid), color var(--transition-fluid);
}
.button:active, button:active, input[type="submit"]:active, input[type="button"]:active,
.woocommerce button.button:active, .woocommerce a.button:active,
.pcseal-hotline:active, .pcseal-cart:active, .pcseal-menu-toggle:active,
.pcseal-build-btn:active, .pcseal-search button:active,
.pcseal-float-btn:active {
  transform: scale(0.96) !important;
}

/* Dark-tech utility classes — reused by every later phase for cards/panels */
.pcseal-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pcseal-glow-blue { box-shadow: var(--glow-blue); }
.pcseal-glow-blue-soft { box-shadow: var(--glow-blue-soft); }
.pcseal-glow-orange { box-shadow: var(--glow-orange); }

/* The sitewide left-sidebar layout mod (for the shop-browsing sidebar) also
   applies to cart/checkout — but a categories/price-filter/search sidebar
   makes no sense mid-checkout, and it squeezes the WooCommerce Blocks
   two-column layout narrower than it needs. Hide it there, go full width. */
.woocommerce-cart .widget-area,
.woocommerce-checkout .widget-area {
	display: none;
}
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area {
	width: 100% !important;
	float: none !important;
}

/* --- Top hotline bar --- */
.pcseal-topbar { background: var(--masthead-bg); color: var(--masthead-ink); font-size: 0.82rem; }
.pcseal-topbar .wrap { max-width: var(--content-max); margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.pcseal-topbar a { color: var(--masthead-ink); text-decoration: none; }
.pcseal-topbar .showroom { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px 14px 4px 4px; font-weight: 700; }
.pcseal-topbar .showroom .ico { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); font-size: 0.7rem; flex-shrink: 0; }
.pcseal-topbar .spacer { flex: 1; }
.pcseal-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06);
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform var(--transition-fluid), background var(--transition-fluid), border-color var(--transition-fluid);
}
.pcseal-theme-toggle:hover { background: rgba(255, 255, 255, 0.12); transform: scale(1.08); box-shadow: var(--glow-blue-soft); }
.pcseal-theme-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  transition: opacity var(--transition-spring), transform var(--transition-spring);
}
.pcseal-theme-icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
.pcseal-theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="light"] .pcseal-theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }
[data-theme="light"] .pcseal-theme-icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .pcseal-theme-icon { transition: opacity 1ms linear; }
}

/* --- Header row: logo / trust badges / hotline / cart (dark) --- */
.pcseal-header { background: var(--masthead-bg); }
.pcseal-header .wrap { max-width: var(--content-max); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pcseal-header .pcseal-logo { font-size: 1.5rem; font-weight: 800; color: var(--masthead-ink); text-decoration: none; line-height: 1.1; }
.pcseal-header .pcseal-logo small { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--masthead-muted); }
.pcseal-header .pcseal-logo-img { display: block; max-height: 44px; width: auto; }
.pcseal-trust { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pcseal-trust-item { display: flex; align-items: center; gap: 8px; color: var(--masthead-ink); font-weight: 700; font-size: 0.82rem; white-space: nowrap; }
.pcseal-trust-item .ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 1rem; flex-shrink: 0; }
.pcseal-header-right { display: flex; align-items: center; gap: 22px; }
.pcseal-hotline { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--masthead-ink); font-size: 0.78rem; white-space: nowrap; }
.pcseal-hotline strong { display: block; color: var(--masthead-ink); font-size: 1rem; }
.pcseal-hotline .ico { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); font-size: 1rem; flex-shrink: 0; }
.pcseal-header .pcseal-cart { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--masthead-ink); font-weight: 700; white-space: nowrap; }
.pcseal-cart .count { background: var(--gold); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 0.8rem; }

/* --- White utility row: category pill / search / build-a-PC CTA ---
   Sticks to the top on scroll and switches to the dark masthead color,
   matching duytripc.com's behavior (its full header scrolls away, leaving
   just this row pinned in a compact dark bar). */
.pcseal-menu-row { background: var(--masthead-bg); border-bottom: 1px solid var(--line); transition: background var(--transition-fluid), box-shadow var(--transition-fluid); }
.pcseal-menu-row.is-stuck {
  /* Must beat WooCommerce's own absolutely-positioned in-page controls (e.g.
     .woocommerce-product-gallery__trigger, z-index: 99) or they poke through
     the fixed bar once it covers the top of the viewport on scroll. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: var(--masthead-bg); border-bottom-color: transparent;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 1px var(--glow-blue-soft);
  transition: transform .25s ease, background var(--transition-fluid), box-shadow var(--transition-fluid);
}
@media (max-width: 768px) {
  /* Mobile only — menu.js toggles this on scroll direction so the bar
     doesn't permanently eat screen space; desktop keeps it always visible. */
  .pcseal-menu-row.is-stuck.is-header-hidden { transform: translateY(-100%); }
}
.pcseal-menu-row .wrap { max-width: var(--content-max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; position: relative; }
.pcseal-menu-row .pcseal-cart { display: none; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-weight: 700; white-space: nowrap; font-size: 1.2rem; flex-shrink: 0; }
.pcseal-menu-row.is-stuck .pcseal-cart { display: flex; }
.pcseal-menu-toggle { display: flex; align-items: center; gap: 8px; background: var(--masthead-bg); color: #fff; border: none; padding: 12px 22px; font-weight: 700; cursor: pointer; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.pcseal-megamenu { position: absolute; top: 100%; left: 24px; width: 300px; background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: none; border-radius: 0 0 12px 12px; box-shadow: var(--glow-blue-soft); z-index: 30; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--transition-spring), transform var(--transition-spring), visibility var(--transition-spring); pointer-events: none; }
.pcseal-menu-toggle:hover ~ .pcseal-megamenu, .pcseal-megamenu:hover { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
/* Touch/no-hover fallback: menu.js toggles this class on tap of
   .pcseal-menu-toggle since `:hover` doesn't reliably open/close on touch
   devices — without this rule the JS toggle had nothing to show. */
.pcseal-megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.pcseal-megamenu ul { list-style: none; margin: 0; padding: 8px 0; }
.pcseal-megamenu li a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.pcseal-megamenu li a:hover { background: var(--accent-tint); color: var(--accent-strong); }
.pcseal-megamenu li a .cat-icon { flex-shrink: 0; border-radius: 4px; object-fit: contain; }
.pcseal-megamenu li ul { padding-left: 14px; }
.pcseal-menu-row .pcseal-search { flex: 1; min-width: 220px; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 18px; margin-bottom: 0; }
.pcseal-search input { flex: 1; border: none; background: transparent; color: var(--ink); padding: 8px 4px; font-size: 0.95rem; outline: none; }
.pcseal-search input::placeholder { color: var(--muted); }
.pcseal-search button { border: none; background: var(--accent); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.pcseal-build-btn { background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex-shrink: 0; }

/* Below ~600px the dropdown pill + search bar + CTA don't fit on one line
   (search alone has a 220px min-width) — wrap instead of silently
   overflowing the viewport and pushing the CTA off-screen. */
@media (max-width: 600px) {
  .pcseal-menu-row .wrap { flex-wrap: wrap; }
  .pcseal-menu-row .pcseal-search { order: 3; flex: 1 1 100%; min-width: 0; max-width: none; }
}

/* --- Top grid: sidebar categories + delivery banner + tiles --- */
.pcseal-top-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
.pcseal-top-right { display: flex; flex-direction: column; gap: 16px; }
.pcseal-delivery-banner, .pcseal-tile { position: relative; display: block; border-radius: 14px; overflow: hidden; line-height: 0; background: var(--surface); border: 1px solid var(--line); transition: transform var(--transition-spring), box-shadow var(--transition-spring); }
.pcseal-delivery-banner img, .pcseal-tile img { transition: transform var(--transition-fluid); }
.pcseal-delivery-banner:hover, .pcseal-tile:hover, .pcseal-delivery-banner:focus-visible, .pcseal-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -14px rgba(10,30,20,.28);
}
.pcseal-delivery-banner:hover img, .pcseal-tile:hover img, .pcseal-delivery-banner:focus-visible img, .pcseal-tile:focus-visible img { transform: scale(1.04); }
.pcseal-delivery-banner img { width: 100%; height: 280px; object-fit: contain; display: block; }
.pcseal-banner-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; flex: 1; }
.pcseal-tile img { width: 100%; height: 100%; min-height: 150px; object-fit: contain; display: block; }
.pcseal-delivery-banner::after, .pcseal-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,20,0) 45%, rgba(10,30,20,.55) 100%);
  pointer-events: none;
}
.pcseal-delivery-banner .cap, .pcseal-tile .cap {
  position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1;
  color: var(--ink); font-weight: 800; font-size: 1rem; line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

@media (max-width: 860px) {
  .pcseal-top-grid { grid-template-columns: 1fr; }
  .pcseal-banner-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* --- Hero carousel --- */
.pcseal-hero {
  max-width: 1280px; margin: 24px auto; padding: 0 24px;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.pcseal-hero .pcseal-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; }
.pcseal-hero .pcseal-carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pcseal-hero-slide { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1.47/1; background: var(--masthead-bg); text-decoration: none; }
.pcseal-hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcseal-hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,30,20,0) 45%, rgba(10,30,20,.55) 100%);
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.pcseal-hero-slide:hover::after, .pcseal-hero-slide:focus-visible::after { opacity: 1; }
.pcseal-hero-slide .cap {
  position: absolute; left: 28px; bottom: 24px; right: 28px; z-index: 1;
  color: #fff; font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.25; text-shadow: 0 2px 10px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pcseal-hero-slide:hover .cap, .pcseal-hero-slide:focus-visible .cap { opacity: 1; transform: translateY(0); }

/* --- Section shell --- */
.col-full { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pcseal-section { max-width: 1280px; margin: 0 auto 44px; padding: 24px 24px; border-radius: 18px; }
.pcseal-section h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.pcseal-section h2 .tag { font-size: .78rem; background: var(--accent-tint); color: var(--accent-strong); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

/* --- Product rail --- */
.pcseal-rail-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
/* No overflow:hidden here (moved corner-clipping to the image itself) — the
   quickview popover is position:absolute inside this card and needs the
   card to not clip it. See quickview.css. */
.pcseal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: relative; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(10,30,20,.04); }
.pcseal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 14px 14px 0 0; }
.pcseal-card .body { padding: 14px 16px; }
.pcseal-card .name { font-size: 0.94rem; font-weight: 600; margin: 0 0 8px; line-height: 1.35; min-height: 2.6em; }
.pcseal-card .price { font-family: ui-monospace, monospace; font-weight: 800; font-size: 1.05rem; color: var(--accent-strong); }
.pcseal-card .price del { font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-right: 6px; }
.pcseal-card .sale-badge { display: inline-block; background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; letter-spacing: .02em; }

/* --- Showroom block --- */
.pcseal-showrooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pcseal-showroom-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.pcseal-showroom-card h3 { font-size: 1rem; margin: 0 0 8px; color: var(--accent-strong); }
.pcseal-showroom-card p { margin: 4px 0; font-size: 0.9rem; color: var(--muted); }

/* --- Footer --- */
.pcseal-footer { background: var(--masthead-bg); color: var(--masthead-muted); margin-top: 60px; padding: 40px 0 24px; }
.pcseal-footer .wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }
.pcseal-footer h4 { color: var(--masthead-ink); font-size: 0.95rem; margin: 0 0 10px; }
.pcseal-footer a { color: var(--masthead-muted); }
.pcseal-footer .bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.8rem; opacity: .8; }
.pcseal-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.pcseal-footer-col p { margin: 0 0 8px; font-size: 0.88rem; opacity: .9; }
.pcseal-footer-col ul { list-style: none; margin: 0; padding: 0; }
.pcseal-footer-col li { margin: 0 0 8px; font-size: 0.88rem; }
.pcseal-footer-col li span { opacity: .7; }
.pcseal-footer-col a { text-decoration: none; }
.pcseal-footer-col a:hover { color: var(--masthead-ink); }

@media (max-width: 720px) {
  .pcseal-footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Floating contact widget --- collapsed to icon-only by default; the
   label only expands on real hover (see `(hover: hover)` below) — touch
   devices have no such hover, so they just always get the compact icon
   button and tap straight through to the link, which is the right behavior
   for a contact shortcut on a small screen anyway. Vertically centered on
   desktop; pinned to the bottom-right on narrow screens instead (see the
   max-width media query) so it can never collide with the header, no matter
   how tall that wraps at a given width. */
.pcseal-float { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 50; }
.pcseal-float-btn {
  display: flex; align-items: center;
  padding: 7px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700;
  text-decoration: none;
  box-shadow: var(--glow-blue);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s ease;
}
.pcseal-float-btn:hover { transform: translateX(-5px) scale(1.03); box-shadow: var(--glow-blue), var(--glow-blue-soft); }
.pcseal-float-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  line-height: 1;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 2px 6px -1px rgba(10,30,20,.35);
}
.pcseal-float-icon svg { width: 20px; height: 20px; }
.pcseal-float-label {
  white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0;
  transition: max-width .22s ease, opacity .18s ease, margin-left .22s ease;
}
@media (hover: hover) {
  .pcseal-float-btn:hover .pcseal-float-label { max-width: 160px; opacity: 1; margin-left: 10px; padding-right: 6px; }
}
.pcseal-float-fb .pcseal-float-icon { background: linear-gradient(135deg, #00c6ff 0%, var(--accent-strong) 100%); }
.pcseal-float-zalo .pcseal-float-icon { background: linear-gradient(135deg, #4dd0e1 0%, var(--accent-strong) 100%); }
.pcseal-float-phone .pcseal-float-icon { background: linear-gradient(135deg, #ffb74d 0%, var(--gold) 100%); }

@media (max-width: 720px) {
  .pcseal-float { top: auto; bottom: 16px; right: 16px; transform: none; }
}

/* Product page's right sidebar column (showrooms + related products, see
   single-product-sidebar.css) runs the full height of the page at the same
   right edge as this widget — pinning to the bottom isn't enough, the tall
   sidebar is still there at any scroll position. Move to the left edge on
   product pages instead, clear of the sidebar entirely. */
body.single-product .pcseal-float { right: auto; left: 20px; top: auto; bottom: 24px; transform: none; align-items: flex-start; }
@media (max-width: 720px) {
  body.single-product .pcseal-float { left: auto; right: 16px; }
}

/* Compare bar (assets/compare.css, .pcseal-compare-bar) is a persistent
   fixed-bottom bar, shown/hidden sitewide (any viewport, any page with
   compare-able product cards — including single-product pages, since the
   sidebar's related-product cards carry the compare toggle too) whenever
   items are queued for comparison. It only collides with this widget where
   the widget is itself bottom-anchored: under the 720px breakpoint above,
   and unconditionally on single-product pages (see the override just above).
   At the >720px default (top: 50%, vertically centered) there's no overlap
   to guard against.
   Same `body:has()` pattern already used in compare.css to shift the compare
   bar up over the buy bar — reused here instead of a JS body-class toggle,
   since :has() already covers this exact "shift my fixed bar when another
   fixed bar is visible" shape with no JS involved.
   Offset = compare bar's own rendered height (~64px: 10px/16px padding +
   ~35px tallest child button + 1px top border — same padding shape as
   .pcseal-buybar, whose comment in compare.css already documents ~64px for
   this structure) plus this widget's pre-existing bottom clearance, so the
   widget keeps the same visual gap from the bar that it normally keeps from
   the viewport edge: 64 + 16 = 80px generically, 64 + 24 = 88px on
   single-product pages. */
@media (max-width: 720px) {
  body:has(.pcseal-compare-bar.is-visible) .pcseal-float { bottom: 80px; }
}
body.single-product:has(.pcseal-compare-bar.is-visible) .pcseal-float { bottom: 88px; }

@media (max-width: 720px) {
  .pcseal-header .wrap { flex-direction: column; align-items: stretch; }
  .pcseal-megamenu { width: calc(100% - 48px); }
}

/* --- Sitewide chrome integration with Storefront (non-front-page routes) ---
   On every page except the front page, Storefront's own header.php/footer.php
   render as usual (so WooCommerce Blocks Cart/Checkout, archive-product.php,
   single-product.php etc keep their expected #page/#content/.col-full
   wrapper markup), and our topbar/masthead/mega-menu/footer grid are
   injected alongside it via action hooks (see functions.php). Storefront's
   own default site branding / search / secondary nav / primary nav+cart /
   footer widgets+credit are hidden here since our chrome fully replaces
   them — this does NOT touch `.storefront-handheld-footer-bar`, Storefront's
   separate mobile bottom nav. */
/* !important is required here: Storefront's own style.css has a
   higher-specificity `.site-header .site-branding{display:block}` rule,
   and its woocommerce.css has an equal-specificity `.site-search{display:
   block}` rule that loads after ours — both would otherwise win the
   cascade and make Storefront's defaults reappear alongside our chrome. */
.site-branding,
.secondary-navigation,
.site-search,
.storefront-primary-navigation,
#colophon.site-footer,
/* Storefront's own English "Skip to navigation"/"Skip to content" links
   (storefront_skip_links(), hooked on storefront_header) — redundant with
   and untranslated next to our own Vietnamese .pcseal-skip-link above. */
a.skip-link.screen-reader-text {
  display: none !important;
}

/* --- Single product: "Mua ngay" (Buy Now) + "Mua trả góp" (installment
   info link), next to the native add-to-cart button. Buy Now is styled as
   the prominent/primary action (bold, full-width on mobile); the native
   add-to-cart button stays Storefront's own secondary styling. Mua trả góp
   is a plain text-link-style toggle, not a second CTA button, since it only
   opens an informational notice, not a payment path. */
/* --- Single product: 3-button action group --- */
.pd-btn-group {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  width: 100%;
}
.pd-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
  min-height: 64px;
  border: 2px solid transparent;
  line-height: 1.2;
}
.pd-btn-label {
  font-size: 1rem;
  letter-spacing: .02em;
}
.pd-btn-sub {
  font-size: 0.72rem;
  font-weight: 400;
  margin-top: 4px;
  opacity: .85;
}
.pd-btn-buyNow {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.pd-btn-buyNow:hover {
  background: #e64a19;
  border-color: #e64a19;
  box-shadow: var(--glow-orange);
}
.pd-btn-addCart {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.pd-btn-addCart:hover {
  background: var(--accent-tint);
}
.pd-btn-installment {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.pd-btn-installment:hover {
  background: var(--accent-tint);
}

/* "Xem giỏ hàng" — auto-inserted by WooCommerce's own add-to-cart.js right
   after a successful AJAX add (a.added_to_cart.wc-forward, no class hook
   available since WC generates the markup itself); style it as a 5th
   .pd-btn-group member matching the others' shape/sizing. Uses the same
   surface/accent tokens as its .pd-btn-addCart sibling (not --masthead-bg,
   which stays dark in both themes and rendered near-invisible text in
   light mode). */
.pd-btn-group a.added_to_cart.wc-forward {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px;
  margin: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  min-height: 64px;
  border: 2px solid transparent;
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--accent);
  text-decoration: none;
  transition: all .2s ease;
}
.pd-btn-group a.added_to_cart.wc-forward:hover {
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.pd-btn-group a.added_to_cart.wc-forward::after {
  content: "→";
}
.pd-installment-box {
  background: radial-gradient(circle at 50% 0%, rgba(41, 163, 255, 0.12) 0%, transparent 60%), var(--glass-bg) !important;
  border: 1px solid rgba(41, 163, 255, 0.25) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-radius: 16px !important;
  padding: 0 !important;
  margin: auto !important;
  max-width: 560px !important;
  width: calc(100% - 32px) !important;
  color: var(--ink) !important;
  box-shadow: 0 32px 80px rgba(10, 15, 30, 0.5), 0 0 30px rgba(41, 163, 255, 0.1) !important;
  opacity: 0;
  transform: scale(.96) translateY(12px);
  transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1), display .3s allow-discrete, overlay .3s allow-discrete !important;
}
.pd-installment-box[open] {
  opacity: 1 !important;
  transform: none !important;
}
@starting-style {
  .pd-installment-box[open] {
    opacity: 0 !important;
    transform: scale(.96) translateY(12px) !important;
  }
}
.pd-installment-box::backdrop {
  background: rgba(10, 15, 30, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  opacity: 0;
  transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), display .3s allow-discrete, overlay .3s allow-discrete !important;
}
.pd-installment-box[open]::backdrop {
  opacity: 1 !important;
}
@starting-style {
  .pd-installment-box[open]::backdrop {
    opacity: 0 !important;
  }
}
.pd-installment-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px 24px !important;
  border-bottom: 1px solid rgba(41, 163, 255, 0.15) !important;
}
.pd-installment-title {
  margin: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-shadow: 0 0 10px rgba(41, 163, 255, 0.25) !important;
}
.pd-installment-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  flex: none !important;
  border: 1px solid rgba(41, 163, 255, 0.2) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--muted) !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
}
.pd-installment-close:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  transform: rotate(90deg) !important;
  box-shadow: 0 0 12px rgba(41, 163, 255, 0.4) !important;
}
.pd-installment-close svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}
.pd-installment-body {
  padding: 24px 24px 28px !important;
}
.pd-installment-body p {
  margin: 0 0 6px !important;
}
.pd-installment-body p:last-child {
  margin-bottom: 0 !important;
}
.pd-installment-intro {
  font-size: .9rem !important;
  color: var(--muted) !important;
  margin-bottom: 20px !important;
}
.pd-installment-field {
  margin: 0 0 16px !important;
}
.pcseal-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pd-installment-field label {
  display: block !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
  color: var(--ink) !important;
}
.pd-installment-field .req {
  color: var(--gold) !important;
  font-weight: 500 !important;
  font-size: 0.72rem !important;
}
.pd-installment-field input,
.pd-installment-field textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  font: inherit !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--ink) !important;
  transition: all .2s ease !important;
}
.pd-installment-field input:focus,
.pd-installment-field textarea:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(41, 163, 255, 0.12), 0 0 10px rgba(41, 163, 255, 0.25) !important;
}
.pd-installment-result {
  text-align: center;
  padding: 4px 0 0;
}
.pd-installment-result-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.14);
  color: #34d399;
}
.pd-installment-result-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pd-installment-result-icon {
    animation: pd-tick-pop .3s ease-out;
  }
  .pd-installment-result-icon path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: pd-tick-draw .25s .2s ease-out forwards;
  }
}
@keyframes pd-tick-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes pd-tick-draw {
  to { stroke-dashoffset: 0; }
}
.pd-installment-result-message {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.pd-installment-result-list {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 14px;
  margin: 0 0 20px;
}
.pd-installment-result-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.pd-installment-result-list div:last-child {
  border-bottom: none;
}
.pd-installment-result-list dt {
  color: var(--muted);
  flex: none;
}
.pd-installment-result-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}
.pd-installment-actions {
  display: flex !important;
  gap: 12px !important;
  margin-top: 24px !important;
}
.pd-installment-submit {
  flex: 1 !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(41, 163, 255, 0.25) !important;
  transition: all .2s ease !important;
}
.pd-installment-submit:hover {
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%) !important;
  box-shadow: 0 6px 20px rgba(41, 163, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}
.pd-installment-submit:disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
.pd-installment-cancel {
  flex: 1 !important;
  background: rgba(239, 68, 68, 0.05) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  border-radius: 8px !important;
  color: #ef4444 !important;
  padding: 12px 20px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .2s ease !important;
}
.pd-installment-cancel:hover {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
  transform: translateY(-1px) !important;
}
.pd-installment-message {
  margin: 10px 0 0;
  font-size: .88rem;
  font-weight: 600;
}
.pd-installment-message.is-success {
  color: #34d399;
}
.pd-installment-message.is-error {
  color: #f87171;
}

/* Hide the original form.cart flex (we handle layout via .pd-btn-group) */
.woocommerce div.product form.cart {
  display: block;
}

/* Hide the quantity input on product detail page — we don't use qty selectors */
.woocommerce div.product form.cart .quantity {
  display: none;
}

@media (max-width: 640px) {
  .pd-btn-group {
    flex-direction: column;
  }
  .pd-btn {
    min-height: 52px;
    padding: 10px 12px;
  }
  .pd-btn-group a.added_to_cart.wc-forward {
    min-height: 52px;
    padding: 10px 12px;
  }
}

/* --- Single product: gallery as a carousel (see theme/woocommerce/single-
   product/product-image.php + theme/inc/carousel.php) --- */
.pcseal-product-gallery { position: relative; }
.pcseal-product-gallery .pcseal-carousel-viewport {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pcseal-product-gallery .pcseal-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pcseal-product-gallery .pcseal-carousel-track::-webkit-scrollbar { display: none; }
.pcseal-product-gallery .pcseal-carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pcseal-product-gallery .woocommerce-product-gallery__image {
  text-align: center;
  background: var(--surface);
}
.pcseal-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: 480px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fluid);
}
.pcseal-product-gallery .woocommerce-product-gallery__image img:hover {
  transform: scale(1.04);
}
.pcseal-product-gallery .pcseal-carousel-dots {
  margin: 14px 0 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.pcseal-product-gallery .pcseal-carousel-dot {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  transform: none;
  cursor: pointer;
  transition: border-color .2s;
}
.pcseal-product-gallery .pcseal-carousel-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcseal-product-gallery .pcseal-carousel-dot:hover { border-color: var(--accent-strong); }
.pcseal-product-gallery .pcseal-carousel-dot.is-active { border-color: var(--accent); transform: none; background: var(--accent); box-shadow: var(--glow-blue-soft); }

/* --- Single product: summary area tightening --- */
.woocommerce div.product .summary {
  padding-top: 0;
  margin-bottom: 0;
}
.single-product div.product .images,
.single-product div.product .summary,
.single-product div.product .woocommerce-product-gallery {
  margin-bottom: 0;
  padding: 4px;
}

/* --- Single product: product title --- */
.woocommerce div.product .product_title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--ink);
}

/* --- Single product: price group with VAT + warranty ---
   Glass card w/ a top accent hairline + glow on the price, matching the
   dark-tech treatment used in checkout, instead of a flat bordered box. */
.pd-price-group {
  position: relative;
  margin: 14px 0;
  padding: 16px 18px 14px;
  border-radius: 14px;
  background:
    radial-gradient(420px 160px at 100% 0%, var(--accent-tint) 0%, transparent 65%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  overflow: hidden;
}
.pd-price-group::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
}
.pd-price-group .price {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-strong);
  display: block !important;
  line-height: 1.2;
  text-shadow: var(--glow-blue-soft);
}
.pd-price-group .price del {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
  margin-right: 8px;
  text-shadow: none;
}
.pd-price-group .price ins {
  text-decoration: none;
}
.pd-price-group .pd-vat-note {
  display: inline-block;
  font-size: 0.8rem;
  color: #34d399;
  background: rgba(22, 163, 74, 0.14);
  padding: 2px 10px;
  border-radius: 999px;
  margin-top: 6px;
}
.pd-price-group .pd-warranty-note {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: middle;
}
.pd-stock-remaining {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}
.pd-stock-remaining::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.pd-stock-remaining strong {
  color: var(--gold);
}

/* --- Single product: quick-spec chip row —
   deliberately short (max 4, see pcseal_spec_summary()); the full
   breakdown lives in the "Thông số kỹ thuật" tab, so this isn't a second
   copy of that table, just a glanceable teaser. */
.pd-spec-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.pd-spec-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.3;
  white-space: nowrap;
  transition: box-shadow var(--transition-fluid), transform var(--transition-fluid);
}
.pd-spec-chip:hover {
  box-shadow: var(--glow-blue-soft);
  transform: translateY(-1px);
}

/* --- Single product: flash sale countdown --- */
.pd-flash-sale {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d0102f, #8f0022);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  margin: 8px 0;
  font-weight: 700;
  box-shadow: 0 8px 24px -10px rgba(208, 16, 47, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.pd-flash-sale-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pd-flash-sale-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #ffeb3b;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: block;
  animation: pcseal-bolt-pulse 1.6s ease-in-out infinite;
}
@keyframes pcseal-bolt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-flash-sale-icon::before { animation: none; }
}
.pd-flash-sale-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pd-flash-sale-timer {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  font-size: 1.1rem;
  background: rgba(0,0,0,.25);
  padding: 3px 10px;
  border-radius: 5px;
  letter-spacing: .06em;
}

/* --- Single product: gift box — glass card, gold accent edge --- */
.pcseal-gift-box {
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pcseal-gift-box__title {
  font-size: 0.88rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.pcseal-gift-box__note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

/* --- Single product: WooCommerce tabs styling ---
   Storefront's own woocommerce.css loads after this file and, at
   min-width:768px, floats `ul.tabs` 30% left / `.panel` 65% right (its
   default label-list-beside-content layout) via selectors like
   `.woocommerce-tabs ul.tabs li a` — that beats plain `.wc-tabs`-class
   selectors on specificity alone regardless of load order, which is what
   was squishing the tab headers into a narrow column. Every selector below
   is written as `ul.tabs.wc-tabs` / `.panel.entry-content` so it matches
   or exceeds that specificity and reliably wins the cascade. */
.woocommerce-tabs ul.tabs li::after,
.woocommerce-tabs ul.tabs li::before {
  display: none !important;
  content: none !important;
}
.woocommerce-tabs ul.tabs.wc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: none;
  border-bottom: 2px solid var(--line);
}
.woocommerce-tabs ul.tabs.wc-tabs li {
  margin: 0 0 0 4px;
  border-bottom: none;
}
.woocommerce-tabs ul.tabs.wc-tabs li a {
  display: block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: 8px 8px 0 0;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.woocommerce-tabs ul.tabs.wc-tabs li a:hover {
  color: var(--accent-strong);
  background-color: var(--accent-tint);
  transform: translateY(-2px);
}
.woocommerce-tabs ul.tabs.wc-tabs li.active a {
  color: var(--accent-strong);
  background-color: var(--accent-tint);
  border-bottom-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 -1px 0 var(--line) inset, 1px 0 0 var(--line) inset, -1px 0 0 var(--line) inset, 0 4px 16px -6px var(--accent);
}
.woocommerce-tabs ul.tabs.wc-tabs li.active a:hover {
  transform: none;
}
/* Clean tab panel — no extra top border, flush with tab bar */
.woocommerce-tabs .panel.entry-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 24px;
  margin: 0 0 24px;
  width: auto;
  float: none;
  /* WooCommerce's tab JS just toggles display:none/block on the panel —
     a CSS animation still runs each time that happens (display:none removes
     an element from the render tree entirely, so going back to block is a
     fresh entrance every time), no JS changes needed for a switch transition. */
  animation: pcseal-tab-fade-in .3s ease;
}
@keyframes pcseal-tab-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce-tabs .panel.entry-content { animation: none; }
}
/* Hide the h2 heading inside panels (it duplicates the tab label) */
.woocommerce-tabs .panel.entry-content > h2:first-child {
  display: none;
}

/* --- Single product: stats line — small tech chips, not bare text --- */
.pcseal-stats-line {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 8px;
}
.pcseal-stats-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* --- Single product: spec table (inside tab) — glass wrap, gradient
   header, monospace values, hover-highlight rows for a tech data-sheet
   feel instead of a plain bordered HTML table. --- */
.pd-spec-table-wrap {
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pd-spec-table {
  width: 100%;
  border-collapse: collapse;
}
.pd-spec-table th {
  background: linear-gradient(135deg, var(--accent-tint), transparent 130%);
  color: var(--accent-strong);
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.pd-spec-table td {
  padding: 9px 14px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--transition-fluid);
}
.pd-spec-table tr:last-child td {
  border-bottom: none;
}
.pd-spec-table tr:hover td {
  background: var(--accent-tint);
}
.pd-spec-table td:first-child {
  font-weight: 600;
  color: var(--muted);
  width: 28%;
  white-space: nowrap;
}
.pd-spec-table td:last-child {
  font-family: ui-monospace, monospace;
  color: var(--ink);
}

/* Hide Storefront default widget sidebar on single product pages */
.single-product .widget-area {
  display: none;
}
.single-product .content-area {
  width: 100% !important;
  float: none !important;
}

/* --- 404 page --- */
.pcseal-404 {
  width: 100% !important;
  float: none !important;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.pcseal-404-hero {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pcseal-404-icon {
  color: var(--accent);
  margin-bottom: 8px;
}
.pcseal-404-code {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1;
  margin: 0 0 8px;
}
.pcseal-404-title {
  font-size: 1.4rem;
  margin: 0 0 12px;
  color: var(--ink);
}
.pcseal-404-desc {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.pcseal-404-actions {
  margin-bottom: 32px;
}
.pcseal-404-home {
  display: inline-block;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s ease;
}
.pcseal-404-home:hover {
  background: var(--accent);
  color: #fff;
}
.pcseal-404-search {
  max-width: 420px;
  margin: 0 auto;
}
.pcseal-404-search .woocommerce-product-search {
  display: flex;
  gap: 8px;
}
.pcseal-404-search input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.pcseal-404-search button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.pcseal-404-popular {
  margin-top: 40px;
}
.pcseal-404-popular h2 {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--ink);
}

/* =========================================
   Search Results
   ========================================= */

.pcseal-search-results {
  width: 100% !important;
  float: none !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.pcseal-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--accent-strong);
}
.pcseal-search-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
}
.pcseal-search-count {
  color: var(--muted);
  margin: 0 0 16px;
}
.pcseal-search-products .pcseal-rail-track {
  margin-top: 0;
}

.pcseal-search-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 32px;
}
.pcseal-search-empty svg {
  color: var(--accent);
  margin-bottom: 8px;
}
.pcseal-search-empty-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
}
.pcseal-search-empty-desc {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* =========================================
   Auth Pages (Login / Register)
   ========================================= */

.woocommerce .pcseal-auth-wrapper {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 40px auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.pcseal-auth-col {
  flex: 1;
  padding: 40px 36px;
}

.pcseal-auth-col--login {
  border-right: 1px solid var(--line);
}

.pcseal-auth-divider {
  display: none;
}

.pcseal-auth-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pcseal-auth-card__header {
  text-align: center;
  margin-bottom: 28px;
}

.pcseal-auth-card__header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 6px;
}

.pcseal-auth-card__header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pcseal-auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
}

.pcseal-auth-icon--green {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}

.pcseal-auth-field {
  margin-bottom: 18px;
}

.pcseal-auth-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.pcseal-auth-field label svg {
  color: var(--muted);
}

.pcseal-auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.pcseal-auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 163, 255, 0.22);
  background: #fff;
}

.pcseal-auth-field input::placeholder {
  color: #9ca3af;
}

.pcseal-auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pcseal-auth-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}

.pcseal-auth-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.pcseal-auth-forgot {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.pcseal-auth-forgot:hover {
  text-decoration: underline;
}

.pcseal-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.pcseal-auth-btn:active {
  transform: scale(0.98);
}

.pcseal-auth-btn--primary {
  background: var(--accent);
  color: #fff;
}

.pcseal-auth-btn--primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(41, 163, 255, 0.3);
}

.pcseal-auth-btn--green {
  background: #16a34a;
  color: #fff;
}

.pcseal-auth-btn--green:hover {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.pcseal-auth-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0 auto 40px;
  max-width: 900px;
}

.pcseal-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.pcseal-auth-trust-item svg {
  color: var(--accent);
}

/* Override WooCommerce defaults */
.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-register {
  max-width: none;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.woocommerce .woocommerce-form-login label,
.woocommerce .woocommerce-form-register label {
  display: none;
}

.woocommerce .woocommerce-form-login .form-row,
.woocommerce .woocommerce-form-register .form-row {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce .pcseal-auth-wrapper {
    flex-direction: column;
    margin: 20px 16px;
    border-radius: 12px;
  }

  .pcseal-auth-col {
    padding: 28px 24px;
  }

  .pcseal-auth-col--login {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .pcseal-auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    margin: -8px 0;
    position: relative;
    z-index: 1;
  }

  .pcseal-auth-divider::before,
  .pcseal-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .pcseal-auth-divider span {
    padding: 0 16px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--surface);
  }

  .pcseal-auth-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 16px 30px;
  }
}

/* =========================================
   Share Buttons (Single Product)
   ========================================= */

.pcseal-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.pcseal-share__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.pcseal-share__btns {
  display: flex;
  gap: 8px;
}

.pcseal-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.pcseal-share__btn:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pcseal-share__btn--fb:hover {
  background: #1877f2;
  color: #fff;
}

.pcseal-share__btn--zalo:hover {
  background: #0068ff;
  color: #fff;
}

.pcseal-share__btn--msg:hover {
  background: #0084ff;
  color: #fff;
}

.pcseal-share__btn--copy:hover {
  background: var(--accent);
  color: #fff;
}

.pcseal-share__btn--copy.copied {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.pcseal-share__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.pcseal-share__btn--copy.copied .pcseal-share__tooltip {
  opacity: 1;
}

/* Single auth wrapper */
.pcseal-auth-wrapper--single {
  justify-content: center;
}

.pcseal-auth-wrapper--single .pcseal-auth-col {
  max-width: 440px;
  width: 100%;
}

.pcseal-auth-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.pcseal-auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pcseal-auth-switch a:hover {
  text-decoration: underline;
}

/* =========================================
   My Account Page Redesign (Adaptive Tabs Style)
   ========================================= */

/* Main layout grid - stacked vertically */
.pcseal-account-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Profile Bar Header */
.pcseal-account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pcseal-account-user {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.pcseal-account-avatar {
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 10px rgba(41, 163, 255, 0.25);
  transition: transform 0.3s ease;
}

.pcseal-account-avatar:hover {
  transform: scale(1.05);
}

.pcseal-account-user__info strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.pcseal-account-user__info span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Horizontal Tab Navigation */
.pcseal-account-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for clean tab look */
}

.pcseal-account-nav::-webkit-scrollbar {
  display: none;
}

.pcseal-account-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.pcseal-account-nav li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}

.pcseal-account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.pcseal-account-nav li a .pcseal-account-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.pcseal-account-nav li a:hover {
  color: var(--accent-strong);
  background-color: var(--accent-tint);
}

.pcseal-account-nav li a:hover .pcseal-account-nav__icon {
  opacity: 1;
}

/* Active tab style: orange highlight matching theme */
.pcseal-account-nav li.is-active a {
  color: #fff !important;
  background: linear-gradient(135deg, var(--gold), #ff9563) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35) !important;
}

.pcseal-account-nav li.is-active a .pcseal-account-nav__icon {
  opacity: 1;
}

/* Content Area */
.pcseal-account-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  animation: pcseal-tab-fade-in .35s ease;
}

/* Responsive adjustment for Mobile view */
@media (max-width: 768px) {
  .pcseal-account-layout {
    margin: 15px auto;
    gap: 20px;
  }
  .pcseal-account-user {
    padding: 16px 20px;
  }
  .pcseal-account-main {
    padding: 20px;
  }
  .pcseal-account-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* Hide sidebar on My Account page */
.woocommerce-account #secondary {
  display: none !important;
}
.woocommerce-account #primary {
  width: 100% !important;
  float: none !important;
}

/* Hide entry header on My Account page */
.woocommerce-account .entry-header {
  display: none !important;
}

/* Reduce breadcrumb margin */
.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb,
.storefront-breadcrumb {
  margin-bottom: 8px !important;
}

/* Accessibility: Respect users requesting reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .pcseal-megamenu,
  .pcseal-delivery-banner:hover img,
  .pcseal-tile:hover img,
  .pcseal-rail .pcseal-card:hover img,
  .pcseal-rail-carousel .pcseal-card:hover img {
    transform: none !important;
  }
}



/* === Cart: page title + empty-cart state (ui-ux-pro-max) === */
/* WooCommerce Blocks renders the empty-cart notice with zero theme styling —
   raw H1, default WC line-icon, plain H2s — the only unstyled page in the
   cart/checkout flow. Reuses the site's existing glass-card + token system,
   no new palette. */
.woocommerce-cart .entry-header {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}
.woocommerce-cart .entry-title {
  display: none;
}

.wp-block-woocommerce-empty-cart-block {
  position: relative;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 56px 40px;
  text-align: center;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(41, 163, 255, 0.12) 0%, transparent 60%), var(--glass-bg);
  border: 1px solid rgba(41, 163, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(41, 163, 255, 0.08);
}
.wc-block-cart__empty-cart__title.with-empty-cart-icon {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background-color: var(--accent) !important;
  filter: drop-shadow(0 0 10px var(--accent));
  mask-size: contain;
  -webkit-mask-size: contain;
}
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  height: 1px;
  border: none;
  opacity: 0.8;
  margin: 32px auto;
  max-width: 400px;
}
.wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 32px;
  text-shadow: 0 0 8px rgba(255, 122, 69, 0.35);
}

/* Empty-cart's "Hàng mới về" cross-sell grid is the WooCommerce "Products
   (New)" BLOCK (.wc-block-grid__*), a completely different markup/class
   family from the shop/category archive grid (.woocommerce ul.products
   li.product, styled in shop.css) — never styled by the redesign, so it
   still rendered as plain default Gutenberg-block output (thin borders,
   flat gray button). Mirrors shop.css's card treatment exactly, just
   translated to this block's own class names. */
.wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wc-block-grid__product {
  /* WC core's own CSS (.wc-block-grid.has-4-columns .wc-block-grid__product)
     sets flex:1 0 25% + max-width:25% — a flex-based fallback sized for a
     row spanning the FULL container width. Inside our grid container each
     item already occupies its own grid-column track, so that 25% instead
     computes against the track's own width, quartering it again (max-width
     independently caps the box even though width:100% is also set below).
     Reset both to fill the track fully. */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.wc-block-grid__product:hover {
  transform: translateY(-6px);
  border-color: var(--accent) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(41, 163, 255, 0.2);
}
.wc-block-grid__product-link {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.wc-block-grid__product-image {
  position: relative;
  overflow: hidden;
  background: #0f1624;
}
.wc-block-grid__product-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.06);
}
.wc-block-grid__product-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 12px 14px 8px;
  color: var(--ink);
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.wc-block-grid__product-price.price {
  display: block;
  margin: 0 14px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.wc-block-grid__product-price del {
  color: var(--muted);
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.85rem;
}
.wc-block-grid__product-onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.wc-block-grid__product .add_to_cart_button {
  display: block;
  margin: 0 14px 14px;
  width: calc(100% - 28px);
  /* Storefront's own style.css has a same-purpose 3-class selector
     (.wc-block-grid__products .wc-block-grid__product .wp-block-button__link)
     targeting this exact button — more specific than the 2-class selector
     here, so background/color both need !important to actually win. */
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 6px;
  border: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(41, 163, 255, 0.15);
  transition: all var(--transition-fluid) !important;
}
.wc-block-grid__product .add_to_cart_button:hover {
  background: var(--accent-strong) !important;
  box-shadow: 0 4px 16px rgba(41, 163, 255, 0.35);
  transform: translateY(-1px);
}

/* === Checkout: hide postcode/city/country, filled invisibly by checkout.js === */
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__city,
.wc-block-components-address-form__country {
	display: none;
}
.wc-block-components-address-form__last_name {
	display: none;
}

/* Storefront hardcodes headings to #333 — order-received page never got the dark-token treatment */
.woocommerce-order-received .entry-title,
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
  color: var(--ink);
}
.woocommerce-checkout .entry-title {
  display: none;
}

/* Order-received success banner: Storefront ships this as a bare, unstyled
   <p> — give it a card with an icon and brand accent so it reads as a real
   confirmation instead of a stray line of text. */
.woocommerce-thankyou-order-received {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  border-radius: 14px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
  box-shadow: var(--glow-blue-soft);
}
.woocommerce-thankyou-order-received::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 13 10 18 19 7'/%3E%3C/svg%3E") center / 15px no-repeat,
    var(--accent-strong);
  box-shadow: var(--glow-blue-soft);
}
.woocommerce-thankyou-order-received strong {
  color: var(--accent-strong);
}

/* === Checkout: visual redesign (ui-ux-pro-max) === */
/* Direction: Glassmorphism + dimensional layering, reusing the site's existing
   tokens only (no new palette). Single-page layout is unchanged — fields left,
   sticky order summary right — this is polish only: frosted glass step cards,
   a numbered/graded rhythm, tactile radio "cards", and a deep gradient CTA. */

.wc-block-checkout {
  --pcseal-checkout-radius: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) clamp(16px, 4vw, 24px) 64px;
  background:
    radial-gradient(1100px 420px at 12% -12%, var(--accent-tint) 0%, transparent 62%),
    var(--bg);
}

/* Step cards: frosted glass panels with soft elevation */
.wc-block-components-checkout-step {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--pcseal-checkout-radius);
  padding: 4px 20px 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(16, 24, 38, 0.04), 0 12px 32px -18px rgba(16, 24, 38, 0.16);
  transition: box-shadow var(--transition-fluid), border-color var(--transition-fluid);
}
.wc-block-components-checkout-step:hover,
.wc-block-components-checkout-step:focus-within {
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(16, 24, 38, 0.05), 0 20px 40px -18px rgba(41, 163, 255, 0.24);
}
.wc-block-components-checkout-step__title {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wc-block-components-checkout-step__description {
  color: var(--muted);
}

/* Text inputs: only touch cosmetic properties — never height/padding, which
   the core floating-label animation (label top/scale on .is-active) depends on. */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input input[type="number"] {
  border-radius: 12px;
  border-color: var(--line);
  transition: border-color var(--transition-fluid), box-shadow var(--transition-fluid), background-color var(--transition-fluid);
}
.wc-block-components-text-input input:hover {
  border-color: rgba(91, 100, 114, 0.3);
}
.wc-block-components-text-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(41, 163, 255, 0.22);
}
.wc-block-components-text-input.has-error input,
.wc-block-components-text-input.has-error input:focus {
  box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.2);
}

/* Radio control "cards" (shipping / payment methods) */
.wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option *),
.wc-block-components-radio-control-accordion-option {
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  margin-bottom: 10px !important;
  transition: border-color var(--transition-fluid), box-shadow var(--transition-fluid), transform var(--transition-spring) !important;
}
.wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option *):hover,
.wc-block-components-radio-control-accordion-option:hover {
  border-color: var(--accent) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px -12px rgba(16, 24, 38, 0.2) !important;
}
.wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option *):focus-within,
.wc-block-components-radio-control-accordion-option:focus-within {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
.wc-block-components-radio-control__option:not(.wc-block-components-radio-control-accordion-option *):has(.wc-block-components-radio-control__input:checked),
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: var(--accent-strong) !important;
  background: var(--accent-tint) !important;
  box-shadow: 0 0 0 3px rgba(41, 163, 255, 0.12) !important;
}
.wc-block-components-radio-control__input:checked {
  accent-color: var(--accent-strong) !important;
}

/* Remove default card styles from child label inside accordion option card */
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  padding: 16px 20px 16px 48px !important;
}
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Padding and spacing for accordion description text inside option card */
.wc-block-components-radio-control-accordion-content {
  padding: 0 20px 16px 54px !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

/* Place order button: deep gradient CTA (both stops stay dark enough for
   AA-contrast white text throughout the gradient, unlike a lighter accent stop) */
.wc-block-components-checkout-place-order-button {
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--ink) 100%);
  color: var(--surface);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px -12px rgba(15, 111, 224, 0.45);
  transition: transform var(--transition-spring), box-shadow var(--transition-fluid), filter var(--transition-fluid);
}
.wc-block-components-checkout-place-order-button:hover {
  box-shadow: var(--glow-blue);
}
.wc-block-components-checkout-place-order-button:hover:not([disabled]):not(.is-loading) {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue), 0 18px 34px -12px rgba(15, 111, 224, 0.55);
  filter: brightness(1.08);
}
.wc-block-components-checkout-place-order-button:active:not([disabled]) {
  transform: translateY(0);
}
.wc-block-components-checkout-place-order-button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.wc-block-components-checkout-place-order-button[disabled],
.wc-block-components-checkout-place-order-button[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

/* Order summary: sticky frosted panel, gold-adjacent accent on the grand total */
.wc-block-components-order-summary {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--pcseal-checkout-radius);
  box-shadow: 0 1px 2px rgba(16, 24, 38, 0.04), 0 16px 40px -20px rgba(16, 24, 38, 0.18);
}
.wc-block-components-totals-item {
  border-bottom: 1px solid var(--line);
}
.wc-block-components-totals-item:last-child {
  border-bottom: none;
}
.wc-block-components-totals-item__label {
  color: var(--muted);
}
.wc-block-components-totals-item__value {
  color: var(--ink);
  font-weight: 600;
}
.wc-block-components-order-summary .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-order-summary .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.15rem;
}

/* Order summary line items: WC Blocks ships these with no theming at all
   (flat currentColor-mix badge, no dividers) — style them to match the
   glass-card system instead of clashing with it. */
.wc-block-components-order-summary-item {
  padding-top: 12px;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--line);
}
.wc-block-components-order-summary-item:first-child {
  padding-top: 4px;
}
.wc-block-components-order-summary-item__image > img {
  border-radius: 8px;
  border: 1px solid var(--line);
}
.wc-block-components-order-summary-item__quantity {
  background: var(--accent-strong);
}
.wc-block-components-order-summary-item__quantity span {
  color: #fff;
}
.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.wc-block-components-order-summary-item__total-price {
  color: var(--ink);
  font-weight: 600;
}
.wc-block-components-product-badge.wc-block-components-sale-badge {
  background: var(--gold-tint);
  color: var(--gold);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 2px;
}

/* Mobile: preserve single-column stacking with no horizontal scroll */
@media (max-width: 768px) {
  .wc-block-checkout {
    padding: 16px 14px 48px;
  }
  .wc-block-components-checkout-step {
    border-radius: 14px;
    padding: 4px 16px 8px;
  }
  .wc-block-components-order-summary {
    border-radius: 14px;
  }
}

/* Hide product details/meta and price fields in cart items list */
.wc-block-cart-item__prices,
.wc-block-components-product-metadata {
  display: none !important;
}

/* Order thank-you overview: 4 stacked rows -> 1 row x 4 columns */
.woocommerce-order-overview.woocommerce-thankyou-order-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  background: transparent;
}
.woocommerce-order-overview.woocommerce-thankyou-order-details li {
  margin: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
@media (max-width: 700px) {
  .woocommerce-order-overview.woocommerce-thankyou-order-details {
    grid-template-columns: repeat(2, 1fr);
  }
}
ul.order_details::before,
ul.order_details::after {
  content: none;
  height: 0;
  opacity: 0;
}
/* Order-details product table (Chi tiết đơn hàng) ships hardcoded light colors — retheme it.
   WP core injects an inline global-styles sheet (table:not(.has-background) th/td, .order_details)
   with hardcoded #f8f8f8/#fdfdfd cell backgrounds that loads after ours at equal specificity,
   so cell backgrounds need !important to actually win. */
.woocommerce-table--order-details.shop_table {
  background: var(--surface) !important;
  color: var(--ink);
  border-color: var(--line);
}
.woocommerce-table--order-details.shop_table th,
.woocommerce-table--order-details.shop_table td {
  background: transparent !important;
  color: var(--ink);
  border-color: var(--line);
}
.woocommerce-table--order-details.shop_table tbody th,
.woocommerce-table--order-details.shop_table tfoot th,
.woocommerce-table--order-details.shop_table tfoot td {
  border-color: var(--line);
}
.woocommerce-table--order-details.shop_table .woocommerce-Price-amount {
  color: var(--ink);
}

/* Customer details (billing/shipping address) on order thank-you page:
   same surface-card treatment as the order-overview grid and order-details
   table above, instead of Storefront's unstyled default text block. Two
   addresses (when shipping differs from billing) sit side by side as their
   own cards rather than stacked plain text. */
.woocommerce-customer-details {
  margin: 32px 0;
}
.woocommerce-customer-details .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.woocommerce-customer-details .woocommerce-column,
.woocommerce-customer-details > address {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.woocommerce-customer-details .woocommerce-column__title {
  font-size: 1rem;
  margin: 0 0 10px;
}
.woocommerce-customer-details address {
  color: var(--ink);
  font-style: normal;
  line-height: 1.6;
}
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
  margin: 6px 0 0;
  color: var(--muted);
}
@media (max-width: 700px) {
  .woocommerce-customer-details .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }
}

/* Bank transfer details on order thank-you page: tabs per bank, QR left /
   info right. Width and glass treatment match the other order-received
   blocks (.woocommerce-order-overview, .woocommerce-table--order-details)
   instead of sitting narrower and flatter than its siblings. */
.pcseal-bacs-details {
  width: 100%;
  margin: 32px 0;
}
.pcseal-bacs-details h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--ink);
}
.pcseal-bacs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pcseal-bacs-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--transition-fluid), box-shadow var(--transition-fluid), color var(--transition-fluid);
}
.pcseal-bacs-tab:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.pcseal-bacs-tab.is-active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: var(--glow-blue-soft);
}
.pcseal-bacs-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--pcseal-checkout-radius, 18px);
  padding: 28px;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 2px rgba(16, 24, 38, 0.04), 0 16px 40px -20px rgba(16, 24, 38, 0.18);
}
.pcseal-bacs-panel.is-hidden {
  display: none;
}
.pcseal-bacs-qr {
  flex: 0 0 260px;
}
.pcseal-bacs-qr img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.pcseal-bacs-info {
  flex: 1;
  border-collapse: collapse;
  width: 100%;
}
.pcseal-bacs-info th,
.pcseal-bacs-info td {
  background: transparent !important;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.pcseal-bacs-info th {
  color: var(--muted);
  font-weight: 600;
  width: 45%;
}
.pcseal-bacs-info td {
  color: var(--ink);
  font-weight: 700;
}
.pcseal-bacs-info tr:last-child th,
.pcseal-bacs-info tr:last-child td {
  border-bottom: none;
}
@media (max-width: 560px) {
  .pcseal-bacs-panel {
    flex-direction: column;
    padding: 20px;
  }
  .pcseal-bacs-qr {
    flex: 0 0 auto;
    max-width: 220px;
    margin: 0 auto;
  }
}
