/*
Theme Name: VW Beetle Parts Pro
Theme URI: https://vwbeetleparts.store/
Author: VW Beetle Parts
Author URI: https://vwbeetleparts.store/
Description: Professional, modern WooCommerce theme for VW Beetle parts, engines, interiors and workshop services. Clean automotive design with strong CTAs, product focus and mobile-first layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vwbeetleparts
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template
*/

/* =========================================================
   CSS Variables & Base
   ========================================================= */
:root {
  --primary: #0a1628;
  --primary-light: #14233d;
  --accent: #e85d04;
  --accent-hover: #f48c06;
  --accent-soft: rgba(232, 93, 4, 0.12);
  --text: #1a1a1a;
  --text-muted: #5a6472;
  --bg: #f7f8fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.12);
  --font-heading: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-top {
  background: #06101c;
  font-size: 13px;
  padding: 8px 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a {
  color: rgba(255,255,255,0.85);
  margin-right: 18px;
}
.header-top a:hover { color: var(--accent); }
.header-top svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

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

.site-logo img {
  max-height: 48px;
  width: auto;
}

.site-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}
.site-title a { color: inherit; }
.site-title span { color: var(--accent); }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 6px;
  display: block;
  transition: all 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cart {
  position: relative;
  color: var(--white);
  font-size: 22px;
  padding: 8px;
}
.header-cart .count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  color: var(--white);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-content h1 span { color: var(--accent); }

.hero-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  color: var(--accent);
  font-weight: 800;
}
.hero-stat span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-visual {
  text-align: center;
}
.hero-visual img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* Category cards */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card .card-image {
  height: 180px;
  background: linear-gradient(145deg, #1a3a5c, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.category-card .card-body {
  padding: 28px 24px;
}
.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.category-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-image {
  aspect-ratio: 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  flex: 1;
}
.product-card h3 a { color: var(--primary); }
.product-card h3 a:hover { color: var(--accent); }

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Features / Trust */
.features-bar {
  background: var(--primary);
  color: white;
  padding: 40px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.feature-item svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  color: var(--accent);
}
.feature-item h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(90deg, var(--accent), #f48c06);
  color: white;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 28px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}

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

.footer-brand .site-title {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   WooCommerce Overrides
   ========================================================= */
.woocommerce .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  padding: 0 !important;
  float: none !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  padding: 0 16px;
  margin: 12px 0 6px;
}

.woocommerce ul.products li.product .price {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 18px;
  padding: 0 16px;
  margin-bottom: 12px;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--accent) !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  margin: 0 16px 16px !important;
  transition: all 0.2s !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--accent-hover) !important;
}

.woocommerce span.onsale {
  background: var(--accent) !important;
  border-radius: 4px !important;
}

.woocommerce-page .content-area,
.woocommerce .content-area {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
}

.woocommerce div.product .product_title {
  font-size: 28px;
}

.woocommerce div.product p.price {
  color: var(--accent) !important;
  font-size: 26px;
  font-weight: 700;
}

.woocommerce div.product form.cart .button {
  background: var(--accent) !important;
  padding: 14px 32px !important;
}

/* =========================================================
   Page & Single
   ========================================================= */
.page-header {
  background: var(--primary);
  color: white;
  padding: 48px 0;
  text-align: center;
}
.page-header h1 {
  color: white;
  font-size: 32px;
}

.content-area {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .categories-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .header-top { display: none; }
}