/* ============================================
   AURA BEAUTY - CSS Thuần  
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-family: 'Manrope', sans-serif;
}

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

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f8f6f6;
  color: #1e293b;
}

/* Dark Mode */
html.dark {
  background-color: #221015;
  color: #e2e8f0;
}

html.dark body {
  background-color: #221015;
}

/* Variables CSS */
:root {
  --primary: #ee2b5b;
  --bg-light: #f8f6f6;
  --bg-dark: #221015;
  --text-light: #1e293b;
  --text-dark: #e2e8f0;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Main Layout */
.main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-light);
}

html.dark .main-wrapper {
  background-color: var(--bg-dark);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1050;
  border-bottom: 1px solid rgba(238, 43, 91, 0.2);
  background-color: rgba(248, 246, 246, 0.8);
  backdrop-filter: blur(4px);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 12px 24px;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 12px 32px;
  }
}

html.dark header {
  background-color: rgba(34, 16, 21, 0.8);
  border-bottom-color: rgba(238, 43, 91, 0.3);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-left a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

html.dark .logo-text {
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-right {
    gap: 12px;
  }
}

.button-group {
  display: flex;
  gap: 6px;
}

.button-group a {
  text-decoration: none;
}

@media (min-width: 1024px) {
  .button-group {
    gap: 8px;
  }
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background-color: rgba(238, 43, 91, 0.1);
  color: var(--slate-800);
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

html.dark .header-btn {
  background-color: rgba(238, 43, 91, 0.2);
  color: var(--slate-200);
}

.header-btn:hover {
  background-color: rgba(238, 43, 91, 0.2);
}

html.dark .header-btn:hover {
  background-color: rgba(238, 43, 91, 0.3);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  flex: 1;
}

.content-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO SECTION
   ============================================ */
.hero-slider {
  margin: 24px 0;
  min-height: 480px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
  align-items: center;
}

.hero-slide h1 {
  font-size: 32px;
  font-weight: 900;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.033em;
  margin: 0;
}

@media (min-width: 480px) {
  .hero-slide h1 {
    font-size: 48px;
  }
}

.hero-slide p {
  font-size: 14px;
  color: white;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 480px) {
  .hero-slide p {
    font-size: 16px;
  }
}

.hero-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  max-width: 200px;
  height: 40px;
  padding: 0 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

@media (min-width: 480px) {
  .hero-btn {
    height: 44px;
    padding: 0 28px;
    font-size: 15px;
  }
}

.hero-btn:hover {
  opacity: 0.9;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
section {
  padding: 0 16px;
  margin: 48px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
  padding-left: 0;
  padding-bottom: 12px;
  padding-top: 20px;
  letter-spacing: -0.015em;
  margin: 0;
}

html.dark .section-title {
  color: white;
}

.text-center {
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
  cursor: pointer;
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--slate-800);
  border: none;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

html.dark .quick-view-btn {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
}

.product-info h3 {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

html.dark .product-info h3 {
  color: var(--slate-200);
}

.product-price {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

html.dark .product-price {
  color: var(--slate-400);
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.category-card:hover .category-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

.category-title {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 0;
}

@media (min-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.brand-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

html.dark .brand-card {
  background-color: rgba(30, 41, 59, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html.dark .brand-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.brand-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

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

.brand-logo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

html.dark .brand-logo {
  background-color: rgba(30, 41, 59, 0.9);
  border-top-color: rgba(100, 116, 139, 0.3);
}

.brand-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-800);
  text-align: center;
  letter-spacing: 0.02em;
}

html.dark .brand-text {
  color: white;
}

@media (min-width: 768px) {
  .brand-text {
    font-size: 14px;
  }
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: rgba(238, 43, 91, 0.1);
  padding: 32px;
  border-radius: 12px;
  margin: 0 16px;
}

html.dark .promo-banner {
  background-color: rgba(238, 43, 91, 0.2);
}

@media (min-width: 768px) {
  .promo-banner {
    flex-direction: row;
  }
}

.promo-content {
  text-align: center;
}

@media (min-width: 768px) {
  .promo-content {
    text-align: left;
  }
}

.promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-light);
  margin: 0;
}

html.dark .promo-title {
  color: white;
}

.promo-subtitle {
  color: var(--slate-700);
  margin-top: 8px;
  margin-bottom: 0;
}

html.dark .promo-subtitle {
  color: var(--slate-300);
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 448px;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background-color: var(--bg-light);
  color: var(--text-light);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

html.dark .newsletter-form input {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form input::placeholder {
  color: var(--slate-500);
}

html.dark .newsletter-form input::placeholder {
  color: var(--slate-400);
}

.newsletter-btn {
  flex-shrink: 0;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

html.dark .testimonial-card {
  background-color: rgba(30, 41, 59, 0.3);
}

.star-rating {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 0;
}

.star {
  color: var(--primary);
  font-size: 20px;
}

.testimonial-text {
  color: var(--slate-600);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

html.dark .testimonial-text {
  color: var(--slate-300);
}

.testimonial-author {
  color: var(--text-light);
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 0;
}

html.dark .testimonial-author {
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background-color: #f1f5f9;
  color: var(--slate-700);
  margin-top: 64px;
}

html.dark footer {
  background-color: rgba(15, 23, 42, 0.5);
  color: var(--slate-300);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.3s ease;
}

html.dark .footer-links a {
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--primary);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(238, 43, 91, 0.1);
  border-radius: 8px;
  color: var(--slate-700);
  transition: background-color 0.3s ease;
}

html.dark .social-links a {
  background-color: rgba(238, 43, 91, 0.2);
  color: var(--slate-300);
}

.social-links a:hover {
  background-color: rgba(238, 43, 91, 0.2);
}

html.dark .social-links a:hover {
  background-color: rgba(238, 43, 91, 0.3);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  padding: 24px 16px;
  text-align: center;
}

html.dark .footer-bottom {
  border-top-color: rgba(100, 116, 139, 0.3);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  padding: 0 20px;
  margin: 20px 0;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
  gap: 16px;
}

.carousel-track .product-card {
  flex: 0 0 calc(50% - 8px);
  /* 2 items per row on mobile */
  min-width: 0;
}

@media (min-width: 768px) {
  .carousel-track .product-card {
    flex: 0 0 calc(33.333% - 11px);
    /* 3 items per row on tablet */
  }
}

@media (min-width: 1024px) {
  .carousel-track .product-card {
    flex: 0 0 calc(25% - 12px);
    /* 4 items per row on desktop */
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid #eee;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #ee2b5b;
  color: white;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}