@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

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

:root {
  --pink: #FFB6C1;
  --pink-dark: #FF69B4;
  --blue: #87CEEB;
  --purple: #DDA0DD;
  --green: #98FB98;
  --white: #FFFFFF;
  --bg: #FFFAF9;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 16px;
}

body {
  font-family: 'Kanit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 18px;
  overflow-wrap: break-word;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--pink-dark);
  letter-spacing: 2px;
}

.logo span {
  color: var(--text);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav ul li a {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--pink-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 50%, #F5F0FF 100%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 .highlight {
  color: var(--pink-dark);
}

.hero p {
  font-size: 22px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-btn {
  display: inline-block;
  background: var(--pink-dark);
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,105,180,0.3);
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 48px;
  color: var(--text);
}

.section-title .highlight {
  color: var(--pink-dark);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card .img-wrap {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.product-card .img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .img-wrap img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-body h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card .card-body .price {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 12px;
}

.product-card .card-body .desc {
  font-size: 16px;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-card .card-body .btn {
  display: inline-block;
  text-align: center;
  background: var(--pink-dark);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.3s;
}

.product-card .card-body .btn:hover {
  background: #e5559e;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery .main-img {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1;
}

.product-gallery .main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-info .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 20px;
}

.product-info .desc {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.product-info .variants {
  margin-bottom: 24px;
}

.product-info .variants h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-options span {
  padding: 10px 20px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.variant-options span:hover,
.variant-options span.active {
  border-color: var(--pink-dark);
  background: #FFF0F5;
  color: var(--pink-dark);
}

.product-info .cta-btn {
  display: inline-block;
  background: var(--pink-dark);
  color: white;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 22px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 12px;
}

.product-info .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,105,180,0.3);
}

.product-info .shopee-link {
  display: block;
  margin-top: 16px;
  font-size: 16px;
  color: var(--text-light);
  text-decoration: underline;
}

.product-info .features {
  margin: 28px 0;
  padding: 20px;
  background: #FFF0F5;
  border-radius: var(--radius);
}

.product-info .features ul {
  list-style: none;
  padding: 0;
}

.product-info .features ul li {
  padding: 6px 0;
  font-size: 17px;
}

.product-info .features ul li::before {
  content: "✦ ";
  color: var(--pink-dark);
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 0;
  font-size: 16px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--pink-dark);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Blog Article */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.4;
}

.blog-content {
  font-size: 19px;
  line-height: 2;
  color: var(--text);
}

.blog-content h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--pink);
}

.blog-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 16px;
}

.blog-content p {
  margin-bottom: 24px;
}

.blog-content ul, .blog-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.blog-content li {
  margin-bottom: 12px;
  line-height: 1.9;
}

.blog-content strong {
  color: var(--pink-dark);
  font-weight: 600;
}

.blog-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow);
}

/* Blog Internal Link (product mention) */
.blog-content a {
  color: var(--pink-dark);
  font-weight: 500;
  border-bottom: 2px dashed var(--pink);
  transition: all 0.3s;
}

.blog-content a:hover {
  border-bottom-color: var(--pink-dark);
  background: #FFF0F5;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Product Highlight Box */
.product-mention {
  background: linear-gradient(135deg, #FFF0F5 0%, #F0F8FF 100%);
  border-left: 4px solid var(--pink-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.product-mention h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--pink-dark);
  margin-bottom: 8px;
}

.product-mention p {
  margin-bottom: 12px;
}

.product-mention .btn-order {
  display: inline-block;
  background: var(--pink-dark);
  color: white;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.product-mention .btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,105,180,0.3);
  background: #e55a9f;
}

/* Compare Table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table thead {
  background: var(--pink-dark);
  color: white;
}

.compare-table th {
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
}

.compare-table td {
  padding: 14px 20px;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.compare-table tbody tr:nth-child(even) {
  background: #FFF8FA;
}

.compare-table tbody tr:hover {
  background: #FFF0F5;
}

/* FAQ Section */
.faq-section {
  margin-top: 60px;
  padding: 40px;
  background: #FFF8FA;
  border-radius: var(--radius);
}

.faq-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  border-bottom: none;
  margin-top: 0;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0e0e8;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--pink-dark);
  margin-bottom: 8px;
  margin-top: 0;
}

.faq-item p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, #FF69B4 0%, #FFB6C1 50%, #87CEEB 100%);
  border-radius: var(--radius);
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-section .order-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  color: white;
}

.cta-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-shopee { background: #EE4D2D; }
.btn-tiktok { background: #010101; }
.btn-line { background: #00C300; }

/* Related Posts */
.related-posts {
  margin-top: 60px;
}

.related-posts h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  display: block;
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--pink-dark);
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Blog Category (blog index page) */
.blog-category {
  margin-bottom: 48px;
}

.blog-category h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--pink);
}

/* Footer */
footer {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 40px 0 24px;
  margin-top: 60px;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

footer .footer-links a {
  font-size: 17px;
  color: var(--text-light);
}

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

footer p {
  font-size: 16px;
  color: #999;
}

/* Tags */
.tag {
  display: inline-block;
  background: #FFF0F5;
  color: var(--pink-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--pink-dark);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255,105,180,0.3);
  transition: transform 0.3s;
}

.back-top:hover {
  transform: translateY(-3px);
}

.back-top.show {
  display: flex;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .header-inner {
    position: relative;
    min-height: 64px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 12px;
    color: var(--text);
    line-height: 1;
    touch-action: manipulation;
  }

  nav ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 110;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    width: 100%;
    background: var(--white);
    border: 1px solid #ffe4ec;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  nav ul.open {
    display: grid;
  }

  nav ul li {
    min-width: 0;
  }

  nav ul li a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 20px;
    background: #FFF0F3;
  }

  .logo,
  .logo img {
    display: block;
  }

  .logo img {
    max-height: 44px;
    width: auto;
  }

  nav ul li a:hover,
  nav ul li a:active {
    background: var(--pink-dark);
    color: white;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-gallery {
    position: static;
  }

  .section-title {
    font-size: 28px;
  }

  .blog-article h1 {
    font-size: 26px;
  }

  .blog-content {
    font-size: 17px;
  }

  .blog-content h2 {
    font-size: 22px;
    margin-top: 32px;
  }

  .blog-content h3 {
    font-size: 19px;
    margin-top: 28px;
  }

  .blog-content p {
    margin-bottom: 18px;
  }

  .compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px -20px;
    padding: 0 20px;
  }

  .compare-table {
    min-width: 500px;
  }

  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .faq-section {
    padding: 24px 20px;
    margin-top: 40px;
  }

  .faq-section h2 {
    font-size: 22px;
  }

  .faq-item h3 {
    font-size: 17px;
  }

  .cta-section {
    padding: 32px 20px;
    margin-top: 40px;
  }

  .cta-section h2 {
    font-size: 22px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .cta-section .btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .blog-card {
    padding: 20px;
  }

  .blog-card-img {
    height: 140px;
  }

  .blog-card h3 {
    font-size: 16px;
  }

  .product-mention {
    padding: 20px;
    margin: 24px 0;
  }

  .related-posts h2 {
    font-size: 20px;
  }

  footer {
    padding: 32px 0 20px;
  }

  footer .footer-links {
    gap: 16px;
  }

  footer .footer-links a {
    font-size: 15px;
  }

  footer p {
    font-size: 14px;
  }

  .back-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}
