/* ==========================================================================
   beaux beauty products - Main Styles
   Inspired by Chanel's sophisticated design language
   ========================================================================== */

/* CSS Custom Properties (Variables) */
:root {
  /* Colors */
  --primary-black: #000000;
  --primary-white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --accent-gray: #999999;
  --footer-text-gray: #cccccc;
  
  /* Typography */
  --font-primary: 'Century Gothic', 'Avenir Next', Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--primary-black);
  background-color: var(--primary-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 200;
  letter-spacing: 1px;
}

h2 {
  font-size: var(--font-size-4xl);
  font-weight: 200;
}

h3 {
  font-size: var(--font-size-3xl);
  font-weight: 300;
}

h4 {
  font-size: var(--font-size-2xl);
  font-weight: 300;
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 300;
}

a {
  color: var(--primary-black);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--dark-gray);
}

/* Layout Components */
.container-fluid {
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

.section-padding {
  padding: var(--spacing-3xl) 0;
}

.section-padding-sm {
  padding: var(--spacing-2xl) 0;
}

/* Header and Navigation */
.navbar {
  background-color: var(--primary-white);
  border-bottom: 1px solid var(--medium-gray);
  padding: var(--spacing-md) 0;
  transition: var(--transition-base);
  min-height: 80px;
}

.navbar.fixed-top {
  z-index: 1030;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
  padding: var(--spacing-sm) 0;
}

.navbar.fixed-top {
  min-height: 70px;
  z-index: 1050;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: var(--font-light);
  color: var(--primary-black) !important;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--dark-gray) !important;
}

.navbar-brand img {
  height: 60px;
  max-height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  font-size: var(--font-size-sm);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: var(--transition-base);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-black);
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Mobile Navigation Fixes */
.navbar-toggler {
  border: none !important;
  padding: 4px 8px;
  font-size: 1.1rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background-color: var(--light-gray);
  position: relative;
  overflow: hidden;
  padding: calc(45px + var(--spacing-sm)) var(--spacing-lg) calc(var(--spacing-xs) + 10px) var(--spacing-lg);
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  margin: 0 auto;
  width: 100%;
  transform: none;
}

.hero-logo {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
}

.logo-image {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-base);
  opacity: 0.9;
}

.logo-image:hover {
  opacity: 1;
  transform: scale(1.02);
}

.logo-text {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--primary-black);
  letter-spacing: 1px;
  text-transform: lowercase;
  font-family: var(--font-primary);
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 100;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: 200;
  margin-bottom: var(--spacing-xl);
  opacity: 0.8;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Hero Section - Special styling for homepage with buttons */
.hero-section:has(.hero-buttons) {
  min-height: 45vh;
}

/* Standard hero for non-home pages */
.hero-standard {
  min-height: 60vh !important;
}

.hero-standard .hero-content {
  text-align: center !important;
  margin: 0 auto;
  transform: none !important;
  padding-top: 0 !important;
}

.hero-section:has(.hero-buttons) .hero-content {
  transform: translateY(-35px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--dark-gray);
  z-index: 3;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 35px;
  background: var(--dark-gray);
  margin: 0 auto 8px;
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-black);
  border: 2px solid var(--primary-black);
  color: var(--primary-white);
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--spacing-md) var(--spacing-xl);
  transition: var(--transition-base);
  border-radius: 0;
}

.btn-primary:hover {
  background-color: var(--primary-white);
  color: var(--primary-black);
  border-color: var(--primary-black);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary-black);
  color: var(--primary-black);
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--spacing-md) var(--spacing-xl);
  transition: var(--transition-base);
  border-radius: 0;
}

.btn-outline-primary:hover {
  background-color: var(--primary-black);
  color: var(--primary-white);
  border-color: var(--primary-black);
}

/* Product Cards */
.product-card {
  background-color: var(--primary-white);
  border: none;
  transition: var(--transition-slow);
  cursor: pointer;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.product-card-img {
  height: 300px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-body {
  padding: var(--spacing-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: var(--font-size-lg);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

.product-price {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--primary-black);
  margin-bottom: var(--spacing-md);
}

.product-description {
  font-size: var(--font-size-sm);
  color: var(--dark-gray);
  font-weight: 300;
}

/* Keep price row anchored at bottom for equal alignment across cards */
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}

/* Unify size and price appearance in product cards */
.product-info .product-size,
.product-info .product-price {
  font-size: var(--font-size-lg);
  color: var(--primary-black);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

/* Filter Section */
.filter-section {
  background-color: var(--light-gray);
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--medium-gray);
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--medium-gray);
  color: var(--dark-gray);
  font-family: var(--font-primary);
  font-weight: 300;
  letter-spacing: 0.5px;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-xs);
  transition: var(--transition-base);
  border-radius: 0;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-black);
  color: var(--primary-white);
  border-color: var(--primary-black);
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 0;
}

.modal-header {
  border-bottom: 1px solid var(--medium-gray);
  padding: var(--spacing-lg);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-title {
  font-size: var(--font-size-2xl);
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Forms */
.form-control {
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  padding: var(--spacing-md);
  font-family: var(--font-primary);
  font-weight: 300;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-black);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.form-label {
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
}

/* Top 10 Ingredients Styles */
.ingredient-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.ingredient-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.ingredient-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ingredient-result {
    color: #e74c3c;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.ingredient-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Customer Reviews Styles */
.review-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.review-card .card-body {
    padding: 25px;
}

.stars {
    font-size: 1.2rem;
}

.review-text {
    font-style: italic;
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.reviewer-info {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Section spacing adjustments */
#top10-ingredients {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#customer-reviews {
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ingredient-card {
        flex-direction: column;
        text-align: center;
    }
    
    .ingredient-image {
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
    
    .ingredient-image img {
        width: 60px;
        height: 60px;
    }
}

/* Footer */
.footer {
  background-color: var(--primary-black);
  color: var(--primary-white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg) 0;
}

.footer h5 {
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-white);
}

.footer p {
  color: var(--footer-text-gray);
}

.footer .text-muted {
  color: var(--footer-text-gray) !important;
}

.footer a {
  color: var(--footer-text-gray);
  transition: var(--transition-base);
}

.footer a:hover {
  color: var(--primary-white);
}

.footer ul li {
  color: var(--footer-text-gray);
  margin-bottom: 0.5rem;
}

.footer i {
  color: var(--footer-text-gray);
}

/* Footer contact list alignment */
.footer .contact-item {
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.footer .contact-item i {
  margin-right: 0.5rem;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: center;
}

.footer .contact-item span,
.footer .contact-item a {
  color: var(--footer-text-gray);
}

.footer-bottom {
  border-top: 1px solid var(--dark-gray);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  text-align: center;
  color: var(--footer-text-gray);
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  color: var(--footer-text-gray) !important;
  margin-bottom: 0;
}

/* Social Media Icons */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  margin-right: var(--spacing-sm);
  border: 1px solid var(--footer-text-gray);
  color: var(--footer-text-gray);
  transition: var(--transition-base);
}

.social-links a:hover {
  border-color: var(--primary-white);
  color: var(--primary-white);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-slow);
}

.fade-in-up {
  animation: fadeInUp var(--transition-slow);
}

/* Utility Classes */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-light-weight {
  font-weight: 200;
}

.text-normal-weight {
  font-weight: 300;
}

.text-medium-weight {
  font-weight: 400;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

.border-bottom-gray {
  border-bottom: 1px solid var(--medium-gray);
}

.letter-spacing {
  letter-spacing: 0.5px;
}

.letter-spacing-lg {
  letter-spacing: 1px;
}

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--medium-gray);
  border-radius: 50%;
  border-top-color: var(--primary-black);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Image Loading Improvements */
img {
  max-width: 100%;
  height: auto;
  transition: opacity var(--transition-base);
}

img[src*=".svg"] {
  display: block;
}

/* Prevent image loading errors from affecting layout */
img:not([src]) {
  opacity: 0;
}

/* Ensure SVG images scale properly */
.product-card-img,
.hero-content img,
.about-image img,
.gallery-item img,
.team-image img {
  object-fit: cover;
  background-color: var(--light-gray);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  z-index: 1000;
  transition: var(--transition-base);
  box-shadow: var(--shadow-medium);
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
  transform: scale(1.1);
  color: white;
} 

/* ==========================================================================
   Button Groups & Combinations
   ========================================================================== */

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-buttons .btn {
    margin: 0.25rem;
    min-width: 180px;
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    margin: 0.25rem;
    min-width: 160px;
}

/* Product Modal Button Groups */
.product-modal-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.product-modal-buttons .btn {
    margin: 0.2rem;
    min-width: 140px;
}

/* Map Actions Button Group */
.map-actions .cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-actions .cta-buttons .btn {
    margin: 0.2rem;
    min-width: 160px;
}

/* ==========================================================================
   Image Placeholder Styles
   ========================================================================== */

.img-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: bold;
    color: #6c757d;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.img-placeholder.product-placeholder {
    height: 300px;
    border-radius: 8px;
}

.img-placeholder.gallery-placeholder {
    height: 250px;
    border-radius: 8px;
}

.img-placeholder.hero-placeholder {
    height: 200px;
    border-radius: 8px;
}

.img-placeholder.store-placeholder {
    height: 400px;
    border-radius: 8px;
}

.img-placeholder.team-placeholder {
    height: 200px;
    border-radius: 50%;
    width: 200px;
    margin: 0 auto;
}

/* ==========================================================================
   Product Image Styles
   ========================================================================== */

/* Product Card Images */
.product-image-container {
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 显示完整产品图，不再放大裁切 */
    object-position: center;
    transition: transform var(--transition-base);
    padding: 10px; /* 留更多留白 */
    transform: scale(1.5); /* 默认放大 50% */
}

.product-card:hover .product-image {
    transform: scale(1.6); /* 悬停时再微加 */
}

.img-placeholder.product-placeholder {
    height: 250px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--dark-gray);
    font-size: var(--font-size-lg);
    font-weight: 500;
}

/* Product Modal Images */
.product-modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    background: var(--primary-white);
}

/* Product Carousel Styles */
div[id^="productCarousel_"] {
    border-radius: 8px;
    overflow: hidden;
}

div[id^="productCarousel_"] .carousel-item {
    height: 400px;
    background: var(--primary-white);
    position: relative;
}

div[id^="productCarousel_"] .product-modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90%;
    max-width: 90%;
    height: auto;
    width: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
}

div[id^="productCarousel_"] .carousel-control-prev,
div[id^="productCarousel_"] .carousel-control-next {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

div[id^="productCarousel_"] .carousel-control-prev {
    left: 10px;
}

div[id^="productCarousel_"] .carousel-control-next {
    right: 10px;
}

div[id^="productCarousel_"] .carousel-control-prev-icon,
div[id^="productCarousel_"] .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

div[id^="productCarousel_"] .carousel-indicators {
    bottom: 10px;
}

div[id^="productCarousel_"] .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--primary-white);
}

div[id^="productCarousel_"] .carousel-indicators button.active {
    background-color: var(--primary-white);
}

/* ==========================================================================
   Store Map Styles
   ========================================================================== */

.store-map {
    position: relative;
    width: 95%;
    height: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: var(--transition-base);
}

.store-map:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.store-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    transition: var(--transition-base);
}

/* Responsive adjustments for store map */
@media (max-width: 768px) {
    .store-map {
        height: 400px;
        margin-top: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .store-map {
        height: 350px;
        border-radius: 8px;
    }
    
    .store-map iframe {
        border-radius: 8px;
    }
}