/* ===== ROOT VARIABLES ===== */
:root {
  /* Colors - Marketplace Theme */
  --primary-color: #8b4513;
  --secondary-color: #3d7c47;
  --accent-color: #059669;
  --dark-color: #111827;
  --light-color: #fafafa;
  --gray-color: #6b7280;
  --white-color: #ffffff;
  --border-color: #e5e7eb;
  --text-color: #333;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  --gradient-secondary: linear-gradient(135deg, #3d7c47 0%, #2d5934 100%);
  --gradient-accent: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1400px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  display: flex;
  gap: 8px;
}

.loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  animation: bounce 1.4s ease infinite;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-small);
  z-index: 1000;
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

.logo-text .highlight {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  color: #495057;
  transition: color 0.2s;
  border-radius: 0.25rem;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: #e9ecef;
}

.nav-link.active {
  color: var(--primary-color);
  background-color: #e9ecef;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  color: var(--gray-color);
  transition: var(--transition-fast);
}

.nav-icon:hover {
  color: var(--primary-color);
}

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

/* ===== USER ACCOUNT SECTION ===== */
.user-account-section {
  position: relative;
  display: inline-block;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-color);
  transition: var(--transition-fast);
}

.user-btn:hover {
  color: var(--primary-color);
}

.user-chevron {
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.user-btn.active .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-large);
  border: 1px solid var(--border-color);
  min-width: 320px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
  overflow: hidden;
}

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

.user-dropdown-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.user-greeting {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Auth Section (Logged Out) */
.user-auth-section {
  padding: 1.5rem;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-medium);
  border: 1px solid;
}

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

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.register-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Profile Section (Logged In) */
.user-profile-section {
  padding: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.user-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

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

.user-avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: var(--gray-color);
}

.user-menu {
  margin-bottom: 1rem;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--gray-color);
  transition: all var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-size: 0.875rem;
}

.user-menu-item:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.user-menu-item i {
  width: 16px;
  text-align: center;
}

.user-menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.5rem 0;
}

.logout-btn {
  color: #ef4444 !important;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
}

/* Quick Access */
.user-quick-access {
  background: var(--light-color);
  padding: 1rem 1.5rem;
}

.quick-access-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.quick-access-items {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gray-color);
  transition: all var(--transition-fast);
  padding: 0.5rem;
  border-radius: 8px;
  flex: 1;
  text-align: center;
}

.quick-access-item:hover {
  color: var(--primary-color);
  background: white;
  transform: translateY(-2px);
}

.quick-access-item i {
  font-size: 1.25rem;
}

.quick-access-item span {
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center; /* center vertically */
  overflow: hidden;
  background: #000;
}

/* Slider base */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.5);
  transition: transform 10s ease-out;
}

.hero-slide.active .hero-bg {
  animation: kenBurns 10s ease-out forwards;
}

/* Individual backgrounds */
.hero-bg-1 {
  background-image: url("../hero-living-room.jpg");
}

.hero-bg-2 {
  background-image: url("../hero-furniture.jpg");
}

.hero-bg-3 {
  background-image: url("../product-table.jpg");
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* ✅ Centered Hero Content */
.hero-content {
  position: absolute;
  bottom: 10%; /* adjust this for how low you want it */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

/* Titles & Text */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
  line-height: 1.2;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), #d4a574);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem); /* responsive font size */
  margin-bottom: 1.8rem; /* smaller, better spacing below */
  color: rgba(255, 255, 255, 0.9); /* slightly softer white */
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.35); /* smoother readability */
  max-width: 700px; /* allows a bit wider text */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6; /* better vertical readability */
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--secondary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(61, 124, 71, 0.3);
}

.btn-primary:hover {
  background: #2d5934;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 124, 71, 0.4);
}

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

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

/* Controls */
.hero-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 3;
  pointer-events: none;
}

.hero-control {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  pointer-events: auto;
  font-size: 1.2rem;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.hero-control:active {
  transform: scale(0.95);
}

/* Indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* Scroll Icon */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
}

.scroll-icon span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 0;
    top: 10px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 25px;
  }
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--section-padding) 0;
  background: var(--white-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef7ed;
  border-radius: 12px;
  font-size: 1.75rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
  font-weight: 600;
}

.feature-card p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
  padding: var(--section-padding) 0;
  background: var(--light-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  transition: var(--transition-medium);
}

.category-card:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
}

.category-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: white;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.category-card:hover .category-overlay {
  transform: translateY(0);
}

.category-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.category-overlay p {
  margin-bottom: 1rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.category-link:hover {
  border-bottom-color: white;
}

/* ===== FEATURED PRODUCTS ===== */
.featured-products {
  padding: var(--section-padding) 0;
  background: var(--white-color);
}

.section-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.tab-btn {
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  color: var(--gray-color);
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--secondary-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.product-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark-color);
  transition: var(--transition-fast);
}

.product-action:hover {
  background: var(--primary-color);
  color: white;
}

.product-info {
  padding: 1.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.product-rating i {
  color: #ffc107;
  font-size: 0.875rem;
}

.product-rating span {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.product-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--dark-color);
  font-weight: 600;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.price-original {
  font-size: 1rem;
  color: var(--gray-color);
  text-decoration: line-through;
}

.section-footer {
  text-align: center;
  margin-top: 4rem;
}

/* ===== SHOWCASE SECTION ===== */
.showcase {
  padding: var(--section-padding) 0;
  background: var(--white-color);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.showcase-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
  transition: var(--transition-medium);
}

.showcase-item:hover {
  box-shadow: var(--shadow-large);
  transform: translateY(-4px);
}

.showcase-item.large {
  grid-column: span 2;
  height: 450px;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.showcase-item:hover img {
  transform: scale(1.1);
}

.showcase-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.showcase-item:hover .showcase-content {
  transform: translateY(0);
}

.showcase-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  padding: var(--section-padding) 0;
  background: var(--gradient-secondary);
  color: white;
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
  font-weight: 700;
}

.newsletter-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 550px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background: white;
  color: var(--secondary-color);
  font-weight: 600;
}

.newsletter-form button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 4rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

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

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.85;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-contact i {
  margin-right: 0.75rem;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ===== PROJECT CARD STYLES ===== */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.project-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-icon {
  width: 24px;
  height: 24px;
  color: var(--secondary-color);
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-color);
}

.project-location {
  color: var(--gray-color);
  font-size: 0.875rem;
}

/* ===== SUBSCRIPTION SECTION ===== */
.subscription-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.subscription-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.subscription-text {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.subscription-form {
  display: flex;
  gap: 0.75rem;
}

.subscription-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.subscription-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.subscription-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscription-btn:hover {
  background: #2d5934;
  transform: translateY(-1px);
}

/* ===== FOOTER SIDEBAR ===== */

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

/* Animated Background Decorations */
.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: 10%;
  animation-delay: 5s;
}

.circle-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: -125px;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

.footer .container {
  position: relative;
  z-index: 1;
}

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

/* Fade-in Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Brand */
.footer-brand .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.footer-brand .brand-logo:hover {
  transform: translateX(10px);
  color: #ffd700;
}

.footer-brand .brand-logo i {
  font-size: 32px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Newsletter Box */
.newsletter-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.newsletter-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.newsletter-box h5 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #ffd700;
}

.newsletter-form .input-group {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(255, 255, 255, 0.15);
}

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

.subscribe-btn {
  padding: 12px 25px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subscribe-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.subscribe-btn:hover::before {
  width: 300px;
  height: 300px;
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.subscribe-btn i {
  transition: transform 0.3s ease;
}

.subscribe-btn:hover i {
  transform: translateX(5px);
}

.form-message {
  margin-top: 10px;
  font-size: 14px;
  min-height: 20px;
}

.form-message.success {
  color: #4caf50;
}

.form-message.error {
  color: #ff5252;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
}

.social-icon:hover {
  transform: translateY(-8px) rotate(360deg);
  border-color: #ffd700;
}

.social-icon[data-social="facebook"]:hover {
  background: #1877f2;
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
}

.social-icon[data-social="instagram"]:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  box-shadow: 0 10px 25px rgba(225, 48, 108, 0.4);
}

.social-icon[data-social="pinterest"]:hover {
  background: #e60023;
  box-shadow: 0 10px 25px rgba(230, 0, 35, 0.4);
}

.social-icon[data-social="linkedin"]:hover {
  background: #0077b5;
  box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.social-icon .tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #ffd700;
  color: #1a1a2e;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.social-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #ffd700;
}

.social-icon:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Footer Sections */
.footer-section h4 {
  font-size: 20px;
  margin-bottom: 25px;
  color: #ffd700;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #ffd700 0%, transparent 100%);
}

/* Footer Links List */
.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.footer-links-list li:hover {
  transform: translateX(10px);
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.footer-links-list a:hover {
  color: #ffd700;
}

.footer-links-list a i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.footer-links-list a:hover i {
  transform: translateX(5px);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 5px;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
  color: #fff;
}

.contact-item i {
  font-size: 18px;
  color: #ffd700;
  width: 20px;
  margin-top: 3px;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.2) rotate(10deg);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-content p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffd700;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #ffd700;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}

.back-to-top i {
  animation: bounceUp 2s infinite;
}

@keyframes bounceUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 0;
  }

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

  .newsletter-form .input-group {
    flex-direction: column;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
/* ===== ANIMATIONS ===== */
[data-aos] {
  transition-property: transform, opacity;
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

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

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

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

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 24px;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .showcase-item.large {
    grid-column: span 1;
    height: 350px;
  }

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transition: left 0.3s ease;
    z-index: 999;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .subscription-form {
    flex-direction: column;
  }

  .subscription-input,
  .subscription-btn {
    width: 100%;
  }
}

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

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .category-card {
    height: 300px;
  }

  .product-image {
    height: 250px;
  }

  .showcase-item,
  .showcase-item.large {
    height: 250px;
  }

  .project-card,
  .subscription-section,
  .footer-sidebar {
    padding: 1.25rem;
  }
}

/* ===== SMOOTH ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .category-card,
  .product-card,
  .showcase-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
  }

  .feature-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .feature-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .feature-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--gray-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    background: var(--light-gray);
    color: var(--gray-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-btn.disabled:hover {
    background: var(--light-gray);
    color: var(--gray-color);
    border-color: var(--border-color);
    transform: none;
}

.quantity__box{
  display: flex;
}