@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap');

:root {
  --primary-color: #DBD2B5;
  --dark-color: #3A1938;
  --accent-color: #C5A059; /* Gold accent */
  --text-color: #3A1938; /* Using brand dark color for text */
  --bg-color: #DBD2B5; /* Brand beige as background */
  --sidebar-width: 280px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Bodoni Moda', serif; /* Closest to Queensila on Google Fonts */
  color: var(--dark-color);
  font-weight: 500;
}

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

ul {
  list-style: none;
}

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

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

/* Header */
header {
  background: var(--bg-color); /* Match overall background */
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(58, 25, 56, 0.1);
}

.top-bar {
  background: var(--dark-color);
  color: var(--primary-color);
  text-align: center;
  font-size: 0.75rem;
  padding: 8px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--dark-color);
  transition: var(--transition);
}

.nav-menu {
  display: none; /* Hidden by default, moved to sidebar */
}

/* Sidebar Menu */
.sidebar {
  position: fixed;
  top: 0;
  left: calc(-1 * var(--sidebar-width));
  width: var(--sidebar-width);
  height: 100vh;
  background: white;
  z-index: 1000;
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  transition: var(--transition);
  padding: 100px 30px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Enable vertical scroll when menu is long */
  scrollbar-width: auto; /* Standard thickness for Firefox */
  scrollbar-color: var(--accent-color) rgba(58, 25, 56, 0.05); /* Firefox styling */
}

/* Custom scrollbar for sidebar to make it thicker, visible, and navigable */
.sidebar::-webkit-scrollbar {
  width: 12px; /* Thicker and easier to drag */
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(58, 25, 56, 0.05); /* Soft background track */
  border-radius: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--accent-color); /* Elegant gold theme thumb */
  border-radius: 6px;
  border: 3px solid white; /* Inner padding to look clean */
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--dark-color); /* Highlights in dark theme color on hover */
}

.sidebar.active {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
}

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

.sidebar-nav ul li {
  margin-bottom: 20px;
}

.sidebar-nav ul li a {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark-color);
  display: block;
  border-bottom: 1px solid transparent;
}

.sidebar-nav ul li a:hover {
  border-bottom-color: var(--accent-color);
  padding-left: 5px;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}

.nav-actions {
  display: flex;
  gap: 20px;
  font-size: 1.2rem;
}

/* Hero Slider */
.hero {
  height: 85vh;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.hero-slider {
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center 20%; /* Adjusted to ensure face is visible */
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 100px;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.2));
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  margin-left: 10%;
  max-width: 600px;
  color: white;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.hero-text h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  animation: fadeInUp 1s ease-out;
  color: white;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 1px;
  animation: fadeInUp 1.2s ease-out;
  color: white;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

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

.dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--dark-color);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--dark-color);
  transform: scale(1.2);
}

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

.hero-text .btn {
  background: var(--accent-color);
  color: var(--dark-color);
  font-weight: 600;
}

.hero-text .btn:hover {
  background: white;
  color: var(--dark-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--dark-color);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Categories Section */
.categories {
  padding: 80px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.category-item {
  position: relative;
  overflow: hidden;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.category-item img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  transition: var(--transition);
  background-color: white;
}

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

.category-overlay {
  background: white;
  padding: 20px 15px;
  text-align: center;
  transition: var(--transition);
}

.category-item:hover .category-overlay {
  background: var(--primary-color);
}

.category-overlay h3 {
  font-size: 1.2rem;
  margin: 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  padding: 15px;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.product-image {
  height: 350px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
  background-color: white; /* Clean background for product gallery */
}

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

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

.instagram-publish {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover .instagram-publish {
  opacity: 1;
  transform: translateY(0);
}

.instagram-publish:hover {
  background: var(--dark-color);
  color: white;
}

.product-badges {
  position: absolute;
  top: 10px;
  right: 10px;
}

.badge {
  background: var(--primary-color);
  color: var(--dark-color);
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
}

.product-price {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 80px 0 20px;
}

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

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--primary-color);
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col ul li a:hover {
  opacity: 1;
  padding-left: 5px;
  color: var(--primary-color);
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .hero-text h2 {
    font-size: 2.5rem;
  }
}

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

  .logo h1 {
    font-size: 1.8rem;
  }

  .hero {
    height: 75vh;
  }

  .hero-overlay {
    background: linear-gradient(to top, rgba(219, 210, 181, 0.9) 0%, rgba(219, 210, 181, 0.4) 40%, rgba(219, 210, 181, 0) 100%);
  }

  .hero-text {
    width: 92% !important;
    margin: 0 auto !important;
    left: 4% !important;
    bottom: 60px !important;
    padding: 0 !important;
    text-align: center !important;
    margin-left: 0 !important;
    max-width: none !important;
  }

  .hero-text h2 {
    font-size: 2.1rem !important;
    margin-bottom: 15px !important;
  }

  .hero-text p {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .category-grid {
    gap: 12px;
  }

  .category-item {
    height: auto;
  }

  .category-item img {
    height: 220px;
  }

  .category-overlay {
    padding: 15px 10px;
  }

  .category-overlay h3 {
    font-size: 1rem;
  }

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

  .product-image {
    height: 240px;
  }

  .product-card {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

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

  .concept {
    flex-direction: column !important;
    padding: 50px 0 !important;
    gap: 30px !important;
    text-align: center;
  }
  
  .concept div {
    flex: none !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .logo h1 {
    font-size: 1.5rem;
  }

  .nav-actions {
    gap: 12px;
  }

  .concept {
    flex-direction: column;
    padding: 50px 0;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000;
  display: flex;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-20px);
}

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

.search-container {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
}

.close-search {
  position: absolute;
  top: -60px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--dark-color);
  cursor: pointer;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--dark-color);
  padding: 10px 0;
  margin-bottom: 40px;
}

.search-input-wrapper i {
  font-size: 1.5rem;
  margin-right: 20px;
  color: #888;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  background: none;
  font-size: 1.8rem;
  font-family: 'Bodoni Moda', serif;
  color: var(--dark-color);
  outline: none;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 30px;
  max-height: 60vh;
  overflow-y: auto;
  padding-bottom: 40px;
}

.search-result-item {
  text-align: center;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out backwards;
}

.search-result-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%; /* Circle look as in the user sample */
  margin-bottom: 15px;
  border: 1px solid #efefef;
  transition: var(--transition);
}

.search-result-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-result-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
  text-transform: uppercase;
}

.search-result-item .sku {
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 400;
}
