@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/*
Theme Name: PP Superwheel
Theme URI: https://ppsuperwheels.com
Description: Custom high-performance automotive theme for PP Superwheel based on updated brand design layout.
Author: Antigravity
Version: 1.2.0
*/

:root {
  --font-display: 'Kanit', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  --font-mono: 'Kanit', sans-serif;
  --font-barlow: 'Barlow Condensed', sans-serif;
  
  --primary: #E65100;
  --primary-hover: #BF4000;
  --secondary: #0E5EBA;
  --secondary-hover: #094792;
  --bg-light: #F4F7FC;
  --bg-alt: #EEF3FA;
  --card-light: #FFFFFF;
  --border-light: #D0DCEA;
  --text-dark: #1A1A2A;
  --text-muted: #5A6880;
  --brand-blue: #0E5EBA;
}

.font-barlow-num,
.spec-number,
.barlow-num {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 500 !important;
  font-size: 12px !important;
}


body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── WordPress Admin Bar Offset ── */
/* When logged in, WP adds a 32px admin bar (#wpadminbar) at top.
   Shift the fixed header and main content down to sit below it. */
body.admin-bar #mainHeader {
  top: 32px;
}
body.admin-bar main {
  padding-top: calc(64px + 32px) !important;
}
/* On mobile, admin bar is 46px */
@media screen and (max-width: 782px) {
  body.admin-bar #mainHeader {
    top: 46px;
  }
  body.admin-bar main {
    padding-top: calc(64px + 46px) !important;
  }
}

/* Typography Utility Classes */
.font-display { font-family: var(--font-display) !important; }
.font-body { font-family: var(--font-body) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Section Heading Style */
.section-title {
  color: var(--secondary);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.875rem;
  letter-spacing: 0.05em;
}

/* Micro-interactions */
a, button, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active:not(:disabled), a[href]:active {
  transform: scale(0.98) translateY(1px);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(14, 94, 186, 0.3);
  border-color: var(--secondary);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #EEF3FA; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 3px; }

/* Glass Header */
.glass-header {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* Product Card Styling */
.product-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 25px rgba(14, 94, 186, 0.12);
  transform: translateY(-3px);
}

/* Brand Grid Badge & Box */
.brand-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  transition: all 0.2s ease;
}

.brand-box:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(14, 94, 186, 0.1);
}

/* Before / After Drag Slider */
.ba-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--primary);
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 20;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 15px rgba(230, 81, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
