/* ===== Gozsila.com — โทนชมพู พีช ครีม สดใสวัยรุ่น ===== */
:root {
  --pink: #ff7eb3;
  --pink-deep: #f5538d;
  --peach: #ffb88c;
  --peach-soft: #ffd9c0;
  --cream: #fff8f0;
  --cream-2: #fff1e6;
  --text: #5d4954;
  --text-light: #9c8893;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 8px 30px rgba(245, 83, 141, .10);
  --shadow-hover: 0 14px 40px rgba(245, 83, 141, .20);
}

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

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4, .logo { font-family: 'Prompt', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  background: rgba(255, 248, 240, .92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 2px solid var(--peach-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.logo { font-size: 1.7rem; font-weight: 800; color: var(--pink-deep); letter-spacing: -.5px; }
.logo span { color: var(--peach); }
.logo em { font-style: normal; font-size: .85rem; color: var(--text-light); font-weight: 500; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: .92rem;
  padding: 8px 13px; border-radius: 99px; transition: .2s;
}
.main-nav a:hover { background: var(--pink); color: #fff; }
.main-nav .admin-link { background: var(--cream-2); border: 1.5px dashed var(--pink); color: var(--pink-deep); }
.main-nav .admin-link:hover { background: var(--pink-deep); border-style: solid; color: #fff; }
.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; color: var(--pink-deep); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(120deg, #ffd9e8 0%, #ffe8d6 55%, #fff3e0 100%);
  text-align: center; padding: 64px 20px 72px;
  border-radius: 0 0 48px 48px;
}
.hero-flex { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 30px; text-align: left; }
.hero-text { flex: 1; }
.hero-img { width: 360px; max-width: 42%; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; color: var(--pink-deep); }
.hero h1 .hl { color: var(--peach); }
.hero p { margin-top: 12px; font-size: 1.1rem; color: var(--text-light); }
.hero-cats { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cats a {
  background: #fff; padding: 9px 18px; border-radius: 99px;
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow); transition: .2s;
}
.hero-cats a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ===== Sections ===== */
.section { padding: 48px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; }
.section-head h2 .bar { display: inline-block; width: 14px; height: 14px; border-radius: 5px; margin-right: 10px; }
.see-all { font-family: 'Prompt', sans-serif; font-size: .9rem; color: var(--pink-deep); font-weight: 600; }
.see-all:hover { text-decoration: underline; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-cover {
  height: 170px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: linear-gradient(135deg, var(--peach-soft), #ffd9e8);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  align-self: flex-start; font-family: 'Prompt', sans-serif; font-size: .75rem; font-weight: 600;
  color: #fff; padding: 3px 12px; border-radius: 99px; margin-bottom: 10px;
}
.card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.card h3 a:hover { color: var(--pink-deep); }
.card p { font-size: .9rem; color: var(--text-light); margin-top: 8px; flex: 1; }
.card-meta { margin-top: 12px; font-size: .8rem; color: var(--text-light); }

.featured-grid { grid-template-columns: repeat(3, 1fr); }
.featured-grid .card:first-child { grid-column: span 3; flex-direction: row; }
.featured-grid .card:first-child .card-cover { width: 45%; height: auto; min-height: 260px; font-size: 6rem; flex-shrink: 0; }
.featured-grid .card:first-child h3 { font-size: 1.5rem; }
.featured-grid .card:first-child p { font-size: 1rem; }

/* ===== Article page ===== */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.breadcrumb { font-size: .85rem; color: var(--text-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--pink-deep); font-weight: 600; }
.article-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.45; }
.article-meta { margin: 14px 0 26px; font-size: .88rem; color: var(--text-light); display: flex; gap: 16px; flex-wrap: wrap; }
.article-cover {
  border-radius: var(--radius); height: 280px; display: flex; align-items: center; justify-content: center;
  font-size: 6.5rem; background: linear-gradient(135deg, var(--peach-soft), #ffd9e8);
  margin-bottom: 32px; overflow: hidden;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content h2 { margin: 34px 0 12px; font-size: 1.3rem; color: var(--pink-deep); }
.article-content img, .content-img { max-width: 100%; border-radius: 18px; margin: 14px 0; display: block; }
.article-content p { margin-bottom: 16px; }
.article-content em { color: var(--text-light); font-size: .9rem; }

/* กล่องสินค้า + ปุ่ม affiliate */
.product-box {
  display: flex; gap: 18px; background: #fff; border-radius: var(--radius);
  padding: 22px; margin: 20px 0; box-shadow: var(--shadow);
  border: 2px solid var(--cream-2);
}
.product-rank {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  color: #fff; font-family: 'Prompt', sans-serif; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.product-info h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); }
.product-info p { font-size: .93rem; margin-bottom: 12px; }
.aff-btn {
  display: inline-block; background: linear-gradient(135deg, var(--pink-deep), var(--peach));
  color: #fff; font-family: 'Prompt', sans-serif; font-weight: 600; font-size: .9rem;
  padding: 9px 22px; border-radius: 99px; transition: .2s;
  box-shadow: 0 4px 14px rgba(245, 83, 141, .35);
}
.aff-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 83, 141, .45); }

/* ===== Category page ===== */
.cat-hero { text-align: center; padding: 46px 20px; border-radius: 0 0 40px 40px; }
.cat-hero h1 { font-size: 2rem; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cat-hero .cat-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }

/* ===== Footer ===== */
.site-footer { margin-top: 70px; background: linear-gradient(120deg, #ffd9e8, #ffe8d6); border-radius: 48px 48px 0 0; padding: 44px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 30px; }
.logo-footer { font-size: 1.4rem; }
.footer-inner p { font-size: .9rem; color: var(--text-light); max-width: 420px; }
.disclosure { font-size: .78rem !important; margin-top: 10px; }
.footer-cats { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.footer-cats strong { font-family: 'Prompt', sans-serif; margin-bottom: 4px; }
.footer-cats a:hover { color: var(--pink-deep); }
.copyright { text-align: center; padding: 16px; font-size: .82rem; color: var(--text-light); border-top: 1px solid rgba(255,255,255,.6); }

/* ===== Empty state ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid, .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid .card:first-child { grid-column: span 2; flex-direction: column; }
  .featured-grid .card:first-child .card-cover { width: 100%; min-height: 200px; }
}
@media (max-width: 700px) {
  .hero-flex { flex-direction: column-reverse; text-align: center; }
  .hero-cats { justify-content: center; }
  .hero-img { max-width: 70%; }
}
@media (max-width: 600px) {
  .grid, .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .card:first-child { grid-column: span 1; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; order: 3; }
  .main-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .product-box { flex-direction: column; }
}
