/* =========================
   /mywebapp/style.css
   WebApp Shell + Magazine UI
   ========================= */

/*
Theme Name: MyWebApp
Theme URI: https://caroilshop.com
Author: Editor MIN
Description: Web-app style WordPress theme shell (480px max-width, app header, bottom nav)
Version: 1.0.0
Text Domain: mywebapp
*/

/* =========================
   Font
   ========================= */

@font-face {
  font-family: 'Pretendard';
  src: url('./assets/fonts/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('./assets/fonts/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('./assets/fonts/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  src: url('./assets/fonts/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* =========================
   Tokens
   ========================= */

:root {
  --app-max-w: 480px;
  --bottom-nav-h: 64px;

  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-line-soft: #eef0f3;
  --color-soft: #f3f4f6;
  --color-soft-2: #f7f8fa;
  --color-blue: #1d9bf0;

  --note-bg: #f5f7f9;
  --note-border: #20c4a4;
}

.bottom-nav__icon svg{
  display:block;
  width:18px;
  height:18px;
}

/* =========================
   Reset
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    'Pretendard',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    Arial,
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

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

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

/* =========================
   App Shell
   ========================= */

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 16px 10px;
}

.app-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--app-max-w);
  height: calc(100vh - 32px);
  padding: 5px;
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-frame::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* =========================
   Header
   ========================= */

.app-header {
  padding-left: 10px;
  padding-right: 6px;
}

.app-header__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-left: 4px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 800;
}

.app-search-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f1f3f5;
  font-size: 14px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
  color: var(--color-text);
}

/* =========================
   Main
   ========================= */

.app-main {
  flex: 1;
  padding: 14px;
  padding-bottom: calc(28px + var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

.home-sections {
  margin-top: 28px;
}

.home-section {
  padding: 0;
}

.home-section + .home-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line-soft);
}

/* =========================
   Common UI
   ========================= */

.card {
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: 16px;
  padding: 14px;
}

.card + .card {
  margin-top: 12px;
}

.main-card {
  border: none;
  box-shadow: none;
  padding: 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* =========================
   Category Grid
   ========================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.category-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f7;
  border: 1px solid var(--color-line-soft);
  transition: all 0.15s ease;
}

.category-item:hover .category-icon {
  background: #eef1f4;
}

.category-icon img {
  width: 32px;
  height: 32px;
}

.category-label {
  font-size: 16px;
  color: #333;
  text-align: center;
}

@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   Bottom Nav
   ========================= */

:root{
  --bottom-nav-h: 68px;
}

.app-bottom-nav{
  position: fixed !important;
  left: 50%;
  bottom: 0 !important;
  transform: translateX(-50%);
  width: calc(100% - 10px);
  max-width: 480px;
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  background: #fff !important;
  border-top: 1px solid #eceff3;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  border-radius: 0 0 20px 20px;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}

.bottom-nav__items{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-height: var(--bottom-nav-h);
}

.bottom-nav__link{
  min-height: var(--bottom-nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  font-size: 18px;
  line-height: 1;
}

.bottom-nav__icon svg{
  display: block;
  width: 22px;
  height: 22px;
}

.bottom-nav__label{
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.bottom-nav__link.is-active{
  background: #f3f5f7;
  font-weight: 600;
}

/* 본문이 하단 네비에 가리지 않게 여백 확보 */
.app-frame main{
  padding-bottom: calc(var(--bottom-nav-h) + 24px + env(safe-area-inset-bottom));
}

/* 워드프레스 관리자 바가 있을 때 약간 보정 */
body.admin-bar .app-bottom-nav{
  z-index: 999999 !important;
}

/* =========================
   WordPress Content Defaults
   ========================= */

.entry-title {
  margin: 10px 0 14px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.entry-content p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.wp-block-image {
  margin: 0 0 12px;
}

/* =========================
   Single Oil
   ========================= */

.oil-single-wrap{
  padding: 20px 16px 32px;
}

.oil-single{
  max-width: 720px;
  margin: 0 auto;
}

.oil-thumb{
  margin-bottom: 16px;
}

.oil-thumb img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.oil-cats{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.oil-cat-link{
  display: inline-flex;
  color: #057AF0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.oil-title{
  margin: 0 0 18px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.oil-meta-box{
  padding: 18px 16px;
  margin-bottom: 18px;
  border: 1px solid #e8ebf0;
  border-radius: 16px;
  background: #fafbfc;
}

.oil-meta-row{
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}

.oil-meta-row:last-child{
  margin-bottom: 0;
}

.oil-meta-row strong{
  display: inline-block;
  margin-right: 6px;
}

.oil-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oil-tag-link{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F2F4F6;
  color: #333;
  font-size: 14px;
  text-decoration: none;
}

/* =========================
   Oil Specs
   ========================= */

.oil-spec-box {
  margin-top: 18px;
  margin-bottom: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  background-color: #F2F4F6;
  border-radius: 18px;
}

.oil-spec-row + .oil-spec-row {
  margin-top: 10px;
}

.oil-spec-row strong {
  font-weight: 700;
  margin-right: 6px;
}

/* 소개 섹션 */
.oil-description-section {
  margin-top: 28px;
}

.oil-section-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: #111;
}

.oil-description-box {
  padding: 10px;
  background: #fff;
  line-height: 1.8;
  color: #222;
}

.oil-description-box p {
  margin: 0 0 14px;
}

.oil-description-box p:last-child {
  margin-bottom: 0;
}

/* =========================
   Oil Sticky Header
   ========================= */

.oil-single-wrap {
  position: relative;
}

.oil-sticky-header {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 99999;

  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%);
}

.oil-sticky-header.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.oil-sticky-back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.oil-sticky-title {
  flex: 1;
  min-width: 0;
  margin: 0 10px;
  display: block;
  color: #111;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oil-sticky-spacer {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

/* 관리자 바 대응 */
body.admin-bar .oil-sticky-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .oil-sticky-header {
    top: 46px;
  }
}

/* =========================
   Single Magazine
   ========================= */

.single-magazine .magazine-article,
.single-magazine article,
.single-magazine .post {
  padding: 24px 20px 40px;
}

.single-magazine .magazine-thumbnail {
  margin: 0 0 18px;
  border-radius: 18px;
  overflow: hidden;
}

.single-magazine .magazine-thumbnail img {
  width: 100%;
  height: auto;
}

.single-magazine .magazine-header {
  margin-bottom: 20px;
}

.single-magazine .magazine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.single-magazine .magazine-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.single-magazine .magazine-tag:hover {
  background: #e9ecef;
}

.single-magazine .magazine-title,
.single-magazine h1 {
  margin: 0 0 14px;
  color: #111;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.single-magazine .magazine-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #8a8f98;
}

.single-magazine .magazine-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-magazine .magazine-author {
  font-weight: 700;
  color: #222;
}

.single-magazine .magazine-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  transform: translateY(1px);
}

.single-magazine .magazine-verified svg {
  display: block;
  width: 17px;
  height: 17px;
}

.single-magazine .magazine-meta-divider {
  color: #aaa;
}

.single-magazine .magazine-divider {
  width: 100%;
  height: 1px;
  margin-top: 2px;
  background: #e9e9e9;
}

.single-magazine .magazine-content,
.single-magazine .entry-content {
  margin-top: 24px;
  color: #111;
  font-size: 15px;
  line-height: 1.9;
  word-break: keep-all;
}

.single-magazine .magazine-content > *:first-child,
.single-magazine .entry-content > *:first-child {
  margin-top: 0;
}

.single-magazine .magazine-content > *:last-child,
.single-magazine .entry-content > *:last-child {
  margin-bottom: 0;
}

.single-magazine .magazine-content p,
.single-magazine .entry-content p {
  margin: 0 0 22px;
}

.single-magazine .magazine-content h2,
.single-magazine .entry-content h2 {
  margin: 36px 0 16px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.single-magazine .magazine-content h3,
.single-magazine .entry-content h3 {
  margin: 30px 0 14px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.single-magazine .magazine-content ul,
.single-magazine .magazine-content ol,
.single-magazine .entry-content ul,
.single-magazine .entry-content ol {
  margin: 0 0 24px 24px;
  padding: 0;
}

.single-magazine .magazine-content li,
.single-magazine .entry-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.single-magazine .magazine-content li:last-child,
.single-magazine .entry-content li:last-child {
  margin-bottom: 0;
}

.single-magazine .magazine-content blockquote,
.single-magazine .entry-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid #111;
  background: #f7f8fa;
  border-radius: 12px;
}

.single-magazine .magazine-content img,
.single-magazine .entry-content img {
  margin: 28px auto;
  border-radius: 16px;
}

.single-magazine .magazine-content hr,
.single-magazine .entry-content hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.single-magazine .magazine-content a,
.single-magazine .entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Gutenberg background box
   ========================= */

.single-magazine .magazine-content .has-background,
.single-magazine .entry-content .has-background,
.has-background {
  padding: 18px 20px;
  background: var(--note-bg) !important;
  border-left: 2px solid var(--note-border);
  border-radius: 0 12px 12px 0;
}

.single-magazine .magazine-content p.has-background,
.single-magazine .entry-content p.has-background,
p.has-background {
  margin: 28px 0;
  line-height: 1.85;
}

.single-magazine .magazine-content .wp-block-group.has-background,
.single-magazine .entry-content .wp-block-group.has-background,
.wp-block-group.has-background {
  margin: 28px 0;
}

.single-magazine .magazine-content blockquote.has-background,
.single-magazine .entry-content blockquote.has-background,
blockquote.has-background {
  border-left-width: 2px;
}

.single-magazine .magazine-content .has-background > *:last-child,
.single-magazine .entry-content .has-background > *:last-child,
.has-background > *:last-child {
  margin-bottom: 0;
}

/* =========================
   Auto TOC
   ========================= */

.auto-toc {
  margin: 24px 0 30px;
  padding: 16px 18px;
  background: #f7f8fa;
  border-radius: 14px;
}

.auto-toc-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
}

.auto-toc ul {
  margin: 0;
  padding-left: 18px;
}

.auto-toc li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* =========================
   Home Banner / Slider
   ========================= */

.home-banner {
  aspect-ratio: 3 / 2;
  border: 1px solid var(--color-line-soft);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-slider {
  position: relative;
  aspect-ratio: 3 / 2;
}

.home-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.home-slide.is-active {
  opacity: 1;
}

.home-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.home-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.home-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
}

/* =========================
   Shop Info
   ========================= */

.shop-info-card {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.shop-hours-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 6px;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.shop-hours-status {
  display: inline-flex;
  align-items: center;
}

.status-clock {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e5968;
}

.status-clock svg {
  width: 16px;
  height: 16px;
}

.toggle-arrow {
  transition: transform 0.2s;
}

.shop-hours-toggle.is-open .toggle-arrow {
  transform: rotate(180deg);
}

.shop-hours-content {
  display: none;
  padding: 0 0 8px;
  margin: 0;
}

.shop-hours-content.is-open {
  display: block;
}

.shop-hours-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.35;
}

.shop-hours-row span:first-child {
  width: 22px;
  flex: 0 0 22px;
  font-weight: 700;
}

.shop-hours-row span:last-child {
  color: #111;
}

.shop-contact-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.contact-btn svg {
  width: 18px;
  height: 18px;
}

.contact-btn.kakao {
  background: #fee500;
  color: #000;
}

.contact-btn.naver {
  background: #03c75a;
  color: #fff;
}

/* =========================
   Home Tiles
   ========================= */

.tile-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.tile-card {
  position: relative;
  min-height: 110px;
  padding: 20px;
  overflow: hidden;
  background: #f3f5f7;
  border: 1px solid var(--color-line-soft);
  border-radius: 18px;
}

.tile-card--mint {
  background: #eaf7ee;
}

.tile-card--lav {
  background: #eef0ff;
}

.tile-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.tile-sub {
  margin: 0;
  font-size: 13px;
  color: #333;
  opacity: 0.85;
}

.tile-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon img {
  width: 36px;
  height: 36px;
}

/* =========================
   Shop Footer
   ========================= */

.shop-footer-card {
  margin-top: 26px;
  margin-left: 18px;
  margin-right: 18px;
  padding: 28px 26px;
  background-color: #f2f4f6;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
}

.shop-footer-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
}

.shop-footer-lines {
  display: grid;
  gap: 8px;
  color: #6b7684;
  font-size: 14px;
  line-height: 1.5;
}

.shop-footer-line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.shop-footer-line .k {
  font-weight: 700;
  color: #333d48;
}

.shop-footer-line .v {
  color: #374151;
}

.shop-footer-line a:hover {
  text-decoration: underline;
}

/* =========================
   Oil / Tire Pages
   ========================= */

.oil-page .app-page-head,
.tire-page .app-page-head {
  margin: 12px 0;
}

.oil-page .app-page-title,
.tire-page .app-page-title {
  margin: 0 2px;
  font-size: 18px;
  font-weight: 800;
}

.oil-grid.card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border: none;
}

.oil-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px 44px;
  color: inherit;
  text-decoration: none;
  background: #f3f5f7;
  border-radius: 16px;
}

.oil-grid-item + .oil-grid-item {
  border-top: 0 !important;
}

.oil-ico {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 14px;
}

.oil-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.oil-arrow {
  display: none;
}

.oil-guide.card {
  margin-top: 12px;
  padding: 14px;
  font-size: 15px;
  color: #333d4b;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.dot-list {
  margin: 0;
  padding-left: 18px;
}

.dot-list li {
  margin: 4px 0;
  line-height: 1.55;
}

.oil-guide-title,
.oil-guide-sub,
.oil-guide-warn {
  font-weight: 900;
}

.oil-guide-title {
  margin: 10px 0 8px;
}

.oil-guide-sub {
  margin: 10px 0 6px;
}

.oil-guide-lead {
  margin: 0 0 10px;
  line-height: 1.6;
}

.oil-guide-warn {
  margin: 12px 0 0;
  color: #111;
}

.tire-page .oil-grid.card {
  grid-template-columns: repeat(2, 1fr);
}

.tire-guide {
  margin-top: 12px;
  padding: 6px 2px;
}

.tire-guide p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333d48;
}

/* =========================
   Magazine Archive
   ========================= */

.archive-magazine {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.archive-header {
  padding: 18px 16px;
}

.archive-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

.archive-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.magazine-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.magazine-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9edf2;
  border-radius: 16px;
}

.magazine-link {
  display: block;
}

.magazine-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f6f8;
}

.magazine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-body {
  padding: 14px;
}

.magazine-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.magazine-meta {
  margin-bottom: 8px;
  font-size: 13px;
  color: #888;
}

.magazine-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  padding: 8px 0 20px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 4px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  color: #222;
  font-size: 14px;
  font-weight: 600;
}

.archive-pagination .page-numbers.current {
  background: #111;
  border-color: #111;
  color: #fff;
}

.empty-state {
  padding: 20px 16px;
}

/* =========================
   Search Page
   ========================= */

.search-page {
  padding-top: 10px;
}

.search-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2px 0 12px;
  border-bottom: 1px solid var(--color-line-soft);
}

.search-tab {
  position: relative;
  padding: 12px 0;
  text-align: center;
  color: #9aa4b2;
  font-weight: 700;
}

.search-tab.is-active {
  color: #111;
}

.search-tab.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 2px;
  background: #111;
  border-radius: 999px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f3f5f7;
  border: 1px solid var(--color-line-soft);
  border-radius: 999px;
}

.search-ico {
  opacity: 0.6;
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
}

.search-clear {
  opacity: 0.55;
  font-weight: 800;
}

.search-section-title {
  margin: 16px 2px 10px;
  font-size: 14px;
  font-weight: 900;
  color: #111;
}

.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--color-line-soft);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.search-results.card {
  padding: 10px;
}

.result-item {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
}

.result-item + .result-item {
  border-top: 1px solid #f1f3f5;
}

.result-title {
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.result-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7b8794;
}

.result-empty {
  padding: 18px 12px;
  font-size: 14px;
  color: #6b7684;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
  .single-magazine .magazine-article,
  .single-magazine article,
  .single-magazine .post {
    padding: 20px 16px 36px;
  }

  .single-magazine .magazine-title,
  .single-magazine h1 {
    font-size: 19px;
    line-height: 1.3;
  }

  .single-magazine .magazine-meta {
    font-size: 14px;
  }

  .single-magazine .magazine-content,
  .single-magazine .entry-content {
    font-size: 15px;
    line-height: 1.85;
  }

  .single-magazine .magazine-content h2,
  .single-magazine .entry-content h2 {
    margin: 34px 0 14px;
    font-size: 18px;
  }

  .single-magazine .magazine-content h3,
  .single-magazine .entry-content h3 {
    margin: 24px 0 12px;
    font-size: 16px;
  }

  .single-magazine .magazine-content p,
  .single-magazine .entry-content p {
    margin-bottom: 20px;
  }

  .single-magazine .magazine-content ul,
  .single-magazine .magazine-content ol,
  .single-magazine .entry-content ul,
  .single-magazine .entry-content ol {
    margin-left: 20px;
  }
}

@media (max-width: 420px) {
  .oil-grid.card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .tire-page .oil-grid.card {
    grid-template-columns: 1fr;
  }
}