/**
 * TechHome WooCommerce Electronics Storefront Styles
 * Modular external stylesheet for NaviReach theme.
 */

:root {
  --th-bg: #F8FAFC;
  --th-surface: #FFFFFF;
  --th-border: #E2E8F0;
  --th-primary: #0052FF;
  --th-primary-hover: #0041CC;
  --th-primary-soft: #EFF6FF;
  --th-sale: #EF4444;
  --th-amber: #F59E0B;
  --th-success: #10B981;
  --th-success-bg: #ECFDF5;
  --th-navy: #0B1120;
  --th-navy-2: #111827;
  --th-text: #0F172A;
  --th-text-muted: #475569;
  --th-text-subtle: #64748B;
  --th-radius-sm: 8px;
  --th-radius-md: 12px;
  --th-radius-lg: 16px;
  --th-shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06);
  --th-shadow-hover: 0 12px 24px -6px rgba(15, 23, 42, 0.12);
}

body {
  background-color: var(--th-bg);
  color: var(--th-text);
}

/* Global Crisp Light Form Inputs (All States & Autofill) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select,
.input-text,
.form-input,
.form-control {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
  border: 1px solid #CBD5E1;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover,
.input-text:hover,
.form-input:hover,
.form-control:hover {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
.input-text:focus,
.form-input:focus,
.form-control:focus,
input[type="text"]:active,
input[type="email"]:active,
input[type="tel"]:active,
input[type="password"]:active {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #0052FF !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14) !important;
  outline: none !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  -webkit-text-fill-color: #0F172A !important;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

/* Keep Dark Footer Newsletter Input Styled for Dark Navy Footer */
.th-footer input[type="email"],
.th-footer input[type="email"]:hover,
.th-footer input[type="email"]:focus,
.th-footer input[type="email"]:-webkit-autofill {
  background-color: #1E293B !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0 1000px #1E293B inset !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Prevent premature red borders on untouched required fields */
.woocommerce form .form-row.woocommerce-invalid:not(.woocommerce-validated) input.input-text,
.woocommerce form .form-row.woocommerce-invalid:not(.woocommerce-validated) select {
  border-color: #CBD5E1;
}

/* ==========================================================================
   1. Top Utility Bar
   ========================================================================== */
.th-topbar {
  background-color: var(--th-navy);
  color: #CBD5E1;
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.th-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 6px;
  flex-wrap: wrap;
}

.th-topbar__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.th-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  font-weight: 500;
}

.th-topbar__item svg {
  color: #60A5FA;
  flex-shrink: 0;
}

.th-topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.th-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.th-topbar__link:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   2. Main Header
   ========================================================================== */
.th-header {
  background-color: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
  position: sticky;
  top: 0;
  z-index: 90;
}

.th-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-block: 12px;
}

.th-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.th-brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--th-primary);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25);
}

.th-brand__text {
  display: flex;
  flex-direction: column;
}

.th-brand__name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--th-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.th-brand__tagline {
  font-size: 11px;
  color: var(--th-text-subtle);
  font-weight: 500;
}

.th-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.th-search__form {
  display: flex;
  align-items: center;
  background: #F1F5F9;
  border: 1.5px solid var(--th-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.th-search__form:focus-within {
  border-color: var(--th-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.th-search__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--th-text);
  outline: none;
  min-width: 0;
}

.th-search__submit {
  border: 0;
  background: var(--th-primary);
  color: #FFFFFF;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.th-search__submit:hover {
  background: var(--th-primary-hover);
}

.th-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.th-action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--th-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.th-action-link:hover {
  background: #F1F5F9;
  border-color: var(--th-border);
}

.th-action-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--th-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

.th-action-link--cart {
  background: var(--th-primary-soft);
  border-color: rgba(0, 82, 255, 0.2);
  color: var(--th-primary);
}

.th-action-link--cart:hover {
  background: var(--th-primary);
  color: #FFFFFF;
}

.th-action-link--cart:hover .th-action-link__badge {
  background: #FFFFFF;
  color: var(--th-primary);
}

/* ==========================================================================
   3. Category Navigation Bar
   ========================================================================== */
.th-nav-bar {
  background-color: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
}

.th-nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
}

.th-all-cats {
  position: relative;
  flex-shrink: 0;
}

.th-all-cats__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--th-primary);
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.th-all-cats__btn:hover {
  background: var(--th-primary-hover);
}

.th-all-cats__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: none;
  z-index: 100;
}

.th-all-cats.is-open .th-all-cats__dropdown,
.nr-all-cats.is-open .nr-all-cats__dropdown {
  display: block;
}

.th-all-cats__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--th-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.th-all-cats__item:hover {
  background: var(--th-primary-soft);
  color: var(--th-primary);
}

.th-all-cats__count {
  font-size: 11px;
  color: var(--th-text-subtle);
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 999px;
}

.th-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.th-nav-links::-webkit-scrollbar {
  display: none;
}

.th-nav-links a {
  color: var(--th-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  padding-block: 6px;
  transition: color 0.15s ease;
}

.th-nav-links a:hover,
.th-nav-links a.is-active {
  color: var(--th-primary);
}

.th-deals-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FEF2F2;
  color: var(--th-sale);
  border: 1px solid #FECACA;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.th-deals-badge:hover {
  background: var(--th-sale);
  color: #FFFFFF;
}

/* ==========================================================================
   4. Daraz-Style 3-Slide Campaign Hero Carousel
   ========================================================================== */
.th-hero {
  padding-block: 22px 12px;
}

.th-hero-slider.th-campaign-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 20px 44px -16px rgba(15, 23, 42, 0.25);
}

.th-campaign-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
  padding: 48px 76px;
  min-height: 410px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.th-campaign-slide.is-active {
  display: grid;
  animation: thSlideFade 0.45s ease;
}

@keyframes thSlideFade {
  from { opacity: 0.65; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.th-campaign-slide--blue {
  background: radial-gradient(circle at 75% 45%, #06B6D4 0%, #0052FF 45%, #0B1B4D 100%);
}

.th-campaign-slide--purple {
  background: radial-gradient(circle at 75% 45%, #F59E0B 0%, #7C3AED 45%, #2E1065 100%);
}

.th-campaign-slide--orange {
  background: radial-gradient(circle at 75% 45%, #FBBF24 0%, #EA580C 48%, #7C2D12 100%);
}

.th-campaign-slide__content {
  position: relative;
  z-index: 2;
}

.th-campaign-ribbon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.th-campaign-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 12px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.th-campaign-subtitle {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
  max-width: 490px;
}

.th-campaign-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.th-campaign-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.th-campaign-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #FFFFFF;
  color: #0F172A;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.th-campaign-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  color: #0052FF;
}

.th-campaign-slide__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 310px;
}

.th-campaign-waves {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 55%, transparent 72%);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.06), 0 0 0 56px rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.th-campaign-badge {
  position: absolute;
  top: 10px;
  left: -12px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FEF08A, #F59E0B);
  color: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  z-index: 3;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.th-campaign-badge__top {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.th-campaign-badge__val {
  font-size: 22px;
  line-height: 1.05;
}

.th-campaign-badge__bot {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.th-campaign-podium {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-campaign-podium__img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.34));
}

.th-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  transition: background-color 0.15s ease;
}

.th-hero-arrow:hover {
  background: #FFFFFF;
  color: #0F172A;
}

.th-hero-arrow--prev { left: 16px; }
.th-hero-arrow--next { right: 16px; }

.th-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.th-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.th-hero-dot.is-active {
  width: 24px;
  background: #FFFFFF;
}

/* ==========================================================================
   5. Sections, Categories, 5-Col Best Selling Grid & Product Cards
   ========================================================================== */
.th-section {
  padding-block: 28px;
}

.th-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.th-section-head__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--th-text);
  margin: 0;
}

.th-section-head__link {
  color: var(--th-primary);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.th-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.th-cat-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: var(--th-text);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.th-cat-card:hover {
  border-color: var(--th-primary);
  transform: translateY(-2px);
  box-shadow: var(--th-shadow-hover);
}

.th-cat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--th-primary-soft);
  color: var(--th-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.th-cat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-cat-card__name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.th-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.th-tab {
  border: 1px solid var(--th-border);
  background: var(--th-surface);
  color: var(--th-text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.th-tab:hover {
  border-color: var(--th-primary);
  color: var(--th-primary);
}

.th-tab.is-active {
  background: var(--th-primary);
  border-color: var(--th-primary);
  color: #FFFFFF;
}

.th-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.th-product-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--th-shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.th-product-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--th-shadow-hover);
  transform: translateY(-2px);
}

.th-product-card__media {
  position: relative;
  background: #F8FAFC;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 12px;
}

.th-product-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.th-product-card:hover .th-product-card__media img {
  transform: scale(1.04);
}

.th-sale-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--th-sale);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.th-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--th-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--th-text-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.15s ease;
}

.th-wishlist-btn:hover,
.th-wishlist-btn.is-wishlisted {
  color: var(--th-sale);
  border-color: #FECACA;
  background: #FEF2F2;
}

.th-wishlist-btn.is-wishlisted svg {
  fill: var(--th-sale);
}

.th-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.th-product-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-product-card__title a {
  color: var(--th-text);
  text-decoration: none;
}

.th-product-card__title a:hover {
  color: var(--th-primary);
}

.th-product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-bottom: 8px;
}

.th-stars {
  color: var(--th-amber);
  letter-spacing: 1px;
}

.th-review-count {
  color: var(--th-text-subtle);
}

.th-product-card__price {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--th-text);
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.th-product-card__price del {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--th-text-subtle);
}

.th-product-card__price ins {
  text-decoration: none;
  color: var(--th-primary);
}

.th-add-btn {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--th-primary);
  color: #FFFFFF;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.th-add-btn:hover {
  background: var(--th-primary-hover);
}

/* ==========================================================================
   6. Promo Banners (3-col), Trust Bar (4-col), Top Brands (8-col)
   ========================================================================== */
.th-promo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.th-promo-tile {
  border-radius: var(--th-radius-lg);
  padding: 26px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 185px;
  position: relative;
  overflow: hidden;
}

.th-promo-tile--blue { background: linear-gradient(135deg, #0052FF, #1D4ED8); }
.th-promo-tile--navy { background: linear-gradient(135deg, #0B1120, #1E293B); }
.th-promo-tile--teal { background: linear-gradient(135deg, #0F766E, #0D9488); }

.th-promo-tile__badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.th-promo-tile__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #FFFFFF;
}

.th-promo-tile__sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 16px;
}

.th-promo-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--th-text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.th-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.th-trust-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.th-trust-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--th-primary-soft);
  color: var(--th-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.th-trust-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--th-text);
}

.th-trust-card__sub {
  font-size: 12px;
  color: var(--th-text-subtle);
}

/* ==========================================================================
   7. Dark Navy 4-Column Footer
   ========================================================================== */
.th-footer {
  background: var(--th-navy);
  color: #CBD5E1;
  padding-top: 52px;
  padding-bottom: 24px;
  margin-top: 48px;
}

.th-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.th-footer__title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-footer__bio {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94A3B8;
  margin: 12px 0 18px;
}

.th-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.th-footer__list a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.th-footer__list a:hover {
  color: #FFFFFF;
}

.th-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.th-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 13px;
}

.th-newsletter-btn {
  border: 0;
  border-radius: 8px;
  background: var(--th-primary);
  color: #FFFFFF;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.th-footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #94A3B8;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. WooCommerce Shop, Single Product, Cart, Checkout, My Account
   ========================================================================== */
.th-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.th-view-toggle {
  display: inline-flex;
  border: 1px solid var(--th-border);
  border-radius: 8px;
  overflow: hidden;
}

.th-view-btn {
  border: 0;
  background: #FFFFFF;
  color: var(--th-text-subtle);
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.th-view-btn.is-active {
  background: var(--th-primary);
  color: #FFFFFF;
}

.products.nr-products-grid.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.products.nr-products-grid.is-list-view .th-product-card {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.products.nr-products-grid.is-list-view .th-product-card__media {
  width: 160px;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Single Product Gallery & Summary */
.th-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 16px;
  padding: 28px;
}

.th-gallery {
  display: flex;
  gap: 14px;
}

.th-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
  flex-shrink: 0;
}

.th-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1.5px solid var(--th-border);
  background: #F8FAFC;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}

.th-gallery__thumb.is-active {
  border-color: var(--th-primary);
}

.th-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.th-gallery__main {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid var(--th-border);
  border-radius: 14px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.th-gallery__main img {
  max-height: 360px;
  width: auto;
  object-fit: contain;
}

.th-emi-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--th-primary-soft);
  color: var(--th-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.th-key-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.th-key-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--th-text-muted);
}

.th-key-features svg {
  color: var(--th-success);
  flex-shrink: 0;
}

.th-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--th-border);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.th-qty-btn {
  width: 34px;
  height: 38px;
  border: 0;
  background: #F8FAFC;
  color: var(--th-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.th-qty-stepper input.qty {
  width: 44px;
  height: 38px;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.th-single-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.th-single-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--th-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--th-text);
}

/* My Account KPI Cards */
.th-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.th-kpi-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 18px;
}

.th-kpi-card__val {
  font-size: 24px;
  font-weight: 800;
  color: var(--th-primary);
  margin-bottom: 4px;
}

.th-kpi-card__label {
  font-size: 12px;
  color: var(--th-text-subtle);
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   9. Full-Width Page Shell & WooCommerce My Account Dashboard / Login
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.th-page-main {
  width: 100%;
  max-width: none;
  padding-block: 32px 56px;
}

.th-page-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--th-border);
}

.th-page-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--th-text);
  margin: 0;
}

.th-wc-page-wrap {
  width: 100%;
}

.th-page-comments {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--th-border);
}

/* Logged-in My Account 2-Column Dashboard */
.woocommerce-account .woocommerce {
  width: 100%;
}

.woocommerce-account .account-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  width: 100% !important;
}

.woocommerce-account .account-nav,
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--th-surface);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--th-shadow-card);
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

.th-account-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.woocommerce-account .account-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .account-nav__link:hover,
.woocommerce-account .account-nav__link.is-active {
  background: #EFF6FF;
  color: #0052CC;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  min-width: 0 !important;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box !important;
}

/* TechHome E-Commerce Dashboard & Sub-Pages */
.th-account-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.th-account-welcome {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.th-account-welcome__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
}

.th-account-welcome__sub {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.th-account-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0052CC;
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.th-account-cta:hover {
  background: #0041A8;
}

.th-kpi-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.th-kpi-grid--3 .th-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.th-kpi-card__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-kpi-card__link {
  font-size: 13px;
  font-weight: 700;
  color: #0052CC;
  text-decoration: none;
}

.th-account-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 24px;
}

.th-account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.th-account-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.th-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.th-orders-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  padding: 10px 12px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.th-orders-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13.5px;
  color: #0F172A;
}

.th-order-num {
  color: #0052CC;
}

.th-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #EFF6FF;
  color: #0052CC;
}

.th-status-badge--completed {
  background: #ECFDF5;
  color: #15803D;
}

.th-order-view-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #0052CC;
  color: #0052CC;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.th-account-empty {
  text-align: center;
  padding: 24px 12px;
  color: #475569;
}

.th-account-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.th-account-shortcut__body {
  margin: 12px 0 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

.th-account-shortcut__body address,
.th-account-shortcut__body p {
  font-style: normal;
  margin: 0 0 4px;
}

/* TechHome My Account Sub-Pages (Addresses, Edit Account, Orders) */
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-MyAccount-content > .woocommerce-orders-table,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-MyAccount-content > .woocommerce-EditAccountForm,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-MyAccount-content > .woocommerce-order-details,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-MyAccount-content > form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Addresses::before,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Addresses::after {
  display: none !important;
  content: none !important;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Address {
  float: none !important;
  width: 100% !important;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  box-sizing: border-box;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Address-title h2,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Address-title h3 {
  color: #0F172A;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-EditAccountForm label,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-address-fields label {
  display: block;
  color: #0F172A !important;
  font-weight: 600 !important;
  font-size: 13.5px;
  margin-bottom: 6px;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-EditAccountForm input,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-address-fields input,
body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-address-fields select {
  width: 100%;
  height: 44px;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px;
  padding: 10px 14px;
  color: #0F172A !important;
  box-sizing: border-box;
}

body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-MyAccount-content .button[type="submit"] {
  background: #0052CC !important;
  color: #FFFFFF !important;
  border: 0 !important;
  border-radius: 10px;
  padding: 11px 20px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 991px) {
  .woocommerce-account .account-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .th-kpi-grid--3,
  .th-account-shortcuts,
  body:not(.nr-skin-voltedge).woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* Logged-out My Account: 2-Column Login & Register Card Grid */
.woocommerce-account .woocommerce #customer_login.u-columns.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 960px;
  margin: 12px auto 0;
  width: 100%;
}

.woocommerce-account .woocommerce #customer_login .u-column1,
.woocommerce-account .woocommerce #customer_login .u-column2 {
  width: 100%;
  float: none;
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--th-shadow-card);
}

.woocommerce-account .woocommerce #customer_login h2 {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--th-text);
  margin: 0 0 18px;
}

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
  border: 0;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce form .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--th-text);
  margin-bottom: 6px;
}

.woocommerce-account .woocommerce form .input-text {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--th-border);
  border-radius: 10px;
  background: #F8FAFC;
  font-size: 14px;
  color: var(--th-text);
}

.woocommerce-account .woocommerce form .input-text:focus {
  outline: none;
  border-color: var(--th-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button {
  background: var(--th-primary);
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce input.button:hover {
  background: var(--th-primary-hover);
}

@media (max-width: 991px) {
  .woocommerce-account .account-layout,
  .woocommerce-account .woocommerce #customer_login.u-columns.col2-set {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   9B. High-Contrast 5-Field Checkout Page (60% / 40% Layout)
   ========================================================================== */
body.woocommerce-checkout {
  background-color: #F8FAFC;
}

.th-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}

.th-checkout-card,
.th-checkout-summary-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.th-checkout-summary-card {
  position: sticky;
  top: 24px;
}

.th-checkout-card__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 20px;
}

.th-checkout-summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 16px;
}

.th-checkout-count-badge {
  background: #EFF6FF;
  color: #0052FF;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* 5-Field Delivery Form Inputs */
.th-checkout-form .woocommerce-billing-fields h3 {
  display: none;
}

.th-checkout-form .form-row {
  margin-bottom: 16px;
  padding: 0;
}

.th-checkout-form .form-row label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.th-checkout-form .form-row input.input-text,
.th-checkout-form .form-row select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15.5px;
  color: #0F172A;
  background: #FFFFFF;
  border: 1px solid #94A3B8;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.th-checkout-form .form-row input.input-text:focus,
.th-checkout-form .form-row select:focus {
  outline: none;
  border-color: #0052FF;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14);
}

/* Overflow-Safe Order Summary Items */
.th-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}

.th-checkout-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.th-checkout-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-checkout-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.th-checkout-item__info {
  min-width: 0;
}

.th-checkout-item__name {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.th-checkout-item__qty {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 2px;
}

.th-checkout-item__price {
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.th-checkout-totals {
  padding-block: 16px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.th-checkout-totals__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.th-checkout-free-badge {
  background: #ECFDF5;
  color: #059669;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.th-checkout-totals__row--grand {
  padding-top: 10px;
  border-top: 1px dashed #CBD5E1;
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
}

.th-checkout-payment-wrap {
  padding-top: 18px;
}

.th-checkout-payment-wrap__title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 12px;
}

.th-checkout-payment-wrap #payment,
.woocommerce-checkout #payment {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 12px !important;
}

.th-checkout-payment-wrap #payment ul.payment_methods,
.woocommerce-checkout #payment ul.wc_payment_methods {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

#payment ul.wc_payment_methods::before,
#payment ul.wc_payment_methods::after {
  content: none !important;
  display: none !important;
}

.th-checkout-payment-wrap #payment ul.payment_methods li.wc_payment_method,
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 9px 11px !important;
  margin: 0 !important;
  min-height: 40px !important;
  font-size: 13px;
  color: #0F172A !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.th-checkout-payment-wrap #payment ul.payment_methods li.wc_payment_method.is-selected,
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method.is-selected,
.th-checkout-payment-wrap #payment ul.payment_methods li.wc_payment_method:has(input:checked),
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method:has(input:checked) {
  background: #EFF6FF !important;
  border-color: #0052FF !important;
}

.th-checkout-payment-wrap #payment ul.payment_methods li.wc_payment_method input[type="radio"],
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.th-checkout-payment-wrap #payment ul.payment_methods li.wc_payment_method > label,
.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #0F172A !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
}

#payment ul.wc_payment_methods li label img,
#payment ul.payment_methods li label img {
  max-height: 20px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-left: auto !important;
  border-radius: 4px !important;
}

.th-checkout-payment-wrap #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
  background: #FFFFFF !important;
  color: #1E293B !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px !important;
  padding: 14px !important;
  margin: 12px 0 0 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}

.th-checkout-payment-wrap #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

/* Compact Sidebar: Hide inline payment_box inside list; show inside modal */
#payment ul.wc_payment_methods li.wc_payment_method > div.payment_box,
#payment ul.payment_methods li.wc_payment_method > div.payment_box {
  display: none !important;
}

.th-pay-edit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  margin-top: 5px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #DBEAFE !important;
  color: #0052FF !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.th-pay-edit-btn:hover {
  background: #0052FF !important;
  color: #FFFFFF !important;
}

/* Centered Payment Details Popup Modal (inside form.woocommerce-checkout) */
.th-pay-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.th-pay-modal.is-open {
  display: flex;
}

.th-pay-modal__dialog {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.th-pay-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 16px;
}

.th-pay-modal__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.th-pay-modal__title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.th-pay-modal__logo img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.th-pay-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.th-pay-modal__close:hover {
  background: #E2E8F0;
}

.th-pay-modal__body > div.payment_box {
  display: block !important;
  margin: 0 !important;
}

.th-pay-modal__body input[type="text"],
.th-pay-modal__body input[type="tel"],
.th-pay-modal__body input[type="number"],
.th-pay-modal__body select {
  min-height: 44px !important;
}

.th-pay-modal__footer {
  margin-top: 18px;
}

.th-pay-modal__confirm {
  width: 100%;
  min-height: 48px;
  background: #0052FF;
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.th-pay-modal__confirm:hover {
  background: #003ECC;
}

#payment div.payment_box,
#payment div.payment_box p,
#payment div.payment_box li,
#payment div.payment_box ol,
#payment div.payment_box ul,
#payment div.payment_box span,
#payment div.payment_box div,
#payment div.payment_box label {
  color: #1E293B !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  opacity: 1 !important;
}

#payment div.payment_box input[type="text"],
#payment div.payment_box input[type="tel"],
#payment div.payment_box input[type="number"],
#payment div.payment_box select {
  min-height: 42px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
  border: 1px solid #94A3B8 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 6px;
}

#payment div.payment_box input[type="text"]:focus,
#payment div.payment_box input[type="tel"]:focus,
#payment div.payment_box input[type="number"]:focus,
#payment div.payment_box select:focus {
  border-color: #0052FF !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.14) !important;
  outline: none !important;
}

.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p,
.woocommerce-terms-and-conditions-wrapper {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
}

.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-wrapper a {
  color: #0052FF !important;
  font-weight: 600;
  text-decoration: underline;
}

.th-checkout-payment-wrap #place_order {
  width: 100%;
  min-height: 52px;
  background: #0052FF;
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.th-checkout-payment-wrap #place_order:hover {
  background: #003ECC;
}

.th-checkout-trust {
  text-align: center;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  margin-top: 14px;
}

@media (max-width: 991px) {
  .th-checkout-grid {
    grid-template-columns: 1fr;
  }
  .th-checkout-summary-card {
    position: static;
  }
}

/* ==========================================================================
   10. Responsive Breakpoints (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1199px) {
  .th-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .th-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .th-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .th-campaign-slide {
    grid-template-columns: 1fr;
    padding: 36px 56px;
    text-align: center;
  }
  .th-campaign-subtitle {
    margin-inline: auto;
  }
  .th-campaign-pills {
    justify-content: center;
  }
  .th-campaign-badge {
    left: 8px;
    width: 78px;
    height: 78px;
  }
  .th-promo-grid-3 {
    grid-template-columns: 1fr;
  }
  .th-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-single-grid {
    grid-template-columns: 1fr;
  }
  .th-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Crisp White Hamburger Toggle Button & Mobile Slide-Out Drawer */
.th-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: #0F172A;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.th-mobile-toggle .th-mobile-toggle__icon-close {
  display: none;
}

.th-mobile-toggle.is-active .th-mobile-toggle__icon-menu {
  display: none;
}

.th-mobile-toggle.is-active .th-mobile-toggle__icon-close {
  display: block;
}

.th-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(310px, 84vw);
  background: #FFFFFF;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.18);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 99998;
}

.mobile-nav-backdrop.is-open {
  display: block;
}

@media (max-width: 782px) {
  body.admin-bar .th-mobile-drawer {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

.th-mobile-drawer.is-open {
  transform: translateX(0);
}

.th-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
}

.th-mobile-drawer__brand {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.th-mobile-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #0F172A;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.th-mobile-drawer__body {
  padding: 16px 20px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.th-mobile-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-mobile-drawer__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  margin-bottom: 6px;
}

.th-mobile-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0F172A;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.th-mobile-drawer__link--deal {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #EF4444;
}

.th-mobile-drawer__count {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #FFFFFF;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
}

.th-mobile-drawer__quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.th-mobile-quick-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #0052FF;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 767px) {
  .th-topbar,
  .th-nav-bar {
    display: none !important;
  }
  .th-header__inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 8px !important;
    min-height: auto !important;
    padding: 10px 14px !important;
  }
  .site-branding {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  .th-brand {
    min-width: 0;
    max-width: 100%;
    gap: 8px;
  }
  .th-brand__icon {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
  }
  .th-brand__text {
    min-width: 0;
    overflow: hidden;
  }
  .th-brand__tagline {
    display: none !important;
  }
  .th-brand__name {
    display: block;
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .th-header__actions {
    order: 2 !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-left: 0 !important;
  }
  .th-action-link,
  .th-action-link--shop,
  .th-action-link__label {
    display: none !important;
  }
  .th-mobile-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
  }
  .th-search {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .th-search__form {
    height: 40px !important;
  }
  .th-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .th-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .th-trust-grid,
  .th-footer-grid,
  .th-kpi-grid {
    grid-template-columns: 1fr;
  }
  .th-gallery {
    flex-direction: column-reverse;
  }
  .th-gallery__thumbs {
    flex-direction: row;
    width: 100%;
  }
}

/* 360px - 480px Real-Phone Header, Icon & Hero CTA Fix */
@media (max-width: 480px) {
  .th-header__inner {
    padding: 8px 10px !important;
    gap: 8px 4px !important;
  }
  .site-branding {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .th-brand__icon {
    width: 30px !important;
    height: 30px !important;
    flex-shrink: 0 !important;
  }
  .th-brand__name {
    font-size: 14.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .th-header__actions {
    flex: 0 0 auto !important;
    gap: 4px !important;
  }
  .th-mobile-toggle {
    height: 38px !important;
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  .th-header__actions svg,
  .th-action-link svg,
  .th-mobile-toggle svg {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 420px) {
  .th-campaign-cta {
    white-space: nowrap !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
  }
}
