@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  /* PixelPaddle Brand Tokens */
  --red:      #C8102E;
  --red-h:    #A50C24;
  --red-s:    #E0192F;
  --red-glow: rgba(200,16,46,0.22);
  --red-bg:   rgba(200,16,46,0.08);
  --red-bdr:  rgba(200,16,46,0.30);
  --bg:       #0d0d0d;
  --bg2:      #111111;
  --card:     #161616;
  --border:   #222222;
  --border2:  #2a2a2a;
  --white:    #FFFFFF;
  --off:      #F0F0F0;
  --body:     #BBBBBB;
  --muted:    #777777;
  --head:     'Montserrat', sans-serif;
  --sans:     'Open Sans', sans-serif;

  /* Legacy Mapping for TechVersa components */
  --tv-bg:         var(--bg);
  --tv-bg-alt:     var(--bg2);
  --tv-surface:    var(--card);
  --tv-ink:        var(--white);
  --tv-muted:      var(--body);
  --tv-brand:      var(--red);
  --tv-brand-dark: var(--red-h);
  --tv-accent:     var(--white);
  --tv-border:     var(--border);
  --tv-shadow:     0 20px 50px rgba(0,0,0,0.5);
  --tv-radius:     4px;
  --tv-radius-lg:  8px;
  --tv-radius-sm:  2px;
  --tv-focus:      0 0 0 3px var(--red-glow);
  --tv-success:    #22C55E;
  --tv-warning:    #F59E0B;
  --tv-danger:     var(--red);
}

* {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.6;
  cursor: none; /* Custom cursor implementation */
}

/* ── CUSTOM CURSOR ── */
.cur {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform .12s;
  transform: translate(-50%, -50%);
}
.cur-r {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(200,16,46,.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all .18s ease;
  transform: translate(-50%, -50%);
}

/* Restore native cursor where the custom cursor cannot run or would sit under overlays.
   - Vendor dashboard: ui.js is not enqueued (see functions.php), so #cur never tracks.
   - WP media / Gutenberg modals: z-index far above .cur (9999). */
body.tv-dokan-dashboard,
body.modal-open,
body:has(.components-modal__screen) {
  cursor: auto;
}

body.tv-dokan-dashboard .cur,
body.tv-dokan-dashboard .cur-r,
body.modal-open .cur,
body.modal-open .cur-r,
body:has(.components-modal__screen) .cur,
body:has(.components-modal__screen) .cur-r {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body {
    cursor: auto;
  }

  .cur,
  .cur-r {
    display: none !important;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Front page: premium gradient shell (see .tv-home in front-page.php).
   --tv-home-parallax-warm / --tv-home-parallax-cool updated on scroll (ui.js). */
.tv-home {
  --tv-home-parallax-warm: 0px;
  --tv-home-parallax-cool: 0px;
  background:
    radial-gradient(
      1100px 620px at 12% calc(-6% + var(--tv-home-parallax-warm)),
      rgba(200, 16, 46, 0.12),
      transparent 58%
    ),
    radial-gradient(
      880px 520px at 90% calc(4% + var(--tv-home-parallax-cool)),
      rgba(255, 255, 255, 0.03),
      transparent 55%
    ),
    var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .tv-home {
    --tv-home-parallax-warm: 0px !important;
    --tv-home-parallax-cool: 0px !important;
  }
}

/* ── BACKGROUND PATTERNS ── */
.tv-dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.tv-stripe-bg {
  position: relative;
  overflow: hidden;
}
.tv-stripe-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(200,16,46,.04) 100%);
  z-index: 0;
}

.tv-home-section {
  padding-block: 72px;
  position: relative;
  z-index: 1;
}

.tv-cta-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Horizontal carousels (featured stores, product strips) */
.tv-carousel {
  position: relative;
}

.tv-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 25, 40, 0.22) transparent;
  border-radius: var(--tv-radius-lg);
  outline: none;
}

.tv-carousel__viewport:focus-visible {
  box-shadow: var(--tv-focus);
}

.tv-carousel__track {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.tv-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: 2px 0;
  display: flex;
  justify-content: flex-start;
}

/*
 * Slides are full width. PHP chunks ≤3 cards per slide — use three explicit columns.
 * repeat(auto-fit, minmax(min(..., 100%), 1fr)) can shrink-wrap to one column (intrinsic
 * sizing + % min) so cards stack vertically; fixed column count avoids that.
 */
.tv-featured-grid--slide {
  display: grid;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-product-grid--slide {
  display: grid;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tv-carousel__slide > .tv-featured-grid--slide,
.tv-carousel__slide > .tv-product-grid--slide {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .tv-carousel__slide .tv-featured-grid--slide,
  .tv-carousel__slide .tv-product-grid--slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tv-carousel__slide .tv-featured-grid--slide,
  .tv-carousel__slide .tv-product-grid--slide {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* One card on a slide: cap width and center so it doesn’t span the full strip */
.tv-carousel__slide .tv-featured-grid--slide:has(> .tv-store-card:only-child) {
  grid-template-columns: minmax(0, min(100%, 420px));
  justify-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.tv-carousel__slide .tv-product-grid--slide:has(> .tv-product-card:only-child) {
  grid-template-columns: minmax(0, min(100%, 340px));
  justify-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

::selection {
  background: rgba(225, 6, 42, 0.16);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.tv-muted {
  color: var(--tv-muted);
}

.tv-card {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  box-shadow: var(--tv-shadow);
}

.tv-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid var(--tv-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--body);
  font-size: 11px;
  font-weight: 800;
}

.tv-link {
  color: var(--tv-muted);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.tv-link:hover {
  color: var(--tv-ink);
}

.tv-wrap {
  width: min(1140px, 92vw);
  margin: 0 auto;
  overflow-x: clip;
}

.tv-header {
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(20px);
  background: rgba(13, 13, 13, 0.96);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

/* Header chrome spans the viewport; page content keeps .tv-wrap max-width. */
.tv-header .tv-wrap {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(24px, 4vw);
}

.tv-header-inner {
  --tv-header-control-h: 40px;
  --tv-header-logo-h: 44px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
}

/* Back control sits left of logo/name on one row (.tv-logo is display:flex → block without this). */
.tv-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.tv-header-brand .tv-back-btn {
  flex-shrink: 0;
}

.tv-header-brand .tv-logo {
  min-width: 0;
}

/* ── LOGO STYLES ── */
.tv-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}
.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  flex-shrink: 0;
}
.logo-box img {
  height: 100%;
  width: auto;
  display: block;
}
.logo-text {
  font-family: var(--head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
}
.logo-text em {
  color: var(--red);
  font-style: normal;
}

.tv-search {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 0 15px;
  height: 40px;
  transition: border-color 0.2s;
}
.tv-search:focus-within {
  border-color: var(--red);
}
.tv-search-scope {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
}
.tv-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  font-family: var(--sans);
  width: 100%;
}
.tv-search-input::placeholder {
  color: var(--muted);
}
.tv-search-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.tv-search-btn:hover {
  color: var(--red);
}

/*
 * Header logo: must live under .tv-header so we beat WooCommerce’s page-wide img rules.
 * On My Account / shop pages, body gets `.woocommerce-page`; WC stylesheets typically emit
 * `.woocommerce-page img { height: auto; max-width: 100%; }` (0,1,1), which overrides a lone
 * `.tv-brand-logo { height: … }` (0,1,0) and makes the logo render at intrinsic PNG size.
 * Dokan dashboard often does not use that body class, so the bar looked “shorter” there.
 */
.tv-header .tv-brand-logo {
  height: var(--tv-header-logo-h);
  width: auto;
  max-width: min(240px, 48vw);
  min-height: var(--tv-header-logo-h);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  display: block;
}

/* Beat any later WC / theme img rules on account & shop pages */
.woocommerce-page .tv-header .tv-brand-logo {
  height: var(--tv-header-logo-h);
  max-width: min(240px, 48vw);
  min-height: var(--tv-header-logo-h);
}

@media (max-width: 480px) {
  .tv-header-inner {
    --tv-header-control-h: 44px;
    --tv-header-logo-h: 40px;
  }

  .tv-header .tv-brand-logo,
  .woocommerce-page .tv-header .tv-brand-logo {
    max-width: min(200px, 52vw);
  }
}

/* Keep primary links on one row: scroll horizontally if the viewport is too narrow. */
.tv-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.tv-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
}
.tv-nav-link {
  color: var(--body);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tv-nav-link:hover {
  color: var(--white);
}
.tv-nav-link .tv-ico {
  display: none; /* Hide icons in main nav for PixelPaddle aesthetic */
}

@media (max-width: 1140px) {
  /* Prevent header crowding (nav + search + actions) on narrower desktops */
  .tv-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }
}

.tv-nav-link:hover {
  color: var(--tv-ink);
  background: var(--tv-bg-alt);
}

.tv-ico {
  color: var(--tv-muted);
  flex: 0 0 auto;
  display: block;
}

.tv-caret {
  opacity: 0.8;
  flex: 0 0 auto;
  display: block;
}

.tv-nav-item {
  position: relative;
}

.tv-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin-top: 10px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--tv-border);
  background: rgba(22, 22, 22, 0.98) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  display: none;
  z-index: 200;
}

.tv-nav-item.tv-has-dd {
  padding-bottom: 0; /* keep items vertically aligned */
}

/* Hover bridge that does NOT affect layout (prevents dropdown flicker) */
.tv-nav-item.tv-has-dd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.tv-dd-sep {
  height: 1px;
  background: var(--tv-border);
  margin: 6px 8px;
}

.tv-dd-label {
  padding: 6px 10px 4px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tv-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-dd-sub {
  font-weight: 700;
  color: var(--tv-muted);
}

.tv-dd-sub:hover {
  color: var(--tv-ink);
}

.tv-dd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--white) !important;
  font-weight: 700;
}

.tv-dd-link:hover {
  background: var(--tv-bg-alt);
}

.tv-has-dd:hover .tv-dropdown,
.tv-has-dd:focus-within .tv-dropdown {
  display: block;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}

.tv-header .tv-btn {
  padding: 8px 14px;
}

.tv-btn-primary {
  background: var(--tv-brand);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(225, 6, 42, 0.22);
}

.tv-btn-primary:hover {
  transform: translateY(-1px);
  background: var(--tv-brand-dark);
}

.tv-btn-secondary {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  color: var(--tv-ink);
}

.tv-btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--tv-bg-alt);
}

.tv-btn:focus,
.tv-btn:focus-visible,
.tv-icon-btn:focus,
.tv-icon-btn:focus-visible,
.tv-filter-input:focus,
.tv-search-input:focus,
.tv-search-scope:focus {
  outline: none;
  box-shadow: var(--tv-focus);
}

.tv-header-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.tv-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tv-header-control-h);
  height: var(--tv-header-control-h);
  border-radius: 999px;
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
  color: var(--tv-ink);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tv-icon-btn:hover {
  transform: translateY(-1px);
  background: var(--tv-bg-alt);
}

.tv-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tv-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--bg);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .tv-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
  }
}

.tv-main {
  padding-bottom: 72px;
}

.tv-hero {
  padding: 66px 0 30px;
}

.tv-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.tv-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tv-hero h1 {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.1;
  margin: 20px 0;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
}
.tv-hero h1 em {
  color: var(--red);
  font-style: normal;
}
.tv-kicker {
  font-family: var(--head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.ghost-text {
  font-family: var(--head);
  font-weight: 900;
  font-size: clamp(40px, 12vw, 120px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}
.tv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.tv-lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--body);
  max-width: 60ch;
  margin: 0 auto 30px;
}
.tv-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.tv-hero-media,
.tv-feature,
.tv-content-card,
.woocommerce .woocommerce-notices-wrapper,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce div.product,
.woocommerce-page .cart-collaterals,
.woocommerce-page .woocommerce-checkout,
.woocommerce-page table.shop_table {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  box-shadow: var(--tv-shadow);
}

.tv-hero-media {
  overflow: hidden;
  border-radius: var(--tv-radius-lg);
  border: 1px solid var(--tv-border);
  box-shadow: var(--tv-shadow);
  aspect-ratio: 16 / 10;
}

.tv-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.tv-b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tv-feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 4px;
}
.tv-feature h3 {
  font-family: var(--head);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}
.tv-feature p {
  color: var(--body);
  font-size: 14px;
}

.tv-page {
  padding-top: 34px;
}

.tv-content-card {
  padding: 24px;
}

/* Auth (Login / Signup) */
.tv-auth-page {
  background: var(--bg);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-auth-shell {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.tv-auth-head .tv-page-title {
  margin-bottom: 12px;
}

.tv-auth-head .tv-lead {
  margin: 0;
}

.tv-auth-alert {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(225, 6, 42, 0.22);
  background: rgba(225, 6, 42, 0.06);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.tv-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px auto 0;
  align-items: start;
}

.tv-auth-card {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius);
  box-shadow: 0 18px 55px rgba(11, 15, 23, 0.08);
  padding: 18px;
}

.tv-auth-card-head {
  margin-bottom: 14px;
}

.tv-auth-card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tv-auth-card-subtitle {
  margin: 0;
  color: var(--tv-muted);
  font-weight: 650;
}

.tv-auth-card-body {
  margin-top: 10px;
}

.tv-auth-form,
#tv-loginform {
  display: grid;
  gap: 12px;
}

.tv-auth-field {
  display: grid;
  gap: 8px;
}

.tv-auth-label {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tv-auth-hint {
  color: var(--tv-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.tv-required-mark {
  color: #e1062a;
  font-weight: 900;
  margin-left: 2px;
}

.tv-inline-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ef4444;
  animation: tv-fade-in-up 0.2s ease-out;
}

@keyframes tv-fade-in-up {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Unified Required Asterisk */
label:has(+ br + input[required]),
label:has(+ input[required]),
.tv-auth-input-label:has(+ .tv-auth-input-wrapper input[required]),
.tv-field-wrap label:has(+ br + .tv-input--validate[required]) {
  position: relative;
}

label:has(+ br + input[required])::after,
label:has(+ input[required])::after,
.tv-auth-input-label:has(+ .tv-auth-input-wrapper input[required])::after,
.tv-field-wrap label:has(+ br + .tv-input--validate[required])::after {
  content: " *";
  color: var(--red);
  font-weight: 900;
}

.tv-field-wrap .tv-input--validate[aria-invalid="true"],
.tv-field-wrap textarea.tv-input--validate[aria-invalid="true"],
.tv-field-wrap .tv-auth-input[aria-invalid="true"],
.tv-content-body .tv-input--validate[aria-invalid="true"],
.tv-content-body textarea.tv-input--validate[aria-invalid="true"] {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.03);
}

.tv-auth-input.is-valid,
.tv-input--validate.is-valid {
  border-color: #22c55e !important;
}

/* Password Strength Meter */
.tv-password-strength-meter {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}

.tv-password-strength-meter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.tv-password-strength-meter[data-strength="1"]::before { width: 20%; background: #ef4444; }
.tv-password-strength-meter[data-strength="2"]::before { width: 40%; background: #f97316; }
.tv-password-strength-meter[data-strength="3"]::before { width: 60%; background: #eab308; }
.tv-password-strength-meter[data-strength="4"]::before { width: 80%; background: #84cc16; }
.tv-password-strength-meter[data-strength="5"]::before { width: 100%; background: #22c55e; }

/* WordPress core login form on /access/ — required fields */
.tv-auth-page #tv-loginform p.login-username label::after,
.tv-auth-page #tv-loginform p.login-password label::after {
  content: " *";
  color: #e1062a;
  font-weight: 900;
}

/* Password visibility toggle (see ui.js wrapPasswordToggle) */
.tv-password-field {
  position: relative;
  display: block;
  width: 100%;
}

.tv-password-field > input {
  width: 100%;
  padding-right: 44px !important;
  box-sizing: border-box;
}

.tv-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.tv-password-toggle:hover,
.tv-password-toggle:focus-visible {
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
}

.tv-password-toggle:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.45);
  outline-offset: 2px;
}

.woocommerce-form .tv-password-field > input.input-text {
  padding-right: 44px !important;
}

.tv-page #loginform p.login-username label::after,
.tv-page #loginform p.login-password label::after {
  content: " *";
  color: #e1062a;
  font-weight: 900;
}

.tv-auth-input,
#tv-loginform input[type="text"],
#tv-loginform input[type="password"] {
  width: 100%;
  height: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 16px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.tv-auth-input:focus,
#tv-loginform input[type="text"]:focus,
#tv-loginform input[type="password"]:focus {
  border-color: var(--red);
}

.tv-auth-input[aria-invalid="true"] {
  border-color: rgba(239, 68, 68, 0.55);
}

textarea.tv-auth-input {
  min-height: 96px;
  height: auto;
  resize: vertical;
  padding: 10px 12px;
}

.tv-auth-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tv-auth-span-2 {
  grid-column: 1 / -1;
}

.tv-auth-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tv-auth-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tv-auth-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 25, 40, 0.14);
  border-radius: 999px;
  background: rgba(246, 248, 251, 0.8);
  font-weight: 850;
}

.tv-auth-radio input {
  accent-color: var(--tv-brand);
}

.tv-auth-divider {
  border: none;
  border-top: 1px solid var(--tv-border);
  margin: 18px 0;
}

.tv-auth-vendor {
  margin-top: 8px;
}

.tv-auth-file {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(15, 25, 40, 0.22);
  background: rgba(246, 248, 251, 0.75);
  padding: 10px 12px;
}

.tv-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tv-auth-muted {
  margin: 0;
  color: var(--tv-muted);
  font-weight: 700;
}

/* Style default wp_login_form() structure */
#tv-loginform p {
  margin: 0;
  display: grid;
  gap: 8px;
}

#tv-loginform label {
  font-weight: 900;
  letter-spacing: -0.01em;
}

#tv-loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 10px;
}

#tv-loginform .login-remember label {
  font-weight: 800;
  color: var(--tv-muted);
}

#tv-loginform input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--tv-brand);
}

#tv-loginform input[type="submit"] {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--tv-brand);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px rgba(225, 6, 42, 0.22);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

#tv-loginform input[type="submit"]:hover {
  background: var(--tv-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 50px rgba(225, 6, 42, 0.26);
}

@media (max-width: 920px) {
  .tv-auth-page {
    min-height: auto;
    align-items: stretch;
  }

  .tv-auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tv-auth-shell {
    padding: 18px;
  }

  .tv-auth-card {
    padding: 16px;
  }

  .tv-auth-two-col {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce: My Account (Dashboard) */
/* Tighter top spacing than generic .tv-page so the bar doesn’t feel “double tall” under sticky header */
.woocommerce-account .tv-page {
  padding-top: 22px;
}

/* Make My Account span full width for a dashboard feel */
body.woocommerce-account .tv-wrap {
  width: 100% !important;
  max-width: none !important;
  padding-inline: max(24px, 4vw);
}

.woocommerce-account .woocommerce {
  position: relative;
}

/* Subtle brand tint behind the account grid — dark shell */
.woocommerce-account .woocommerce::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: min(160px, 30vh);
  background:
    radial-gradient(
      520px 200px at 18% 0%,
      rgba(200, 16, 46, 0.14),
      rgba(200, 16, 46, 0) 58%
    ),
    radial-gradient(
      420px 160px at 82% 12%,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0) 58%
    ),
    linear-gradient(135deg, rgba(22, 22, 22, 0.98), rgba(13, 13, 13, 0.99));
  pointer-events: none;
  z-index: 0;
  border-radius: var(--tv-radius-lg);
}

.woocommerce-account .woocommerce > * {
  position: relative;
  z-index: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  box-shadow: var(--tv-shadow);
  backdrop-filter: blur(10px);
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  padding: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  padding: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--tv-border);
  background: var(--tv-bg-alt);
  color: var(--tv-ink);
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  transform: translateY(-1px);
  border-color: var(--border2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
  background: linear-gradient(
    135deg,
    rgba(200, 16, 46, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  border-color: var(--red-bdr);
  box-shadow: 0 14px 35px rgba(200, 16, 46, 0.12);
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a::after {
  content: "›";
  color: var(--tv-brand);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content h4 {
  margin-top: 0;
  letter-spacing: -0.01em;
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content p,
.woocommerce-account .woocommerce-MyAccount-content li,
.woocommerce-account .woocommerce-MyAccount-content dd,
.woocommerce-account .woocommerce-MyAccount-content dt {
  color: var(--tv-muted);
}

.woocommerce-account .woocommerce-MyAccount-content strong {
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content p a:not(.button):not(.woocommerce-Button):not(.tv-account-card):not(.tv-btn):not(.dokan-btn) {
  font-weight: 850;
  color: var(--tv-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.woocommerce-account .woocommerce-MyAccount-content p a:not(.button):not(.woocommerce-Button):not(.tv-account-card):not(.tv-btn):not(.dokan-btn):hover {
  border-bottom-color: var(--red-bdr);
  color: var(--tv-brand);
}

/* Account dashboard: "Become a Vendor" callout link as button */
.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content a.tv-account-btn,
.woocommerce-account
  .woocommerce-MyAccount-content
  .tv-account-dash
  + *
  a[href*="become-a-vendor"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--red-bdr);
  background: var(--tv-brand);
  color: #fff !important;
  font-weight: 950;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px var(--red-glow);
  text-decoration: none;
  border-bottom: 0 !important;
}

.woocommerce-account
  .woocommerce-MyAccount-content
  .tv-account-dash
  + *
  a[href*="become-a-vendor"]:hover {
  background: var(--tv-brand-dark);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content button:not(.show-password-input),
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account .woocommerce-MyAccount-content button.button {
  border: 0;
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: var(--tv-brand);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px var(--red-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-account .woocommerce-MyAccount-content button:not(.show-password-input):hover,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover {
  background: var(--tv-brand-dark);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button:focus,
.woocommerce-account .woocommerce-MyAccount-content button:focus,
.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:focus,
.woocommerce-account .woocommerce-MyAccount-content .button:focus,
.woocommerce-account .woocommerce-MyAccount-content a.button:focus,
.woocommerce-account .woocommerce-MyAccount-content button.button:focus {
  outline: none;
  box-shadow: var(--tv-focus);
}

.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
.woocommerce-account .woocommerce-MyAccount-content input[type="number"],
.woocommerce-account .woocommerce-MyAccount-content input[type="url"],
.woocommerce-account .woocommerce-MyAccount-content input[type="search"],
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  outline: none;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.woocommerce-account .woocommerce-MyAccount-content textarea {
  height: auto;
  min-height: 110px;
  resize: vertical;
}

.woocommerce-account .woocommerce-MyAccount-content input::placeholder,
.woocommerce-account .woocommerce-MyAccount-content textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.woocommerce-account .woocommerce-MyAccount-content input:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
  border-color: rgba(225, 6, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

/* Native <select> options render with the OS chrome — dark them where supported */
.woocommerce-account .woocommerce-MyAccount-content select option {
  background-color: #161616;
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content legend {
  font-weight: 900;
  padding: 0 10px;
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content label {
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content .description,
.woocommerce-account .woocommerce-MyAccount-content em,
.woocommerce-account .woocommerce-MyAccount-content small {
  color: rgba(255, 255, 255, 0.6);
}

.woocommerce-account .woocommerce-MyAccount-content table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content table th,
.woocommerce-account .woocommerce-MyAccount-content table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.woocommerce-account .woocommerce-MyAccount-content table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
}

/* Password-visibility toggle icon button next to password fields */
.woocommerce-account .woocommerce-MyAccount-content .show-password-input,
.woocommerce-account .woocommerce-MyAccount-content .password-input .show-password-input,
.woocommerce-account .woocommerce-MyAccount-content button.show-password-input {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 0 !important;
  height: auto !important;
}

.woocommerce-account .woocommerce-MyAccount-content .show-password-input:hover {
  color: var(--red, #C8102E) !important;
}

.woocommerce-account .woocommerce-MyAccount-content table tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content table tr:last-child th {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 20px 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
  display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address {
  border: 1px solid var(--tv-border);
  border-radius: 20px;
  background: var(--tv-bg-alt) !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  min-height: 200px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid var(--tv-border);
  padding-bottom: 10px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  margin: 0 !important;
  color: var(--tv-ink) !important;
  font-weight: 950;
  font-size: 1.2rem;
  line-height: 1.2;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address a.edit {
  color: var(--tv-brand) !important;
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  text-align: right;
  flex-shrink: 0;
  white-space: normal;
  max-width: 100px;
  line-height: 1.3;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
  color: var(--tv-muted) !important;
  font-style: normal;
  line-height: 1.6;
  margin: 0 !important;
  font-size: 0.95rem;
}

/* My Account: Dashboard summary cards */
.woocommerce-account .tv-account-dash {
  margin-bottom: 14px;
}

.woocommerce-account .tv-account-dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.woocommerce-account .tv-account-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.woocommerce-account .tv-account-heading {
  margin: 6px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--tv-ink);
}

.woocommerce-account .tv-account-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.woocommerce-account .tv-account-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.woocommerce-account .tv-account-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--tv-border);
  background: var(--tv-bg-alt);
  color: var(--tv-ink);
  text-decoration: none;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.woocommerce-account .tv-account-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border2);
  color: var(--tv-ink);
}

.woocommerce-account .tv-account-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.woocommerce-account .tv-account-card-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--tv-ink);
}

.woocommerce-account .tv-account-card-value {
  margin: 0;
  font-weight: 950;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  color: var(--tv-ink);
}

.woocommerce-account .tv-account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  border: 1px solid var(--tv-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tv-ink);
  vertical-align: middle;
}

.woocommerce-account .tv-account-pill-ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.woocommerce-account .tv-account-pill-bad {
  border-color: var(--red-bdr);
  background: var(--red-bg);
  color: var(--red-s);
}

.woocommerce-account .tv-account-card-meta {
  margin: 0;
  color: var(--tv-muted);
  font-weight: 650;
}

.woocommerce-account .tv-account-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--red-bdr);
  background: var(--red-bg);
  color: var(--tv-ink);
  font-weight: 950;
  width: fit-content;
  white-space: nowrap;
}

.woocommerce-account .tv-account-card:hover .tv-account-card-cta {
  background: rgba(200, 16, 46, 0.16);
  border-color: var(--tv-brand);
  color: #fff;
}

@media (max-width: 1120px) {
  .woocommerce-account .tv-account-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .woocommerce-account .tv-account-dash-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .woocommerce-account .tv-account-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

/* My Account — orders, notices, wishlist, payment methods */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content mark {
  background: var(--red-bg);
  color: var(--tv-ink);
  border: 1px solid var(--red-bdr);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 800;
  font-size: 0.78rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination a,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination span {
  color: var(--tv-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination a:hover {
  color: var(--tv-brand);
}

.woocommerce-account .woocommerce-MyAccount-content .tv-content-card {
  background: var(--tv-bg-alt);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  margin-bottom: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content .tv-content-card .tv-page-title {
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.tv-account-card):not(.tv-product-card):not(.tv-btn):not(.dokan-btn) {
  color: var(--tv-brand);
}

/* Dashboard CTAs — .tv-btn / Dokan links must not inherit the red inline-link color */
.woocommerce-account .woocommerce-MyAccount-content .tv-btn-primary,
.woocommerce-account .woocommerce-MyAccount-content a.tv-btn-primary,
.woocommerce-account .woocommerce-MyAccount-content .tv-btn-primary:hover,
.woocommerce-account .woocommerce-MyAccount-content a.tv-btn-primary:hover,
.woocommerce-account .woocommerce-MyAccount-content .dokan-btn,
.woocommerce-account .woocommerce-MyAccount-content a.dokan-btn,
.woocommerce-account .woocommerce-MyAccount-content .dokan-btn-theme,
.woocommerce-account .woocommerce-MyAccount-content a.dokan-btn-theme,
.woocommerce-account .woocommerce-MyAccount-content .dokan-btn:hover,
.woocommerce-account .woocommerce-MyAccount-content a.dokan-btn:hover {
  color: #fff !important;
  border-bottom-color: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-content .tv-btn-secondary,
.woocommerce-account .woocommerce-MyAccount-content a.tv-btn-secondary,
.woocommerce-account .woocommerce-MyAccount-content .tv-btn-secondary:hover,
.woocommerce-account .woocommerce-MyAccount-content a.tv-btn-secondary:hover {
  color: var(--tv-ink) !important;
  border-bottom-color: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a {
  color: var(--tv-ink);
  font-weight: 900;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a:hover {
  color: var(--tv-brand);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td {
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details {
  color: var(--tv-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-column__title {
  color: var(--tv-ink);
}

.woocommerce-account .woocommerce-MyAccount-content .payment_methods li {
  color: var(--tv-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .payment_methods .woocommerce-PaymentMethod label {
  color: var(--tv-ink);
}

.tv-section-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.tv-how {
  margin: 10px auto 34px;
}

.tv-how-card {
  background: var(--bg2);
  padding: 60px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.tv-step {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.tv-step-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.tv-step-body {
  margin: 0;
  color: var(--tv-muted);
}

.tv-featured {
  margin: 8px auto 34px;
}

.tv-section {
  margin: 8px auto 34px;
}

.tv-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tv-cat-card {
  padding: 16px;
  border-radius: var(--tv-radius);
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
  box-shadow: 0 16px 45px rgba(11, 15, 23, 0.08);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tv-cat-card:hover {
  transform: translateY(-1px);
  background: var(--tv-bg-alt);
}

.tv-cat-name {
  display: block;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tv-cat-meta {
  display: block;
  margin-top: 6px;
  color: var(--tv-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.tv-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tv-product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.tv-product-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.tv-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tv-bg-alt);
}

.tv-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tv-product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 15, 23, 0.06),
    rgba(225, 6, 42, 0.08)
  );
}

.tv-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(225, 6, 42, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.tv-pill-muted {
  background: rgba(11, 15, 23, 0.82);
}

.tv-product-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tv-product-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tv-product-vendor {
  margin: 6px 0 0;
  color: var(--tv-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.tv-product-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tv-product-price {
  font-weight: 900;
}

.tv-product-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #000000 !important;
  background: #ffffff !important;
  border: none !important;
  transition: all 0.2s ease;
}

a.tv-product-card:hover .tv-product-cta {
  background: var(--tv-brand);
  border-color: var(--tv-brand);
  color: #ffffff;
}

.tv-cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 4px;
}

.tv-featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.tv-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tv-store-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
}
.tv-store-card:hover {
  border-color: var(--red);
  transform: scale(1.02);
}

.tv-store-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(11, 15, 23, 0) 0%,
      rgba(11, 15, 23, 0.55) 100%
    ),
    var(--tv-store-bg, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.tv-store-card-inner {
  position: relative;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.tv-store-card-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 15, 23, 0.35) center / cover no-repeat;
  box-shadow: 0 8px 22px rgba(11, 15, 23, 0.28);
}

.tv-store-title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tv-store-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 0.92rem;
}

.tv-store-link {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: #000000;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 24px rgba(11, 15, 23, 0.18);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

a.tv-store-card:hover .tv-store-link {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 15, 23, 0.22);
}

.tv-page-title {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.tv-content-body {
  color: var(--tv-ink);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--tv-shadow);
}

.tv-woo .woocommerce-breadcrumb {
  color: var(--tv-muted);
  font-weight: 700;
}

.tv-woo-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tv-woo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tv-woo-results {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.tv-woo-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.tv-woo-results.is-loading::after {
  content: "Updating…";
  display: inline-block;
  margin-top: 12px;
  color: var(--tv-muted);
  font-weight: 800;
}

/* Full-page overlay while a form POST navigates or JS triggers a hard redirect */
.tv-page-loading {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.tv-page-loading.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.tv-page-loading-active {
  overflow: hidden;
}

.tv-page-loading__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tv-page-loading__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(225, 6, 42, 0.22);
  border-top-color: var(--tv-brand);
  animation: tv-page-loading-spin 0.75s linear infinite;
}

@keyframes tv-page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Same-origin navigation / form submit: top progress + route overlay (see ui.js) */
.tv-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100002;
  pointer-events: none;
  overflow: hidden;
  background: rgba(11, 15, 23, 0.07);
}

.tv-nav-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--tv-brand) 0%, #ff3d5c 100%);
  box-shadow: 0 0 12px rgba(225, 6, 42, 0.4);
  transition: width 0.2s ease;
}

.tv-nav-progress[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .tv-nav-progress__bar {
    transition: none;
  }
}

/* Lighter overlay for link / redirect flows (spinner hidden) */
.tv-page-loading.tv-page-loading--route {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
}

.tv-page-loading.tv-page-loading--route .tv-page-loading__inner {
  display: none;
}

body.tv-page-loading-route.tv-page-loading-active {
  cursor: wait;
}

.tv-woo-filters {
  position: sticky;
  top: 86px;
}

.woocommerce-pagination ul.page-numbers {
  border: none;
}

.woocommerce-pagination ul.page-numbers li {
  border: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  border: 1px solid var(--tv-border);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
  color: var(--tv-ink);
  background: var(--tv-surface);
}

.woocommerce-pagination .page-numbers .current {
  background: var(--tv-bg-alt);
}

.woocommerce-pagination .page-numbers a:hover {
  background: var(--tv-bg-alt);
}

.tv-woo-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tv-filter-card {
  padding: 18px;
  border-radius: var(--tv-radius-lg);
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
  box-shadow: var(--tv-shadow);
}

.tv-filter-title {
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tv-filter-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tv-filter-2col {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tv-filter-label {
  font-weight: 800;
  color: var(--tv-muted);
  font-size: 0.92rem;
}

.tv-filter-input {
  width: 100%;
  border: 1px solid var(--tv-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  outline: none;
  background: rgba(246, 248, 251, 0.75);
}

.tv-filter-input:focus {
  border-color: rgba(225, 6, 42, 0.35);
  box-shadow: 0 0 0 4px rgba(225, 6, 42, 0.1);
}

.tv-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  justify-content: start; /* prevent centered grid tracks */
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
 * WooCommerce layout CSS adds ::before/::after clearfix on ul.products.
 * With display:grid those pseudo-elements become extra grid items — empty
 * leading tracks and a visible gap before the first product.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  content: none !important;
  display: none !important;
}

/* Woo default loop styles use floats + fixed widths; reset to make CSS grid behave */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}

.tv-wc-card {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border-radius: var(--tv-radius-lg) !important;
}

/* Stretched product link: vendor + wishlist sit above via z-index + pointer-events (see content-product.php). */
.tv-wc-card > .tv-wc-card-link.tv-wc-hitbox {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.tv-wc-card > .tv-wc-media,
.tv-wc-card > .tv-wc-body {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.tv-wc-card > .tv-wc-media .tv-wish-btn,
.tv-wc-card .tv-wc-vendor a {
  pointer-events: auto;
}

.tv-wc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tv-bg-alt);
}

.tv-wc-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.tv-wc-body {
  padding: 14px;
}

.tv-wc-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tv-wc-vendor {
  margin: 6px 0 0;
  font-weight: 700;
  color: var(--tv-muted);
  font-size: 0.92rem;
}

.tv-wc-vendor a {
  color: var(--tv-ink);
  border-bottom: 1px solid rgba(15, 25, 40, 0.18);
}

.tv-wc-foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tv-wc-price {
  font-weight: 900;
}

.tv-wc-price del,
.tv-wc-price ins {
  display: inline;
  text-decoration: none;
}

.tv-wc-price del {
  opacity: 0.55;
  margin-right: 6px;
}

.tv-wc-price del .amount,
.tv-wc-price del .woocommerce-Price-amount {
  text-decoration: line-through;
}

.tv-wc-price ins {
  font-weight: 950;
}

.tv-wc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.1);
  color: rgba(37, 99, 235, 0.98);
  font-weight: 950;
  white-space: nowrap;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.tv-wc-card:hover .tv-wc-cta {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Prevent default WP sidebar widgets on product pages */
body.single-product #secondary,
body.single-product .widget-area,
body.single-product .sidebar,
body.single-product aside.sidebar,
body.single-product aside#secondary {
  display: none !important;
}

/* Some layouts render widgets inside main content; hide them only there */
body.single-product .tv-main .widget,
body.single-product .tv-main .widget-area,
body.single-product .tv-main aside,
body.single-product .tv-main #sidebar,
body.single-product .tv-main #primary-sidebar,
body.single-product .tv-main #secondary-sidebar {
  display: none !important;
}

body.single-product #primary,
body.single-product .content-area,
body.single-product .site-content,
body.single-product .site-main {
  width: 100% !important;
  max-width: 100% !important;
}

.tv-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(11, 15, 23, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tv-wish-btn:hover {
  transform: translateY(-1px);
  background: #fff;
}

.tv-wish-btn.is-active {
  background: rgba(225, 6, 42, 0.92);
  color: #fff;
  border-color: rgba(225, 6, 42, 0.35);
}

.tv-wish-btn.is-active:hover {
  background: rgba(225, 6, 42, 0.98);
}

.tv-store-save {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  border: 1px solid var(--tv-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--tv-ink);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tv-store-save:hover {
  transform: translateY(-1px);
  background: var(--tv-bg-alt);
}

.tv-store-save.is-active {
  border-color: rgba(225, 6, 42, 0.35);
  background: rgba(225, 6, 42, 0.92);
  color: #fff;
}

.dokan-store-wrap,
.dokan-store-wrap .dokan-store-profile,
.dokan-store-wrap .dokan-store-header,
.dokan-store-wrap .dokan-store-widget,
.dokan-store-wrap .dokan-store-tabs,
.dokan-store-wrap .dokan-store-sidebar {
  border-radius: var(--tv-radius-lg);
}

.dokan-store-wrap .dokan-store-profile,
.dokan-store-wrap .dokan-store-widget,
.dokan-store-wrap .dokan-store-sidebar,
.dokan-store-wrap .dokan-store-tabs {
  border: 1px solid var(--tv-border);
  box-shadow: var(--tv-shadow);
  background: var(--tv-surface);
}

/* Storefront hero/header polish */
.dokan-store-wrap .dokan-store-profile {
  overflow: hidden;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-banner {
  border-radius: 0;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-info {
  padding: 16px 18px;
}

.dokan-store-wrap {
  position: relative;
}

.dokan-store-wrap::before {
  content: "";
  position: absolute;
  inset: -28px 0 auto 0;
  height: 260px;
  background:
    radial-gradient(
      900px 520px at 18% 0%,
      rgba(225, 6, 42, 0.1),
      rgba(225, 6, 42, 0) 60%
    ),
    radial-gradient(
      720px 420px at 82% 8%,
      rgba(11, 15, 23, 0.08),
      rgba(11, 15, 23, 0) 62%
    ),
    linear-gradient(135deg, rgba(246, 248, 251, 1), rgba(255, 255, 255, 1));
  pointer-events: none;
  z-index: 0;
  border-radius: var(--tv-radius-lg);
}

.dokan-store-wrap > * {
  position: relative;
  z-index: 1;
}

.dokan-store-wrap .dokan-store-profile,
.dokan-store-wrap .dokan-store-tabs,
.dokan-store-wrap .dokan-store-sidebar,
.dokan-store-wrap .dokan-store-widget {
  backdrop-filter: blur(10px);
}

.dokan-store-wrap .dokan-store-profile {
  box-shadow: 0 26px 75px rgba(11, 15, 23, 0.1);
}

.dokan-store-wrap .dokan-store-profile .dokan-store-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dokan-store-wrap .dokan-store-profile .store-name {
  margin: 0;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-info .dokan-store-rating {
  margin-left: auto;
}

.dokan-store-wrap .dokan-store-tabs ul {
  background: transparent;
}

.dokan-store-wrap .dokan-store-tabs ul li a {
  border: 1px solid rgba(15, 25, 40, 0.1);
  background: rgba(246, 248, 251, 0.75);
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.dokan-store-wrap .dokan-store-tabs ul li a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 25, 40, 0.16);
}

.dokan-store-wrap .dokan-store-tabs ul li.active a {
  background: linear-gradient(
    135deg,
    rgba(225, 6, 42, 0.12),
    rgba(11, 15, 23, 0.03)
  );
  border-color: rgba(225, 6, 42, 0.2);
}

/* Sidebar widgets (search / recent posts / comments) */
.dokan-store-wrap .dokan-store-sidebar .widget,
.dokan-store-wrap .dokan-store-sidebar .dokan-store-widget {
  padding: 14px;
  border: 1px solid rgba(15, 25, 40, 0.1);
  border-radius: 16px;
  background: rgba(246, 248, 251, 0.65);
  box-shadow: none;
  margin-bottom: 12px;
}

.dokan-store-wrap .dokan-store-sidebar .widget-title,
.dokan-store-wrap .dokan-store-sidebar h2,
.dokan-store-wrap .dokan-store-sidebar h3 {
  margin: 0 0 10px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.dokan-store-wrap .dokan-store-sidebar input[type="text"],
.dokan-store-wrap .dokan-store-sidebar input[type="search"],
.dokan-store-wrap .dokan-store-sidebar select {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 25, 40, 0.16);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition:
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dokan-store-wrap .dokan-store-sidebar input:focus,
.dokan-store-wrap .dokan-store-sidebar select:focus {
  border-color: rgba(225, 6, 42, 0.45);
  box-shadow: var(--tv-focus);
}

.dokan-store-wrap .dokan-store-sidebar input[type="submit"],
.dokan-store-wrap .dokan-store-sidebar button,
.dokan-store-wrap .dokan-store-sidebar a.button {
  border: 0;
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(37, 99, 235, 1);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.2);
}

.dokan-store-wrap .dokan-store-sidebar input[type="submit"]:hover,
.dokan-store-wrap .dokan-store-sidebar button:hover,
.dokan-store-wrap .dokan-store-sidebar a.button:hover {
  background: rgba(29, 78, 216, 1);
}

.dokan-store-wrap .dokan-store-sidebar ul {
  margin: 0;
  padding-left: 18px;
  color: var(--tv-muted);
  font-weight: 650;
}

.dokan-store-wrap .dokan-store-sidebar a {
  font-weight: 800;
}

.dokan-store-wrap .dokan-store-sidebar a:hover {
  color: var(--tv-ink);
}

/* Dokan store: breadcrumb + spacing + full-width (no sidebar) */
.dokan-store-wrap {
  padding-top: 12px;
  overflow: visible !important;
}

.dokan-store-wrap .dokan-breadcrumb,
.dokan-store-wrap .breadcrumb,
.dokan-store-wrap nav.woocommerce-breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0 0 14px !important;
  padding: 6px 8px !important;
  color: var(--tv-muted);
  font-weight: 750;
  line-height: 1.4;
  overflow: visible !important;
  white-space: normal;
  display: block;
  min-height: 28px;
  font-size: 14px;
  background: transparent;
}

/* Hide store breadcrumb (Home / Store / …) */
body.dokan-store .dokan-breadcrumb,
body.dokan-store .dokan-breadcrumb-wrap,
body.dokan-store .dokan-store-breadcrumb,
body.dokan-store .breadcrumb,
body.dokan-store nav.woocommerce-breadcrumb,
.dokan-store-wrap .dokan-breadcrumb,
.dokan-store-wrap .dokan-breadcrumb-wrap,
.dokan-store-wrap .dokan-store-breadcrumb,
.dokan-store-wrap .breadcrumb,
.dokan-store-wrap nav.woocommerce-breadcrumb,
.dokan-store-page .dokan-breadcrumb,
.dokan-store-page .dokan-breadcrumb-wrap,
.dokan-store-page .dokan-store-breadcrumb,
.dokan-store-page .breadcrumb,
.dokan-store-page nav.woocommerce-breadcrumb {
  display: none !important;
}

/* Some Dokan layouts wrap breadcrumb in a clipped container */
.dokan-store-wrap .dokan-breadcrumb-wrap,
.dokan-store-wrap .dokan-store-breadcrumb,
.dokan-store-wrap .dokan-breadcrumb-wrap * {
  overflow: visible !important;
}

.dokan-store-wrap .dokan-store-profile {
  margin-top: 6px;
  margin-bottom: 16px;
}

/* Add space between banner/profile and product filter/search bars */
.dokan-store-wrap .dokan-store-products-filter,
.dokan-store-wrap form.dokan-store-products-filter,
.dokan-store-wrap .dokan-product-search,
.dokan-store-wrap .dokan-store-products-filter-wrap,
.dokan-store-wrap .dokan-store-products-filter-area {
  margin-top: 16px !important;
}

/* Store sorting & search: Dark Mode overrides */
.dokan-store-products-filter-area select,
.dokan-store-products-filter-area input[type="text"],
.dokan-store-products-filter-area .dokan-product-search input[type="text"] {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  height: 40px !important;
  padding: 0 12px !important;
  outline: none !important;
}

.dokan-store-products-filter-area select:focus,
.dokan-store-products-filter-area input:focus {
  border-color: var(--red) !important;
  box-shadow: var(--tv-focus) !important;
}

.dokan-store-products-filter-area select option {
  background-color: #161616;
  color: #ffffff;
}

/* Remove sidebar and let content span full width (covers multiple Dokan layouts) */
.dokan-store-wrap .dokan-store-sidebar,
.dokan-store-wrap .dokan-store-left,
.dokan-store-wrap .dokan-store-widget-area {
  display: none !important;
}

.dokan-store-wrap .dokan-store-main,
.dokan-store-wrap .dokan-store-right,
.dokan-store-wrap .dokan-store-content,
.dokan-store-wrap .dokan-store-products,
.dokan-store-wrap .dokan-single-store,
.dokan-store-wrap .dokan-store-wrap-layout {
  width: 100% !important;
  float: none !important;
  margin-left: 0 !important;
}

/* Save store button: red heart pill (mounted into header by ui.js) */
.tv-store-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 950;
  letter-spacing: 0.01em;
  border: 1px solid rgba(225, 6, 42, 0.28);
  background: rgba(225, 6, 42, 0.92);
  color: #fff;
  box-shadow: 0 16px 44px rgba(225, 6, 42, 0.22);
}

.tv-store-save::before {
  content: "♥";
  font-size: 14px;
  line-height: 1;
  transform: translateY(-0.5px);
}

.tv-store-save:hover {
  background: rgba(177, 5, 34, 0.98);
  transform: translateY(-1px);
}

.tv-store-save.is-active {
  border-color: rgba(225, 6, 42, 0.36);
  background: rgba(11, 15, 23, 0.88);
  box-shadow: 0 16px 44px rgba(11, 15, 23, 0.18);
}

.tv-store-save.is-active::before {
  content: "♥";
  opacity: 1;
}

.dokan-store-wrap .tv-store-save {
  margin-left: 0;
}

/* Store header: show store name, then rating, then save */
.dokan-store-wrap .dokan-store-profile .store-name {
  display: block !important;
  width: 100%;
  margin: 10px 0 6px !important;
  font-size: 1.15rem;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-info,
.dokan-store-wrap .dokan-store-profile .profile-info,
.dokan-store-wrap .dokan-store-profile .profile-info-box {
  align-items: flex-start;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-info {
  flex-direction: column;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-rating,
.dokan-store-wrap .dokan-store-profile .store-rating,
.dokan-store-wrap .dokan-store-profile .rating,
.dokan-store-wrap .dokan-store-profile .no-rating,
.dokan-store-wrap .dokan-store-profile .dokan-store-info .star-rating {
  width: 100%;
  margin: 0 0 10px !important;
}

.dokan-store-wrap .dokan-store-profile .tv-store-save {
  align-self: flex-start;
  margin-top: 2px;
}

/* Store products: ensure grid starts from the left */
body.dokan-store .woocommerce,
.dokan-store-wrap .woocommerce,
.dokan-store-page .woocommerce {
  text-align: left;
}

body.dokan-store .woocommerce ul.products,
.dokan-store-page .woocommerce ul.products,
body.dokan-store ul.products,
.dokan-store-wrap ul.products,
.dokan-store-page ul.products,
.dokan-store-wrap .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100% !important;
  max-width: none !important;
  justify-content: start !important;
  justify-items: stretch;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}

body.dokan-store .woocommerce ul.products li.product,
.dokan-store-wrap .woocommerce ul.products li.product,
.dokan-store-page .woocommerce ul.products li.product,
body.dokan-store ul.products li.product,
.dokan-store-wrap ul.products li.product,
.dokan-store-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  clear: none !important;
}

@media (max-width: 980px) {
  body.dokan-store .woocommerce ul.products,
  .dokan-store-page .woocommerce ul.products,
  body.dokan-store ul.products,
  .dokan-store-wrap ul.products,
  .dokan-store-page ul.products,
  .dokan-store-wrap .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.dokan-store .woocommerce ul.products,
  .dokan-store-page .woocommerce ul.products,
  body.dokan-store ul.products,
  .dokan-store-wrap ul.products,
  .dokan-store-page ul.products,
  .dokan-store-wrap .woocommerce ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dokan-store-wrap .dokan-store-profile .store-name {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.dokan-store-wrap .dokan-store-profile .dokan-store-widget-area,
.dokan-store-wrap .dokan-store-sidebar {
  padding: 14px;
}

.dokan-store-wrap .dokan-store-tabs ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px !important;
}

.dokan-store-wrap .dokan-store-tabs ul li a {
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
}

.dokan-store-wrap .dokan-store-tabs ul li.active a,
.dokan-store-wrap .dokan-store-tabs ul li a:hover {
  background: var(--tv-bg-alt);
}

/* Dokan vendor dashboard (skin only) */
/* ── VENDOR DASHBOARD ── */
.tv-vendor-dashboard-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--bg2);
  margin-top: 0;
}

.tv-vendor-sidebar {
  width: 280px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.tv-vendor-branding {
  padding: 0 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tv-vendor-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv-vendor-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 40px;
  color: var(--body);
  font-family: var(--head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.tv-vendor-nav a:hover,
.tv-vendor-nav li.active a {
  color: var(--white);
  background: rgba(255,255,255,0.03);
}

.tv-vendor-nav li.active a {
  border-right: 3px solid var(--red);
}

.tv-vendor-nav .icon {
  font-size: 18px;
}

.tv-nav-sep {
  height: 1px;
  background: var(--border);
  margin: 20px 40px;
}

.tv-vendor-content {
  flex: 1;
  padding: 60px;
  overflow-y: auto;
}

.tv-vendor-view {
  max-width: 1200px;
}

.tv-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tv-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 4px;
}

.tv-stat-label {
  display: block;
  font-family: var(--head);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tv-stat-value {
  display: block;
  font-family: var(--head);
  font-weight: 900;
  font-size: 32px;
  color: var(--white);
}

.tv-vendor-card-shell {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 4px;
  margin-top: 40px;
}

.tv-quick-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.tv-alert {
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 40px;
  font-weight: 600;
}

.tv-alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.dokan-dashboard-wrap .dokan-btn,
.dokan-dashboard-wrap a.dokan-btn,
.dokan-dashboard-wrap input.dokan-btn,
.dokan-dashboard-wrap button.dokan-btn {
  border-radius: 999px;
  font-weight: 800;
}

/* Legacy PHP dashboard forms only — do not paint Dokan React / DataViews search with light pills. */
.dokan-dashboard-wrap:not(:has(.dokan-layout)) input[type="text"],
.dokan-dashboard-wrap:not(:has(.dokan-layout)) input[type="email"],
.dokan-dashboard-wrap:not(:has(.dokan-layout)) input[type="number"],
.dokan-dashboard-wrap:not(:has(.dokan-layout)) input[type="password"],
.dokan-dashboard-wrap:not(:has(.dokan-layout)) textarea,
.dokan-dashboard-wrap:not(:has(.dokan-layout)) select {
  border: 1px solid var(--tv-border) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  background: rgba(246, 248, 251, 0.75) !important;
}

.dokan-dashboard-wrap .dokan-layout input[type="text"],
.dokan-dashboard-wrap .dokan-layout input[type="search"],
.dokan-dashboard-wrap .dokan-layout input[type="email"],
.dokan-dashboard-wrap .dokan-layout input[type="number"],
.dokan-dashboard-wrap .dokan-layout input[type="password"],
.dokan-dashboard-wrap .dokan-layout textarea,
.dokan-dashboard-wrap .dokan-layout select,
.dokan-dashboard-wrap :is(#dokan-vendor-dashboard-root, #dokan-vendor-dashboard-layout-root) input[type="search"] {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--white) !important;
  border: 1px solid var(--border) !important;
}

/* Dokan Dashboard text visibility fixes */
.dokan-dashboard-wrap .entry-title,
.dokan-dashboard-wrap h1,
.dokan-dashboard-wrap h2,
.dokan-dashboard-wrap h3 {
  color: var(--white) !important;
}

.dokan-dashboard-wrap .dokan-panel-heading {
  color: #000000 !important;
  background-color: #ffffff !important;
  font-weight: 800 !important;
}

.dokan-dashboard-wrap .dokan-panel-body {
  color: #ffffff !important;
  background-color: var(--card) !important;
}

.dokan-dashboard-wrap .dokan-panel-body p,
.dokan-dashboard-wrap .dokan-panel-body div,
.dokan-dashboard-wrap .dokan-panel-body span:not(.dokan-btn),
.dokan-dashboard-wrap .dokan-panel-body strong {
    color: #ffffff !important;
}

.dokan-dashboard-wrap .dokan-alert-info {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

/*
 * Dokan 5 sidebar active state — Dokan/Tailwind often sets nested spans to text-white.
 * Our earlier rule targeted only the <a>; children kept utility colours → invisible on white pill.
 */
.dokan-frontend-sidebar li a.active,
.dokan-frontend-sidebar li a[aria-current="page"],
.dokan-frontend-sidebar li.is-active > a {
  color: #0b0f17 !important;
  background-color: rgba(255, 255, 255, 0.97) !important;
  font-weight: 800;
  box-shadow: inset 3px 0 0 #7047eb;
}

.dokan-frontend-sidebar li a.active *,
.dokan-frontend-sidebar li a[aria-current="page"] *,
.dokan-frontend-sidebar li.is-active > a * {
  color: inherit !important;
  opacity: 1 !important;
}

.dokan-frontend-sidebar li a.active svg,
.dokan-frontend-sidebar li a[aria-current="page"] svg,
.dokan-frontend-sidebar li.is-active > a svg {
  color: #5b3cc4 !important;
  opacity: 1 !important;
}

.dokan-frontend-sidebar li a.active [class*="text-white"],
.dokan-frontend-sidebar li a[aria-current="page"] [class*="text-white"],
.dokan-frontend-sidebar li.is-active > a [class*="text-white"] {
  color: #0b0f17 !important;
}

/* PHP mirror sidebar (Catalog insights & other full-page vendor templates) */
.tv-dokan-external-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tv-dokan-sidebar-mirror.dokan-frontend-sidebar {
  margin: 0;
  padding: 10px 0;
  border-radius: var(--tv-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(185deg, #5b21b6 0%, #4c1d95 45%, #312e81 100%);
  box-shadow: var(--tv-shadow);
}

.tv-dokan-sidebar-mirror__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-dokan-sidebar-mirror__item {
  margin: 0;
}

.tv-dokan-sidebar-mirror__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 2px 10px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.tv-dokan-sidebar-mirror__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.tv-dokan-sidebar-mirror__link.active {
  color: #0b0f17 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 3px 0 0 #7047eb;
}

.tv-dokan-sidebar-mirror__link.active .tv-dokan-sidebar-mirror__label {
  color: #0b0f17 !important;
}

.tv-dokan-sidebar-mirror__ico {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: inherit;
}

.tv-dokan-sidebar-mirror__ico svg {
  width: 1.1rem;
  height: 1.1rem;
}

.tv-dokan-sidebar-mirror__link.active .tv-dokan-sidebar-mirror__ico {
  color: #5b3cc4 !important;
}

.tv-dokan-external-dashboard__main.dokan-dashboard-content {
  margin: 0;
}

@media (max-width: 900px) {
  .tv-dokan-external-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .tv-dokan-sidebar-mirror.dokan-frontend-sidebar {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    z-index: 5;
  }
}

@media (max-width: 980px) {
  .tv-woo-grid {
    grid-template-columns: 1fr;
  }

  .tv-woo-filters {
    position: static;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
  }
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.woocommerce div.product div.images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

/* Single product layout polish — grid replaces WooCommerce float (48% / 48%) */
body.single-product .woocommerce div.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  clear: both;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 25, 40, 0.12);
  border-radius: var(--tv-radius-lg);
  box-shadow: 0 26px 75px rgba(11, 15, 23, 0.1);
  padding: 20px;
}

body.single-product .woocommerce div.product > span.onsale {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 5;
  pointer-events: none;
}

body.single-product:not(.has-post-thumbnail) .woocommerce div.product {
  grid-template-columns: minmax(0, 1fr);
}

body.single-product:not(.has-post-thumbnail) .woocommerce div.product div.images {
  display: none !important;
}

body.single-product .woocommerce div.product div.images,
body.single-product .woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  max-width: 100%;
  clear: none !important;
}

body.single-product .woocommerce div.product > div.images {
  grid-column: 1;
  grid-row: 1;
}

body.single-product .woocommerce div.product > div.summary {
  grid-column: 2;
  grid-row: 1;
}

body.single-product .woocommerce div.product > .woocommerce-tabs,
body.single-product .woocommerce div.product > section.up-sells.products,
body.single-product .woocommerce div.product > section.related.products {
  grid-column: 1 / -1;
}

body.single-product .woocommerce div.product div.summary {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

body.single-product .woocommerce div.product form.cart,
body.single-product .woocommerce div.product form.variations_form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
}

body.single-product .woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

body.single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  width: 100%;
  align-self: stretch;
}

/* Single Product Actions Alignment - Vertical Stack */
body.single-product .woocommerce div.product form.cart {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  float: none !important;
  max-width: 400px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Ensure quantity input has its own row or is clearly separated */
body.single-product .woocommerce div.product form.cart .quantity {
  margin-right: 0 !important;
  margin-bottom: 4px !important;
  width: fit-content !important;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  width: 100% !important;
  margin: 0 !important;
  height: 48px !important;
  border-radius: 12px !important;
  padding: 0 28px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background-color: var(--tv-brand) !important;
  transition: all 0.2s ease !important;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background-color: var(--tv-brand-dark) !important;
  transform: translateY(-1px);
}

body.single-product .woocommerce div.product form.cart .tv-btn-secondary[data-tv-wish],
body.single-product .woocommerce div.product form.cart .tv-single-product-wishlist {
  width: 100% !important;
  height: 48px !important;
  border-radius: 12px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
}

body.single-product .woocommerce div.product form.cart .tv-btn-secondary[data-tv-wish]:hover,
body.single-product .woocommerce div.product form.cart .tv-single-product-wishlist:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  transform: translateY(-1px);
}

/* Express checkout / Pay with Link — Professional Integration */
body.single-product .woocommerce div.product div.summary .stripe-payment-request-wrapper,
body.single-product .woocommerce div.product div.summary .wcpay-payment-request-wrapper,
body.single-product .woocommerce div.product div.summary [class*="payment-request"],
body.single-product .woocommerce div.product div.summary [id*="payment-request"] {
  width: 100% !important;
  max-width: 400px !important;
  margin-top: 4px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  clear: both !important;
  display: block !important;
}

/* Ensure the wrapper looks like a cohesive block */
.stripe-payment-request-wrapper button,
.wcpay-payment-request-wrapper button {
  border-radius: 12px !important;
  height: 54px !important;
}

@media (max-width: 768px) {
  body.single-product .woocommerce div.product {
    grid-template-columns: minmax(0, 1fr);
  }

  body.single-product .woocommerce div.product > div.images,
  body.single-product .woocommerce div.product > div.summary {
    grid-column: 1;
    grid-row: auto;
  }
}

body.single-product .woocommerce div.product form.cart .quantity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 25, 40, 0.14);
  background: rgba(246, 248, 251, 0.75);
  position: relative;
}

/* Qty label (CSS-based so it always sits next to the input) */
body.single-product .woocommerce div.product form.cart .quantity::before {
  content: "Qty:";
  font-weight: 950;
  color: var(--tv-muted);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

body.single-product .woocommerce div.product form.cart input.qty {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--tv-border) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--white);
  text-align: center;
  padding: 6px 8px !important;
  font-weight: 900;
}

body.single-product
  .woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button {
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--tv-brand);
  color: #fff;
  border: 0;
  font-weight: 950;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px rgba(200, 16, 46, 0.18);
  width: 100%;
  max-width: 420px;
  margin-top: 0;
  align-self: stretch;
}

body.single-product
  .woocommerce
  div.product
  form.cart
  button.single_add_to_cart_button:hover {
  background: var(--tv-brand-dark);
}

/* Product tabs: modern pills + clean panel */
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
  margin: 16px 0 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border: 0 !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--tv-border);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  color: var(--tv-ink);
}

body.single-product
  .woocommerce
  div.product
  .woocommerce-tabs
  ul.tabs
  li.active
  a,
body.single-product
  .woocommerce
  div.product
  .woocommerce-tabs
  ul.tabs
  li
  a:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 25, 40, 0.18);
}

body.single-product .woocommerce div.product .woocommerce-tabs .panel {
  margin: 12px 0 0 !important;
  padding: 16px !important;
  border-radius: 16px;
  border: 1px solid rgba(15, 25, 40, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

/* Reviews: modern layout */
body.single-product .woocommerce-Reviews-title,
body.single-product .woocommerce-Reviews #comments h2 {
  margin-top: 0;
  font-weight: 950;
  letter-spacing: -0.02em;
}

body.single-product .woocommerce-Reviews .commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

body.single-product .woocommerce-Reviews .commentlist li {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 25, 40, 0.1);
  background: rgba(246, 248, 251, 0.65);
}

body.single-product .woocommerce-Reviews .comment-text {
  border: 0 !important;
  padding: 0 !important;
}

body.single-product .woocommerce-Reviews .star-rating {
  color: rgba(37, 99, 235, 1);
}

body.single-product .woocommerce-Reviews #review_form_wrapper {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 25, 40, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

body.single-product .woocommerce-Reviews #review_form_wrapper .comment-form {
  display: grid;
  gap: 12px;
}

body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-author,
body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-email {
  margin: 0;
}

body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-author
  label,
body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-email
  label,
body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-comment
  label,
body.single-product
  .woocommerce-Reviews
  #review_form_wrapper
  .comment-form-rating
  label {
  font-weight: 900;
  letter-spacing: -0.01em;
}

@media (min-width: 820px) {
  body.single-product .woocommerce-Reviews #review_form_wrapper .comment-form {
    grid-template-columns: 1fr 1fr;
  }

  body.single-product
    .woocommerce-Reviews
    #review_form_wrapper
    .comment-form-rating,
  body.single-product
    .woocommerce-Reviews
    #review_form_wrapper
    .comment-form-comment,
  body.single-product .woocommerce-Reviews #review_form_wrapper .form-submit,
  body.single-product .woocommerce-Reviews #review_form_wrapper .comment-notes,
  body.single-product .woocommerce-Reviews #review_form_wrapper .logged-in-as {
    grid-column: 1 / -1;
  }
}

body.single-product .woocommerce-Reviews #review_form_wrapper p {
  margin: 0;
}

/* Reviews form: match theme inputs/buttons */
body.single-product #review_form_wrapper input[type="text"],
body.single-product #review_form_wrapper input[type="email"],
body.single-product #review_form_wrapper textarea {
  width: 100%;
  border: 1px solid rgba(15, 25, 40, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 750;
}

body.single-product #review_form_wrapper textarea {
  min-height: 140px;
  resize: vertical;
}

body.single-product #review_form_wrapper input:focus,
body.single-product #review_form_wrapper textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

body.single-product #review_form_wrapper input#submit {
  background: rgba(37, 99, 235, 1) !important;
  border-radius: 999px !important;
  padding: 11px 16px !important;
  font-weight: 900 !important;
}

/* Related / More products: flush left (browser ul indent + any centered tracks) */
body.single-product .related ul.products,
body.single-product .up-sells ul.products,
body.single-product .upsells ul.products {
  justify-content: start !important;
  justify-items: stretch;
  width: 100% !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce div.product div.summary .tv-pill,
.woocommerce div.product div.summary .tv-pill-muted {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--tv-brand);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
  border: none;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--tv-ink);
  font-weight: 800;
}

.woocommerce table.shop_table {
  padding: 10px;
}

.woocommerce .checkout-button.button,
.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: var(--tv-accent);
  color: #fff;
}

/*
 * Cart / Checkout blocks render CTAs as .wc-block-components-button (no .button class).
 * Theme rules above do not apply; without this, "Proceed to checkout" can look like plain text
 * (inherits body/link colors from global `a` styles).
 */
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-cart .wc-block-cart__sidebar .wc-block-cart__submit-container .wc-block-components-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  box-sizing: border-box;
  background: var(--tv-accent);
  /* WC global “link” styles can override anchor colors; keep label readable on light accent */
  color: #000000 !important;
  text-decoration: none;
  box-shadow: none;
}

.wc-block-cart__submit-container .wc-block-components-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover {
  filter: brightness(0.9);
  color: #000000 !important;
}

.wc-block-cart__submit-container .wc-block-components-button:focus,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:focus {
  outline: none;
  box-shadow: var(--tv-focus);
}

/* Checkout block: Place order (documented class; may differ from generic .wc-block-components-button) */
.wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  background: var(--tv-accent);
  color: #000000 !important;
  text-decoration: none;
}

.wc-block-components-checkout-place-order-button:hover {
  filter: brightness(0.9);
  color: #000000 !important;
}

.wc-block-components-checkout-place-order-button:focus {
  outline: none;
  box-shadow: var(--tv-focus);
}

/* Cart + checkout layout polish */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-checkout form.checkout {
  margin-top: 14px;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  padding: 14px;
}

.woocommerce-cart .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

/*
 * Layout-only padding/font-weight for WC form rows. Color/border/background
 * for these controls is owned by assets/css/dark-controls.css so we don't
 * duplicate the token values.
 */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 10px 12px;
  font-weight: 700;
}

.woocommerce .woocommerce-order {
  margin-top: 18px;
}

.woocommerce-order .woocommerce-notice {
  font-weight: 900;
}

.tv-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 80px 40px;
}

.tv-footer-inner {
  padding: 34px 0;
  color: var(--tv-muted);
  font-size: 0.95rem;
}

.tv-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.tv-footer-brand {
  max-width: 300px;
}
.tv-footer-desc {
  margin: 20px 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

/* Same WooCommerce img precedence issue as the header logo — scope under .tv-footer */
.tv-footer .tv-footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.tv-footer-title {
  margin: 0;
  color: var(--tv-ink);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tv-footer-col h4 {
  margin: 0 0 10px;
  color: var(--tv-ink);
  font-weight: 900;
  font-size: 0.95rem;
}

.tv-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.tv-footer-links a {
  color: var(--tv-muted);
  font-weight: 700;
}

.tv-footer-links a:hover {
  color: var(--tv-ink);
}

.tv-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tv-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.tv-social-btn:hover {
  transform: translateY(-1px);
  background: var(--tv-bg-alt);
}

.tv-footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--tv-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tv-footer-bottom small {
  color: var(--tv-muted);
  font-weight: 700;
}

/* Dokan seller setup wizard: center the content container */
.tv-page .dokan-setup-content,
.tv-page .dokan-seller-setup,
.tv-page .dokan-setup-wizard,
.tv-page .dokan-setup-wrapper,
.tv-page .dokan-setup-wizard-content {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 860px;
}

@media (max-width: 980px) {
  .tv-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 10px;
  }

  /* Keep one header row: middle column scrolls if links do not fit. */
  .tv-nav {
    order: unset;
    width: auto;
    grid-column: auto;
    max-width: 100%;
  }

  .tv-nav .tv-nav-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    gap: 4px;
  }

  .tv-dropdown {
    left: 0;
    transform: none;
  }

  .tv-hero-grid {
    grid-template-columns: 1fr;
  }

  .tv-b2b-grid {
    grid-template-columns: 1fr;
  }

  .tv-steps {
    grid-template-columns: 1fr;
  }

  .tv-cat-grid,
  .tv-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .tv-featured-grid {
    grid-template-columns: 1fr;
  }

  .tv-footer-grid {
    grid-template-columns: 1fr;
  }
}

.tv-header-search-panel {
  border-bottom: 1px solid var(--tv-border);
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(14px);
}

.tv-search--panel {
  margin: 10px 0 14px;
  max-width: 720px;
}

/* ── AUTH REDESIGN ── */
.tv-auth-hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: 
    radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(200, 16, 46, 0.05) 0%, transparent 40%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.tv-auth-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-bdr), transparent);
  opacity: 0.5;
}

.tv-auth-container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 10;
}

.tv-auth-glass-card {
  background: rgba(22, 22, 22, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.tv-auth-glass-card:hover {
  border-color: rgba(200, 16, 46, 0.2);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(200, 16, 46, 0.05);
}

.tv-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.tv-auth-title {
  font-family: var(--head);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tv-auth-subtitle {
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* Auth Mode Toggle */
.tv-auth-mode-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.tv-auth-mode-btn {
  flex: 1;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tv-auth-mode-btn.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

/* Segmented Toggle for Account Type */
.tv-segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
  position: relative;
}

.tv-segmented-control label {
  flex: 1;
  position: relative;
  z-index: 2;
}

.tv-segmented-control input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.tv-segmented-control span {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-segmented-control input:checked + span {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tv-segmented-control input:checked + span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 6px;
}

/* Form Styles */
.tv-auth-form-group {
  margin-bottom: 24px;
}

.tv-auth-input-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.tv-auth-input-wrapper {
  position: relative;
}

.tv-auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.tv-auth-input:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
}

.tv-auth-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.tv-auth-submit {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-top: 12px;
}

.tv-auth-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.tv-auth-footer a {
  color: var(--red);
  font-weight: 700;
  margin-left: 4px;
}

.tv-auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive Grid for Vendor Fields */
.tv-auth-vendor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tv-auth-span-2 {
  grid-column: span 2;
}

/* Animations */
@keyframes tvFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tv-auth-glass-card {
  animation: tvFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 640px) {
  .tv-auth-hero {
    padding: 20px 15px;
  }
  .tv-auth-glass-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .tv-auth-vendor-grid {
    grid-template-columns: 1fr;
  }
  .tv-auth-span-2 {
    grid-column: span 1;
  }
  .tv-auth-title {
    font-size: 26px;
  }
}

@media (min-width: 1600px) {
  .tv-auth-container {
    max-width: 600px;
  }
  .tv-auth-title {
    font-size: 40px;
  }
}

/*
 * Sitewide dark form-control overrides (WooCommerce inputs, placeholders,
 * coupon field, etc.) now live in assets/css/dark-controls.css — a single
 * source of truth referenced from `techversa_marketplace_enqueue_dark_controls()`.
 * Don't add new one-off WC form rules here; add them to dark-controls.css so the
 * tokens stay consistent and we win the cascade in one place.
 */


/* ── VENDOR ONBOARDING CARD (Floating Sidebar Style) ── */
.tv-onboarding-card {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-radius: var(--tv-radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  text-align: left;
  max-width: 380px;
  margin-left: auto; /* Float to right */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--red);
}

.tv-onboarding-card::after {
  display: none; /* Remove the old side bar */
}

.tv-onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tv-onboarding-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}

.tv-onboarding-title i {
  color: var(--red);
  font-size: 0.85rem;
}

.tv-onboarding-percentage {
  font-family: var(--head);
  font-weight: 800;
  color: var(--red);
  font-size: 1rem;
}

.tv-onboarding-progress-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}

.tv-onboarding-progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--red), #ff4d4d);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 3px;
}

.tv-onboarding-body p {
  color: var(--tv-muted);
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.tv-onboarding-missing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tv-onboarding-missing-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tv-muted);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.tv-onboarding-missing-item i {
  font-size: 0.7rem;
}

.tv-onboarding-footer {
  display: flex;
  justify-content: flex-start;
}

.tv-onboarding-footer .tv-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* Approval Gate: Hide Dokan's request review button if onboarding is active */
body:has(.tv-onboarding-card) .dokan-store-settings-help,
body:has(.tv-onboarding-card) #dokan-request-support-form,
body:has(.tv-onboarding-card) .dokan-dashboard-header .dokan-btn-theme[href*="request-review"] {
  display: none !important;
}

@media (max-width: 768px) {
  .tv-onboarding-missing-list {
    grid-template-columns: 1fr;
  }
}

/* Hide Brand and Tags in Product Editor (handled automatically or simplified) */
.dokan-dashboard-content .dokan-form-group:has(#product_brand),
.dokan-dashboard-content .dokan-form-group:has(select[name="product_brand[]"]),
.dokan-dashboard-content .dokan-form-group:has(input[name="product_tag"]),
.dokan-dashboard-content .dokan-form-group:has(select[name="product_tag[]"]) {
  display: none !important;
}
