/* Redcore Store Landing Page Styles */

:root {
  /* Brand Colors extracted from logo */
  --primary-color: #633e35; /* Red wine color */
  --secondary-color: #f9eee2; /* Beige color */
  --text-dark: #333333;
  --text-light: #ffffff;
  --accent-color: #8a5a50; /* Lighter shade of primary for hover effects */
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Aestetico, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  padding: 20px 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

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

.logo {
  width: 180px;
}

.logo-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  padding: 160px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 300px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
}

/* Products Section */
.products {
  padding: 80px 0;
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 50px;
  position: relative;
}

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

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.category-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.category-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Category Title */
.category-title {
  margin: 30px 0 20px;
  text-align: center;
}

.category-title h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.category-title p {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 700px;
  margin: 0 auto;
}

/* Mosaic Products Layout */
.products-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  margin: 0 auto 40px;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1;
}

.product-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.product-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 62, 53, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay,
.product-item.touch-active .product-overlay {
  opacity: 1;
}

.product-details {
  text-align: center;
  padding: 20px;
  color: var(--text-light);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0.1s;
}

.product-item:hover .product-details {
  transform: translateY(0);
  opacity: 1;
}

.product-details h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.product-details p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.product-details .btn {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.product-details .btn:hover {
  background-color: #fff;
  transform: scale(1.05);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--secondary-color);
}

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

.about p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  width: 150px;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.fast-links {
  list-style-type: none;
  /* padding-left: 10px; */
}

.social-links {
  display: flex;
  list-style: none;
}

.social-links li {
  margin-right: 15px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-logo {
    width: 250px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px var(--shadow-color);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 10px 0;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 30px;
    width: 100%;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 140px 0 60px;
  }
  
  .hero-logo {
    width: 250px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .products-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-details h3 {
    font-size: 1.2rem;
  }
  
  .product-details p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 120px 0 50px;
  }
  
  .hero-logo {
    width: 200px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .products-mosaic {
    grid-template-columns: 1fr;
  }
  
  .product-item {
    aspect-ratio: 3/4;
  }
  
  .product-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(99, 62, 53, 0.9) 60%, rgba(99, 62, 53, 0) 100%);
  }
  
  .product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(0);
    opacity: 1;
    padding: 15px;
    text-align: left;
  }
  
  .product-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .product-details p {
    margin-bottom: 10px;
    font-size: 0.8rem;
  }
  
  .product-details .btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}
