/* 엘리트 도어락 홈페이지 시안 — 공통 스타일 */
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
a { color: #0A0A0A; }
button { font-family: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 72px; }

.nav a { color: #FFFFFF; text-decoration: none; }
.nav a:hover { color: #FFE600; }
.foot a { color: #CFCFCF; }
.foot a:hover { color: #FFE600; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }

@media (max-width: 900px) {
  .nav { display: none !important; }
}

/* 제품 영역 (main.js가 채움) */
.cat-tabs { display: contents; }
.cat-tab { min-height: 52px; padding: 10px 28px; border: 0; border-radius: 12px 12px 0 0; background: #F4F4F2; color: #4A4A4A; font-size: 18px; font-weight: 700; }
.cat-tab[aria-pressed="true"] { background: #0A0A0A; color: #FFE600; font-weight: 900; }

.brand-chips { display: contents; }
.brand-chip { min-height: 44px; padding: 8px 20px; border: 1.5px solid #CFCFCA; border-radius: 999px; background: #FFFFFF; color: #0A0A0A; font-size: 15px; font-weight: 500; }
.brand-chip[aria-pressed="true"] { border-color: #0A0A0A; background: #FFE600; font-weight: 900; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.product-card { border: 1px solid #E2E2DE; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #FFFFFF; }
.product-photo { height: 230px; padding: 20px; box-sizing: border-box; border-bottom: 1px solid #E2E2DE; display: flex; align-items: center; justify-content: center; }
.product-photo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.product-brand { font-size: 13px; font-weight: 700; color: #5A5A5A; }
.product-model { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.3px; }
.product-feats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.product-feats li { position: relative; padding-left: 14px; font-size: 14px; color: #333333; }
.product-feats li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; box-sizing: border-box; background: #FFE600; border: 1px solid #0A0A0A; border-radius: 50%; }
.product-cta { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; background: #0A0A0A; color: #FFE600; font-size: 15px; font-weight: 700; border-radius: 10px; text-decoration: none; }

.more-btn { align-self: center; min-height: 52px; padding: 10px 32px; border: 2px solid #0A0A0A; border-radius: 12px; background: #FFFFFF; color: #0A0A0A; font-size: 16px; font-weight: 900; }
.more-btn[hidden] { display: none; }

@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-photo { height: 170px; padding: 12px; }
  .product-body { padding: 12px; }
  .product-model { font-size: 17px; }
}

/* 전화번호가 정해지기 전까지 숨기는 전화 상담 요소. 인라인 display보다 우선해야 해서 !important */
.phone-cta[hidden] { display: none !important; }

/* 헤더 상담 버튼: 전화번호가 노출돼 버튼이 둘이 되면 좁은 화면에서 줄바꿈되지 않게 정리 */
.head-cta { white-space: nowrap; }
@media (max-width: 1080px) {
  header:has(.phone-cta:not([hidden])) .nav { display: none !important; }
}
@media (max-width: 600px) {
  .head-ctas:has(.phone-cta:not([hidden])) .head-cta-label { display: none; }
  .head-ctas:has(.phone-cta:not([hidden])) .head-cta { padding: 8px 12px !important; }
}
