:root {
  --primary-color: #8B4513;
  --secondary-color: #DAA520;
  --accent-color: #DAA520; /* Gold for accents */
  --background-color: #FDF5E6;
  --footer-bg-color: #2F4F4F;
  --text-color: #333;
  --light-text-color: #FDF5E6;
  --border-radius-base: 0.5rem;
  --font-family-serif: 'Playfair Display', serif;
  --font-family-sans-serif: 'Open Sans', sans-serif;
  --section-bg-1: #FDF5E6;
  --section-bg-2: #FFFACD;
  --section-bg-3: #E6E6FA;
  --section-bg-4: #FAFAD2;
}

body {
  font-family: var(--font-family-sans-serif);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Navbar specific styles */
.navbar {
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1030;
}

.navbar-brand {
  font-family: var(--font-family-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
}

.navbar-brand .logo-vb {
  font-family: var(--font-family-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-right: 0.5rem;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: var(--primary-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
  background-color: rgba(218, 165, 32, 0.1);
  border-radius: var(--border-radius-base);
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgb%28139, 69, 19%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Buttons */
.btn-primary {
  background-color: var(--button-color-hex);
  border-color: var(--button-color-hex);
  color: var(--light-text-color);
  border-radius: var(--border-radius-base);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
  color: var(--button-color-hex);
  border-color: var(--button-color-hex);
  border-radius: var(--border-radius-base);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--button-color-hex);
  color: var(--light-text-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section-padding {
  padding: 5rem 0;
}

.section-bg-1 {
  background-color: var(--section-bg-1);
}

.section-bg-2 {
  background-color: var(--section-bg-2);
}

.section-bg-3 {
  background-color: var(--section-bg-3);
}

.section-bg-4 {
  background-color: var(--section-bg-4);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-base);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  border-top-left-radius: var(--border-radius-base);
  border-top-right-radius: var(--border-radius-base);
}

.card-body {
  padding: 1.5rem;
}

/* Forms */
.form-control {
  border-radius: var(--border-radius-base);
  border-color: #ddd;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(218, 165, 32, 0.25);
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--light-text-color);
  padding: 3rem 0;
  font-size: 0.95rem;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer a {
  color: var(--light-text-color);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  display: inline-block;
}

.footer .social-icons a:last-child {
  margin-right: 0;
}

/* Utilities and Spacing */
.py-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.my-6 {
  margin-top: 6rem;
  margin-bottom: 6rem;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* Custom Image Styling */
.img-fluid.rounded {
  border-radius: var(--border-radius-base) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Micro-interactions for premium feel */
.hover-scale:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  transition: box-shadow 0.3s ease;
}

/* Specific elements for VitaleBellezza */
.hero-section {
  background: linear-gradient(rgba(253, 245, 230, 0.7), rgba(253, 245, 230, 0.7)), url('https://via.placeholder.com/1920x800/FDF5E6/8B4513?text=VitaleBellezza+Hero') no-repeat center center/cover;
  padding: 8rem 0;
  text-align: center;
  color: var(--primary-color);
}

.hero-section h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-section p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-base);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-item .product-img {
  position: relative;
  overflow: hidden;
}

.product-item .product-img img {
  border-top-left-radius: var(--border-radius-base);
  border-top-right-radius: var(--border-radius-base);
  transition: transform 0.4s ease;
}

.product-item:hover .product-img img {
  transform: scale(1.05);
}

.product-item .product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-item .product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-item .product-info .price {
  font-family: var(--font-family-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.product-item .product-info .btn {
  margin-top: 1rem;
}

/* Testimonials */
.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius-base);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: #555;
}

.testimonial-card .author {
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-family-serif);
}

/* Custom Spacing */
.g-5 {
  gap: 3rem !important;
}

.g-4 {
  gap: 1.5rem !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-nav {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius-base);
    margin-top: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .hero-section p {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 6rem 0;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .footer {
    text-align: center;
  }

  .footer .social-icons {
    margin-top: 1.5rem;
    justify-content: center;
  }
}

/* Alpine.js specific styles for transitions */
[x-cloak] { display: none !important; }

.fade-in-transition {
  transition: opacity 0.3s ease-out;
}

.fade-in-transition:not(.show) {
  opacity: 0;
}

.fade-out-transition {
  transition: opacity 0.3s ease-in;
}

.fade-out-transition.show {
  opacity: 1;
}

.slide-up-transition {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.slide-up-transition:not(.show) {
  opacity: 0;
  transform: translateY(10px);
}

.slide-down-transition {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.slide-down-transition:not(.show) {
  opacity: 0;
  transform: translateY(-10px);
}

.gold-line-separator {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 1.5rem auto 2.5rem auto;
    border-radius: 2px;
}

.text-gold {
  color: var(--accent-color) !important;
}

.border-gold {
  border-color: var(--accent-color) !important;
}

.bg-gold-subtle {
  background-color: rgba(218, 165, 32, 0.1) !important;
}


/* Cookie Banner Additional Styles for Bootstrap */
.cookie-banner-custom {
    z-index: 1060;
    backdrop-filter: blur(10px);
}

.cookie-banner-custom .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}