/*
Theme Name: WPiHub
Theme URI: https://wpihub.com
Author: WPiHub
Author URI: https://wpihub.com
Description: Fast, SEO-optimized WordPress plugin & theme marketplace. Built for developers and creators worldwide. Instant delivery, license system, free tools included.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpihub
Tags: e-commerce, marketplace, plugins, themes, digital-products, responsive, seo, fast
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
============================================= */
:root {
  --clr-bg: #ffffff;
  --clr-surface: #f8f9fa;
  --clr-border: #e9ecef;
  --clr-text: #1b1b1b;
  --clr-text-muted: #6b7280;
  --clr-primary: #6c2bd9;
  --clr-primary-hover: #5b21b6;
  --clr-primary-light: #f5f3ff;
  --clr-accent: #7c3aed;
  --clr-accent-light: #ede9fe;
  --clr-danger: #dc2626;
  --clr-warning: #d97706;
  --clr-yellow: #fef3c7;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
  --shadow-card: 0 2px 8px rgba(37,99,235,.06), 0 0 0 1px rgba(37,99,235,.04);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 350ms cubic-bezier(.4,0,.2,1);

  --container: 1200px;
  --gutter: 1.5rem;
  --header-h: 64px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  letter-spacing: -0.01em;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
input, button, textarea, select { font: inherit; }

/* =============================================
   LAYOUT
============================================= */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--clr-text);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.site-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--clr-primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
}

.site-logo:hover { text-decoration: none; color: var(--clr-primary); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: .25rem; }

.site-nav a {
  color: var(--clr-text);
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.current-menu-item {
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--clr-text);
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 60%, #f0fdf4 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: var(--clr-text);
  margin-bottom: 1rem;
  max-width: 780px;
  margin-inline: auto;
}

.hero h1 span { color: var(--clr-primary); }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--clr-text); }
.hero-stat span { font-size: .8rem; color: var(--clr-text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--clr-primary-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary-light);
  text-decoration: none;
  color: var(--clr-primary);
}

.btn-sm { font-size: .8rem; padding: .5rem 1rem; }
.btn-lg { font-size: 1rem; padding: .85rem 2rem; }
.btn-full { width: 100%; }

.btn-buy {
  background: var(--clr-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,.25);
}
.btn-buy:hover {
  background: #047857;
  color: #fff;
  box-shadow: 0 4px 16px rgba(5,150,105,.35);
  transform: translateY(-1px);
  text-decoration: none;
}

/* =============================================
   FILTER BAR
============================================= */
.filter-bar {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 2rem;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  text-decoration: none;
}

.filter-sort select {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--clr-text);
  cursor: pointer;
}

/* =============================================
   PRODUCT GRID
============================================= */
.products-section {
  padding: 1rem 0 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.products-count {
  font-size: .85rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Product Card */
.product-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--clr-surface);
  aspect-ratio: 16/10;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.card-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: var(--clr-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 100px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.card-badge.badge-sale { background: var(--clr-danger); }
.card-badge.badge-new { background: var(--clr-accent); }
.card-badge.badge-free { background: var(--clr-warning); }

.card-body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.card-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.card-title:hover { color: var(--clr-primary); text-decoration: none; }

.card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  color: var(--clr-warning);
  font-weight: 600;
}

.card-downloads {
  font-size: .75rem;
  color: var(--clr-text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  border-top: 1px solid var(--clr-border);
  background: var(--clr-surface);
  margin-top: auto;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--clr-text);
}

.price-original {
  font-size: .8rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}

.price-free { color: var(--clr-accent); font-weight: 800; }

/* =============================================
   PRODUCT SINGLE PAGE — PROFESSIONAL REDESIGN
============================================= */

/* ── Page wrapper ── */
.product-single {
  padding: 0 0 5rem;
  background: #fafafa;
}

/* ── Top hero band ── */
.product-single-hero {
  background: linear-gradient(135deg, #1a0533 0%, #2d0a5e 50%, #3b0f6e 100%);
  padding: 2rem 0 0;
  position: relative;
  overflow: hidden;
}
.product-single-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(124,58,237,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(109,40,217,.20) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Two-column layout ── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: 2rem;
}

/* ── LEFT: Gallery column ── */
.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: none;
  margin-bottom: 1rem;
  aspect-ratio: 16/10;
  background: #111;
  box-shadow: 0 24px 60px rgba(0,0,0,.30), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
}
.gallery-main::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  pointer-events: none;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-main:hover img { transform: scale(1.015); }

.gallery-thumbs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  width: 76px;
  height: 52px;
  background: var(--clr-surface);
  flex-shrink: 0;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.gallery-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery-thumb.active { border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(108,43,217,.18); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Description below gallery */
.product-description-block {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 2rem 2.25rem;
  margin-top: 1.75rem;
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.product-description-block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -.025em;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.product-description-block h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background: var(--clr-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.product-description-block .product-description {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.8;
}
.product-description-block .product-description h2,
.product-description-block .product-description h3 {
  color: var(--clr-text);
  margin: 1.4rem 0 .6rem;
  font-size: 1rem;
  font-weight: 700;
}
.product-description-block .product-description h2::before,
.product-description-block .product-description h3::before { display: none; }
.product-description-block .product-description p { margin-bottom: .9rem; }
.product-description-block .product-description ul,
.product-description-block .product-description ol {
  padding-left: 1.4rem;
  margin-bottom: .9rem;
}
.product-description-block .product-description li { margin-bottom: .4rem; }
.product-description-block .product-description strong { color: var(--clr-text); font-weight: 700; }

/* ── RIGHT: Info + Buy panel ── */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Floating sticky card */
.product-info-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--clr-border);
  box-shadow: 0 8px 40px rgba(108,43,217,.10), var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

/* Card top: purple header strip */
.product-info-header {
  background: linear-gradient(135deg, #1a0533 0%, #2d0a5e 100%);
  padding: 1.5rem 1.75rem 1.35rem;
  position: relative;
}
.product-info-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.card-category {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  padding: .3rem .7rem;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: .9rem;
  transition: background var(--transition), color var(--transition);
}
.card-category:hover { background: rgba(255,255,255,.18); color: #fff; }

.product-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.25;
  color: #fff;
  margin-bottom: .75rem;
}

/* Rating row in header */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.stars { color: #fbbf24; font-size: .95rem; letter-spacing: .05em; }
.rating-count { font-size: .8rem; color: rgba(255,255,255,.65); }
.sales-badge {
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: .2rem .65rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
}

/* Short description */
.product-short-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-top: .65rem;
}

/* Card body: buy box */
.product-info-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

/* Buy Box */
.buy-box {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

/* Price area */
.buy-box-price {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.buy-price-main {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--clr-text);
  letter-spacing: -.05em;
  line-height: 1;
}
.buy-price-original {
  font-size: .95rem;
  color: var(--clr-text-muted);
  text-decoration: line-through;
}
.buy-discount-badge {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .28rem .65rem;
  border-radius: 100px;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(220,38,38,.35);
}

/* One-time badge */
.buy-onetime-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  color: #059669;
  font-weight: 600;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: .45rem .8rem;
}
.buy-onetime-badge svg { flex-shrink: 0; }

/* Coupon */
.coupon-field {
  display: flex;
  gap: .5rem;
}
.coupon-field input {
  flex: 1;
  padding: .62rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fafafa;
}
.coupon-field input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(108,43,217,.10);
  background: #fff;
}
.coupon-field input::placeholder { color: #9ca3af; }
.coupon-field button { flex-shrink: 0; }

/* Buy button override for full-width */
.btn-buy {
  background: linear-gradient(135deg, #6c2bd9 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: .95rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: var(--radius-lg) !important;
  width: 100% !important;
  text-align: center !important;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(108,43,217,.40) !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition) !important;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
}
.btn-buy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.btn-buy:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(108,43,217,.55) !important;
  background: linear-gradient(135deg, #5b21b6 0%, #6c2bd9 100%) !important;
}
.btn-buy:active { transform: translateY(0) !important; }

/* Demo / outline button */
.btn-outline {
  border: 2px solid var(--clr-border) !important;
  color: var(--clr-text) !important;
  background: #fff !important;
  padding: .75rem 1.5rem !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-lg) !important;
  width: 100% !important;
  text-align: center !important;
  transition: border-color var(--transition), color var(--transition), background var(--transition) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .45rem !important;
  text-decoration: none !important;
}
.btn-outline:hover {
  border-color: var(--clr-primary) !important;
  color: var(--clr-primary) !important;
  background: var(--clr-primary-light) !important;
}

/* Trust badges */
.buy-trust-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.1rem;
  background: #f9f8ff;
  border-radius: var(--radius-md);
  border: 1px solid #ede9fe;
}
.buy-trust {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: #4b5563;
  font-weight: 500;
}
.buy-trust svg { color: var(--clr-primary); flex-shrink: 0; }

/* Divider inside card */
.product-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: .25rem 0;
}

/* ── Features section ── */
.features-section {
  padding: 1.1rem 0 .25rem;
}
.features-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
  letter-spacing: -.02em;
  color: var(--clr-text);
}
.features-list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .85rem;
  color: #374151;
  line-height: 1.55;
}
.feature-check {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #6c2bd9, #7c3aed);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: .62rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(108,43,217,.25);
}

/* Meta strip at bottom of card */
.product-meta-strip {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .75rem;
  color: var(--clr-text-muted);
  padding-top: .75rem;
  border-top: 1px solid var(--clr-border);
}
.product-meta-strip a { color: var(--clr-primary); }

/* ── Legacy compat ── */
.product-description { font-size: .93rem; color: #4b5563; line-height: 1.8; }
.product-breadcrumb {
  font-size: .8rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 1rem var(--gutter);
  max-width: var(--container);
  margin-inline: auto;
  background: transparent;
}
.product-breadcrumb a { color: var(--clr-text-muted); }
.product-breadcrumb a:hover { color: var(--clr-primary); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
  .product-info-card { position: static; }
}
@media (max-width: 768px) {
  .product-layout { padding-top: 1.25rem; gap: 1.5rem; }
  .product-info-header { padding: 1.25rem 1.25rem 1.1rem; }
  .product-info-body { padding: 1.25rem; }
  .product-title { font-size: 1.2rem; }
  .buy-price-main { font-size: 2rem; }
  .product-description-block { padding: 1.25rem; }
  .gallery-main { border-radius: var(--radius-lg); }
}
@media (max-width: 480px) {
  .product-info-header { padding: 1rem 1rem .9rem; }
  .product-info-body { padding: 1rem; }
  .buy-price-main { font-size: 1.75rem; }
  .btn-buy { font-size: .92rem !important; padding: .85rem 1.25rem !important; }
}

/* =============================================
   PAYMENT / DOWNLOAD MODAL
============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--clr-bg);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  transform: translateY(16px) scale(.97);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.modal p { font-size: .9rem; color: var(--clr-text-muted); margin-bottom: 1.25rem; }

/* =============================================
   CATEGORIES SECTION
============================================= */
.categories-section { padding: 3rem 0; background: var(--clr-surface); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--clr-text);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
}

.category-card:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.category-card h3 { font-size: .95rem; font-weight: 700; }
.category-card span { font-size: .8rem; color: var(--clr-text-muted); }
.category-card:hover span { color: var(--clr-primary); opacity: .7; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: var(--clr-text);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a {
  color: #94a3b8;
  font-size: .85rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: #94a3b8; font-size: .82rem; text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; }

/* Powered by Razorpay badge */
.razorpay-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: .35rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  color: #94a3b8;
}

/* =============================================
   NOTICES / ALERTS
============================================= */
.notice {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1rem;
}
.notice-success { background: var(--clr-accent-light); color: #065f46; border-left: 3px solid var(--clr-accent); }
.notice-error { background: #fef2f2; color: #991b1b; border-left: 3px solid var(--clr-danger); }
.notice-info { background: var(--clr-primary-light); color: #1e40af; border-left: 3px solid var(--clr-primary); }

/* =============================================
   WOOCOMMERCE OVERRIDES
============================================= */
.woocommerce .woocommerce-breadcrumb { display: none; }

/* Remove default WC styles we override */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .6rem .9rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  outline: none;
  transition: border-color var(--transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--clr-primary);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--clr-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  padding: .65rem 1.4rem !important;
  transition: all var(--transition) !important;
  border: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--clr-primary-hover) !important; }

.woocommerce .woocommerce-message {
  border-top-color: var(--clr-accent);
  background: var(--clr-accent-light);
  color: #065f46;
}

.woocommerce .woocommerce-error {
  border-top-color: var(--clr-danger);
  background: #fef2f2;
  color: #991b1b;
}

/* WC Product table */
.woocommerce table.shop_table {
  border: 1.5px solid var(--clr-border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
}

/* =============================================
   SEARCH
============================================= */
.search-bar {
  position: relative;
  max-width: 400px;
}

.search-bar input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.75rem;
  border: 1.5px solid var(--clr-border);
  border-radius: 100px;
  font-size: .9rem;
  outline: none;
  background: var(--clr-surface);
  transition: all var(--transition);
}

.search-bar input:focus {
  border-color: var(--clr-primary);
  background: var(--clr-bg);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  pointer-events: none;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; }

  .site-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; padding: 1.5rem; gap: .25rem; overflow-y: auto; z-index: 99; }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; padding: .75rem 1rem; border-radius: var(--radius-sm); }

  .nav-toggle { display: block; }

  .hero { padding: 3rem 0 2.5rem; }

  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .filter-inner { flex-direction: column; align-items: flex-start; }

  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
  .hero h1 { font-size: 1.75rem; }
}

/* =============================================
   UTILITIES
============================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--clr-text-muted); }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.d-none { display: none !important; }

/* =============================================
   SKELETON LOADER
============================================= */
@keyframes shimmer { to { background-position: -200% 0; } }

.skeleton {
  background: linear-gradient(90deg, var(--clr-surface) 25%, var(--clr-border) 50%, var(--clr-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* =============================================
   PRINT
============================================= */
@media print {
  .site-header, .site-footer, .filter-bar, .btn { display: none; }
  .product-layout { grid-template-columns: 1fr; }
}

/* =============================================
   AUTO NAV — Dynamic category links
============================================= */
.site-nav a {
    position: relative;
    font-size: .9rem;
    font-weight: 500;
    color: var(--clr-text);
    padding: .35rem 0;
    transition: color .2s;
    white-space: nowrap;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-primary);
    border-radius: 2px;
    transition: width .25s;
}
.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--clr-primary); }
.site-nav a:hover::after,
.site-nav a.current-menu-item::after { width: 100%; }

/* =============================================
   USER MENU DROPDOWN
============================================= */
.dm-user-menu { position: relative; display: flex; align-items: center; }

.dm-user-btn {
    display: flex; align-items: center; gap: .45rem;
    background: none; border: none; cursor: pointer;
    font-size: .875rem; font-weight: 500;
    color: var(--clr-text);
    padding: .4rem .7rem;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.dm-user-btn:hover { background: var(--clr-surface); color: var(--clr-primary); }

.dm-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--clr-primary-light);
    flex-shrink: 0;
}

.dm-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    padding: .5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s;
    z-index: 999;
}
.dm-user-dropdown.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dm-dropdown-header {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem .75rem .5rem;
}
.dm-dropdown-header strong { display: block; font-size: .9rem; }
.dm-dropdown-header small { color: var(--clr-text-muted); font-size: .8rem; }

.dm-dropdown-divider { height: 1px; background: var(--clr-border); margin: .4rem 0; }

.dm-dropdown-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .6rem .75rem;
    border-radius: var(--radius);
    font-size: .875rem; color: var(--clr-text);
    transition: background .15s, color .15s;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.dm-dropdown-item:hover { background: var(--clr-primary-light); color: var(--clr-primary); }
.dm-dropdown-item.dm-logout { color: #ef4444; }
.dm-dropdown-item.dm-logout:hover { background: #fef2f2; }

/* =============================================
   AUTH MODAL
============================================= */
.dm-auth-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(4px);
    display: grid; place-items: center;
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.dm-auth-overlay.open { opacity: 1; pointer-events: all; }

.dm-auth-box {
    background: #fff;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    width: 100%; max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    transform: scale(.96) translateY(10px);
    transition: transform .25s;
}
.dm-auth-overlay.open .dm-auth-box { transform: scale(1) translateY(0); }

.dm-auth-close {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--clr-surface, #f1f5f9);
    border: none; border-radius: 50%;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    cursor: pointer; color: var(--clr-text-muted, #64748b);
    transition: background .2s, color .2s;
}
.dm-auth-close:hover { background: #e2e8f0; color: var(--clr-text, #0f172a); }

.dm-auth-tabs {
    display: flex; gap: .25rem;
    background: var(--clr-surface, #f1f5f9);
    border-radius: var(--radius, 10px);
    padding: .3rem;
    margin-bottom: 1.5rem;
}
.dm-auth-tab {
    flex: 1; padding: .55rem 1rem;
    border: none; background: none;
    border-radius: calc(var(--radius, 10px) - 2px);
    font-size: .9rem; font-weight: 600;
    color: var(--clr-text-muted, #64748b);
    cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.dm-auth-tab.active {
    background: #fff;
    color: var(--clr-primary, #2563eb);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.dm-auth-panel { display: none; }
.dm-auth-panel.active { display: block; }

.dm-form-row { margin-bottom: 1rem; }
.dm-form-row label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.dm-input {
    width: 100%; padding: .7rem 1rem;
    border: 1.5px solid var(--clr-border, #e2e8f0);
    border-radius: var(--radius, 10px);
    font-size: .9rem; color: var(--clr-text, #0f172a);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
}
.dm-input:focus {
    border-color: var(--clr-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.dm-pass-wrap { position: relative; }
.dm-pass-wrap .dm-input { padding-right: 2.8rem; }
.dm-pass-toggle {
    position: absolute; right: .75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--clr-text-muted, #64748b);
    cursor: pointer; padding: .2rem;
    transition: color .2s;
}
.dm-pass-toggle:hover { color: var(--clr-primary, #2563eb); }

.dm-pass-strength {
    margin-top: .4rem; font-size: .78rem; font-weight: 600;
    height: 1rem;
}
.dm-pass-strength.weak   { color: #ef4444; }
.dm-pass-strength.medium { color: #f59e0b; }
.dm-pass-strength.strong { color: #22c55e; }

.dm-auth-msg {
    padding: .65rem 1rem;
    border-radius: var(--radius, 10px);
    font-size: .875rem;
    margin-bottom: 1rem;
    display: none;
}
.dm-auth-msg.error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; display: block; }
.dm-auth-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; display: block; }

.dm-link {
    background: none; border: none; padding: 0;
    color: var(--clr-primary, #2563eb); font-weight: 600;
    cursor: pointer; font-size: inherit;
    text-decoration: underline; text-underline-offset: 2px;
}
.dm-link:hover { text-decoration: none; }

/* =============================================
   MY ACCOUNT PAGE
============================================= */
.dm-account-page { max-width: 900px; margin: 0 auto; padding: 2rem 0 4rem; }

.dm-account-header {
    display: flex; align-items: center; gap: 1.25rem;
    background: var(--clr-surface, #f8fafc);
    border: 1px solid var(--clr-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dm-orders-table-wrap { overflow-x: auto; border-radius: var(--radius-lg, 16px); border: 1px solid var(--clr-border, #e2e8f0); }
.dm-orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dm-orders-table th {
    background: var(--clr-surface, #f8fafc);
    padding: .85rem 1rem;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--clr-text-muted, #64748b);
    border-bottom: 1px solid var(--clr-border, #e2e8f0);
}
.dm-orders-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--clr-border, #e2e8f0);
    vertical-align: middle;
}
.dm-orders-table tr:last-child td { border-bottom: none; }
.dm-orders-table tr:hover td { background: var(--clr-surface, #f8fafc); }

/* =============================================
   RESPONSIVE ADJUSTMENTS
============================================= */
@media (max-width: 768px) {
    .dm-user-name { display: none; }
    .dm-auth-box { margin: 1rem; }
    .dm-account-header { flex-direction: column; align-items: flex-start; }
    .dm-account-header .btn { width: 100%; text-align: center; margin-left: 0 !important; }
}

/* =============================================
   TYPOGRAPHY OVERHAUL — Neil Patel / Inter Style
   Clean, readable, professional
============================================= */

/* ── Headings ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--clr-text);
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem);    font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em;  }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
h5 { font-size: 1rem;    font-weight: 600; }
h6 { font-size: .9rem;   font-weight: 600; }

/* ── Body text ─────────────────────────────── */
p {
  font-size: 1rem;
  line-height: 1.78;
  color: #374151;
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

/* ── Article / blog content ─────────────────── */
.entry-content p,
.post-content p,
.product-description p,
.wpi-prose p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 1.25rem;
}

.entry-content h2,
.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: .875rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #f3f4f6;
}

.entry-content h3,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: .625rem;
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li,
.post-content li {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #374151;
  margin-bottom: .4rem;
}

/* ── Links ─────────────────────────────────── */
a {
  color: var(--clr-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--clr-primary-hover); text-decoration: underline; }

.entry-content a,
.post-content a {
  color: var(--clr-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ── Nav links ──────────────────────────────── */
.nav-link,
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #374151;
}

/* ── Hero text refinement ───────────────────── */
.hero-title,
.page-hero h1,
.wpi-tools-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #111827;
}

.hero-subtitle,
.page-hero p,
.wpi-tools-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: #6b7280;
  font-weight: 400;
}

/* ── Section headings ───────────────────────── */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  line-height: 1.65;
  font-weight: 400;
  max-width: 600px;
  margin-inline: auto;
}

/* ── Card text ──────────────────────────────── */
.card-title,
.product-card h3,
.product-card .product-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: #111827;
}

.card-desc,
.product-card p {
  font-size: .875rem;
  line-height: 1.65;
  color: #6b7280;
}

/* ── Buttons ────────────────────────────────── */
.btn,
button.wpi-btn,
.wpi-btn {
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ── Labels / badges ────────────────────────── */
.badge,
.wpi-tag,
.product-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Prices ─────────────────────────────────── */
.price,
.product-price,
.wpi-price {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--clr-primary);
}

/* ── Form labels & inputs ───────────────────── */
label {
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.005em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea,
select {
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: #111827;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* ── Utility typography ─────────────────────── */
.text-xs  { font-size: .75rem;  }
.text-sm  { font-size: .875rem; }
.text-base{ font-size: 1rem;    }
.text-lg  { font-size: 1.125rem;}
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem;  }

.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold{ font-weight: 800;}

.text-muted   { color: #6b7280; }
.text-dark    { color: #111827; }
.text-primary { color: var(--clr-primary); }

.leading-tight  { line-height: 1.2; }
.leading-snug   { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed{ line-height: 1.75; }
.leading-loose  { line-height: 2; }

/* ── Product page description typography ────── */
.woocommerce .product .woocommerce-product-details__short-description,
.woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.78;
  color: #374151;
}

.woocommerce .product .woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
}

/* ── Tool cards inner text ──────────────────── */
.wpi-tool-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
}

.wpi-tool-card p.desc {
  font-size: .9375rem;
  line-height: 1.7;
  color: #6b7280;
}

.wpi-metric strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.wpi-metric span {
  font-size: .75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  color: #9ca3af;
}

/* ── Footer text ────────────────────────────── */
.site-footer {
  font-size: .875rem;
  line-height: 1.7;
}

.site-footer h4,
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.site-footer a,
.footer-col a {
  font-size: .875rem;
  font-weight: 400;
  color: #9ca3af;
  text-decoration: none;
  transition: color .2s;
}

.site-footer a:hover,
.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Blockquotes ────────────────────────────── */
blockquote {
  border-left: 3px solid var(--clr-primary);
  padding: .875rem 1.25rem;
  margin: 1.5rem 0;
  background: #f8f7ff;
  border-radius: 0 8px 8px 0;
}
blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #374151;
  font-weight: 500;
}

/* ── Code ───────────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: #f3f4f6;
  padding: .15em .4em;
  border-radius: 4px;
  color: #6c2bd9;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ── Table text ─────────────────────────────── */
table { font-size: .9375rem; }
th    { font-weight: 600; letter-spacing: -0.01em; color: #111827; }
td    { color: #374151; }


/* =============================================
   PRODUCT GRID & CARDS — COMPLETE REDESIGN
   Ghumshuda 2-col fix, proper 3/4 col layout
============================================= */

/* ── Products Grid — 3 col default, 4 col on wide ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: .875rem;
  }
}

/* ── Product Card — Refined ── */
.product-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.product-card:hover {
  border-color: #6c2bd9;
  box-shadow: 0 8px 32px rgba(108,43,217,.13);
  transform: translateY(-4px);
}

/* ── Card Image ── */
.card-thumb {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.product-card:hover .card-thumb img {
  transform: scale(1.05);
}

/* Placeholder when no image */
.card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  font-size: 2.5rem;
}

/* ── Badges ── */
.card-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  font-size: .68rem;
  font-weight: 800;
  padding: .25rem .65rem;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(4px);
  color: #fff;
}

.card-badge.badge-new  { background: #6c2bd9; }
.card-badge.badge-sale { background: #ef4444; }
.card-badge.badge-free { background: #059669; }
.card-badge.badge-hot  { background: #f97316; }

/* ── Card Body ── */
.card-body {
  padding: 1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.card-category {
  font-size: .7rem;
  font-weight: 700;
  color: #6c2bd9;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-size: .975rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color .2s;
}

.card-title:hover {
  color: #6c2bd9;
  text-decoration: none;
}

.card-desc {
  font-size: .825rem;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Rating row */
.card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .1rem;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: .75rem;
  color: #f59e0b;
  font-weight: 600;
}

.card-downloads {
  font-size: .73rem;
  color: #9ca3af;
}

/* ── Card Footer ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.1rem;
  border-top: 1px solid #f3f4f6;
  background: #fafafa;
  margin-top: auto;
  gap: .5rem;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.price-original {
  font-size: .8rem;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
}

.price-discount {
  font-size: .7rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  padding: .15rem .45rem;
  border-radius: 100px;
}

.price-free {
  font-size: 1.1rem;
  font-weight: 800;
  color: #059669;
}

/* Buy button in card */
.card-footer .btn,
.card-footer .btn-primary,
.card-footer a.button {
  font-size: .8rem;
  font-weight: 700;
  padding: .5rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
  background: #6c2bd9;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.card-footer .btn:hover,
.card-footer a.button:hover {
  background: #5b21b6;
  transform: scale(1.03);
  text-decoration: none;
  color: #fff;
}

/* ── Archive page layout — filter + sort bar ── */
.filter-bar {
  margin-bottom: 1.5rem;
  padding: .875rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid #e5e7eb;
  color: #374151;
  background: #fff;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.filter-tab:hover,
.filter-tab.active {
  background: #6c2bd9;
  border-color: #6c2bd9;
  color: #fff;
  text-decoration: none;
}

/* Sort dropdown */
.sort-select {
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem .875rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  outline: none;
}

/* Products count label */
.products-count {
  font-size: .875rem;
  color: #9ca3af;
  font-weight: 400;
}

/* ── No products placeholder ── */
.no-products {
  text-align: center;
  padding: 4rem 2rem;
  color: #9ca3af;
}

.no-products h3 {
  font-size: 1.15rem;
  color: #374151;
  margin-bottom: .5rem;
}

/* ── WooCommerce overrides for product grid ── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

@media (min-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

.woocommerce ul.products li.product {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

/* ── Archive header row (title + count) ── */
.archive-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.archive-header-row h1,
.archive-header-row .section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0;
}

/* ── RDS product grid (custom post type) ── */
.rds-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1280px) {
  .rds-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .rds-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .rds-products-grid { grid-template-columns: 1fr; }
}

/* =============================================
   SINGLE BLOG POST — professional reading layout
============================================= */

:root {
  --post-width: 780px;
  --post-img-width: 1040px;
}

@media (min-width: 1440px) {
  :root {
    --post-width: 860px;
    --post-img-width: 1140px;
  }
}

/* ── Breadcrumb spacing tweak when used on posts/pages ── */
.single-post + .product-breadcrumb,
article + .product-breadcrumb { margin-top: 0; }

/* ── Header band ── */
.single-post-header {
  padding: 2.5rem 0 2rem;
}

.single-post-header-inner {
  max-width: var(--post-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.post-category-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  padding: .3rem .75rem;
  border-radius: 100px;
  text-decoration: none;
  margin-bottom: 1rem;
}
.post-category-badge:hover { text-decoration: none; background: var(--clr-accent-light); }

.single-post-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 1rem;
}

.single-post-excerpt {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .25rem;
}

.post-author-avatar {
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.post-author-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.post-author-name {
  font-size: .9rem;
  font-weight: 700;
  color: #111827;
}

.post-meta-sub {
  font-size: .82rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.post-meta-sub .dot { color: var(--clr-border); }

/* ── Featured image ── */
.single-post-featured-image {
  max-width: var(--post-img-width);
  margin: 0 auto 2.5rem;
  padding-inline: var(--gutter);
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ── Body / prose column ── */
.single-post-body {
  max-width: var(--post-width);
  margin-inline: auto;
  padding: 0 var(--gutter) 3rem;
}

.single-page .single-post-body { padding-top: 1rem; }

/* ── Rich content elements inside entry-content ── */
.entry-content { color: #374151; }

.entry-content img,
.entry-content figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.75rem auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.entry-content figure { margin: 1.75rem 0; }
.entry-content figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--clr-text-muted);
  margin-top: .5rem;
}

.entry-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--clr-primary);
  background: var(--clr-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: #374151;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: .15em .4em;
}

.entry-content pre {
  background: #1b1b1b;
  color: #f3f4f6;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.75rem 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; }

.entry-content strong { color: #111827; font-weight: 700; }

/* Tables — wrapped + responsive */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: .9375rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
}

.entry-content table thead {
  background: var(--clr-surface);
}

.entry-content table th,
.entry-content table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
}

.entry-content table th {
  font-weight: 700;
  color: #111827;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.entry-content table tr:last-child td { border-bottom: none; }

.page-links {
  margin: 2rem 0;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.page-links a {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: .25rem .65rem;
  text-decoration: none;
}

/* ── Tags ── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--clr-border);
}

.post-tag {
  font-size: .82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  padding: .35rem .9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover {
  color: #fff;
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  text-decoration: none;
}

/* ── Author bio box ── */
.author-bio-box {
  display: flex;
  gap: 1.1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.author-bio-avatar {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.author-bio-content { display: flex; flex-direction: column; gap: .15rem; }

.author-bio-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-text-muted);
  font-weight: 600;
}

.author-bio-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.author-bio-text {
  font-size: .9rem;
  line-height: 1.65;
  color: #4b5563;
  margin-top: .4rem;
  margin-bottom: 0;
}

/* ── Prev / next nav ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}
.post-nav-link:hover {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.post-nav-next { text-align: right; align-items: flex-end; grid-column: 2; }

.post-nav-dir {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-primary);
}

.post-nav-title {
  font-size: .92rem;
  font-weight: 600;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Related posts ── */
.related-posts-section {
  padding: 3rem 0 4rem;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}

.related-posts-grid .product-card { text-decoration: none; }
.related-posts-grid .card-excerpt { display: none; }

/* ── Comments wrapper ── */
.single-post-comments {
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

/* ── Card fallback thumb (no featured image) ── */
.card-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-border);
  background: linear-gradient(135deg, var(--clr-surface), #eef0f3);
}

.card-excerpt {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--clr-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* =============================================
   BLOG ARCHIVE / LISTING
============================================= */

.blog-archive-hero {
  padding: 2.75rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface);
}

.blog-archive-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: .5rem;
}

.blog-archive-hero p {
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.blog-archive-section { padding: 3rem 0 4rem; }

.blog-archive-grid .product-card { text-decoration: none; }

.blog-archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.blog-archive-pagination .nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.blog-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .85rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all var(--transition);
}

.blog-archive-pagination .page-numbers.current {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.blog-archive-pagination .page-numbers:hover:not(.current) {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  text-decoration: none;
}

.blog-archive-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.blog-archive-empty h2 { margin-bottom: .5rem; }
.blog-archive-empty p { color: var(--clr-text-muted); margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .single-post-header { padding: 1.75rem 0 1.5rem; }
  .single-post-featured-image { margin-bottom: 1.75rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { grid-column: 1; text-align: left; align-items: flex-start; }
  .author-bio-box { flex-direction: column; }
  .entry-content table { font-size: .875rem; }
}

/* =============================================
   COMMENTS — professional styling for WP core
   comment_form() + wp_list_comments() markup
============================================= */

.single-post-comments {
  max-width: var(--post-width);
}

/* ── Existing comments list ── */
.comments-title,
.comment-reply-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 1.5rem;
}

.comment-reply-title small {
  font-size: .8rem;
  font-weight: 500;
  margin-left: .5rem;
}
.comment-reply-title small a {
  color: var(--clr-text-muted);
  text-decoration: underline;
}

.comment-list {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
  margin-bottom: 1.25rem;
}

.comment-list .children {
  list-style: none;
  margin: 1.25rem 0 0;
  padding-left: 2.25rem;
  border-left: 2px solid var(--clr-border);
}

.comment-body {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.comment-author .avatar {
  position: absolute;
  left: 1.5rem;
  top: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-author .fn {
  font-size: .92rem;
  font-weight: 700;
  font-style: normal;
  color: #111827;
}

.comment-metadata {
  font-size: .78rem;
  margin-top: .1rem;
}
.comment-metadata a {
  color: var(--clr-text-muted);
  text-decoration: none;
}
.comment-metadata a:hover { color: var(--clr-primary); }

.comment-awaiting-moderation {
  display: block;
  font-size: .8rem;
  font-style: italic;
  color: var(--clr-warning);
  margin-top: .35rem;
}

.comment-content {
  margin-top: .6rem;
  font-size: .95rem;
  line-height: 1.7;
  color: #374151;
}
.comment-content p { margin-bottom: .75rem; }
.comment-content p:last-child { margin-bottom: 0; }

.reply {
  margin-top: .75rem;
}
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-decoration: none;
  background: var(--clr-primary-light);
  border-radius: 100px;
  padding: .3rem .85rem;
  transition: all var(--transition);
}
.comment-reply-link:hover {
  background: var(--clr-primary);
  color: #fff;
  text-decoration: none;
}

.no-comments {
  font-size: .9rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
}

/* ── Comment form ── */
.comment-respond {
  padding: 2rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comment-notes,
.logged-in-as {
  font-size: .875rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.25rem;
}
.logged-in-as a { color: var(--clr-primary); }

.comment-form p { margin-bottom: 1.25rem; }
.comment-form p:last-child { margin-bottom: 0; }

.comment-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: .45rem;
}

.comment-form .required {
  color: var(--clr-danger);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-size: .92rem;
  font-family: var(--font-sans);
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-bg);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-light);
}

.comment-form textarea#comment {
  min-height: 150px;
  line-height: 1.6;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
}
.comment-form-cookies-consent label {
  margin-bottom: 0;
  font-weight: 500;
  font-size: .82rem;
  color: var(--clr-text-muted);
}
.comment-form-cookies-consent input[type="checkbox"] {
  margin-top: .2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
}

.form-submit { margin-bottom: 0; }

#submit,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--clr-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
  transition: all var(--transition);
}
#submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--clr-primary-hover);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .comment-respond { padding: 1.25rem; }
  .comment-body { padding: 1.1rem 1.1rem 1.1rem 1.1rem; }
  .comment-author .avatar { position: static; margin-bottom: .5rem; }
  .comment-list .children { padding-left: 1rem; }
}

