/* ========================================
   SIFT BEARING STORE - High-end Industrial Blue Theme
   ======================================== */

:root {
  --primary: #0a2540;          /* Deep navy */
  --primary-dark: #061628;
  --primary-light: #12355b;
  --accent: #1e6bb8;           /* Industrial blue */
  --accent-hover: #2580d9;
  --accent-light: #e8f1fa;
  --steel: #4a5568;            /* Steel gray */
  --steel-light: #718096;
  --metal: #a0aec0;
  --bg: #f7fafc;
  --bg-dark: #1a202c;
  --white: #ffffff;
  --text: #1a202c;
  --text-light: #4a5568;
  --border: #e2e8f0;
  --success: #38a169;
  --shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 10px 40px rgba(10, 37, 64, 0.12);
  --radius: 6px;
  --transition: all 0.25s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

/* ========== Header ========== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  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);
}
.header-top a:hover {
  color: var(--white);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

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

.nav a {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
}
.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 107, 184, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  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.5;
}

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

.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.stat-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-badge .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* ========== Section Common ========== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}
.section-dark p {
  color: rgba(255,255,255,0.8);
}

/* ========== Brands ========== */
.brands-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.brands-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.brand-item {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--steel);
  letter-spacing: 1px;
  opacity: 0.7;
  transition: var(--transition);
}
.brand-item:hover {
  opacity: 1;
  color: var(--accent);
}

/* ========== Features ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.product-img {
  height: 180px;
  background: linear-gradient(145deg, #edf2f7, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img img {
  max-height: 140px;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.product-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.product-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 16px;
  flex: 1;
}

.product-meta span {
  display: inline-block;
  margin-right: 12px;
}

.product-footer {
  display: flex;
  gap: 8px;
}

/* ========== Categories ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  flex-shrink: 0;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.category-card .link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}
.category-card .link:hover {
  text-decoration: underline;
}

/* ========== Markets ========== */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.market-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}
.market-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.market-card .flag {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.market-card h3 {
  margin-bottom: 10px;
}

/* ========== CTA Banner ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

/* ========== Footer ========== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== Page Header ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 16px;
  opacity: 0.7;
}
.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========== Products Page ========== */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0 80px;
}

.filters {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-light);
}
.filter-group label:hover {
  color: var(--primary);
}

.filter-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.search-box {
  position: relative;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 107, 184, 0.15);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--steel-light);
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.products-count {
  color: var(--text-light);
  font-size: 0.95rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}
.pagination button:hover,
.pagination button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== About / Content Pages ========== */
.content-section {
  padding: 60px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}
.content-grid.reverse > * {
  direction: ltr;
}

.content-text h2 {
  margin-bottom: 20px;
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.content-image {
  background: linear-gradient(145deg, #edf2f7, #e2e8f0);
  border-radius: 12px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--steel);
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 107, 184, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .markets-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero {
    padding: 50px 0 60px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .header-main {
    padding: 12px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 50px 0;
  }
}

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
