/*
Theme Name: Wholesale Sensors
Theme URI: https://wholesalesensors.com
Author: Wholesale Sensors
Description: A professional theme for Wholesale Sensors - OEM replacement pressure and temperature sensors. Clean, industrial design for B2B sensor sales.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: wholesale-sensors
*/

/* Variables */
:root {
  --ws-primary: #1a365d;
  --ws-primary-dark: #0f2744;
  --ws-accent: #ed8936;
  --ws-accent-hover: #dd6b20;
  --ws-text: #2d3748;
  --ws-text-light: #4a5568;
  --ws-bg: #f7fafc;
  --ws-white: #ffffff;
  --ws-border: #e2e8f0;
  --ws-success: #38a169;
  --ws-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ws-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ws-text);
  background: var(--ws-bg);
}
a { color: var(--ws-primary); text-decoration: none; }
a:hover { color: var(--ws-accent); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.ws-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.ws-header {
  background: var(--ws-white);
  box-shadow: var(--ws-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ws-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.ws-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ws-primary);
}
.ws-logo span { color: var(--ws-accent); }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo-link img { max-height: 65px; width: auto; }
.ws-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}
.ws-nav a {
  font-weight: 500;
  color: var(--ws-text);
}
.ws-nav a:hover { color: var(--ws-accent); }

/* Hero */
.ws-hero {
  background: linear-gradient(135deg, var(--ws-primary) 0%, var(--ws-primary-dark) 100%);
  color: var(--ws-white);
  padding: 4rem 0;
  text-align: center;
}
.ws-hero h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
}
.ws-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.ws-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.ws-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s;
}
.ws-btn-primary {
  background: var(--ws-accent);
  color: var(--ws-white);
  border: none;
}
.ws-btn-primary:hover {
  background: var(--ws-accent-hover);
  color: var(--ws-white);
  transform: translateY(-1px);
}
.ws-btn-outline {
  background: transparent;
  color: var(--ws-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.ws-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ws-white);
  color: var(--ws-white);
}

/* Sections */
.ws-section {
  padding: 3rem 0;
}
.ws-section-alt { background: var(--ws-white); }
.ws-section-title {
  font-size: 1.75rem;
  margin: 0 0 2rem;
  color: var(--ws-primary);
  text-align: center;
}

/* Store Links */
.ws-stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ws-store-card {
  background: var(--ws-white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--ws-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--ws-border);
}
.ws-store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ws-shadow-lg);
}
.ws-store-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.ws-store-card-link:hover { color: inherit; }
.ws-store-logo {
  max-height: 60px;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}
.ws-store-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.ws-store-card .ws-store-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ws-accent);
}
.ws-store-card-link:hover .ws-store-link { color: var(--ws-accent-hover); }

/* Product Grid */
.ws-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.ws-product-card {
  background: var(--ws-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--ws-shadow);
  border: 1px solid var(--ws-border);
  transition: box-shadow 0.2s;
}
.ws-product-card:hover { box-shadow: var(--ws-shadow-lg); }
.ws-product-image-link {
  display: block;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  background: var(--ws-bg);
  aspect-ratio: 1;
}
.ws-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.ws-product-card .sku {
  font-size: 0.875rem;
  color: var(--ws-text-light);
  margin-bottom: 0.5rem;
}
.ws-product-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.ws-product-card h3 a { color: var(--ws-text); }
.ws-product-card h3 a:hover { color: var(--ws-accent); }
.ws-product-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.ws-product-links a {
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  background: var(--ws-bg);
  border-radius: 4px;
  font-weight: 500;
}
.ws-product-links a:hover {
  background: var(--ws-accent);
  color: var(--ws-white);
}

/* Category Tabs/Filters */
.ws-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.ws-category-nav a {
  padding: 0.5rem 1rem;
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  font-weight: 500;
}
.ws-category-nav a:hover,
.ws-category-nav a.active {
  background: var(--ws-primary);
  color: var(--ws-white);
  border-color: var(--ws-primary);
}

/* Product Category Section */
.ws-product-category {
  margin-bottom: 3rem;
}
.ws-product-category h2 {
  font-size: 1.25rem;
  color: var(--ws-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ws-accent);
}

/* Hero Small (About page) */
.ws-hero-small {
  padding: 2.5rem 0;
}
.ws-hero-small h1 { font-size: 2rem; }
.ws-hero-small p { font-size: 1.1rem; margin-bottom: 0; }

/* About Page */
.ws-about-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.ws-about-lead {
  font-size: 1.125rem;
  line-height: 1.7;
}
.ws-about-cards .ws-store-card {
  text-align: left;
}
.ws-about-cards .ws-store-card h3 {
  text-align: left;
}
.ws-about-cards .ws-store-card p,
.ws-about-cards .ws-store-card ul {
  text-align: left;
}
.ws-about-list {
  margin: 0;
  padding-left: 1.25rem;
}
.ws-about-list li {
  margin-bottom: 0.5rem;
}
.ws-about-support {
  max-width: 640px;
  margin: 1.5rem auto 1.5rem;
  text-align: center;
}
.ws-about-stores {
  margin-top: 2rem;
}
.ws-about-stores .ws-section-title {
  margin-bottom: 1rem;
}
.ws-about-stores-intro {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--ws-text-light);
}
.ws-warranty-badge {
  display: inline-block;
  background: var(--ws-success);
  color: var(--ws-white);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Footer */
.ws-footer {
  background: var(--ws-primary-dark);
  color: var(--ws-white);
  padding: 2rem 0;
  margin-top: 3rem;
}
.ws-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.ws-footer a { color: rgba(255,255,255,0.9); }
.ws-footer a:hover { color: var(--ws-accent); }
.ws-footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ws-footer-logo-link {
  display: flex;
  align-items: center;
}
.ws-footer-logo-link img {
  max-height: 48px;
  width: auto;
}
.ws-footer .custom-logo-link {
  display: flex;
  align-items: center;
}
.ws-footer .custom-logo-link img {
  max-height: 48px;
  width: auto;
}
.ws-footer-text-logo {
  color: rgba(255,255,255,0.95) !important;
  font-size: 1.25rem;
}
.ws-footer-text-logo span { color: var(--ws-accent); }

/* Search */
.ws-search-form {
  margin: 2rem 0;
}
.ws-search-form input {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--ws-border);
  border-radius: 6px;
  font-size: 1rem;
}
.ws-search-form input:focus {
  outline: none;
  border-color: var(--ws-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .ws-hero h1 { font-size: 1.75rem; }
  .ws-nav ul { gap: 1rem; }
  .ws-products-grid { grid-template-columns: 1fr; }
  .ws-footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
