/* Dark Theme for VapingParts.com */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e8e8e8;
  --text-primary: #333333;
  --text-secondary: #666666;
  --border-color: #dddddd;
  --accent-color: #5cb85c;
}

[data-theme='dark'] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --bg-tertiary: #333333;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --border-color: #444444;
  --accent-color: #6bc76b;
}

[data-theme='dark'] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme='dark'] .container,
[data-theme='dark'] .brands,
[data-theme='dark'] .categories-home {
  background-color: var(--bg-primary);
}

/* Category boxes - fix labels */
[data-theme='dark'] .featured-category {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme='dark'] .featured-footer {
  background-color: #444444 !important;
}

[data-theme='dark'] .featured-footer h4,
[data-theme='dark'] .featured-category h4,
[data-theme='dark'] .categories-home h4,
[data-theme='dark'] .featured-footer h4.text-center {
  color: #ffffff !important;
}

/* Headings */
[data-theme='dark'] h1, 
[data-theme='dark'] h2, 
[data-theme='dark'] h3, 
[data-theme='dark'] h4, 
[data-theme='dark'] h5, 
[data-theme='dark'] h6,
[data-theme='dark'] .title h1,
[data-theme='dark'] .title h2,
[data-theme='dark'] .all-deals {
  color: var(--text-primary);
}

/* Text */
[data-theme='dark'] p,
[data-theme='dark'] span {
  color: var(--text-secondary);
}

[data-theme='dark'] a {
  color: var(--text-secondary);
}

[data-theme='dark'] a:hover {
  color: var(--accent-color);
}

/* Buttons */
[data-theme='dark'] .btn,
[data-theme='dark'] button {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

[data-theme='dark'] .btn:hover,
[data-theme='dark'] button:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Forms */
[data-theme='dark'] input,
[data-theme='dark'] select,
[data-theme='dark'] textarea {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

/* Header and Footer */
[data-theme='dark'] .navbar,
[data-theme='dark'] header {
  background-color: #0d0d0d;
}

[data-theme='dark'] footer,
[data-theme='dark'] .footer {
  background-color: #0d0d0d;
}

/* Products */
[data-theme='dark'] .product,
[data-theme='dark'] .product-item,
[data-theme='dark'] .itemqqq {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme='dark'] .product-name,
[data-theme='dark'] .product-title,
[data-theme='dark'] .entry-title {
  color: var(--text-primary) !important;
}

[data-theme='dark'] .price {
  color: var(--accent-color);
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: #333;
}

[data-theme='dark'] .theme-toggle {
  background-color: #333;
  border-color: #555;
}

[data-theme='dark'] .theme-toggle svg {
  fill: #fff;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme='dark'] .theme-toggle .sun-icon { display: block; }
[data-theme='dark'] .theme-toggle .moon-icon { display: none; }

/* Smooth transitions */
body, .container, .featured-category, .featured-footer, header, footer, .product {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Category labels - high specificity fix */
[data-theme='dark'] .categories-home .featured-category .featured-footer {
  background: #333 !important;
}

[data-theme='dark'] .categories-home .featured-category .featured-footer h4 {
  color: #fff !important;
}

/* Ultimate fix for category labels */
html[data-theme='dark'] body .container.categories-home .row .col-md-3 a .featured-category .featured-footer {
  background-color: #444 !important;
}

html[data-theme='dark'] body .container.categories-home .row .col-md-3 a .featured-category .featured-footer h4.text-center {
  color: #ffffff !important;
}
