/* style.css – Premium Salon Theme (Warm/Earth Tones) */

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  background-color: #F9F6F0; /* Cream / Warm beige background */
  color: #4A3B32; /* Dark brown text for contrast and elegance */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d6cdc4" fill-opacity="0.15"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

/* Header */
header.header {
  width: 100%;
  padding: 3rem 1rem 2rem;
  text-align: center;
  background: #FFFFFF;
  border-bottom: 1px solid #EAE3D9;
  box-shadow: 0 4px 20px rgba(74, 59, 50, 0.05);
}

header.header .logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

header.header .site-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #332822;
  margin-bottom: 0.5rem;
  display: none; /* Hide text title if logo is prominent enough */
}

header.header .tagline {
  font-size: 1.1rem;
  color: #8C7B70;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Navigation */
nav.nav {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #EAE3D9;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

nav.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

nav.nav a {
  text-decoration: none;
  color: #5C4D43;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  background: transparent;
  transition: all 0.3s ease;
}

nav.nav a:hover, nav.nav a.active {
  background: #EADAC6;
  color: #332822;
}

/* Main Content */
main.main {
  width: 95%;
  max-width: 1200px;
  flex: 1;
  padding: 3rem 0;
}

main.main h1,
main.main h2 {
  font-size: 2rem;
  color: #332822;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 600;
  position: relative;
}

main.main h1::after,
main.main h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #D8C3A5;
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Hero Section */
section.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #FFFFFF, #FAF8F5);
  box-shadow: 0 10px 30px rgba(74, 59, 50, 0.08);
  border: 1px solid #EAE3D9;
}

section.hero h2 {
  border: none;
}
section.hero h2::after {
  display: none;
}

section.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #6C5A4F;
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background: #A98467;
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(169, 132, 103, 0.3);
}

.cta-button:hover {
  background: #8A6A51;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(169, 132, 103, 0.4);
}

/* Product Grid (Replacing Table) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(74, 59, 50, 0.06);
  border: 1px solid #F0EAE1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(74, 59, 50, 0.12);
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid #F0EAE1;
  position: relative;
  overflow: hidden;
}

.product-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

/* Specific class for tall vertical brushes to lay flat */
.product-image-wrapper img.rotate-vertical {
  transform: rotate(90deg) scale(1.3);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-code {
  font-size: 0.85rem;
  color: #A98467;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 1.1rem;
  color: #332822;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  flex: 1;
}

.product-price {
  font-size: 1.25rem;
  color: #8A6A51;
  font-weight: 700;
  border-top: 1px solid #F0EAE1;
  padding-top: 1rem;
  margin-top: auto;
}

.product-price::after {
  content: ' THB';
  font-size: 0.85rem;
  font-weight: 500;
  color: #8C7B70;
}

/* Features List on Home Page */
section.features {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(74, 59, 50, 0.05);
  border: 1px solid #EAE3D9;
}

section.features h3 {
  font-size: 1.5rem;
  color: #332822;
  margin-bottom: 1.5rem;
  text-align: center;
}

section.features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

section.features li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.6;
  color: #5C4D43;
}

section.features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #A98467;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Footer */
footer.footer {
  width: 100%;
  text-align: center;
  padding: 2rem 0;
  background: #FFFFFF;
  border-top: 1px solid #EAE3D9;
  color: #8C7B70;
  font-size: 0.95rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  nav.nav ul { gap: 0.25rem; }
  nav.nav a { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  header.header .logo { max-width: 160px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  section.hero { padding: 3rem 1.5rem; }
}

/* -------------------------------------- */
/* 6 TOP PICKS SECTION (Inspired by Catalog) */
/* -------------------------------------- */
.top-picks-section {
  padding: 5rem 2rem;
  background-color: #FDFBF7;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.top-picks-header {
  text-align: left;
  margin-bottom: 3rem;
  border-bottom: 2px solid #8A6A51;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.top-picks-title {
  font-size: 3rem;
  font-weight: 800;
  color: #5C4D43;
  letter-spacing: 2px;
  margin: 0;
  line-height: 1;
}

.top-picks-title span {
  font-size: 5rem;
  color: #8A6A51;
  vertical-align: bottom;
  line-height: 0.8;
}

.top-picks-subtitle {
  font-family: 'Brush Script MT', cursive, 'Inter', sans-serif;
  font-size: 1.8rem;
  color: #333;
  margin-top: -10px;
  margin-left: 50px;
  font-style: italic;
}

.top-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.top-pick-card {
  position: relative;
  background: #FFF;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(92, 77, 67, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.top-pick-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(92, 77, 67, 0.15);
}

.pick-number {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 8rem;
  font-weight: 900;
  color: #8A6A51;
  opacity: 0.15;
  z-index: -1;
  line-height: 1;
}

.pick-img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.top-pick-card:hover .pick-img {
  transform: scale(1.1);
}

.top-pick-card:hover .pick-img.rotate-diagonal {
  transform: scale(1.1) rotate(25deg);
}
.top-pick-card:hover .pick-img.rotate-diagonal-reverse {
  transform: scale(1.1) rotate(-25deg);
}

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

.pick-badge {
  display: inline-block;
  background-color: #E6D5C3;
  color: #5C4D43;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.pick-info h4 {
  font-size: 1.1rem;
  color: #332822;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pick-info p {
  font-size: 0.95rem;
  color: #6C5A4F;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .top-picks-title { font-size: 2.2rem; }
  .top-picks-title span { font-size: 3.5rem; }
  .top-picks-subtitle { font-size: 1.4rem; margin-left: 30px; }
  .top-picks-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* -------------------------------------- */
/* CATALOGUE INJECTED STYLES */
/* -------------------------------------- */
.product-desc {
  font-size: 0.9rem;
  color: #6C5A4F;
  margin: -0.5rem 0 1rem 0;
  line-height: 1.4;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-features {
  margin: 4rem auto;
  padding: 2.5rem;
  max-width: 900px;
  background-color: #FDFBF7;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(92, 77, 67, 0.05);
  border: 1px solid #E6D5C3;
}

.category-features h3 {
  font-size: 1.6rem;
  color: #5C4D43;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.category-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem 2rem;
}

.category-features li {
  font-size: 1.05rem;
  color: #332822;
  line-height: 1.5;
  padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .category-features ul {
    grid-template-columns: 1fr;
  }
}
