.mega-help { font-size: 13px; color: #666; margin: -18px 0 18px; }
.mega-products-menu { display: flex; flex-direction: column; gap: 0; min-height: 0; }
.mega-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.mega-tab { min-height: 180px; background: #fff; border: 0; border-radius: 20px; padding: 32px 28px; cursor: pointer; display: flex; align-items: center; gap: 24px; text-align: left; transition: box-shadow .25s, transform .25s; color: #222; }
.mega-tab:hover { box-shadow: 0 0 40px 8px color-mix(in srgb, var(--accent, #FF6B2B) 35%, transparent), 0 8px 20px rgba(0,0,0,.04); transform: translateY(-3px); }
.mega-tab.active { background: #fff; box-shadow: none; border-radius: 18px 18px 0 0; transform: translateY(-3px); }
.mega-tab.active:hover { box-shadow: 0 0 40px 8px color-mix(in srgb, var(--accent, #FF6B2B) 35%, transparent), 0 8px 20px rgba(0,0,0,.04); }
.mega-tab-thumb { width: 150px; height: 150px; flex: 0 0 150px; border-radius: 0; border: 0; background: #fafafa; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #999; font-size: 13px; font-weight: 800; }
.mega-tab-thumb img, .mega-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-thumb-placeholder { width: 100%; height: 100%; display: block; background: #eee; }
.mega-tab-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.mega-tab-title { font-size: 38px; font-weight: 900; color: #222; line-height: 1.15; word-break: keep-all; }
.mega-tab-desc { font-size: 15px; color: #888; line-height: 1.45; word-break: keep-all; }
.mega-tab.active .mega-tab-title { color: var(--accent, #FF6B2B); }
.mega-tab.active .mega-tab-desc { color: #666; }
.mega-panels { background: transparent; border-radius: 0 0 20px 20px; }
.mega-panel { display: none; border-top: 0; padding: 30px; background: #fff; border-radius: 0 0 20px 20px; box-shadow: 0 14px 32px rgba(0,0,0,.06); overflow: hidden; }
.mega-panel.active { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; animation: megaSlideDown .8s cubic-bezier(.16,.84,.18,1) both; transform-origin: top center; }
@keyframes megaSlideDown { from { opacity: 0; transform: translateY(-24px) scaleY(0.92); max-height: 0; } to { opacity: 1; transform: translateY(0) scaleY(1); max-height: 3000px; } }
.mega-products-grid { min-width: 0; display: flex; flex-direction: column; }
.mega-sub-divider { font-size: 11px; font-weight: 900; color: #999; letter-spacing: .4px; padding: 14px 4px 8px; border-bottom: 1px solid #f0f0f0; }
.mega-sub-divider:first-child { padding-top: 4px; }
.mega-sub-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mega-sub-tabs button { min-width: 0; border: 1px solid #eee; background: #fafafa; color: #777; border-radius: 12px; padding: 15px 10px; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.mega-sub-tabs button:hover, .mega-sub-tabs button.active { background: var(--accent, #FF6B2B); border-color: var(--accent, #FF6B2B); color: #fff; box-shadow: 0 6px 14px rgba(255,107,43,.16); }
.mega-product-group { display: none; }
.mega-product-group.active { display: block; animation: megaFadeIn .2s ease-out both; }
.mega-product { width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid #f5f5f5; border-radius: 10px; padding: 14px 8px; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; cursor: pointer; text-align: left; color: #222; transition: background .15s, padding-left .15s, box-shadow .15s, transform .15s; }
.mega-product:hover, .mega-product:focus { background: #FFF4ED; padding-left: 14px; outline: none; box-shadow: 0 8px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.mega-panel.mega-tab-filter .mega-product:hover, .mega-panel.mega-tab-filter .mega-product:focus { background: #EEF4FF; }
.mega-panel.mega-tab-filter .mega-product.is-link-active { background: #EEF4FF; box-shadow: 0 8px 18px rgba(0,0,0,.07); }
.mega-panel.mega-tab-carwash .mega-product:hover, .mega-panel.mega-tab-carwash .mega-product:focus { background: #F5EEFF; }
.mega-product-thumb { width: 80px; height: 80px; aspect-ratio: 1 / 1; background: #fafafa; border: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #aaa; font-size: 11px; }
.prod .thumb { aspect-ratio: 1 / 1 !important; object-fit: cover !important; width: 100%; }
.mega-product-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.mega-product-name { font-size: 17px; font-weight: 900; line-height: 1.3; word-break: keep-all; color: #222; }
.mega-product-desc { font-size: 13px; color: #666; line-height: 1.5; word-break: keep-all; }
.mega-info { min-width: 0; background: #fff; border-left: 5px solid var(--accent, #FF6B2B); border-radius: 16px; padding: 24px 26px; box-shadow: 0 8px 24px rgba(0,0,0,.06); height: fit-content; display: flex; flex-direction: column; gap: 14px; }
.mega-info-title { font-size: 18px; font-weight: 900; color: #222; }
.mega-mode-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mega-mode-tabs button { border: 1px solid #eee; background: #fafafa; color: #777; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.mega-mode-tabs button.active { background: var(--accent, #FF6B2B); border-color: var(--accent, #FF6B2B); color: #fff; }
.mega-mode-tabs-large { margin-bottom: 14px; gap: 8px; max-width: 25%; }
.mega-mode-tabs-large button { min-height: 36px; border-radius: 10px; font-size: 13px; padding: 8px 12px; box-shadow: 0 3px 8px rgba(0,0,0,.03); }
.mega-size-box { display: flex; flex-direction: column; gap: 10px; }
.mega-size-box input { width: 100%; padding: 14px 16px; border: 1px solid #e5e5e5; border-radius: 10px; font: inherit; font-size: 15px; background: #fafafa; }
.mega-size-box input:focus { outline: none; border-color: var(--accent, #FF6B2B); background: #fff; box-shadow: 0 0 0 3px rgba(255,107,43,.08); }
.mega-results { display: none; max-height: 300px; overflow: auto; }
.mega-results.mega-show { display: block; }
.mega-result-item { padding: 10px 12px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; margin-bottom: 6px; }
.mega-result-model { font-size: 15px; font-weight: 900; color: #222; margin-bottom: 3px; }
.mega-result-year { font-size: 13px; color: #888; margin-bottom: 6px; }
.mega-size-row { display: flex; gap: 5px; flex-wrap: wrap; }
.mega-size-tag { font-size: 13px; background: #FFF4ED; color: var(--accent, #FF6B2B); padding: 3px 6px; border-radius: 5px; font-weight: 800; }
.mega-empty { padding: 12px; color: #999; font-size: 12px; text-align: center; border-radius: 10px; background: #fafafa; }
.mega-size-link { display: block; text-align: center; padding: 12px; font-size: 13px; color: var(--accent, #FF6B2B); font-weight: 900; text-decoration: none; background: #FFF4ED; border-radius: 10px; transition: background .15s, color .15s, box-shadow .15s; }
.mega-size-link:hover, .mega-product.is-link-active ~ .mega-size-link { background: var(--accent, #FF6B2B); color: #fff; box-shadow: 0 8px 18px rgba(255,107,43,.18); }
.mega-panel-size-link { margin-top: 14px; padding: 15px; font-size: 15px; }
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .mega-products-menu { gap: 0; }
  .mega-tabs { grid-template-columns: 1fr; gap: 8px; }
  .mega-tab { min-height: 118px; padding: 22px 20px; border-radius: 16px; gap: 16px; }
  .mega-tab-thumb { width: 80px; height: 80px; flex-basis: 80px; }
  .mega-tab-title { font-size: 24px; }
  .mega-tab-desc { display: none; }
  .mega-panel { padding: 18px; }
  .mega-panel.active { grid-template-columns: 1fr; gap: 18px; }
  .mega-mode-tabs-large { overflow-x: auto; grid-template-columns: repeat(2, minmax(80px, 1fr)); padding-bottom: 4px; max-width: 50%; }
  .mega-mode-tabs-large button { min-height: 34px; font-size: 12px; padding: 8px 10px; }
  .mega-sub-tabs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .mega-sub-tabs button { flex: 0 0 auto; min-width: 112px; padding: 14px 16px; }
  .mega-product { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 4px; }
  .mega-product-thumb { width: 64px; height: 64px; }
  .mega-product-name { font-size: 15px; }
  .mega-product-desc { font-size: 12px; }
  .mega-info { padding: 20px; }
  .mega-sub-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* PC 전용 사이즈 업 (대표 상품 섹션) — 모바일 영향 X */
@media (min-width: 769px) {
  #featured-products .block-title { font-size: 42px; margin-bottom: 24px; }
  #featured-products .mega-help { font-size: 18px; margin: -10px 0 28px; }
  #featured-products .mega-cat { padding: 48px 36px; }
  #featured-products .mega-cat h3 { font-size: 30px; margin-bottom: 12px; }
  #featured-products .mega-cat p { font-size: 17px; }
  #featured-products .mega-cat .main-thumb { width: 200px; height: 200px; margin-bottom: 26px; }
  /* 열려야 늘어남 — 닫혔을 때 빈 공간 X */
  #featured-products .mega-products-menu { min-height: 0; }
}

/* 카테고리 카드 — 스크롤 시 좌·중·우에서 슬라이드인 (2026-05-19) */
#featured-products .mega-tabs .mega-tab {
  opacity: 0;
  transform: translateX(0) translateY(40px);
  transition: opacity .9s cubic-bezier(.18,.85,.25,1), transform .9s cubic-bezier(.18,.85,.25,1);
}
#featured-products .mega-tabs .mega-tab:nth-child(1) { transform: translateX(-80px); }
#featured-products .mega-tabs .mega-tab:nth-child(2) { transform: translateY(60px); transition-delay: .12s; }
#featured-products .mega-tabs .mega-tab:nth-child(3) { transform: translateX(80px); transition-delay: .24s; }
/* 가시 영역 들어오면 가운데로 모임 */
#featured-products.is-visible .mega-tabs .mega-tab {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
/* 모션 축소 사용자 환경 — 애니메이션 X */
@media (prefers-reduced-motion: reduce) {
  #featured-products .mega-tabs .mega-tab {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== DABONI PRODUCTS 자동 회전 hero 캐러셀 (GSAP, 2026-05-26) — 로컬 프로토타입 그대로 ===== */
.hero-carousel { max-width: 1480px; margin: 0 auto; }
.hc-head { text-align: center; margin-bottom: 26px; }
.hc-eyebrow { display: inline-block; padding: 8px 22px; border-radius: 999px; border: 2px solid var(--accent, #FF6B2B); color: var(--accent, #FF6B2B); font-size: 13px; font-weight: 900; letter-spacing: .08em; box-shadow: 0 0 22px color-mix(in srgb, var(--accent, #FF6B2B) 35%, transparent); margin-bottom: 14px; }
.hc-head strong { display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 950; line-height: 1.1; }
/* 카테고리 탭 (와이퍼·에어컨필터·세차용품) */
.hc-cat-tabs { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; flex-wrap: wrap; }
.hc-cat-tab { padding: 12px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s, background .2s; }
.hc-cat-tab:hover { border-color: var(--accent, #FF6B2B); color: var(--accent, #FF6B2B); }
.hc-cat-tab.active { border-color: var(--accent, #FF6B2B); color: var(--accent, #FF6B2B); background: rgba(0,0,0,.22); box-shadow: 0 0 16px color-mix(in srgb, var(--accent, #FF6B2B) 28%, transparent); }
.hc-head p { color: var(--accent, #FF6B2B); font-weight: 700; margin-top: 8px; font-size: 14px; }
.hc-stage { position: relative; border-radius: 20px; overflow: hidden; background: #0a0d0e; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 120px rgba(0,0,0,.6); cursor: grab; user-select: none; }
.hc-progress { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.12); z-index: 20; }
.hc-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent, #FF6B2B), var(--accent2, var(--accent, #FF6B2B))); }
.hc-wrap { position: relative; width: 100%; aspect-ratio: 1920 / 720; background: #0a0d0e; overflow: hidden; }
.hc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hc-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,9,10,.85) 0%, rgba(5,9,10,.4) 40%, transparent 70%); }
.hc-text { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); z-index: 5; max-width: 48%; perspective: 800px; }
.hc-sub { color: var(--accent, #FF6B2B); font-weight: 800; font-size: 15px; letter-spacing: .02em; margin-bottom: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hc-name { font-size: clamp(36px, 5.5vw, 72px); font-weight: 950; line-height: .98; margin-bottom: 16px; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.7); }
.hc-name span { display: inline-block; transform-origin: 50% 100%; }
.hc-desc { font-size: 16px; color: rgba(242,247,244,.9); line-height: 1.55; margin-bottom: 24px; max-width: 90%; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.hc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-buy { padding: 11px 22px; border-radius: 999px; text-decoration: none; background: rgba(8,12,12,.55); border: 2px solid var(--accent, #FF6B2B); color: var(--accent, #FF6B2B); font-size: 13px; font-weight: 800; box-shadow: 0 0 16px color-mix(in srgb, var(--accent, #FF6B2B) 30%, transparent); transition: background .2s, color .2s; }
.hc-buy:hover { background: var(--accent, #FF6B2B); color: #0a0d0e; }
.hc-minis { display: none !important; }
.hc-mini { width: 84px; height: 108px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid rgba(255,255,255,.2); position: relative; padding: 0; background: #0a0d0e; transition: border-color .2s, transform .2s; }
.hc-mini:hover { transform: translateY(-4px); border-color: var(--accent, #FF6B2B); }
.hc-mini.active { border-color: var(--accent, #FF6B2B); box-shadow: 0 0 18px color-mix(in srgb, var(--accent, #FF6B2B) 50%, transparent); }
.hc-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-mini span { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px; background: rgba(5,9,10,.8); font-size: 9px; font-weight: 800; text-align: center; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 46px; height: 46px; border-radius: 999px; background: rgba(8,12,12,.6); border: 2px solid var(--accent, #FF6B2B); color: var(--accent, #FF6B2B); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hc-prev { left: 16px; }
.hc-next { right: 16px; }
.hc-nav:hover { background: rgba(8,12,12,.85); }
.mega-empty { text-align: center; padding: 40px 16px; color: rgba(255,255,255,.6); }
@media (max-width: 899px) {
  .hc-wrap { aspect-ratio: 3 / 4; }
  /* 텍스트 = 좌측 하단 */
  .hc-text { top: auto; bottom: 62px; transform: none; max-width: 92%; left: 5%; text-align: left; }
  .hc-sub { margin-bottom: 6px; font-size: 13px; }
  .hc-name { font-size: clamp(22px, 7vw, 36px); margin-bottom: 8px; }
  .hc-desc { font-size: 13px; line-height: 1.4; margin-bottom: 12px; }
  .hc-nav { display: flex; top: 68%; width: 40px; height: 40px; font-size: 20px; }
  .hc-prev { left: 9px; }
  .hc-next { right: 9px; }
  #heroEventCarousel .hc-nav { top: 66%; }
  /* 썸네일(미니카드) = 위로 */
  .hc-minis { top: 12px; bottom: auto; right: 10px; gap: 5px; }
  .hc-mini { width: 50px; height: 66px; }
  /* 버튼 = 사진 좌측 최하단 (한 줄) */
  .hc-actions { left: 5%; bottom: 14px; flex-wrap: nowrap; gap: 6px; justify-content: flex-start; }
  .hc-buy { flex: 0 0 auto; padding: 8px 12px; font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-text > * { opacity: 1 !important; transform: none !important; }
}
