:root {
  --primary-color: #d4af37;
  --primary-dark: #b8941f;
  --secondary-color: #2c2c2c;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-light: #f8f8f8;
  --bg-white: #fff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-white);
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 8px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-top-left,
.header-top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-top a {
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-top a:hover {
  color: var(--primary-color);
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 30px;
}

.nav-desktop a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-toggle,
.cart-toggle,
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.cart-toggle {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  transition: left 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  padding: 20px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav ul {
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  color: var(--text-color);
  font-size: 18px;
  display: block;
  padding: 10px;
  border-radius: 4px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1500;
}

.overlay.active {
  display: block;
}

.hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--bg-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.8), rgba(212, 175, 55, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0.95;
}

.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.feature-card {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-card .icon {
  margin: 0 auto 15px;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-size: 20px;
}

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

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.product-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  overflow: hidden;
  padding-top: 100%;
  background-color: var(--bg-light);
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.product-info {
  padding: 20px;
}

.product-category {
  color: var(--text-lighter);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--primary-color);
}

.review-count {
  font-size: 14px;
  color: var(--text-light);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.price-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  font-size: 18px;
  color: var(--text-lighter);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

.product-detail {
  padding: 30px 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.product-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.product-detail-description {
  margin: 20px 0;
  line-height: 1.8;
  color: var(--text-color);
}

.product-meta {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.product-meta h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.product-meta p {
  margin-bottom: 8px;
  color: var(--text-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  padding: 10px 15px;
  background-color: var(--bg-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.quantity-value {
  padding: 10px 20px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

.reviews-section {
  margin-top: 50px;
}

.reviews-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.review-card {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.review-author {
  font-weight: 600;
  color: var(--secondary-color);
}

.review-date {
  color: var(--text-lighter);
  font-size: 14px;
}

.review-comment {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-helpful {
  font-size: 14px;
  color: var(--text-light);
}

.cart-page {
  padding: 40px 0;
  min-height: 60vh;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.cart-items {
  background-color: var(--bg-white);
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.cart-item-category {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.cart-item-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.cart-item-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-remove {
  color: var(--error-color);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover {
  background-color: var(--error-color);
  color: var(--bg-white);
}

.cart-summary {
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-summary-row:last-child {
  border-bottom: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 10px;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 20px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--text-lighter);
}

.empty-cart h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.empty-cart p {
  color: var(--text-light);
  margin-bottom: 25px;
}

.thank-you-page {
  padding: 60px 0;
  text-align: center;
  min-height: 60vh;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background-color: var(--success-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.thank-you-icon .icon {
  width: 60px;
  height: 60px;
}

.thank-you-content h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.thank-you-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 18px;
}

.order-number {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
}

.order-number strong {
  color: var(--primary-color);
  font-size: 24px;
}

footer {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
  display: block;
  margin-bottom: 8px;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.filters {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.filters h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-color);
  font-weight: 500;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 20px;
  }

  .nav-desktop {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .product-detail-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .cart-container {
    grid-template-columns: 2fr 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
