:root {
  --primary-color: #a83246;
  --dark-color: #1a1a1a;
  --accent-color: #f4c430;
  --light-bg: #f5f5f5;
  --border-color: #ddd;
  --text-color: #333;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 20px;
}

.logo h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.logo p {
  font-size: 12px;
  opacity: 0.9;
  margin: 2px 0 0 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.8;
}

.cart-link {
  position: relative;
}

.cart-link span {
  position: absolute;
  top: -8px;
  right: -12px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PAGE SECTIONS */
.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), #6b1f2e);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* BUTTONS */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: #6b1f2e;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196,18,48,0.3);
}

.btn-secondary {
  background-color: var(--dark-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #333;
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--light-bg);
}

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

.product-info h3 {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 16px;
}

.product-category {
  color: #666;
  font-size: 12px;
  margin: 0 0 8px 0;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
  margin-top: 60px;
  overflow-x: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--accent-color);
}

.footer-section p,
.footer-section ul {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .page-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 10px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .container {
    padding: 0 10px;
  }
}
