/* BLOC Soft Peach & Wood Theme Variables */
:root {
  --primary-wood: #8B4513;        /* Rich wood brown */
  --secondary-wood: #A0522D;      /* Warm sienna */
  --light-wood: #D2B48C;          /* Light wood tone */
  --primary-peach: #FFB07F;       /* Soft peach accent */
  --secondary-peach: #FFDDC1;     /* Light peach */
  --background-peach: #FFF8F3;    /* Very light peach background */
  --card-peach: #FFF5F0;          /* Peach for cards */
  --text-dark: #5D4037;           /* Dark wood text */
  --text-medium: #8D6E63;         /* Medium wood text */
  --text-light: #BCAAA4;          /* Light wood text */
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-peach);
  margin: 0;
  padding: 0;
}

/* Only add padding to non-hero sections */
body > *:not(.hero-carousel):not(#header-container):not(#mobile-nav-container) {
  padding-top: 0;
}

/* Ensure other pages still have proper spacing for floating header */
body.shop-page,
body.cart-page,
body.wishlist-page,
body.product-page {
  padding-top: 90px;
}

/* Special handling for hero section on homepage */
body.homepage .hero-carousel {
  margin-top: 0;
  padding-top: 0;
}

/* Modern frosted glass floating header */
header {
  position: fixed !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  z-index: 50 !important;
  width: auto !important;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced hover effect */
header:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Header content styling for better contrast */
header a,
header button,
header nav a {
  color: rgba(0, 0, 0, 0.8) !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5) !important;
}

header a:hover,
header button:hover,
header nav a:hover {
  color: rgba(0, 0, 0, 1) !important;
}

/* Cart and wishlist badge styling */
header .cart-count,
header .wishlist-count {
  color: white !important;
  text-shadow: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-wood);
}

/* Mobile Navigation Styles - Frosted Glass */
.mobile-nav-hidden {
  display: none;
}

.mobile-nav-active {
  display: block;
  position: fixed;
  top: 90px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.08);
  z-index: 45;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
  .mobile-nav-active {
    top: 65px;
    left: 8px;
    right: 8px;
  }
}

/* Cart Dropdown Styles - Frosted Glass */
.cart-dropdown {
  min-width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 16px rgba(0, 0, 0, 0.08) !important;
}

.cart-dropdown::-webkit-scrollbar {
  width: 4px;
}

.cart-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cart-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

/* Remove conflicting header rules - handled above */

.mobile-nav-active {
  z-index: 40;
}

.cart-dropdown {
  z-index: 60;
}

/* Hero Carousel */
.hero-carousel {
  height: 90vh;
  min-height: 520px;
  max-height: 750px;
}

.carousel-slide {
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1 !important;
}

.carousel-indicator.active {
  background-color: white !important;
  transform: scale(1.2);
}

/* Smooth transitions for text content */
.carousel-slide h1,
.carousel-slide h2,
.carousel-slide p {
  animation: fadeInUp 1s ease-out;
}

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

/* Text visibility enhancements */
.carousel-slide h1,
.carousel-slide h2 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.carousel-slide p {
  color: white !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-carousel {
    height: 63vh;
    min-height: 420px;
    max-height: 520px;
  }

  .carousel-slide h1 {
    font-size: 2rem !important;
    color: white !important;
  }

  .carousel-slide h2 {
    font-size: 1.5rem !important;
    color: white !important;
  }

  .carousel-slide p {
    font-size: 1rem !important;
    color: white !important;
  }
}

.btn-primary {
  background-color: var(--primary-wood);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(139, 69, 19, 0.15),
    0 2px 4px -1px rgba(139, 69, 19, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--secondary-wood);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(139, 69, 19, 0.2),
    0 4px 6px -1px rgba(139, 69, 19, 0.1);
}

.btn-secondary {
  border: 2px solid var(--primary-peach);
  color: var(--primary-wood);
  background-color: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: var(--secondary-peach);
  border-color: var(--primary-wood);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(255, 176, 127, 0.15),
    0 2px 4px -1px rgba(255, 176, 127, 0.08);
}
/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #a8a8a8;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #888;
}
