﻿:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-muted: #f0f0f0;
  --text: #333333;
  --text-light: #666666;
  --accent: #ff4500;
  --accent-dark: #e33a00;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.dark-mode {
  --bg: #111111;
  --surface: #1c1c1c;
  --surface-muted: #242424;
  --text: #f5f5f5;
  --text-light: #cccccc;
  --shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

header {
  background: #222222;
  color: #ffffff;
  padding: 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

nav a:hover {
  text-decoration: underline;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filters input,
.filters select,
.filters button,
.active-tag-bar button,
.tag-chip,
.pagination button,
.product-card .btn {
  border-radius: 8px;
  font-size: 0.9rem;
}

.filters input,
.filters select {
  padding: 0.65rem 0.8rem;
  border: 1px solid #cccccc;
  background: var(--surface);
  color: var(--text);
}

.filters button,
.active-tag-bar button,
.pagination button,
.product-card .btn {
  border: none;
  cursor: pointer;
}

.filters button,
.active-tag-bar button,
.pagination button {
  padding: 0.65rem 1rem;
  background: #222222;
  color: #ffffff;
}

.active-tag-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 1rem 1rem;
}

.active-tag-bar span {
  background: #ffe5db;
  color: #b93800;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: bold;
}

body.dark-mode .active-tag-bar span {
  background: #3a241b;
  color: #ffb89f;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: var(--surface);
  color: var(--text);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card h3 {
  font-size: 1rem;
  margin: 0.75rem 0 0.35rem;
}

.product-card p {
  font-size: 0.9rem;
  margin: 0.35rem 0;
  line-height: 1.5;
}

.product-card img,
.product-card video,
.product-card iframe {
  width: 100%;
  border-radius: 8px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
}

.tag-chip {
  padding: 0.45rem 0.75rem;
  border: 1px solid #ffd0bf;
  background: #fff3ed;
  color: #c54813;
  font-weight: 600;
}

.tag-chip:hover {
  background: #ffe3d6;
}

body.dark-mode .tag-chip {
  background: #2f221d;
  border-color: #5b3a2d;
  color: #ffb89f;
}

.product-card .btn {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.product-card .btn:hover {
  background: var(--accent-dark);
}

.share-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.share-buttons a {
  font-size: 20px;
  text-decoration: none;
  color: var(--text-light);
}

.share-buttons a:hover {
  opacity: 0.7;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 1rem;
}

.pagination button:disabled {
  background: #999999;
  cursor: not-allowed;
}

footer {
  background: #222222;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.mySlides {
  display: none;
}

img {
  vertical-align: middle;
}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 0.3rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.2rem;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters input,
  .filters select,
  .filters button {
    width: 100%;
  }

  .active-tag-bar {
    padding: 0 1rem 1rem;
  }
}
