/*
Theme Name: Teesside Pro Ecommerce
Theme URI: https://teessideairsupplyltd.com/
Author: Teesside Air Supply Ltd
Author URI: https://teessideairsupplyltd.com/
Description: Clean, modern, high-performance white-background ecommerce theme engineered for Teesside Air Supply Ltd welding and engineering catalog.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 8.0
Text Domain: teesside-pro
License: Proprietary
*/

/* ==========================================================================
   1. CSS VARIABLES & DESIGN SYSTEM (ACCESSIBLE, PROFESSIONAL INDUSTRIAL)
   ========================================================================== */
:root {
  --tp-bg: #ffffff;
  --tp-bg-alt: #f8fafc;
  --tp-bg-subtle: #f1f5f9;
  
  --tp-text-main: #0f172a;
  --tp-text-body: #334155;
  --tp-text-muted: #64748b;
  --tp-text-light: #94a3b8;
  
  --tp-navy-950: #020617;
  --tp-navy-900: #0f172a;
  --tp-navy-800: #1e293b;
  
  --tp-blue-600: #0066cc;
  --tp-blue-700: #0052a3;
  --tp-blue-800: #003d7a;
  --tp-blue-50:  #eff6ff;
  --tp-blue-100: #dbeafe;
  
  --tp-cyan-500: #0ea5e9;
  --tp-cyan-400: #38bdf8;
  
  --tp-green-600: #16a34a;
  --tp-green-700: #15803d;
  --tp-green-50:  #f0fdf4;
  
  --tp-amber-500: #f59e0b;
  --tp-amber-600: #d97706;
  
  --tp-border: #e2e8f0;
  --tp-border-subtle: #f1f5f9;
  --tp-border-strong: #cbd5e1;
  
  --tp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --tp-radius-sm: 6px;
  --tp-radius-md: 10px;
  --tp-radius-lg: 14px;
  --tp-radius-full: 9999px;
  
  --tp-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --tp-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --tp-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --tp-shadow-hover: 0 14px 25px -4px rgba(0, 102, 204, 0.12), 0 6px 10px -4px rgba(15, 23, 42, 0.05);
}

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

html {
  font-family: var(--tp-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tp-text-body);
  background-color: var(--tp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--tp-bg);
  color: var(--tp-text-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

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

a {
  color: var(--tp-blue-600);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--tp-blue-700);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  line-height: inherit;
  color: inherit;
}

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

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.tp-container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.tp-header {
  width: 100%;
  background: #ffffff;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Top Trust Bar */
.tp-topbar {
  background: var(--tp-navy-900);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tp-topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tp-topbar-item .icon {
  color: var(--tp-cyan-400);
  font-weight: 800;
}

.tp-topbar-right .tp-topbar-phone {
  color: var(--tp-cyan-400);
  font-weight: 700;
}

.tp-topbar-right .tp-topbar-phone:hover {
  color: #ffffff;
}

/* Main Header */
.tp-header-main {
  padding: 16px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--tp-border);
}

.tp-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.tp-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.tp-logo-icon {
  flex-shrink: 0;
}

.tp-logo-text {
  display: flex;
  flex-direction: column;
}

.tp-logo-brand {
  font-size: 19px;
  font-weight: 900;
  color: var(--tp-navy-900);
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.tp-logo-sub {
  font-size: 10px;
  font-weight: 800;
  color: var(--tp-blue-600);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Large Functional Search Bar */
.tp-header-search {
  flex: 1;
  max-width: 620px;
}

.tp-search-form {
  display: flex;
  width: 100%;
  position: relative;
}

.tp-search-input {
  width: 100%;
  height: 48px;
  background: var(--tp-bg-alt);
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-md) 0 0 var(--tp-radius-md);
  padding: 0 16px;
  font-size: 15px;
  color: var(--tp-text-main);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.tp-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--tp-blue-600);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.tp-search-btn {
  height: 48px;
  padding: 0 22px;
  background: var(--tp-blue-600);
  color: #ffffff;
  border: none;
  border-radius: 0 var(--tp-radius-md) var(--tp-radius-md) 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}

.tp-search-btn:hover {
  background: var(--tp-blue-700);
}

/* Actions: Account & Cart */
.tp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tp-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--tp-radius-md);
  border: 1px solid var(--tp-border);
  background: #ffffff;
  color: var(--tp-text-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tp-action-btn:hover {
  border-color: var(--tp-blue-600);
  background: var(--tp-blue-50);
  color: var(--tp-blue-600);
}

.tp-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--tp-blue-600);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--tp-text-main);
  cursor: pointer;
}

/* Primary Desktop Navigation Bar */
.tp-nav-bar {
  background: #ffffff;
  border-bottom: 1.5px solid var(--tp-border);
  position: relative;
}

.tp-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-between;
}

.tp-nav-item {
  position: relative;
}

.tp-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tp-text-main);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tp-nav-link .arr {
  font-size: 9px;
  color: var(--tp-text-muted);
  transition: transform 0.2s ease;
}

.tp-nav-item:hover .tp-nav-link {
  color: var(--tp-blue-600);
}

.tp-nav-item:hover .tp-nav-link .arr {
  transform: rotate(180deg);
  color: var(--tp-blue-600);
}

/* Dropdown Menu */
.tp-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: 0 0 var(--tp-radius-md) var(--tp-radius-md);
  box-shadow: var(--tp-shadow-lg);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

.tp-nav-item:hover .tp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tp-dropdown-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--tp-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-dropdown-header strong {
  font-size: 13px;
  font-weight: 800;
  color: var(--tp-text-main);
}

.tp-dropdown-header .view-all-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-blue-600);
}

.tp-dropdown-link {
  display: block;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tp-text-body);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tp-dropdown-link:hover {
  background-color: var(--tp-blue-50);
  color: var(--tp-blue-600);
  padding-left: 20px;
}

/* Mobile Drawer */
.tp-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.tp-mobile-drawer.open {
  visibility: visible;
}

.tp-drawer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tp-mobile-drawer.open .tp-drawer-backdrop {
  opacity: 1;
}

.tp-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.2);
}

.tp-mobile-drawer.open .tp-drawer-panel {
  transform: translateX(0);
}

.tp-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--tp-text-main);
  cursor: pointer;
  padding: 4px 8px;
}

.tp-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.tp-drawer-menu {
  list-style: none;
}

.tp-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 16px;
}

.tp-drawer-link {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tp-text-main);
}

.tp-drawer-sub-toggle {
  background: var(--tp-bg-subtle);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tp-drawer-sub {
  list-style: none;
  background: var(--tp-bg-alt);
  display: none;
  border-top: 1px solid var(--tp-border-subtle);
  border-bottom: 1px solid var(--tp-border-subtle);
}

.tp-drawer-sub.open {
  display: block;
}

.tp-drawer-sub-link {
  display: block;
  padding: 10px 20px 10px 32px;
  font-size: 14px;
  color: var(--tp-text-body);
}

/* ==========================================================================
   4. HOMEPAGE COMPONENTS
   ========================================================================== */
.tp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.tp-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.tp-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--tp-radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--tp-cyan-400);
  margin-bottom: 20px;
}

.tp-hero-content h1 {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.18;
}

.tp-hero-content h1 .blue {
  color: var(--tp-cyan-400);
}

.tp-hero-content p {
  font-size: 16.5px;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.tp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--tp-blue-600);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease;
  min-height: 48px;
}

.tp-btn-primary:hover {
  background: var(--tp-blue-700);
  color: #ffffff;
  transform: translateY(-1px);
}

.tp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--tp-radius-md);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
}

.tp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}

/* 4 Trust Value Props */
.tp-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-hero-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--tp-radius-md);
  padding: 14px 18px;
  transition: background-color 0.15s ease;
}

.tp-hero-badge-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.tp-hero-badge-card .badge-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.tp-hero-badge-card .badge-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.tp-hero-badge-card .badge-body span {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
}

/* Sections */
.tp-section {
  padding: 56px 0;
  background: #ffffff;
}

.tp-section-alt {
  background: var(--tp-bg-alt);
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
}

.tp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 20px;
}

.tp-section-title {
  font-size: 1.85rem;
  color: var(--tp-text-main);
  margin-bottom: 6px;
}

.tp-section-subtitle {
  font-size: 15px;
  color: var(--tp-text-muted);
  max-width: 650px;
}

.tp-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tp-blue-600);
  white-space: nowrap;
}

.tp-section-link:hover {
  color: var(--tp-blue-700);
}

/* Category Grid (8 Columns) */
.tp-category-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tp-cat-card {
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--tp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tp-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--tp-blue-600);
  box-shadow: var(--tp-shadow-hover);
}

.tp-cat-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.tp-cat-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--tp-text-main);
  margin-bottom: 6px;
}

.tp-cat-card-count {
  font-size: 13px;
  color: var(--tp-text-muted);
  line-height: 1.45;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tp-cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tp-blue-600);
}

/* Brand Grid */
.tp-brand-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tp-brand-card {
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 14px 20px;
  text-align: center;
  min-width: 150px;
  box-shadow: var(--tp-shadow-sm);
}

.tp-brand-name {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--tp-navy-900);
  letter-spacing: 0.5px;
}

.tp-brand-desc {
  font-size: 11.5px;
  color: var(--tp-text-muted);
}

/* ==========================================================================
   5. PRODUCT GRID & CARD COMPONENTS (SHOP & ARCHIVES)
   ========================================================================== */
.tp-product-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tp-product-card {
  background: #ffffff;
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--tp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  height: 100%;
}

.tp-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--tp-blue-600);
  box-shadow: var(--tp-shadow-hover);
}

.tp-card-badge-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.tp-badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tp-green-50);
  color: var(--tp-green-700);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--tp-radius-full);
  padding: 3px 8px;
}

.tp-badge-stock span {
  font-size: 8px;
}

.tp-card-img-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 16px;
  height: 200px;
  overflow: hidden;
  text-decoration: none;
}

.tp-card-img-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

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

.tp-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  border-top: 1px solid var(--tp-border-subtle);
}

.tp-card-title {
  margin-bottom: 12px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
  height: 2.76em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tp-card-title a {
  color: var(--tp-text-main);
}

.tp-card-title a:hover {
  color: var(--tp-blue-600);
}

/* Dual Pricing */
.tp-card-price-box {
  margin-bottom: 14px;
}

.tp-dual-price {
  display: flex;
  flex-direction: column;
}

.tp-dual-price-card .tp-price-inc .amount {
  font-size: 18.5px;
  font-weight: 900;
  color: var(--tp-blue-600);
}

.tp-dual-price-card .tp-price-inc .tp-vat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-blue-600);
  margin-left: 4px;
}

.tp-dual-price-card .tp-price-ex {
  font-size: 13px;
  font-weight: 500;
  color: var(--tp-text-muted);
}

/* Card Button */
.tp-btn-cart {
  width: 100%;
  height: 44px;
  background: var(--tp-blue-600);
  color: #ffffff;
  border: none;
  border-radius: var(--tp-radius-sm);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.tp-btn-cart:hover {
  background: var(--tp-blue-700);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   6. SHOP ARCHIVE PAGE & FILTERS
   ========================================================================== */
.tp-archive-page {
  padding: 36px 20px 60px;
}

.tp-archive-header {
  margin-bottom: 32px;
  border-bottom: 1.5px solid var(--tp-border);
  padding-bottom: 24px;
}

.tp-archive-breadcrumb {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--tp-text-muted);
}

.tp-archive-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.tp-archive-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tp-text-main);
  margin: 0;
}

.tp-archive-desc {
  font-size: 14.5px;
  color: var(--tp-text-body);
  margin-top: 8px;
  max-width: 800px;
}

.tp-archive-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tp-result-count {
  font-size: 14px;
  color: var(--tp-text-muted);
}

.tp-catalog-ordering select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm);
  background: #ffffff;
  color: var(--tp-text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Category Filter Pills Bar */
.tp-category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 14px;
  scrollbar-width: thin;
}

.tp-cat-filter-pill {
  padding: 8px 16px;
  border-radius: var(--tp-radius-full);
  border: 1px solid var(--tp-border);
  background: var(--tp-bg-alt);
  color: var(--tp-text-main);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.tp-cat-filter-pill:hover,
.tp-cat-filter-pill.active {
  background: var(--tp-blue-600);
  color: #ffffff;
  border-color: var(--tp-blue-600);
}

/* Pagination */
.tp-pagination-wrapper {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul {
  display: flex;
  list-style: none;
  gap: 6px;
  border: none !important;
}

.woocommerce-pagination ul li {
  border: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--tp-radius-sm);
  border: 1px solid var(--tp-border);
  background: #ffffff;
  color: var(--tp-text-main);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background: var(--tp-blue-600);
  border-color: var(--tp-blue-600);
  color: #ffffff;
}

/* Empty Catalog State */
.tp-empty-catalog-card {
  text-align: center;
  padding: 60px 20px;
  background: var(--tp-bg-alt);
  border-radius: var(--tp-radius-lg);
  border: 1px solid var(--tp-border);
  max-width: 600px;
  margin: 40px auto;
}

.tp-empty-catalog-card h2 {
  margin-bottom: 10px;
}

.tp-empty-catalog-card p {
  color: var(--tp-text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   7. SINGLE PRODUCT PAGE
   ========================================================================== */
.tp-single-product {
  padding: 32px 20px 60px;
}

.tp-single-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

/* Gallery Stage & Arrows */
.tp-single-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-gallery-stage {
  width: 100%;
  min-height: 440px;
  max-height: 520px;
  background: #ffffff;
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tp-gallery-stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: contain;
  cursor: zoom-in;
}

.tp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.15s ease;
}

.tp-gallery-arrow:hover {
  background: var(--tp-blue-600);
}

.tp-gallery-prev { left: 14px; }
.tp-gallery-next { right: 14px; }

.tp-gallery-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tp-radius-full);
}

.tp-gallery-zoom-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: var(--tp-shadow-sm);
}

.tp-gallery-zoom-btn:hover {
  background: var(--tp-blue-50);
  border-color: var(--tp-blue-600);
  color: var(--tp-blue-600);
}

/* Gallery Thumbnails */
.tp-gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.tp-thumb-btn {
  width: 72px;
  height: 72px;
  border: 2px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.tp-thumb-btn.active,
.tp-thumb-btn:hover {
  border-color: var(--tp-blue-600);
}

.tp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info Column */
.tp-product-info {
  display: flex;
  flex-direction: column;
}

.tp-product-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--tp-text-main);
  margin-bottom: 12px;
}

.tp-meta-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--tp-text-muted);
  margin-bottom: 24px;
}

.tp-meta-strip .stock-status.in-stock {
  color: var(--tp-green-600);
  font-weight: 700;
}

/* Single Dual Price Box */
.tp-single-price-box {
  background: var(--tp-bg-alt);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.tp-dual-price-single .tp-price-inc .amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tp-blue-600);
  line-height: 1.1;
}

.tp-dual-price-single .tp-price-inc .tp-vat-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--tp-blue-600);
  margin-left: 6px;
}

.tp-dual-price-single .tp-price-ex {
  font-size: 16px;
  font-weight: 600;
  color: var(--tp-text-muted);
  margin-top: 4px;
}

/* Quantity & Buttons */
.tp-add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.tp-qty-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  background: #ffffff;
  overflow: hidden;
  width: 140px;
}

.tp-qty-btn {
  width: 42px;
  height: 44px;
  background: var(--tp-bg-alt);
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  color: var(--tp-text-main);
  transition: background-color 0.15s ease;
}

.tp-qty-btn:hover {
  background: var(--tp-blue-50);
  color: var(--tp-blue-600);
}

.tp-qty-input {
  width: 56px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--tp-text-main);
}

.tp-action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-btn-single-cart {
  width: 100%;
  height: 52px;
  background: var(--tp-blue-600);
  color: #ffffff;
  border: none;
  border-radius: var(--tp-radius-md);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.tp-btn-single-cart:hover {
  background: var(--tp-blue-700);
  transform: translateY(-1px);
}

.tp-btn-buy-now {
  width: 100%;
  height: 48px;
  background: var(--tp-navy-900);
  color: #ffffff;
  border: none;
  border-radius: var(--tp-radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tp-btn-buy-now:hover {
  background: #020617;
}

/* Trust Guarantee Box */
.tp-trust-guarantee-box {
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 20px;
  box-shadow: var(--tp-shadow-sm);
}

.tp-trust-guarantee-box .box-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--tp-text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tp-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}

.tp-trust-item .check {
  color: var(--tp-green-600);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
}

.tp-trust-item strong {
  display: block;
  color: var(--tp-text-main);
  font-size: 13.5px;
}

.tp-trust-item span {
  color: var(--tp-text-muted);
  font-size: 12.5px;
}

/* Specifications & Content Body */
.tp-product-tabs {
  border-top: 1.5px solid var(--tp-border);
  padding-top: 40px;
  margin-bottom: 56px;
}

.tp-tabs-header h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.tp-product-content-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tp-text-body);
  max-width: 960px;
}

.tp-product-content-body p {
  margin-bottom: 18px;
}

.tp-product-content-body h3,
.tp-product-content-body h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--tp-text-main);
}

.tp-product-content-body ul,
.tp-product-content-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.tp-product-content-body li {
  margin-bottom: 8px;
}

.tp-product-content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #ffffff;
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  overflow: hidden;
}

.tp-product-content-body table td,
.tp-product-content-body table th {
  padding: 12px 18px;
  border: 1px solid var(--tp-border);
  font-size: 14.5px;
}

.tp-product-content-body table tr:nth-child(even) {
  background: var(--tp-bg-alt);
}

.tp-product-content-body table td:first-child {
  font-weight: 700;
  color: var(--tp-text-main);
  width: 35%;
}

/* Related Products */
.tp-related-products {
  border-top: 1.5px solid var(--tp-border);
  padding-top: 40px;
}

/* Lightbox Modal */
.tp-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tp-lightbox-modal.open {
  visibility: visible;
  opacity: 1;
}

.tp-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.tp-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--tp-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.tp-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--tp-text-main);
  cursor: pointer;
}

/* ==========================================================================
   8. CART, CHECKOUT & CHATWAY SPACING
   ========================================================================== */
.woocommerce-checkout {
  padding-bottom: 120px !important; /* Critical clearance for Chatway widget */
}

#chatway-widget {
  margin-bottom: 24px !important;
  z-index: 9999 !important;
}

.woocommerce-checkout #payment {
  background: var(--tp-bg-alt);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-md);
  padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 1px solid var(--tp-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.woocommerce-checkout #place_order {
  height: 52px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--tp-blue-600) !important;
  border-radius: var(--tp-radius-md) !important;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.tp-footer {
  background: var(--tp-navy-950);
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.tp-footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
}

.tp-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
}

.tp-footer-col ul li a:hover {
  color: #ffffff;
}

.tp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* ==========================================================================
   10. MOBILE & RESPONSIVE BREAKPOINTS (320px, 360px, 375px, 390px, 430px, 768px, 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .tp-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tp-category-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tp-product-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
  .tp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tp-nav-bar {
    display: none; /* Collapses into mobile drawer */
  }
  .tp-mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .tp-header-main-inner {
    flex-wrap: wrap;
  }
  .tp-header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .tp-product-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .tp-single-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tp-gallery-stage {
    min-height: 360px;
    max-height: 420px;
  }
  .tp-archive-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .tp-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .tp-hero {
    padding: 36px 0;
  }
  .tp-hero-content h1 {
    font-size: 1.85rem;
  }
  .tp-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .tp-btn-primary, .tp-btn-secondary {
    width: 100%;
  }
  .tp-category-grid-8 {
    grid-template-columns: 1fr;
  }
  /* 2-column mobile cards down to 360px */
  .tp-product-grid-4col {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tp-card-img-stage {
    height: 150px;
    padding: 10px;
  }
  .tp-card-title {
    font-size: 13px;
    height: 2.6em;
  }
  .tp-dual-price-card .tp-price-inc .amount {
    font-size: 15px;
  }
  .tp-btn-cart {
    height: 38px;
    font-size: 12px;
  }
}

/* Extra small screens (320px) */
@media (max-width: 350px) {
  .tp-product-grid-4col {
    grid-template-columns: 1fr;
  }
}
