/*
Theme Name: WebTheme
Theme URI: #
Author: Antigravity
Description: A premium marketplace theme for WordPress and WooCommerce.
Version: 2.0.0
*/

:root {
  --teal: #1e9bab;
  --teal-dark: #167f8e;
  --teal-light: #e8f7f9;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #fff;
  --bg: #f8fafc;
  --price-bg: #121718ff;
  --featured-badge: #ef4444;
  --radius: 20px;
  --accent-purple: #a855f7;
  --accent-blue: #38bdf8;
  --accent-teal: #4ecdc4;
  --accent-orange: #ff9f43;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 99999;
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 10px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--dark);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ─ LAYOUT ─ */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ─ TOPBAR ─ */
.topbar {
  background: var(--dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 0 16px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: #38bdf8;
  font-weight: 600;
  margin-left: 4px;
}

.topbar-btn {
  background: var(--teal);
  color: white;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* ─ NAVBAR ─ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--teal);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--teal);
}

/* ─ MOBILE TOGGLE ─ */
.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--dark);
  padding: 0;
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    z-index: 99;
    padding: 8px 16px;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-links li a {
    padding: 10px 12px;
    border-radius: 8px;
  }
}

.nav-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li a {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  transition: 0.2s;
}

.nav-links li a:hover,
.nav-links li.current-menu-item a {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.btn-login {
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.btn-register {
  padding: 7px 16px;
  background: var(--teal);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* ─ HERO ─ */
.hero {
  background: #0f172a;
  padding: 60px 16px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(30, 155, 171, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  filter: blur(40px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.8px;
}

.hero-sub {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.hero-search {
  display: flex;
  max-width: 420px;
  margin: 0 auto 14px;
  background: white;
  border-radius: 6px;
  height: 38px;
  overflow: hidden;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
}

.hero-search-btn {
  background: var(--teal);
  color: white;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-link {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-link:hover {
  color: white;
}

/* ─ SECTIONS ─ */
.section {
  padding: 24px 0 8px;
}

.section-alt {
  background: #f1f5f9;
  padding: 24px 0 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

.view-all-btn {
  background: var(--teal);
  color: white;
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* ─ GRID ─ */
.featured-grid,
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ─ CARDS ─ */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.12);
  border-color: var(--teal);
}

.card-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.card-body {
  padding: 14px 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
  overflow: hidden;
}

.card-title a {
  color: var(--dark);
}

.card-title a:hover {
  color: var(--teal);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.author-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.author-icon.wp {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
}

.author-icon.plugin {
  background: linear-gradient(135deg, #334155, #64748b);
}

.author-info {
  min-width: 0;
}

.author-name {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-cat {
  font-size: 11px;
  color: var(--teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-cat a {
  color: inherit;
  text-decoration: none;
}

.author-cat a:hover {
  color: var(--teal-dark);
}

/* ─ DIGITAL BADGE ─ */
.card-digital-badge {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.single-digital-badge {
  display: inline-block;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ─ CARD STATS (RATING + SALES) ─ */
.card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    margin: 6px 0 6px;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars-wrap {
  display: flex;
  gap: 1px;
}

.star.filled {
  color: #f59e0b;
}

.star.empty {
  color: var(--muted);
  opacity: 0.25;
}

.rating-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  margin-left: 2px;
}

.rating-count {
  font-size: 11px;
  color: var(--muted);
}

.card-sales {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.card-price-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.price-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.price-value .woocommerce-Price-amount {
  font-weight: 800;
}

.price-value del {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-right: 8px;
  vertical-align: baseline;
  opacity: 0.7;
}
.price-value del .woocommerce-Price-amount {
  font-weight: 500;
}

.price-value ins {
  text-decoration: none;
  color: var(--dark);
  font-weight: 800;
  vertical-align: baseline;
}
.price-value .woocommerce-Price-amount {
  font-weight: 800;
}

.price-value.free {
  color: #059669;
  background: #ecfdf5;
  padding: 4px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(30, 155, 171, 0.3);
}

.price-badge.free {
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.price-badge del {
  opacity: 0.6;
  font-size: 0.85em;
  font-weight: 400;
}

.price-badge ins {
  text-decoration: none;
}

/* ─ OVERLAYS ─ */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}

.card:hover .card-overlay {
  opacity: 1;
}

.overlay-btn {
  background: white;
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.overlay-btn:hover {
  transform: translateY(-1px);
}

.overlay-btn.primary {
  background: var(--teal);
  color: white;
}

.overlay-btn.primary:hover {
  background: var(--teal-dark);
}

/* ─ TOAST ─ */
.toast-wrap {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--dark);
  color: white;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  animation: tsIn 0.3s ease;
}

@keyframes tsIn {
  from {
    transform: translateX(110%)
  }

  to {
    transform: translateX(0)
  }
}

/* ─ FOOTER ─ */
.newsletter {
  background: var(--teal-light);
  padding: 56px 20px;
  text-align: center;
  color: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(30, 155, 171, 0.06);
  top: -100px;
  right: -100px;
}

.newsletter::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(30, 155, 171, 0.05);
  bottom: -80px;
  left: -80px;
}

.newsletter-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
  position: relative;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  position: relative;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
  background: transparent;
  height: auto;
  overflow: visible;
  position: relative;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 15px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 155, 171, 0.1);
}

.newsletter-btn {
  background: var(--teal);
  color: white;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}
.newsletter-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 155, 171, 0.25);
}

.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 32px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo-icon {
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  transform: translateY(-2px);
}

.footer-back-top {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.footer-back-top:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 13.5px;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 0;
  font-size: 13px;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-credit {
  font-size: 11px;
  opacity: 0.7;
}

/* ─ RESPONSIVE ─ */

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .container {
    max-width: 100%;
    padding: 0 20px;
  }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {

  .featured-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-search {
    width: 100%;
    max-width: none;
  }

  .nav-links {
    display: none;
  }

  .product-single-wrap {
    grid-template-columns: 1fr;
  }

  .section-alt {
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .category-strip {
    justify-content: flex-start;
    padding: 16px 0 24px;
  }
}

/* Mobile large (480px) */
@media (max-width: 480px) {

  .featured-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 0 12px;
    height: 56px;
  }

  .nav-logo img {
    height: 34px !important;
  }

  .btn-register {
    display: none;
  }

  .btn-login {
    display: none;
  }

  .container {
    padding: 0 10px;
  }

  .single-product .container,
  .woocommerce .container {
    padding: 0 8px;
  }

  .section {
    padding: 16px 0 4px;
  }

  .hero {
    padding: 40px 16px 60px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-search {
    flex-direction: column;
    height: auto;
    gap: 8px;
    background: transparent;
    box-shadow: none;
  }

  .hero-search-input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
  }

  .hero-search-btn {
    height: 44px;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
  }

  .author-cat {
    font-size: 11px;
  }

  .slider-item {
    flex: 0 0 85%;
    min-width: 250px;
  }

  .category-strip {
    gap: 8px;
  }

  .cat-pill {
    padding: 6px 14px;
    font-size: 12px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-input {
    width: 100%;
    text-align: center;
  }

  .newsletter-btn {
    width: 100%;
  }

  .newsletter-title {
    font-size: 19px;
  }

  .newsletter-sub {
    font-size: 14px;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* Mobile small (360px) */
@media (max-width: 360px) {
  .nav-cart span.cart-count {
    display: none;
  }

  .hero-title {
    font-size: 20px;
  }

  .slider-item {
    min-width: 220px;
  }
}

/* ─ PRODUCT SINGLE ─ */

/* Breadcrumb */
.product-breadcrumb {
    margin-bottom: 24px;
}
.product-breadcrumb .woocommerce-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}
.product-breadcrumb .woocommerce-breadcrumb a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.product-breadcrumb .woocommerce-breadcrumb a:hover {
    color: #0d9488;
    text-decoration: underline;
}

/* Header */
.product-header-wrap {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.product-title-main {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: var(--dark);
}
.product-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}
.product-meta-top span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-meta-author {
    color: #94a3b8;
    font-weight: 500;
}
.product-meta-author strong {
    color: var(--teal);
    font-weight: 700;
}
.product-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}
.product-meta-id {
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Rating Area */
.product-rating-area {
    margin-top: 14px;
    display: flex;
    align-items: center;
}
.product-rating-area .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-rating-area .star-rating {
    font-size: 18px;
    height: 24px;
    line-height: 24px;
    width: 5.4em;
    letter-spacing: 2px;
}
.product-rating-area .star-rating::before {
    color: #e2e8f0 !important;
}
.product-rating-area .star-rating span::before {
    color: #f59e0b;
}
.product-rating-area .woocommerce-review-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    background: var(--teal-light);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(30,155,171,0.15);
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-rating-area .woocommerce-review-link::before {
    content: "★";
    font-size: 14px;
    color: #f59e0b;
}
.product-rating-area .woocommerce-review-link:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.product-rating-area .woocommerce-review-link:hover::before {
    color: #fff;
}

/* Main Grid */
.product-single-wrap {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin: 20px 0;
    align-items: start;
}
.psg-image    { grid-column: 1; grid-row: 1; }
.psg-desc     { grid-column: 1; grid-row: 2; }
.psg-features { grid-column: 1; grid-row: 3; }
.psg-tabs     { grid-column: 1; grid-row: 4; }
.psg-sidebar  { grid-column: 2; grid-row: 1 / 5; position: sticky; top: 80px; }

/* Image Box */
.product-image-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    overflow: hidden;
}
.product-image-box .woocommerce-product-gallery {
    margin-bottom: 0 !important;
}
.product-image-box img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
}

/* Info Box (Sidebar) */
.product-info-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.product-info-box .product_title,
.product-info-box .price,
.product-info-box .woocommerce-product-details__short-description {
    display: none !important;
}
.purchase-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--teal-light);
}
.purchase-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.2px;
}
.purchase-body {
    padding: 20px 22px;
}
.purchase-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Pricing Card */
.pricing-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 2px solid var(--teal);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.pricing-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 5px solid var(--teal);
    background: var(--teal);
    box-shadow: 0 0 0 3px rgba(30,155,171,0.15);
    flex-shrink: 0;
}
.pricing-info {
    flex: 1;
}
.pricing-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.pricing-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pricing-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.pricing-price del {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 10px;
    text-decoration: line-through;
    text-decoration-color: #cbd5e1;
    text-decoration-thickness: 1.5px;
    opacity: 0.7;
}
.pricing-price ins {
    text-decoration: none;
    color: var(--dark);
    font-weight: 900;
}
.pricing-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Add to Cart Button */
.product-actions {
    margin-top: 10px;
}
.product-actions .cart {
    margin-bottom: 12px;
}
.single_add_to_cart_button.button {
    width: 100% !important;
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 !important;
    background: var(--teal) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(30,155,171,0.25) !important;
    color: white !important;
    border: none !important;
    transition: all 0.25s !important;
    letter-spacing: 0.3px !important;
}
.single_add_to_cart_button.button:hover {
    background: var(--teal-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(30,155,171,0.3) !important;
}

/* Live Preview Button */
/* Trust & Badges */
.trust-badge {
    text-align: center;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.trust-badge span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.payment-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
}
.payment-badge {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.payment-badge.visa { color: #0ea5e9; }
.payment-badge.master { color: #ff6b6b; }
.payment-badge.paypal { color: #14b8a6; }

/* Product Meta List */
.product-meta-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    border-top: 1px solid var(--border);
}
.product-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--muted);
}
.product-meta-list li:last-child { border-bottom: none; }
.product-meta-list li strong {
    color: var(--dark);
    font-weight: 700;
    text-align: right;
}

/* Hide quantity input on single product page */
.single-product div.quantity {
    display: none !important;
}

/* Cart quantity styling */
.woocommerce .cart .quantity .qty {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* Support Addon Checkbox */
.support-addon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 14px 0;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    background: #f8fafc;
}
.support-addon:hover {
    border-color: var(--teal);
    background: #f0fdfa;
}
.support-addon input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.support-addon-check {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.support-addon input:checked + .support-addon-check {
    border-color: var(--teal);
    background: var(--teal);
}
.support-addon input:checked + .support-addon-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}
.support-addon-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: space-between;
}
.support-addon-text strong {
    color: var(--teal);
    font-size: 14px;
}

@media (max-width: 480px) {
    .support-addon { padding: 10px 12px; }
    .support-addon-text { font-size: 12px; }
    .support-addon-text strong { font-size: 13px; }
}

/* Product Description */
.product-description {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.product-short-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
}
.product-short-desc p {
    margin-bottom: 10px;
}
.product-short-desc p:last-child {
    margin-bottom: 0;
}

/* Features */
.product-features {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.features-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.features-heading::before {
    content: '';
    width: 28px;
    height: 4px;
    background: var(--teal);
    border-radius: 2px;
    flex-shrink: 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #f1f5f9;
    font-size: 13px;
    color: var(--text);
    transition: all 0.2s;
}
.feature-item:hover {
    border-color: var(--teal-light);
    background: var(--white);
}
.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Tabs */
.product-tabs-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.product-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e2e8f0 !important;
    margin-bottom: 0;
    overflow-x: auto;
    background: transparent;
    padding: 0;
    scrollbar-width: none;
    gap: 4px;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }
.tab-nav-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent !important;
    border-bottom: none !important;
    background: transparent;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.2px;
    text-transform: none;
    margin-bottom: -1px;
    border-radius: 6px 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.tab-nav-item::after {
    display: none;
}
.tab-nav-item:hover {
    color: var(--teal);
}
.tab-nav-item.active {
    color: var(--dark) !important;
    background: white !important;
    border-color: #e2e8f0 !important;
    border-bottom-color: white !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Envato-style comments badge */
.ts-tab-badge {
    background: #0073ab;
    color: white;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tab-content {
    padding: 24px 0 4px;
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}
.tab-content strong { color: #0f172a; font-weight: 700; }
.tab-content h2,
.tab-content h3,
.tab-content h4 {
    color: #0f172a;
    font-weight: 800;
    margin: 1.6em 0 0.7em;
    line-height: 1.3;
    letter-spacing: -0.4px;
}
.tab-content h2 {
    font-size: 24px;
    padding: 0 0 12px;
    border-bottom: 3px solid var(--teal);
    margin-top: 0.8em;
}
.tab-content h2:first-child { margin-top: 0; }
.tab-content h3 {
    font-size: 19px;
    display: inline-block;
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
    padding: 4px 16px 4px 12px;
    border-radius: 0 20px 20px 0;
    margin-left: -12px;
}
.tab-content h4 { font-size: 16px; }
.tab-content p {
    margin-bottom: 16px;
    color: #475569;
}
.tab-content ul,
.tab-content ol {
    margin: 6px 0 20px;
    padding: 0;
    list-style: none;
}
.tab-content ul li,
.tab-content ol li {
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}
.tab-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 2px;
}
.tab-content ol { counter-reset: ts-counter; }
.tab-content ol li {
    counter-increment: ts-counter;
    padding-left: 32px;
}
.tab-content ol li::before {
    content: counter(ts-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background: var(--teal);
    color: white;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-content a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}
.tab-content a:hover {
    color: #0d9488;
    border-bottom-color: #0d9488;
}
.tab-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 8px 25px -6px rgba(0,0,0,0.1);
    border: 1px solid #f1f5f9;
}
.tab-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.tab-content table th,
.tab-content table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 13px 18px;
    text-align: left;
}
.tab-content table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.tab-content table td { color: #475569; }
.tab-content table tr:last-child td { border-bottom: none; }
.tab-content table tr:hover td { background: #f8fafc; }
.tab-content blockquote {
    border-left: 4px solid var(--teal);
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
    padding: 18px 24px;
    margin: 24px 0;
    border-radius: 0 14px 14px 0;
    color: #1e293b;
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    position: relative;
}
.tab-content blockquote::before {
    content: '"';
    font-size: 42px;
    color: var(--teal);
    opacity: 0.2;
    position: absolute;
    top: -6px;
    left: 14px;
    font-style: normal;
    line-height: 1;
}
.tab-content code {
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--teal-dark);
    font-weight: 600;
    border: 1px solid rgba(30, 155, 171, 0.2);
}
.tab-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 22px 26px;
    border-radius: 14px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 24px 0;
    border: 1px solid #1e293b;
}
.tab-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-weight: 400;
    border: none;
}
.tab-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 32px 0;
}
.tab-content iframe {
    max-width: 100%;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

/* Sale Badge */
span.onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #f97316) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 8px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
    box-shadow: 0 4px 10px rgba(239,68,68,0.3) !important;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Out of Stock Badge */
span.onsale + .out-of-stock,
.product-image-box .out-of-stock {
    position: absolute;
    top: 54px;
    left: 16px;
    background: #64748b;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
.woocommerce ul.products li.product .out-of-stock,
.archive-product-grid .card .out-of-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #64748b;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Image Gallery */
.product-image-box {
    position: relative;
}
.product-image-box .woocommerce-product-gallery {
    width: 100% !important;
    margin: 0 !important;
}
.product-image-box .woocommerce-product-gallery__wrapper {
    width: 100% !important;
}
.product-image-box .woocommerce-product-gallery__image {
    width: 100% !important;
}
.woocommerce-product-gallery__trigger {
    top: 16px !important;
    right: 16px !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    z-index: 11;
}
.flex-control-thumbs {
    display: flex !important;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
}
.flex-control-thumbs li {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
    list-style: none;
}
.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.7;
}
.flex-control-thumbs li img.flex-active {
    border-color: var(--teal);
    opacity: 1;
}

/* Mobile */
@media (max-width: 900px) {
    .product-single-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .psg-image    { grid-column: 1; grid-row: auto; order: 1; }
    .psg-sidebar  { grid-column: 1; grid-row: auto; order: 2; position: static; }
    .psg-desc     { grid-column: 1; grid-row: auto; order: 3; }
    .psg-features { grid-column: 1; grid-row: auto; order: 4; }
    .psg-tabs     { grid-column: 1; grid-row: auto; order: 5; }
    .feature-grid { grid-template-columns: 1fr; }
    .product-title-main { font-size: 22px; }
    .product-meta-top { font-size: 12px; gap: 8px; }
}

@media (max-width: 480px) {
    .product-title-main { font-size: 20px; }
    .product-header-wrap { padding-bottom: 14px; margin-bottom: 20px; }
    .product-meta-top { font-size: 12px; gap: 6px; }
    .product-breadcrumb .woocommerce-breadcrumb { font-size: 11px; padding: 6px 12px; }
    .pricing-card { padding: 14px; }
    .purchase-body { padding: 16px; }
    .pricing-price { font-size: 20px; }
    .tab-nav-item { padding: 14px 14px; font-size: 12px; }
    .tab-content { padding: 18px 14px; font-size: 13px; }
    .tab-content h2 { font-size: 18px; }
    .tab-content h3 { font-size: 16px; }
    .tab-content ul li, .tab-content ol li { padding-left: 20px; font-size: 13px; }
    .tab-content ol li { padding-left: 28px; }
    .flex-control-thumbs li { width: 56px; height: 40px; }
}



/* ─ REVIEWS & COMMENTS ─ */
#reviews { margin-top: 24px; }
.woocommerce-Reviews-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.woocommerce-Reviews-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--teal);
    border-radius: 2px;
    display: inline-block;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.commentlist li.review {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    gap: 18px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.commentlist li.review:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 20px -6px rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.commentlist li .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.comment-text { flex: 1; position: relative; }
.comment-text .meta {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.comment-meta-inner { display: flex; flex-direction: column; gap: 2px; }
.comment-text .meta strong {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}
.comment-text .meta time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    background: #f1f5f9;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-text .meta time::before {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

.ts-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
    margin-left: 8px;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.ts-verified-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.ts-review-notice {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    color: #92400e;
    margin: 16px 0;
    font-weight: 600;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.ts-review-notice a {
    color: #b45309;
    font-weight: 800;
    text-decoration: underline;
}

.comment-text .star-rating {
    font-size: 11px;
    color: #f59e0b;
    margin: 0;
    letter-spacing: 1px;
}
.star-rating::before { color: #e2e8f0 !important; }

.comment-text .description {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-top: 6px;
}

/* Review Form */
#review_form_wrapper {
    margin-top: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
#reply-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: block;
}
.comment-form-rating label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    display: block;
}
.stars { margin-bottom: 20px; display: flex; gap: 2px; }
.stars a {
    color: #e2e8f0 !important;
    font-size: 22px !important;
    transition: 0.2s;
    text-indent: -9999px;
    width: 28px;
    position: relative;
    display: inline-block;
}
.stars a::before {
    text-indent: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    text-align: center;
}
.stars a.star-1::before { content: '\2605'; font-size: 24px; line-height: 1; }
.stars a.star-2::before { content: '\2605'; font-size: 24px; line-height: 1; }
.stars a.star-3::before { content: '\2605'; font-size: 24px; line-height: 1; }
.stars a.star-4::before { content: '\2605'; font-size: 24px; line-height: 1; }
.stars a.star-5::before { content: '\2605'; font-size: 24px; line-height: 1; }
.stars.selected a.active::before,
.stars:hover a::before {
    color: #f59e0b !important;
}
.stars a:hover ~ a::before {
    color: #e2e8f0 !important;
}
.comment-form-comment label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}
.comment-form-comment textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    line-height: 1.6;
}
.comment-form-comment textarea:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

/* Form fields - name & email */
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-top: 18px;
}
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    display: block;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 16px;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

/* Comment form cookies checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    accent-color: var(--teal);
    cursor: pointer;
    flex-shrink: 0;
}
.comment-form-cookies-consent label {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    line-height: 1.4;
}

#submit {
    background: linear-gradient(135deg, var(--teal), #0d9488) !important;
    color: white !important;
    padding: 13px 34px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-top: 16px !important;
    letter-spacing: 0.3px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#submit::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.35) !important;
}

/* Review Section Mobile */
@media (max-width: 768px) {
    #reviews { margin-top: 16px; }
    .woocommerce-Reviews-title { font-size: 16px; }
    .commentlist li.review { flex-direction: column; gap: 12px; padding: 18px; }
    .commentlist li .avatar { width: 42px; height: 42px; }
    .comment-text .meta { flex-direction: row; align-items: center; }
    .ts-verified-badge { margin-left: 6px; }
    #review_form_wrapper { padding: 20px; margin-top: 24px; border-radius: 14px; }
    .comment-form-comment textarea { padding: 14px; font-size: 13px; }
    #submit { width: 100% !important; text-align: center !important; justify-content: center; }
    .comment-form-cookies-consent { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .woocommerce-Reviews-title { font-size: 15px; }
    .commentlist li.review { padding: 16px; border-radius: 12px; gap: 10px; }
    .commentlist li .avatar { width: 36px; height: 36px; }
    .comment-text .meta strong { font-size: 13px; }
    .comment-text .description { font-size: 13px; }
    .comment-text .star-rating { font-size: 10px; }
    #review_form_wrapper { padding: 16px; border-radius: 12px; margin-top: 18px; }
    #reply-title { font-size: 15px; }
    .stars a { font-size: 18px !important; }
    .stars a::before { font-size: 20px !important; }
    .comment-form-comment textarea { padding: 12px; font-size: 13px; }
    .comment-form-author input,
    .comment-form-email input { height: 42px; font-size: 13px; }
    .ts-review-notice { font-size: 12px; padding: 10px 14px; }
}

/* Load More Button */
.load-more-reviews { 
    display: block; 
    width: 100%; 
    padding: 14px; 
    background: #f1f5f9; 
    color: var(--dark); 
    text-align: center; 
    font-weight: 700; 
    border-radius: 12px; 
    margin-top: 20px; 
    cursor: pointer; 
    transition: 0.2s;
    border: 1px solid var(--border);
}
/* ─ CART EMPTY ─ */
.cart-empty-wrap {
    max-width: 420px;
    margin: 60px auto;
    text-align: center;
}
.cart-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.cart-empty-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}
.cart-empty-desc {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 28px;
}
.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(30,155,171,0.25);
    transition: all 0.25s;
}
.cart-empty-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30,155,171,0.3);
    color: white;
}

/* ─ CART & CHECKOUT ─ */
.cart_totals table { width: 100% !important; border-collapse: collapse !important; margin: 0 !important; }
.cart_totals tr { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; padding: 12px 0 !important; border-bottom: 1px solid var(--border) !important; }
.cart_totals th, .cart_totals td { border: none !important; padding: 0 !important; margin: 0 !important; display: block !important; width: auto !important; height: auto !important; float: none !important; text-align: left !important; }
.cart_totals td { text-align: right !important; }

.cart_totals .totals-row, .cart_totals .order-total, .cart_totals .cart-subtotal {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 13px !important;
    gap: 15px !important;
    float: none !important;
    clear: both !important;
}

.cart_totals .grand-total, .cart_totals .order-total {
    background: #f1f5f9 !important;
    padding: 18px 15px !important;
    border-radius: 12px !important;
    margin: 15px 0 !important;
    border: none !important;
}

.cart_totals .grand-total span:last-child, 
.cart_totals .order-total td,
.cart_totals .amount {
    color: var(--teal) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.wc-proceed-to-checkout .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 54px !important;
    background: var(--teal) !important;
    color: white !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    box-shadow: 0 10px 20px rgba(30,155,171,0.25) !important;
    line-height: 1 !important;
}

/* ─ CART PAGE ─ */
.cart-page-wrap {
    max-width: 1060px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.cart-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* Items List */
.cart-items-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.cart-header-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.cart-header-row .cart-col-qty { text-align: center; }
.cart-header-row .cart-col-price { text-align: right; }

/* Item Row */
.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: #fafafa; }

.cart-item-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-item-img-wrap {
    width: 72px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.cart-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.cart-item-name a {
    color: var(--dark);
    text-decoration: none;
}

.cart-item-name a:hover { color: var(--teal); }

.cart-item-id {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

/* Quantity Controls */
.cart-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    width: 100px;
    margin: 0 auto;
}

.cart-qty-control .qty-btn {
    width: 32px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
    cursor: pointer;
    transition: 0.2s;
    border: none;
    background: transparent;
}

.cart-qty-control .qty-btn:hover { background: var(--teal-light); }

.cart-qty-control input.qty {
    width: 36px;
    height: 34px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
}

/* Price Column */
.cart-item-subtotal {
    font-size: 16px;
    font-weight: 800;
    color: var(--teal);
    text-align: right;
}

.cart-item-subtotal .amount {
    color: var(--teal);
}

/* Remove Button */
.cart-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #cbd5e1;
    transition: all 0.2s;
}

.cart-remove-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Update Cart Button */
.cart-actions-row {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

.cart-update-btn {
    height: 40px;
    padding: 0 20px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
}

.cart-update-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

/* Cart Totals Sidebar */
.cart-totals-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.cart-totals-header {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: var(--muted);
}

.totals-row span:last-child {
    font-weight: 700;
    color: var(--dark);
}

.totals-shipping-free {
    color: #10b981 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px !important;
}

.totals-grand {
    background: var(--teal-light);
    margin: 16px -24px 0;
    padding: 16px 24px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    color: var(--dark);
    border-bottom: none !important;
}

.totals-grand-amount {
    color: var(--teal) !important;
    font-size: 20px !important;
}

/* Coupon */
.coupon-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-bottom: none;
    padding: 10px 0 14px;
}

.coupon-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--teal);
    font-size: 13px;
}

.coupon-arrow {
    display: flex;
    align-items: center;
    color: #a0aec0;
    transition: transform 0.25s;
}

.coupon-arrow.rotated {
    transform: rotate(180deg);
}

.coupon-input-wrap {
    display: none;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
    background: var(--teal-light);
    border: 1.5px dashed rgba(30,155,171,0.3);
    border-radius: 12px;
}

.coupon-input-wrap.open {
    display: flex;
}

.coupon-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--white);
    min-width: 0;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--teal);
}

.coupon-apply-btn {
    height: 40px;
    padding: 0 16px;
    background: var(--teal);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}

.coupon-apply-btn:hover {
    background: var(--teal-dark);
}

/* Checkout Button */
.cart-checkout-wrap {
    margin-top: 20px;
}

.cart-checkout-wrap .checkout-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 52px !important;
    background: var(--teal) !important;
    color: white !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(30,155,171,0.25) !important;
    transition: all 0.25s !important;
    border: none !important;
}

.cart-checkout-wrap .checkout-button:hover {
    background: var(--teal-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(30,155,171,0.3) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .cart-grid-layout {
        grid-template-columns: 1fr;
    }
    .cart-header-row {
        display: none;
    }

    .cart-item-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
        position: relative;
        align-items: center;
    }

    .cart-item-row .cart-col-product {
        flex: 1 1 100%;
    }

    .cart-item-product {
        gap: 12px;
        align-items: flex-start;
    }

    .cart-item-img-wrap {
        width: 56px;
        height: 44px;
        flex-shrink: 0;
    }

    .cart-item-name {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .cart-item-row .cart-col-qty {
        flex: 0 0 auto;
    }

    .cart-qty-control {
        width: 90px;
        margin: 0;
    }

    .cart-qty-control .qty-btn {
        width: 28px;
        height: 30px;
        font-size: 14px;
    }

    .cart-qty-control input.qty {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .cart-item-row .cart-col-price {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .cart-item-subtotal {
        font-size: 14px;
        text-align: right;
    }

    .cart-item-row .cart-col-remove {
        position: absolute;
        top: 12px;
        right: 10px;
    }

    .cart-remove-btn {
        width: 30px;
        height: 30px;
    }

    .cart-actions-row {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .cart-page-title { font-size: 20px; margin-bottom: 14px; }
    .cart-item-img-wrap { width: 48px; height: 38px; }
    .cart-item-name { font-size: 12px; }
    .cart-item-id { font-size: 10px; }
    .cart-totals-box { padding: 16px; }
    .totals-grand { margin: 16px -16px 0; padding: 12px 16px !important; font-size: 16px !important; }
    .cart-checkout-wrap .checkout-button { height: 46px !important; font-size: 14px !important; }
}

/* ─ RELATED PRODUCTS ─ */
.related.products, .upsells.products { margin-top: 50px; }
.related.products h2, .upsells.products h2 { font-size: 19px; font-weight: 800; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; border: none; padding: 0; }
.related.products h2::before, .upsells.products h2::before { content: ''; width: 5px; height: 26px; border-radius: 3px; background: linear-gradient(180deg, #FF6B6B, #FFE66D); display: inline-block; }
.related.products ul.products, .upsells.products ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; list-style: none !important; padding: 0 !important; }
.related.products ul.products::before, .related.products ul.products::after { display: none !important; }
.related.products ul.products li.product, .upsells.products ul.products li.product { width: 100% !important; margin: 0 !important; }

/* ─ CATEGORY BADGES ─ */
.product-cats-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-badge { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 30px; border: 1px solid transparent; }
.cat-badge.all { color: var(--teal); background: var(--teal-light); border-color: rgba(30,155,171,0.2); }
.cat-badge.business { color: #38BDF8; background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.2); }
.cat-badge.new { color: #FF9F43; background: rgba(255,159,67,0.1); border-color: rgba(255,159,67,0.2); }
.cat-badge.tool { color: #4ECDC4; background: rgba(78,205,196,0.1); border-color: rgba(78,205,196,0.2); }

@media (max-width: 900px) {
  .related.products ul.products, .upsells.products ul.products { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 500px) {
  .related.products ul.products, .upsells.products ul.products { grid-template-columns: 1fr !important; }
}

/* ─ ARCHIVE / SHOP PAGE ─ */
.archive-shop-wrap {
    max-width: 1240px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

body.archive,
body.woocommerce-shop {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 200px);
}

.archive-breadcrumb {
    margin-bottom: 16px;
}
.archive-breadcrumb .woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}
.archive-breadcrumb .woocommerce-breadcrumb a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}
.archive-breadcrumb .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Category Strip */
.archive-cat-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.archive-cat-strip::-webkit-scrollbar { display: none; }
.archive-cat-strip .cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.25s;
    background: var(--white);
    flex-shrink: 0;
}
.archive-cat-strip .cat-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30,155,171,0.1);
}
.archive-cat-strip .cat-pill.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(30,155,171,0.25);
}
.archive-cat-strip .cat-pill .cat-count {
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    padding: 1px 7px;
    border-radius: 20px;
    line-height: 1.4;
}
.archive-cat-strip .cat-pill.active .cat-count {
    background: rgba(255,255,255,0.2);
}

.archive-shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.archive-header-left {
    flex: 1;
    min-width: 200px;
}

.archive-page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.woocommerce .archive-page-title {
    margin: 0 0 4px;
}

.archive-tax-desc {
    font-size: 14px;
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.6;
    max-width: 600px;
}

/* Price display clean up */
.price-value del,
.archive-product-grid .price del,
ul.products .price del {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    margin-right: 6px;
    opacity: 0.7;
}
.price-value ins,
.archive-product-grid .price ins,
ul.products .price ins {
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
}
.price-value .screen-reader-text,
.archive-product-grid .price .screen-reader-text,
ul.products .price .screen-reader-text {
    display: none;
}

/* Loop Add to Cart button */
.archive-product-grid .add_to_cart_button,
ul.products li.product .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    margin-top: 10px;
}
.archive-product-grid .add_to_cart_button:hover,
ul.products li.product .add_to_cart_button:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    color: white;
}
.archive-product-grid .add_to_cart_button.added,
ul.products li.product .add_to_cart_button.added {
    display: none;
}

/* Loop rating */
.archive-product-grid .star-rating,
ul.products li.product .star-rating {
    font-size: 12px;
    color: #f59e0b;
    margin: 6px 0;
}
.archive-product-grid .star-rating::before,
ul.products li.product .star-rating::before {
    color: #e2e8f0;
}

/* Default loop product card overrides */
ul.products li.product {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    text-align: left;
}
ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -12px rgba(0,0,0,0.12);
    border-color: var(--teal);
}
ul.products li.product a img {
    margin: 0;
    border-radius: 0;
}
ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    padding: 10px 16px 4px;
}
ul.products li.product .price {
    font-size: 16px;
    font-weight: 800;
    color: var(--teal);
    padding: 0 16px 8px;
    margin-bottom: 0;
}
ul.products li.product .button {
    margin: 8px 16px 16px;
}

.archive-header-right {
    flex-shrink: 0;
}

.archive-header-right .woocommerce-ordering {
    margin-bottom: 0;
}

.archive-header-right select {
    padding: 8px 32px 8px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-height: 40px;
}

.archive-header-right select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-light);
}

.archive-header-right .woocommerce-result-count {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
    font-weight: 500;
}

.archive-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.card-badge {
    position: absolute;
    top: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-badge.sale {
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    box-shadow: 0 2px 8px rgba(239,68,68,0.3);
}
.card-badge.popular {
    right: 10px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.archive-pagination .woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-pagination .woocommerce-pagination ul li {
    margin: 0;
}

.archive-pagination .woocommerce-pagination ul li a,
.archive-pagination .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 4px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    background: var(--white);
}

.archive-pagination .woocommerce-pagination ul li a:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-light);
}

.archive-pagination .woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-color: var(--teal);
    color: white;
}

.archive-pagination .woocommerce-pagination ul li span.current {
    border-color: var(--teal);
}

/* Empty State */
.archive-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 20px 0;
}
.archive-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.archive-empty h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}
.archive-empty p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}
.empty-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s;
}
.empty-shop-btn:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    color: white;
}

@media (max-width: 1024px) {
    .archive-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .archive-shop-wrap {
        margin-top: 16px;
    }
    .archive-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .archive-shop-header {
        flex-direction: column;
        gap: 14px;
    }
    .archive-header-right {
        width: 100%;
    }
    .archive-header-right .woocommerce-ordering {
        width: 100%;
    }
    .archive-header-right select {
        width: 100%;
    }
    .archive-cat-strip {
        gap: 8px;
        padding-bottom: 16px;
    }
    .archive-cat-strip .cat-pill {
        padding: 6px 16px;
        font-size: 12px;
    }
    .archive-cat-strip .cat-pill .cat-count {
        font-size: 9px;
        padding: 0 6px;
    }
    .archive-empty {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .archive-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .archive-page-title {
        font-size: 22px;
    }
    .archive-tax-desc {
        font-size: 13px;
    }
    .archive-shop-wrap {
        padding: 0 12px;
        margin-top: 10px;
    }
    .archive-empty h2 {
        font-size: 18px;
    }
    .card-overlay {
        opacity: 1;
        background: linear-gradient(transparent 50%, rgba(15,23,42,0.7));
        backdrop-filter: none;
        top: auto;
        height: 60px;
    }
    .overlay-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* ─ CHECKOUT STEPS ─ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    gap: 0;
}
.checkout-step {
    display: flex;
    align-items: center;
}
.checkout-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
    background: #edf2f7;
    color: #a0aec0;
}
.checkout-step-dot.completed {
    background: var(--teal);
    color: #fff;
}
.checkout-step-dot.active {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30,155,171,0.35);
}
.checkout-step-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #a0aec0;
    text-align: center;
    position: absolute;
    margin-top: 48px;
}
.checkout-step-label.completed {
    color: var(--teal);
}
.checkout-step-label.active {
    color: var(--teal);
}
.checkout-step-line {
    height: 3px;
    background: #edf2f7;
    width: 64px;
    border-radius: 2px;
    margin: 0 6px 22px;
}
.checkout-step-line.completed {
    background: var(--teal);
}

.checkout-left-col {
    min-width: 0;
}
.checkout-right-col {
    position: sticky;
    top: 80px;
    min-width: 0;
}
.checkout-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

/* Secure checkout badge */
.secure-checkout-badge {
    background: var(--teal-light);
    border: 1.5px solid rgba(30,155,171,0.3);
    border-radius: 13px;
    padding: 13px 15px;
}
.secure-checkout-badge p:first-child {
    font-size: 12.5px;
    font-weight: 700;
    color: #155e75;
    margin-bottom: 3px;
}
.secure-checkout-badge p:last-child {
    font-size: 11.5px;
    color: #64748b;
}

/* ─ SLIDER ─ */
.slider-container { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 20px; scrollbar-width: none; -ms-overflow-style: none; margin: 0 -10px; padding-left: 10px; }
.slider-container::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 calc(33.333% - 14px); scroll-snap-align: start; min-width: 300px; }
.slider-nav { display: flex; gap: 8px; }
.slider-prev, .slider-next { width: 36px; height: 36px; border: 1px solid var(--border); background: white; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); transition: 0.2s; }
.slider-prev:hover, .slider-next:hover { background: var(--teal); color: white; border-color: var(--teal); }

@media (max-width: 1000px) {
  .slider-item { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 650px) {
  .slider-item { flex: 0 0 85%; }
}

/* ─ WOO CHECKOUT PREMIUM STYLES ─ */
.checkout-premium-wrap {
    max-width: 1060px;
    margin: 40px auto;
    padding: 0 18px;
}
.checkout-premium-wrap .grid2i {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    gap: 30px !important;
    align-items: start !important;
}
@media (max-width: 900px) {
    .checkout-premium-wrap .grid2i { grid-template-columns: 1fr !important; }
}

.checkout-premium-wrap .card {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
}
.checkout-premium-wrap .card-p {
    padding: 24px;
}

/* Checkout Fields styling */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    font-size: 11.5px;
    font-weight: 700;
    color: #718096;
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    outline: none;
    color: #2d3748;
    background: #f8fafc;
    transition: 0.2s;
    font-family: inherit;
}
.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 155, 171, 0.1);
}
.woocommerce-checkout h3.section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

/* Order Review / Payment Section */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 13.5px;
    color: #4a5568;
}
.woocommerce-checkout-review-order-table th {
    font-weight: 700;
    color: #1a202c;
    text-align: left;
}
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table td.product-total .amount {
    font-weight: 800;
    color: var(--teal);
    text-align: right;
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 16px;
    font-weight: 900;
    color: #1a202c;
    border-bottom: none;
    padding-top: 20px;
}
.woocommerce-checkout-review-order-table .order-total td .amount {
    color: var(--teal);
}

/* Payment Methods */
#payment {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}
#payment ul.payment_methods {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}
#payment ul.payment_methods li {
    background: white;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: 0.2s;
    cursor: pointer;
}
#payment ul.payment_methods li:hover {
    border-color: var(--teal);
}
#payment ul.payment_methods li label {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    display: inline-block;
    cursor: pointer;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}
#payment ul.payment_methods li input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--teal);
}
#payment .payment_box {
    margin-top: 10px;
    padding: 12px;
    background: var(--teal-light);
    border-radius: 8px;
    font-size: 12.5px;
    color: #718096;
    border: 1px solid rgba(30,155,171,0.2);
}
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}
.woocommerce-terms-and-conditions-wrapper label {
    font-size: 13px !important;
    color: #718096 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#place_order {
    width: 100%;
    background: var(--teal);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(30, 155, 171, 0.25);
}
#place_order:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(30, 155, 171, 0.3);
}

.checkout-premium-wrap .pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { box-shadow:0 0 0 0 rgba(30,155,171,0.3) }
    50% { box-shadow:0 0 0 8px rgba(30,155,171,0) }
}

/* ─ NOTICES / MESSAGES ─ */
.ts-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
}
.ts-notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.ts-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}
.ts-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ─ LIVE PREVIEW BUTTON ─ */
.live-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #fff;
    color: var(--teal);
    height: 46px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid var(--teal);
    margin-top: 12px;
    gap: 8px;
}

.live-preview-btn:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
}

.live-preview-btn.pulse {
    animation: pulse-btn 2s infinite;
}

/* ─ LOGIN / REGISTER (PREMIUM AUTH SYSTEM) ─ */

/* Container & Grid for Classic Side-by-Side */
#customer_login {
    display: flex;
    gap: 24px;
    max-width: 1060px;
    margin: 24px auto;
    align-items: stretch;
}

#customer_login .col-1,
#customer_login .col-2 {
    flex: 1;
    min-width: 280px;
}

#customer_login .col-1 .woocommerce-form-login,
#customer_login .col-2 .woocommerce-form-register {
    margin: 0;
    height: 100%;
}

/* Beautiful Card Design for forms */
.woocommerce-form-login,
.woocommerce-form-register,
.ts-auth-wrap {
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    padding: 30px 24px 24px !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.03), 0 8px 16px -6px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.woocommerce-form-login::before,
.woocommerce-form-register::before,
.ts-auth-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--accent-purple) 100%);
    opacity: 0.85;
}

.woocommerce-form-login:hover,
.woocommerce-form-register:hover,
.ts-auth-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08), 0 8px 24px -8px rgba(30, 155, 171, 0.06) !important;
    border-color: rgba(30, 155, 171, 0.25) !important;
}

/* Titles */
.woocommerce-form-login h2,
.woocommerce-form-register h2,
#customer_login h2,
.ts-auth-header h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--dark) !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    letter-spacing: -0.8px !important;
    line-height: 1.2 !important;
}

.ts-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.ts-auth-header p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 4px;
}

/* Fields & Labels */
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row,
.ts-form-group {
    margin-bottom: 16px;
}

.woocommerce-form-login label,
.woocommerce-form-register label,
.ts-form-group label {
    display: block !important;
    font-weight: 700 !important;
    color: #475569 !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.woocommerce-form-login label .required,
.woocommerce-form-register label .required,
.ts-form-group label .required {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* Premium Custom Styled Inputs */
.woocommerce-form-login input.input-text,
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-register input.input-text,
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="email"],
.ts-input {
    width: 100% !important;
    padding: 13px 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    color: var(--dark) !important;
    background: #f8fafc !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    outline: none !important;
}

.woocommerce-form-login input.input-text:focus,
.woocommerce-form-login input[type="text"]:focus,
.woocommerce-form-login input[type="password"]:focus,
.woocommerce-form-login input[type="email"]:focus,
.woocommerce-form-register input.input-text:focus,
.woocommerce-form-register input[type="text"]:focus,
.woocommerce-form-register input[type="password"]:focus,
.woocommerce-form-register input[type="email"]:focus,
.ts-input:focus {
    border-color: var(--teal) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(30, 155, 171, 0.15) !important;
}

/* Password Input Toggle Alignment */
.woocommerce-form-login .woocommerce-Input {
    position: relative;
}

.woocommerce-form-login .show-password-input {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Remember Me & Forgot Password Flex Row */
.ts-form-row-flex,
.woocommerce-form-login .form-row:has(#rememberme) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Custom Checkbox */
.ts-checkbox-label,
.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    margin: 0 !important;
}

.ts-checkbox-label input[type="checkbox"],
.woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
}

/* Link Styling */
.ts-forgot-link,
.woocommerce-LostPassword a {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1.5px solid transparent;
}

.ts-forgot-link:hover,
.woocommerce-LostPassword a:hover {
    color: var(--teal-dark);
    border-bottom-color: var(--teal-dark);
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px !important;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

/* Tab Switcher Styling (For Tabbed Mode) */
.ts-auth-wrap {
    max-width: 480px;
    margin: 40px auto;
}

.ts-auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 16px;
}

.ts-auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ts-auth-tab.active {
    background: white;
    color: var(--teal);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.ts-auth-tab:hover:not(.active) {
    color: var(--dark);
}

.ts-auth-panel {
    display: none;
}

.ts-auth-panel.active {
    display: block;
}

/* Submit Buttons styling (Gradience & Lift) */
.woocommerce-form-login .woocommerce-form-login__submit,
.woocommerce-form-register .woocommerce-form-register__submit,
.ts-auth-btn {
    width: 100% !important;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(30, 155, 171, 0.2) !important;
    text-transform: uppercase !important;
}

.woocommerce-form-login .woocommerce-form-login__submit:hover,
.woocommerce-form-register .woocommerce-form-register__submit:hover,
.ts-auth-btn:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0d9488 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(30, 155, 171, 0.35) !important;
    color: white !important;
}

.woocommerce-form-login .woocommerce-form-login__submit:active,
.woocommerce-form-register .woocommerce-form-register__submit:active,
.ts-auth-btn:active {
    transform: translateY(0) !important;
}

.ts-auth-switch {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}

.ts-auth-switch a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

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

.ts-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
    background: var(--teal-light);
    border-radius: 12px;
    font-size: 13.5px;
    color: #155e75;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ts-info-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--teal);
}

.ts-privacy-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.ts-privacy-note a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.ts-privacy-note a:hover {
    text-decoration: underline;
}

/* Lost Password Form */
.woocommerce-ResetPassword {
    max-width: 440px;
    margin: 40px auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06);
}

.woocommerce-ResetPassword h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    text-align: center;
}

.woocommerce-ResetPassword p:first-of-type {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.woocommerce-ResetPassword .form-row-first,
.woocommerce-ResetPassword .form-row {
    margin-bottom: 18px;
}

.woocommerce-ResetPassword label {
    display: block;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.woocommerce-ResetPassword input.input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--dark);
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

.woocommerce-ResetPassword input.input-text:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
    outline: none;
}

.woocommerce-ResetPassword .woocommerce-Button,
.woocommerce-ResetPassword button[type="submit"] {
    width: 100%;
    background: var(--teal);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.3px;
}

.woocommerce-ResetPassword .woocommerce-Button:hover,
.woocommerce-ResetPassword button[type="submit"]:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.woocommerce-ResetPassword .woocommerce-Button:active,
.woocommerce-ResetPassword button[type="submit"]:active {
    transform: translateY(0);
}

.lost-password-back {
    text-align: center;
    margin-top: 18px !important;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.lost-password-back a {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.lost-password-back a:hover {
    color: var(--teal);
}

/* Auth Mobile */
@media (max-width: 768px) {
    .ts-auth-wrap {
        margin: 20px 10px;
    }
    .ts-auth-header h2 {
        font-size: 21px;
    }
    .ts-auth-tabs {
        gap: 6px;
        padding: 5px;
    }
    .ts-auth-tab {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .ts-auth-wrap {
        margin: 14px 6px;
    }
    .ts-auth-header h2 {
        font-size: 19px;
    }
    .ts-auth-tab svg {
        display: none;
    }
    .ts-form-row-flex {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ─ WOOCOMMERCE MY ACCOUNT DASHBOARD ─ */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 10px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.woocommerce-MyAccount-navigation li a::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: #f1f5f9;
    color: var(--teal);
    transform: translateX(3px);
}

.woocommerce-MyAccount-navigation li a:hover::before {
    background: var(--teal-light);
    opacity: 1;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--teal-light);
    color: var(--teal);
    font-weight: 700;
}

.woocommerce-MyAccount-navigation li.is-active a::before {
    background: var(--teal);
    opacity: 1;
}

/* Nav item icons */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '📊'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::before { content: '📦'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::before { content: '⬇️'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '📍'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '👤'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--license-keys a::before { content: '🔑'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '🚪'; background: none; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }

.woocommerce-MyAccount-content {
    flex: 1;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
    min-height: 400px;
}

/* Dashboard content styling */
.woocommerce-MyAccount-content p {
    color: #475569;
    line-height: 1.7;
    font-size: 15px;
}

.woocommerce-MyAccount-content .woocommerce-info {
    background: var(--teal-light);
    border: 1px solid rgba(30,155,171,0.25);
    border-radius: 12px;
    padding: 16px 20px;
    color: #155e75;
    font-weight: 500;
}

.woocommerce-MyAccount-content .woocommerce-info a {
    color: var(--teal);
    font-weight: 700;
}

.woocommerce-MyAccount-content address {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    font-style: normal;
    line-height: 1.8;
    color: #334155;
}

.woocommerce-MyAccount-content .edit-account fieldset {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.woocommerce-MyAccount-content .edit-account fieldset legend {
    font-weight: 700;
    color: var(--dark);
    padding: 0 8px;
    font-size: 15px;
}

/* Account form styling */
.woocommerce-MyAccount-content form label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    margin-bottom: 4px;
}

.woocommerce-MyAccount-content form input[type="text"],
.woocommerce-MyAccount-content form input[type="email"],
.woocommerce-MyAccount-content form input[type="password"],
.woocommerce-MyAccount-content form textarea,
.woocommerce-MyAccount-content form select {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    width: 100%;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form textarea:focus,
.woocommerce-MyAccount-content form select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
    outline: none;
}

.woocommerce-MyAccount-content form input[type="submit"],
.woocommerce-MyAccount-content .button {
    background: var(--teal) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 11px 28px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: 0.2s !important;
}

.woocommerce-MyAccount-content form input[type="submit"]:hover,
.woocommerce-MyAccount-content .button:hover {
    background: #0d9488 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3) !important;
}

/* Orders table */
.woocommerce-MyAccount-content table.shop_table {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.woocommerce-MyAccount-content table.shop_table thead th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.woocommerce-MyAccount-content table.shop_table tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.shop_table .button {
    padding: 6px 16px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

.woocommerce-MyAccount-content .wc-item-meta {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 13px;
    color: #64748b;
}

.woocommerce-MyAccount-content .wc-item-meta li {
    padding: 2px 0;
}

.woocommerce-MyAccount-content .download-file .button {
    padding: 4px 14px !important;
    font-size: 12px !important;
}

.woocommerce-MyAccount-content mark {
    background: transparent;
    color: var(--teal);
    font-weight: 700;
}

.woocommerce-MyAccount-content ins {
    text-decoration: none;
    font-weight: 700;
    color: var(--teal);
}

.woocommerce-MyAccount-content .order-again .button {
    padding: 8px 20px !important;
}

.woocommerce-MyAccount-content header.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.woocommerce-MyAccount-content header.title h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.woocommerce-MyAccount-content .woocommerce-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 14px 18px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Addresses */
.woocommerce-MyAccount-content .u-columns {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.woocommerce-MyAccount-content .u-columns .col-1,
.woocommerce-MyAccount-content .u-columns .col-2 {
    flex: 1;
    min-width: 260px;
}

.woocommerce-MyAccount-content .u-columns .col-1 header,
.woocommerce-MyAccount-content .u-columns .col-2 header {
    margin-bottom: 12px;
}

.woocommerce-MyAccount-content .u-columns h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.woocommerce-MyAccount-content .u-columns .edit {
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}

/* Mobile Dashboard */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
        position: static;
        border-radius: 12px;
        padding: 8px;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto;
        margin: 0;
    }

    .woocommerce-MyAccount-navigation li a {
        padding: 8px 14px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
        border-radius: 8px;
    }

    .woocommerce-MyAccount-navigation li a::before {
        width: 16px;
        height: 16px;
        font-size: 13px !important;
    }

    .woocommerce-MyAccount-navigation li a:hover {
        transform: none;
    }

    .woocommerce-MyAccount-navigation li.is-active a {
        background: var(--teal);
        color: white;
    }

    .woocommerce-MyAccount-content {
        padding: 20px;
        border-radius: 12px;
    }

    .woocommerce-MyAccount-content header.title h3 {
        font-size: 17px;
    }

    .woocommerce-MyAccount-content .u-columns {
        flex-direction: column;
    }

    .woocommerce-MyAccount-content table.shop_table {
        font-size: 13px;
    }

    .woocommerce-MyAccount-content table.shop_table thead th,
    .woocommerce-MyAccount-content table.shop_table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-navigation ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }

    .woocommerce-MyAccount-navigation li a {
        font-size: 12px;
        padding: 7px 12px;
        white-space: nowrap;
    }

    .woocommerce-MyAccount-content {
        padding: 16px;
        border-radius: 10px;
    }

    .woocommerce-MyAccount-content table.shop_table {
        font-size: 12px;
    }

    .woocommerce-MyAccount-content table.shop_table thead th,
    .woocommerce-MyAccount-content table.shop_table td {
        padding: 8px 10px;
    }

    .woocommerce-MyAccount-content .u-columns .col-1,
    .woocommerce-MyAccount-content .u-columns .col-2 {
        min-width: 100%;
    }
}

/* ─ PRELOADER ─ */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease-out, visibility 0.4s;
}

.loader-content {
  text-align: center;
}

.loader-text {
  margin-top: 15px;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid var(--teal);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
    position: relative;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ─ CATEGORY STRIP ─ */
.category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.cat-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(30, 155, 171, 0.1);
}

.cat-pill-icon {
    width: 24px;
    height: 24px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

/* ─ MINI CART ─ */
.nav-cart-wrap {
    position: relative;
}
.mini-cart-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.12);
    z-index: 1000;
    margin-top: 12px;
    padding: 0;
    overflow: hidden;
}
.nav-cart-wrap:hover .mini-cart-dropdown,
.nav-cart-wrap:focus-within .mini-cart-dropdown {
    display: block;
}
.mini-cart-header {
    padding: 14px 18px;
    font-weight: 800;
    font-size: 14px;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.mini-cart-items {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}
.mini-cart-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    transition: background 0.15s;
}
.mini-cart-item:hover {
    background: #fafafa;
}
.mini-cart-item-img img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
}
.mini-cart-item-info {
    flex: 1;
    min-width: 0;
}
.mini-cart-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-cart-item-qty {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}
.mini-cart-item-remove {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}
.mini-cart-item-remove:hover {
    color: #ef4444;
}
.mini-cart-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: #fafafa;
}
.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.mini-cart-subtotal span:last-child {
    color: var(--teal);
}
.mini-cart-checkout-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--teal);
    color: white;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.mini-cart-checkout-btn:hover {
    background: var(--teal-dark);
    color: white;
}

/* ─ DASHBOARD ─ */
.ts-dashboard h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}
.ts-dash-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 24px;
    background: var(--teal-light);
    border-radius: 16px;
}
.ts-dash-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ts-dash-greeting h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}
.ts-dash-greeting p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}
.ts-dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.ts-dash-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.ts-dash-card:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(30,155,171,0.1);
}
.ts-dash-card-icon {
    font-size: 28px;
}
.ts-dash-card-count {
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
}
.ts-dash-card-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─ DASHBOARD TABLE ─ */
.ts-dash-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}
.ts-dash-table thead th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.ts-dash-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.ts-dash-table tr:last-child td {
    border-bottom: none;
}
.ts-dash-table a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}
.ts-dash-table a:hover {
    text-decoration: underline;
}
.ts-dash-recent h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}
.ts-dash-none {
    color: var(--muted);
    font-size: 14px;
}

/* ─ ORDER STATUS BADGES ─ */
.ts-order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}
.status-completed { background: #f0fdf4; color: #166534; }
.status-processing { background: #eff6ff; color: #1d4ed8; }
.status-on-hold { background: #fef9c3; color: #a16207; }
.status-pending { background: #fff7ed; color: #c2410c; }
.status-cancelled { background: #fef2f2; color: #dc2626; }
.status-refunded { background: #f5f3ff; color: #6d28d9; }
.status-failed { background: #fef2f2; color: #dc2626; }
.status-checkout-draft { background: #f1f5f9; color: #475569; }

/* ─ BUTTON UTILITIES ─ */
.ts-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--teal);
    background: var(--teal-light);
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.ts-btn-sm:hover {
    background: var(--teal);
    color: white;
}
.ts-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}
.ts-btn-primary:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,155,171,0.25);
}
.ts-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: var(--teal);
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
}
.ts-btn-download:hover {
    background: var(--teal-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,155,171,0.25);
}

/* ─ EMPTY STATE ─ */
.ts-empty-state {
    text-align: center;
    padding: 48px 24px;
}
.ts-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.ts-empty-state p {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}
.ts-empty-sub {
    font-size: 13.5px !important;
    color: var(--muted) !important;
    font-weight: 400 !important;
    margin-bottom: 24px !important;
}

/* ─ ORDERS PAGE ─ */
.ts-orders-page h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}
.ts-orders-pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ─ DOWNLOADS PAGE ─ */
.ts-downloads-page h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}
.ts-downloads-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ts-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.2s;
}
.ts-download-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(30,155,171,0.06);
}
.ts-download-thumb {
    flex-shrink: 0;
}
.ts-download-img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8fafc;
}
.ts-download-img-placeholder {
    width: 56px;
    height: 56px;
    background: var(--teal-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.ts-download-info {
    flex: 1;
    min-width: 0;
}
.ts-download-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
}
.ts-download-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
}
.ts-download-action {
    flex-shrink: 0;
}

/* ─ RESPONSIVE MINI CART ─ */
@media (max-width: 768px) {
    .mini-cart-dropdown {
        position: fixed;
        top: auto;
        right: 10px;
        left: 10px;
        width: auto;
        margin-top: 8px;
    }
}

/* ─ RESPONSIVE TABLES ─ */
@media (max-width: 600px) {
    .ts-dash-table thead { display: none; }
    .ts-dash-table tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .ts-dash-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
        border-bottom: none;
    }
    .ts-dash-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #1e293b;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .ts-orders-table td:last-child::before {
        content: attr(data-label);
    }
    .ts-downloads-grid {
        gap: 10px;
    }
    .ts-download-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }
    .ts-download-meta {
        justify-content: center;
    }
}