:root {
  /* Light Theme Colors (Default) */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f0f3fa;
  --border: #e2e7f0;
  --text: #0b1220;
  --text2: white;
  --muted: #5a6478;
  --accent: #2f6bff;
  --accent-hover: #1f57e0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Dark Theme (Triggered by adding 'dark' class to body) */
body.dark {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #16223b;
  --border: #1f2c48;
  --text: #e6ecf7;
  --text2: black;
  --muted: #9aa7bd;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* --- Base & Reset Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, 
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* --- My Gear Page Styling --- */

.gear-section {
  color: var(--text, #0f172a);
}

.gear-section .container {
  max-width: none;
  margin: 0 auto;
  width: 95%;
}

/* Header */
.gear-header {
  text-align: center;
  margin-bottom: 3.5rem;
  
}

.gear-header h1 {
    margin-top: 15px;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.gear-header p {
  color: var(--muted, #64748b);
  font-size: 1rem;
}

/* Categories */
.gear-category {
  margin-bottom: 4rem;
  width: 100%;
}

.gear-category h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text, #0f172a);
}

.gear-category h2 i {
  color: var(--accent, #3b82f6);
}

/* Grid Layout (4 Cards in a Row on PC) */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Card Styling */
.gear-card {
  background-color: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.gear-img {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: var(--border, #f1f5f9);
}

.gear-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gear-card:hover .gear-img img {
  transform: scale(1.05);
}

.gear-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gear-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  margin-top: 1rem;
  color: var(--text, #0f172a);
}

.gear-info p {
  font-size: 0.9rem;
  color: var(--muted, #64748b);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Buy Button (Amazon Style) */
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  background-color: var(--text) !important; 
  color: #ffffff ;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
body.dark .buy-btn {
  background-color: var(--bg);
  color: var(--surface) !important;
}

.buy-btn:hover {
  background-color: var(--accent, #3b82f6);
}

/* 🌙 Dark Mode Support */
body.dark .gear-card {
  background-color: var(--surface, #1e293b);
  border-color: var(--border, #334155);
}

body.dark .buy-btn {
  background-color: #0f172a;
  border: 1px solid #334155;
}

body.dark .buy-btn:hover {
  background-color: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
}

/* 📱 Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .gear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gear-grid {
    grid-template-columns: 1fr;
  }
  
  .gear-header h1 {
    font-size: 1.8rem;
  }

  .gear-img {
  height: 200px;
}
  
}