:root {
  --primary-color: #8b4513;
  --primary-dark: #5c2e0b;
  --primary-light: #a0522d;
  --secondary-color: #d2691e;
  --accent-color: #cd853f;
  --text-dark: #2c1810;
  --text-light: #6b4226;
  --bg-light: #fdf8f5;
  --bg-white: #ffffff;
  --border-color: #e8d5c4;
  --success-color: #2e8b57;
  --error-color: #cd5c5c;
  --warning-color: #daa520;

  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Playfair Display", serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.header-top {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
}

.header-main {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  text-align: center;
}

.logo h1 {
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1;
}

.logo span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-menu a {
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

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

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

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

.header-actions button,
.header-actions a {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.header-actions button:hover,
.header-actions a:hover {
  color: var(--primary-color);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: white;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 1001;
  display: none;
  padding: 100px 0;
}

.search-overlay.active {
  display: block;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.search-wrapper input {
  flex: 1;
  border: none;
  font-size: 24px;
  padding: 10px 0;
  outline: none;
  font-family: var(--font-primary);
}

.close-search {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slider img,
.category-card img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f5f5f5;
}

img {
  position: relative;
}

img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdf8f5, #f0e6df);
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 500px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 16px;
}

.slide-title {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-description {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: white;
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  width: 30px;
  border-radius: 5px;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.user-menu-btn:hover {
  background: var(--bg-light);
}

.user-menu-btn i {
  font-size: 16px;
}

.user-menu-btn span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 10px 0;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-menu:hover .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.user-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.user-dropdown a i {
  width: 20px;
  color: var(--primary-color);
}

.user-dropdown .divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.user-dropdown .logout-btn {
  color: var(--error-color);
}

.user-dropdown .logout-btn i {
  color: var(--error-color);
}

@media (max-width: 768px) {
  .user-menu-btn span {
    display: none;
  }
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 16px;
}

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

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

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

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

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

.btn-light:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  color: var(--text-dark);
}

.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  text-align: center;
}

.category-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.category-info span {
  font-size: 14px;
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.product-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-light);
}

.product-image img {
  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;
  left: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.product-badge.sale {
  background: var(--error-color);
  color: white;
}

.product-badge.new {
  background: var(--success-color);
  color: white;
}

.quick-view {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 500;
}

.product-card:hover .quick-view {
  opacity: 1;
}

.add-to-cart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  color: var(--primary-color);
}

.product-card:hover .add-to-cart-btn {
  opacity: 1;
}

.add-to-cart-btn:hover {
  background: var(--primary-color);
  color: white;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-family: var(--font-primary);
  font-weight: 500;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

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

.promo-banner {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: center;
  padding: 60px 0;
}

.promo-label {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 20px;
}

.promo-content h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.promo-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.benefits {
  background: var(--bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.benefit-item {
  text-align: center;
}

.benefit-item i {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--font-primary);
}

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

.footer {
  background: var(--text-dark);
  color: white;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
  gap: 40px;
}

.footer-logo h3 {
  font-size: 28px;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.footer-logo span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

.footer-col p {
  margin: 20px 0;
  opacity: 0.8;
  font-size: 14px;
}

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

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 16px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  opacity: 0.8;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-col ul li i {
  margin-right: 10px;
  width: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

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

.footer-bottom p {
  font-size: 14px;
  opacity: 0.7;
}

.payment-methods {
  display: flex;
  gap: 15px;
  font-size: 24px;
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

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

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

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

@media (max-width: 768px) {
  .header-main {
    padding: 15px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    transition: left 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }

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

  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu ul li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu ul li a {
    display: block;
    padding: 15px 0;
  }

  .slide-title {
    font-size: 36px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 24px;
  }

  .header-actions {
    gap: 15px;
  }

  .hero {
    height: 500px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    text-align: center;
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-subtitle {
    font-size: 14px;
  }

  .slide-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .promo-content h2 {
    font-size: 28px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}
