
:root{
  --navy:#102e5b;
  --blue:#2f6fcb;
  --blue2:#6591c9;
  --ink:#152238;
  --muted:#6f7d90;
  --line:#dfe6ef;
  --soft:#f5f8fc;
  --paper:#fff;
  --dark:#15202d;
  --header:78px;
  --max:1240px;
  --shadow:0 24px 60px rgba(17,46,91,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header) + 18px)}
body{margin:0;background:#fff;color:var(--ink);font-family:"Noto Sans KR","Malgun Gothic",Arial,sans-serif;line-height:1.6;overflow-x:hidden}
body.menu-open,body.modal-open{overflow:hidden}
img{display:block;width:100%}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
button{color:inherit}
.page{width:min(calc(100% - 48px),var(--max));margin-inline:auto}
.section{padding:105px 0}
.skip-link{position:fixed;z-index:5000;top:12px;left:12px;background:var(--navy);color:#fff;padding:10px 14px;transform:translateY(-180%)}
.skip-link:focus{transform:none}
.eyebrow,.kicker{margin:0 0 14px;color:var(--blue);font-size:.7rem;font-weight:900;letter-spacing:.16em}
.section-head{display:grid;grid-template-columns:1fr minmax(300px,.7fr);gap:64px;align-items:end}
.section-head h2,.featured-title h2,.buyer-cta h2,.sourcing h2,.process h2,.about h2,.inquiry h2{margin:0;color:var(--navy);font-size:clamp(2.25rem,4.7vw,4.7rem);line-height:1.05;letter-spacing:-.06em}
.section-head>p,.process-heading>p{margin:0;color:var(--muted);line-height:1.9}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 24px;border:1px solid transparent;border-radius:2px;font-size:.88rem;font-weight:800;cursor:pointer;transition:.2s ease}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--blue);transform:translateY(-2px)}
.btn-outline{border-color:#91a9c7;background:rgba(255,255,255,.72);color:var(--navy)}
.btn-outline:hover{background:#fff;border-color:var(--navy);transform:translateY(-2px)}

/* header */
.site-header{position:fixed;z-index:1200;top:0;left:0;width:100%;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.header-shell{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;width:min(calc(100% - 42px),1380px);min-height:var(--header);margin:auto}
.menu-button{justify-self:start;display:flex;align-items:center;gap:7px;border:0;background:transparent;cursor:pointer;padding:12px 0}
.menu-button span{display:block;width:22px;height:1.5px;background:var(--navy);position:absolute}
.menu-button span:first-child{transform:translateY(-4px)}
.menu-button span:nth-child(2){transform:translateY(4px)}
.menu-button strong{margin-left:31px;font-size:.65rem;letter-spacing:.12em}
.center-brand{justify-self:center;display:flex;flex-direction:column;align-items:center;color:var(--navy);line-height:1}
.center-brand strong{font-size:1.45rem;letter-spacing:-.055em}
.center-brand span{margin-top:5px;font-size:.48rem;font-weight:800;letter-spacing:.13em}
.header-tools{justify-self:end;display:flex;align-items:center;gap:18px}
.languages{display:flex;gap:2px}
.lang{border:0;background:transparent;color:#7d8899;padding:6px 5px;font-size:.66rem;font-weight:800;cursor:pointer}
.lang.is-active{color:var(--blue)}
.header-inquiry{border-left:1px solid var(--line);padding-left:18px;color:var(--navy);font-size:.78rem;font-weight:800}

/* drawer */
.menu-panel{position:fixed;z-index:1600;top:0;left:0;width:min(480px,88vw);height:100dvh;background:#fff;transform:translateX(-103%);transition:transform .35s cubic-bezier(.2,.7,.2,1);box-shadow:var(--shadow)}
.menu-panel.is-open{transform:none}
.menu-backdrop{position:fixed;z-index:1500;inset:0;background:rgba(12,24,40,.44);opacity:0;pointer-events:none;transition:.25s}
.menu-backdrop.is-open{opacity:1;pointer-events:auto}
.menu-panel-inner{display:flex;flex-direction:column;height:100%;padding:30px 36px}
.menu-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px}
.menu-heading span{color:var(--navy);font-size:.76rem;font-weight:900;letter-spacing:.14em}
.menu-heading button{border:0;background:transparent;font-size:2rem;cursor:pointer;color:var(--navy)}
.drawer-nav{display:flex;flex-direction:column;margin-top:28px}
.drawer-nav a{display:grid;grid-template-columns:45px 1fr;align-items:center;border-bottom:1px solid var(--line);padding:16px 0;color:var(--navy)}
.drawer-nav a span{font-size:.65rem;color:var(--blue)}
.drawer-nav a strong{font-size:1.3rem;letter-spacing:-.03em}
.drawer-bottom{margin-top:auto;padding-top:28px;border-top:1px solid var(--line)}
.drawer-bottom p{color:var(--muted);font-size:.9rem}
.drawer-cta{display:inline-block;margin:8px 0 22px;color:var(--navy);font-size:.9rem;font-weight:900;border-bottom:1px solid var(--navy)}
.drawer-bottom>span{display:block;color:var(--muted);font-size:.76rem}

/* hero */
.hero{position:relative;min-height:625px;padding-top:var(--header);overflow:hidden;background:var(--soft)}
.hero-art,.hero-overlay{position:absolute;inset:var(--header) 0 0;width:100%;height:calc(100% - var(--header));object-fit:cover}
.hero-overlay{background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 34%,rgba(255,255,255,.45) 57%,rgba(255,255,255,0) 78%)}
.hero-content{position:relative;z-index:2;padding-top:110px}
.hero h1{max-width:700px;margin:0;color:var(--navy);font-size:clamp(3rem,5.8vw,5.8rem);line-height:1.02;letter-spacing:-.075em}
.hero-content>p:not(.kicker){max-width:570px;margin:28px 0 0;color:#53667e;font-size:1.05rem;line-height:1.85}
.hero-actions{display:flex;gap:10px;margin-top:34px}

/* catalog */
.catalog{background:#fff}
.catalog-head{margin-bottom:40px}
.catalog-head h2{font-size:clamp(2.4rem,4.8vw,4.4rem)}
.catalog-toolbar{display:flex;justify-content:space-between;gap:25px;align-items:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin-bottom:30px}
.filter-tabs{display:flex;gap:8px;flex-wrap:wrap}
.filter{border:1px solid var(--line);border-radius:99px;background:#fff;padding:9px 18px;color:#66758a;font-size:.76rem;font-weight:800;cursor:pointer}
.filter.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
.catalog-search{display:flex;align-items:center;gap:8px;min-width:250px;border-bottom:1px solid #cfd8e4;padding:6px 0}
.catalog-search span{color:var(--blue);font-size:1.2rem}
.catalog-search input{width:100%;border:0;outline:0;color:var(--ink)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{border:1px solid var(--line);background:#fff;transition:.2s ease;cursor:pointer}
.product-card:hover{box-shadow:0 16px 36px rgba(17,46,91,.10);transform:translateY(-3px)}
.product-image{aspect-ratio:4/2.45;object-fit:cover;background:#e5e9ee}
.product-body{padding:16px}
.product-top{display:flex;justify-content:space-between;gap:10px;align-items:start}
.product-code{margin:0 0 3px;color:var(--blue);font-size:.62rem;font-weight:900;letter-spacing:.08em}
.product-card h3{margin:0;color:#20324c;font-size:1.02rem;letter-spacing:-.03em}
.product-arrow{color:var(--navy)}
.product-spec{margin:11px 0 0;color:var(--muted);font-size:.75rem;line-height:1.65}
.product-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:12px}
.product-tags span{background:var(--soft);color:#617188;padding:4px 7px;font-size:.62rem}
.empty-state{display:none;text-align:center;color:var(--muted);padding:50px 0}
.empty-state.show{display:block}

/* featured */
.featured{background:var(--soft);padding:70px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.featured-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:28px}
.featured-title h2{font-size:clamp(1.8rem,3vw,3rem)}
.featured-title>a{color:var(--navy);font-size:.82rem;font-weight:800}
.featured-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.mini-card{background:#fff;border:1px solid var(--line);cursor:pointer}
.mini-card img{aspect-ratio:16/8.5;object-fit:cover}
.mini-card div{padding:13px}
.mini-card small{color:var(--blue);font-weight:900}
.mini-card strong{display:block;color:var(--navy);margin-top:3px;font-size:.87rem}

/* buyer cta */
.buyer-cta{background:#eaf2fc;border-bottom:1px solid var(--line)}
.buyer-cta-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding-block:55px}
.buyer-cta h2{font-size:clamp(1.8rem,3.4vw,3.3rem)}
.buyer-cta p:not(.eyebrow){color:var(--muted)}
.buyer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.request-card{min-height:124px;background:var(--navy);color:#fff;padding:22px;display:grid;grid-template-columns:1fr auto;align-content:space-between}
.request-card.blue{background:var(--blue)}
.request-card span{font-size:.65rem;opacity:.7}
.request-card strong{font-size:1rem}
.request-card i{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;font-size:1.5rem}

/* sourcing */
.sourcing{background:#fff}
.value-grid{display:grid;grid-template-columns:repeat(4,1fr);margin-top:60px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.value-grid article{padding:32px;border-right:1px solid var(--line)}
.value-grid article:first-child{border-left:1px solid var(--line)}
.value-grid article span{color:var(--blue);font-size:.7rem;font-weight:900}
.value-grid h3{margin:56px 0 12px;color:var(--navy);font-size:1.25rem}
.value-grid p{margin:0;color:var(--muted);font-size:.88rem}

/* process */
.process{background:var(--dark);color:#fff}
.process .eyebrow{color:#86aee3}
.process h2{color:#fff}
.process-heading{display:grid;grid-template-columns:1fr .7fr;gap:60px;align-items:end}
.process-heading>p{color:#9ba8b6}
.process-grid{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr;gap:14px;align-items:center;margin-top:62px}
.process-grid div{min-height:150px;border:1px solid rgba(255,255,255,.16);padding:24px;display:flex;flex-direction:column;justify-content:space-between}
.process-grid strong{color:#86aee3;font-size:.7rem}
.process-grid span{font-size:.95rem;font-weight:800}
.process-grid i{color:#68788b;font-style:normal}

/* about */
.about{background:#f7f9fc}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}
.about h2{font-size:clamp(2.3rem,4.4vw,4.4rem)}
.about-copy>p{margin:0 0 20px;color:var(--muted);line-height:1.9}
.about-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}
.about-tags span{border:1px solid #cbd7e6;color:var(--navy);padding:7px 10px;font-size:.68rem;font-weight:800}

/* inquiry */
.inquiry{background:#fff}
.inquiry-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px}
.inquiry h2{font-size:clamp(2.4rem,4.7vw,4.6rem)}
.inquiry-intro>p:not(.eyebrow){color:var(--muted);line-height:1.85}
.contact-list{margin-top:40px;border-top:1px solid var(--line)}
.contact-list div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:16px 0}
.contact-list span{color:var(--muted);font-size:.75rem}
.contact-list strong{color:var(--navy);font-size:.82rem}
.quote-form{border:1px solid var(--line);background:var(--soft);padding:38px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.quote-form label{display:grid;gap:7px;margin-bottom:20px}
.quote-form label span{color:var(--navy);font-size:.73rem;font-weight:800}
.quote-form input,.quote-form textarea{width:100%;border:0;border-bottom:1px solid #c7d2df;background:transparent;padding:10px 0;outline:0}
.quote-form input:focus,.quote-form textarea:focus{border-color:var(--blue)}
.quote-form textarea{resize:vertical}
.submit-button{width:100%;border:0;background:var(--navy);color:#fff;padding:15px 18px;font-weight:800;cursor:pointer}
.submit-button:hover{background:var(--blue)}
.form-note{margin:8px 0 0;color:var(--muted);font-size:.68rem}

/* footer */
.site-footer{background:#fff;border-top:1px solid var(--line);padding-top:65px}
.footer-top{display:grid;grid-template-columns:.75fr 1.25fr;gap:70px}
.footer-brand strong{display:block;color:var(--navy);font-size:1.5rem}
.footer-brand>span{display:block;color:var(--blue);font-size:.55rem;letter-spacing:.12em;font-weight:900}
.footer-brand p{color:var(--muted);font-size:.83rem;max-width:260px}
.footer-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.footer-columns>div{display:flex;flex-direction:column;gap:7px}
.footer-columns h3{margin:0 0 6px;color:var(--navy);font-size:.75rem}
.footer-columns a{color:var(--muted);font-size:.78rem}
.footer-columns a:hover{color:var(--blue)}
.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:55px;padding:20px 0;color:#8a96a7;font-size:.68rem}

/* modal */
.modal{position:fixed;z-index:3000;inset:0;display:none}
.modal.is-open{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(12,23,37,.55)}
.modal-card{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;width:min(880px,calc(100% - 32px));max-height:88dvh;overflow:auto;margin:6dvh auto;background:#fff;box-shadow:var(--shadow)}
.modal-card>img{height:100%;min-height:430px;object-fit:cover}
.modal-content{padding:40px}
.modal-content h2{margin:0;color:var(--navy);font-size:2.1rem}
.modal-close{position:absolute;z-index:2;top:15px;right:17px;border:0;background:#fff;width:38px;height:38px;border-radius:50%;font-size:1.5rem;cursor:pointer}
.spec-list{display:grid;grid-template-columns:1fr 1fr;margin:28px 0 34px;border-top:1px solid var(--line)}
.spec-list div{padding:13px 0;border-bottom:1px solid var(--line)}
.spec-list div:nth-child(odd){padding-right:12px}
.spec-list dt{color:var(--muted);font-size:.68rem}
.spec-list dd{margin:3px 0 0;color:#263851;font-size:.84rem;font-weight:800}
.modal-actions{display:flex;gap:9px}

/* responsive */
@media(max-width:1000px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .value-grid{grid-template-columns:repeat(2,1fr)}
  .value-grid article:nth-child(3){border-left:1px solid var(--line)}
  .process-grid{grid-template-columns:1fr 1fr;gap:10px}
  .process-grid i{display:none}
  .process-heading,.section-head,.about-grid,.inquiry-grid,.buyer-cta-inner{grid-template-columns:1fr}
  .buyer-actions{max-width:650px}
}
@media(max-width:760px){
  :root{--header:70px}
  .page,.header-shell{width:min(calc(100% - 28px),var(--max))}
  .section{padding:76px 0}
  .header-tools .header-inquiry{display:none}
  .languages{gap:0}
  .center-brand strong{font-size:1.22rem}
  .center-brand span{font-size:.42rem}
  .menu-button strong{display:none}
  .menu-button span{position:relative}
  .menu-button span:first-child{transform:none}
  .menu-button span:nth-child(2){transform:none}
  .menu-button{display:flex;flex-direction:column;gap:5px}
  .hero{min-height:650px}
  .hero-art,.hero-overlay{inset:var(--header) 0 0;height:calc(100% - var(--header))}
  .hero-overlay{background:linear-gradient(0deg,rgba(255,255,255,.98),rgba(255,255,255,.36)),linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.2))}
  .hero-content{padding-top:90px}
  .hero h1{font-size:clamp(2.8rem,13vw,4.4rem)}
  .hero-actions{flex-direction:column;align-items:stretch}
  .catalog-toolbar{align-items:stretch;flex-direction:column}
  .catalog-search{min-width:0}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .featured-row{grid-template-columns:repeat(2,1fr)}
  .buyer-actions{grid-template-columns:1fr}
  .value-grid{grid-template-columns:1fr}
  .value-grid article,.value-grid article:first-child,.value-grid article:nth-child(3){border-left:1px solid var(--line)}
  .process-grid{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr;gap:0}
  .footer-top{grid-template-columns:1fr}
  .modal-card{grid-template-columns:1fr;margin-top:3dvh;max-height:94dvh}
  .modal-card>img{min-height:240px;max-height:300px}
}
@media(max-width:500px){
  .product-grid{grid-template-columns:1fr}
  .featured-row{grid-template-columns:1fr 1fr}
  .featured-title{align-items:start;flex-direction:column;gap:12px}
  .contact-list div{flex-direction:column;gap:4px}
  .quote-form{padding:25px 19px}
  .footer-columns{grid-template-columns:1fr 1fr}
}

/* Option 2: 별도 제품 카탈로그 페이지 */
.catalog-page-link-wrap{
  display:flex;
  justify-content:center;
  margin-top:48px;
}
.catalog-page-link{
  display:inline-flex;
  min-width:300px;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  border:1px solid #b9c8da;
  padding:16px 20px;
  color:var(--navy);
  font-size:.86rem;
  font-weight:900;
  transition:.2s ease;
}
.catalog-page-link:hover{
  background:#f1f6fc;
  border-color:var(--navy);
}
.catalog-page-link i{font-style:normal;font-size:1.2rem}
.product-page-hero{
  padding:calc(var(--header) + 78px) 0 68px;
  background:linear-gradient(115deg,#f7faff 0%,#e7f0fb 100%);
  border-bottom:1px solid var(--line);
}
.product-page-hero-inner{
  display:grid;
  grid-template-columns:1fr .8fr;
  gap:70px;
  align-items:end;
}
.product-page-hero h1{
  margin:0;
  color:var(--navy);
  font-size:clamp(3rem,6vw,6rem);
  letter-spacing:-.075em;
  line-height:.98;
}
.product-page-hero p:last-child{
  margin:0;
  color:var(--muted);
  line-height:1.9;
}
.product-page-back{
  display:inline-block;
  margin-bottom:22px;
  color:var(--blue);
  font-size:.75rem;
  font-weight:900;
}
.product-catalog-page .catalog{padding-top:72px}
.catalog-result-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 22px;
  color:var(--muted);
  font-size:.73rem;
}
.product-page-cta{
  margin-top:58px;
  padding:34px;
  background:#eef4fc;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}
.product-page-cta h3{margin:0 0 6px;color:var(--navy);font-size:1.45rem}
.product-page-cta p{margin:0;color:var(--muted)}
@media(max-width:760px){
  .product-page-hero-inner{grid-template-columns:1fr;gap:24px}
  .product-page-cta{align-items:flex-start;flex-direction:column}
}

.footer-admin{margin-left:auto;margin-right:18px;opacity:.45}.footer-admin a:hover{opacity:1;color:var(--blue)}

/* Multi-media product support */
.product-card video.product-image,
.featured-media{
  width:100%;
  aspect-ratio:4/2.45;
  object-fit:cover;
  display:block;
  background:#e5e9ee;
}
.mini-card video.featured-media,
.mini-card img.featured-media{
  aspect-ratio:16/8.5;
  object-fit:cover;
}
.modal-card{
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);
}
.modal-gallery{
  min-width:0;
  background:#eef2f6;
  padding:0 0 10px;
}
.modal-media-stage{
  width:100%;
  min-height:430px;
  background:#e5eaf0;
  display:grid;
  place-items:center;
}
.modal-media-stage img,
.modal-media-stage video{
  width:100%;
  height:100%;
  min-height:430px;
  max-height:620px;
  object-fit:contain;
  background:#e5eaf0;
}
.modal-media-thumbs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:10px 10px 0;
}
.modal-thumb{
  position:relative;
  flex:0 0 76px;
  height:60px;
  border:2px solid transparent;
  background:#dfe6ee;
  padding:0;
  cursor:pointer;
  overflow:hidden;
}
.modal-thumb.is-active{border-color:var(--blue)}
.modal-thumb img,
.modal-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
}
.modal-thumb>span{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  background:rgba(12,24,40,.28);
  font-size:1rem;
}
@media(max-width:760px){
  .modal-card{grid-template-columns:1fr}
  .modal-media-stage,
  .modal-media-stage img,
  .modal-media-stage video{
    min-height:260px;
    max-height:360px;
  }
}

/* ===== CHARMAX brand typography ===== */
:root{
  --brand-serif:"Playfair Display",Georgia,"Times New Roman",serif;
}
.center-brand strong,
.footer-brand strong,
.footer-brand .brand-name,
.admin-brand strong{
  font-family:var(--brand-serif);
  font-weight:600;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.center-brand strong{
  font-size:1.72rem;
  letter-spacing:.14em;
}
.center-brand span{
  font-family:"Noto Sans KR",Arial,sans-serif;
  letter-spacing:.28em;
  font-size:.44rem;
}
.hero h1,
.section-head h2,
.featured-title h2,
.buyer-cta h2,
.about h2,
.inquiry h2,
.product-page-hero h1{
  font-family:var(--brand-serif);
  font-weight:600;
  letter-spacing:-.045em;
}
.hero h1{
  color:#fff;
  text-shadow:0 2px 18px rgba(0,0,0,.20);
}
.hero-content>p:not(.kicker){
  color:rgba(255,255,255,.84);
}
.hero .kicker{
  color:#c8d9ef;
}
.hero .btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
}
.hero .btn-outline:hover{
  background:#fff;
  color:var(--navy);
}
.hero .btn-primary{
  background:#fff;
  color:var(--navy);
}
.hero .btn-primary:hover{
  background:#e7edf6;
}

/* ===== Rotating hero backgrounds ===== */
.hero{
  min-height:690px;
  background:#071a31;
}
.hero-slides{
  position:absolute;
  inset:var(--header) 0 0;
  overflow:hidden;
}
.hero-slide{
  position:absolute;
  inset:0;
  background-position:center;
  background-size:cover;
  opacity:0;
  transform:scale(1.035);
  transition:opacity 1.05s ease,transform 7s ease;
}
.hero-slide.is-active{
  opacity:1;
  transform:scale(1);
}
.hero-overlay{
  inset:var(--header) 0 0;
  height:calc(100% - var(--header));
  background:
    linear-gradient(90deg,rgba(4,15,29,.86) 0%,rgba(4,15,29,.68) 34%,rgba(4,15,29,.24) 65%,rgba(4,15,29,.15) 100%),
    linear-gradient(0deg,rgba(4,15,29,.20),rgba(4,15,29,.04));
}
.hero-content{
  padding-top:120px;
}
.hero h1{
  max-width:760px;
  font-size:clamp(3.6rem,6.5vw,6.7rem);
  line-height:.98;
}
.hero-slider-controls{
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:46px;
}
.hero-prev,.hero-next{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:50%;
  background:rgba(0,0,0,.10);
  color:#fff;
  cursor:pointer;
}
.hero-dots{
  display:flex;
  gap:8px;
}
.hero-dot{
  width:8px;
  height:8px;
  border:0;
  border-radius:50%;
  padding:0;
  background:rgba(255,255,255,.38);
  cursor:pointer;
  transition:.2s ease;
}
.hero-dot.is-active{
  width:28px;
  border-radius:99px;
  background:#fff;
}
@media(max-width:760px){
  .center-brand strong{font-size:1.36rem;letter-spacing:.11em}
  .center-brand span{font-size:.36rem;letter-spacing:.18em}
  .hero{min-height:680px}
  .hero h1{font-size:clamp(3rem,14vw,4.8rem)}
  .hero-content{padding-top:100px}
  .hero-overlay{
    background:
      linear-gradient(0deg,rgba(4,15,29,.75),rgba(4,15,29,.24)),
      linear-gradient(90deg,rgba(4,15,29,.86),rgba(4,15,29,.18));
  }
}

/* Hero slider v2 — 10 backgrounds / 10-second rotation */
.hero-dots{
  max-width:190px;
  flex-wrap:wrap;
  align-items:center;
}
.hero-dot{
  flex:0 0 auto;
}
.hero-slider-controls{
  min-height:38px;
}
@media(max-width:760px){
  .hero-slider-controls{gap:11px}
  .hero-dots{max-width:150px;gap:6px}
  .hero-dot{width:7px;height:7px}
  .hero-dot.is-active{width:22px}
}

/* ===== Catalog-first homepage =====
   메인 Hero 영역을 제거하고 헤더 바로 아래에서 원단 카탈로그 시작 */
.catalog-first{
  padding-top:calc(var(--header) + 62px);
}
.catalog-first .catalog-head{
  margin-top:0;
}
@media(max-width:760px){
  .catalog-first{
    padding-top:calc(var(--header) + 42px);
  }
}

/* ===== Products page: catalog first =====
   큰 Fabric Collection 헤더 영역 없이 바로 원단 카탈로그 시작 */
.product-catalog-page .products-catalog-first{
  padding-top:calc(var(--header) + 62px);
}
@media(max-width:760px){
  .product-catalog-page .products-catalog-first{
    padding-top:calc(var(--header) + 42px);
  }
}

/* ===== Automatic image fitting =====
   세로 사진은 전체가 보이게, 가로 사진은 카드에 자연스럽게 채움 */
.product-card .product-image,
.mini-card .featured-media{
  background:#f3f5f7;
}

.product-card img.product-image.is-portrait,
.product-card video.product-image.is-portrait,
.mini-card img.featured-media.is-portrait,
.mini-card video.featured-media.is-portrait{
  object-fit:contain !important;
  object-position:center center;
  padding:8px;
  background:#f5f6f7;
}

.product-card img.product-image.is-squareish,
.product-card video.product-image.is-squareish,
.mini-card img.featured-media.is-squareish,
.mini-card video.featured-media.is-squareish{
  object-fit:contain !important;
  object-position:center center;
  padding:4px;
  background:#f5f6f7;
}

.product-card img.product-image.is-landscape,
.product-card video.product-image.is-landscape,
.mini-card img.featured-media.is-landscape,
.mini-card video.featured-media.is-landscape{
  object-fit:cover !important;
  object-position:center center;
}

/* 상세 팝업에서는 비율과 관계없이 원본 전체를 보여줌 */
.modal-media-stage img,
.modal-media-stage video{
  object-fit:contain !important;
  object-position:center center;
  background:#f3f5f7;
}


/* ===== Portrait-first product photography =====
   모델 착장 사진을 기본으로 가정: 세로형 3:4 비율 */
.product-card .product-image,
.mini-card .featured-media{
  width:100%;
  aspect-ratio:3 / 4 !important;
  height:auto !important;
  object-fit:cover !important;
  object-position:center top !important;
  padding:0 !important;
  background:#f3f5f7;
}

/* 이전 자동 가로/세로 판별보다 세로형 기본값을 우선 적용 */
.product-card img.product-image.is-portrait,
.product-card img.product-image.is-squareish,
.product-card img.product-image.is-landscape,
.product-card video.product-image.is-portrait,
.product-card video.product-image.is-squareish,
.product-card video.product-image.is-landscape,
.mini-card img.featured-media.is-portrait,
.mini-card img.featured-media.is-squareish,
.mini-card img.featured-media.is-landscape,
.mini-card video.featured-media.is-portrait,
.mini-card video.featured-media.is-squareish,
.mini-card video.featured-media.is-landscape{
  width:100%;
  aspect-ratio:3 / 4 !important;
  height:auto !important;
  object-fit:cover !important;
  object-position:center top !important;
  padding:0 !important;
}

/* 제품 상세에서는 모델 사진 전체를 보기 쉽게 더 큰 세로 프레임 사용 */
.modal-media-stage{
  aspect-ratio:3 / 4;
  max-height:78vh;
  background:#f3f5f7;
}

.modal-media-stage img,
.modal-media-stage video{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center top !important;
}

/* 썸네일도 세로형 */
.modal-media-thumbs img,
.modal-media-thumbs video,
.modal-thumb{
  aspect-ratio:3 / 4;
  object-fit:cover;
  object-position:center top;
}

/* 모바일에서도 세로형 유지 */
@media(max-width:760px){
  .product-card .product-image,
  .mini-card .featured-media{
    aspect-ratio:3 / 4 !important;
  }

  .modal-media-stage{
    aspect-ratio:3 / 4;
    max-height:70vh;
  }
}

/* ===== Confirmed category hierarchy ===== */
.category-filter-panel{
  flex:1 1 680px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.main-filter-tabs{margin:0}
.subcategory-panel{
  border-top:1px solid var(--line);
  padding-top:12px;
}
.subcategory-panel[hidden]{display:none!important}
.subcategory-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:9px;
}
.subcategory-row:last-child{margin-bottom:0}
.subcategory-label{
  min-width:82px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  color:var(--muted);
}
.subfilter{
  appearance:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:999px;
  padding:8px 12px;
  font:inherit;
  font-size:.8rem;
  cursor:pointer;
  transition:.18s ease;
}
.subfilter.is-active{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}

/* 실제 마우스가 있는 기기에서만 hover 색상을 사용 */
@media (hover:hover) and (pointer:fine){
  .subfilter:hover{
    border-color:var(--navy);
    background:var(--navy);
    color:#fff;
  }
}
@media(max-width:760px){
  .category-filter-panel{flex-basis:100%}
  .subcategory-label{width:100%;min-width:0;margin-bottom:2px}
  .subfilter{padding:7px 10px;font-size:.76rem}
}

/* ===== Multiple category selection ===== */
.multi-filter-note{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0 2px;
  color:var(--muted);
  font-size:.78rem;
}
.multi-filter-note button{
  border:0;
  background:transparent;
  color:var(--navy);
  font:inherit;
  font-weight:600;
  cursor:pointer;
  padding:4px 0;
}
.multi-filter-note button:disabled{
  opacity:.35;
  cursor:default;
}
.filter.is-active,
.subfilter.is-active{
  box-shadow:0 0 0 1px rgba(7,26,49,.08);
}
@media(max-width:760px){
  .multi-filter-note{
    align-items:flex-start;
    font-size:.74rem;
  }
}

/* ===== Progressive category filters ===== */
.circular-leaf-row[hidden]{
  display:none !important;
}
.filter.is-context{
  border-color:var(--navy);
  color:var(--navy);
  background:#fff;
}
.filter.is-context::after{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  margin-left:7px;
  border-radius:50%;
  background:currentColor;
  vertical-align:middle;
}

/* ===== Homepage category quick access ===== */
.home-category-nav{
  padding:calc(var(--header) + 50px) 0 34px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.home-category-heading{
  max-width:760px;
  margin-bottom:28px;
}
.home-category-heading .eyebrow{
  margin:0 0 7px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.18em;
  color:var(--muted);
}
.home-category-heading h1{
  margin:0 0 8px;
  font-family:var(--brand-serif);
  font-size:clamp(2.2rem,4vw,3.8rem);
  font-weight:600;
  letter-spacing:-.04em;
  color:var(--navy);
}
.home-category-heading>p:last-child{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
}
.home-category-main{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:760px;
}
.home-category-main-btn{
  min-height:78px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:.13em;
  cursor:pointer;
  transition:.18s ease;
}
.home-category-main-btn:hover,
.home-category-main-btn.is-active{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
}
.home-category-sub{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  max-width:980px;
  padding-top:14px;
}
.home-category-sub[hidden]{
  display:none !important;
}
.home-category-choice{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:.85rem;
  text-decoration:none;
  cursor:pointer;
  transition:.18s ease;
}
.home-category-choice:hover,
.home-category-choice.is-active{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}
.home-category-branch::after{
  content:"＋";
  margin-left:8px;
  font-size:.9em;
}
.home-category-branch.is-active::after{
  content:"−";
}
.home-category-leaves{
  padding-top:10px;
}
.home-category-leaves .home-category-choice{
  background:#f8f9fb;
}
.home-category-leaves .home-category-choice:hover{
  background:var(--navy);
}

@media(max-width:760px){
  .home-category-nav{
    padding:calc(var(--header) + 34px) 0 26px;
  }
  .home-category-main{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .home-category-main-btn{
    min-height:64px;
    font-size:.92rem;
  }
  .home-category-heading{
    margin-bottom:20px;
  }
  .home-category-choice{
    min-height:38px;
    padding:8px 12px;
    font-size:.8rem;
  }
}

/* ===== Homepage direct category shortcuts ===== */
.catalog-category-shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:24px 0 34px;
}
.catalog-category-shortcut{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  min-height:92px;
  padding:20px 24px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  transition:.2s ease;
}
.catalog-category-shortcut span{
  font-size:.72rem;
  letter-spacing:.12em;
  color:var(--muted);
}
.catalog-category-shortcut strong{
  font-size:1.12rem;
  letter-spacing:.14em;
}
.catalog-category-shortcut i{
  font-style:normal;
  font-size:1.25rem;
  transition:transform .2s ease;
}
.catalog-category-shortcut:hover{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff;
}
.catalog-category-shortcut:hover span{
  color:rgba(255,255,255,.65);
}
.catalog-category-shortcut:hover i{
  transform:translateX(4px);
}

@media(max-width:760px){
  .catalog-category-shortcuts{
    gap:8px;
    margin:18px 0 26px;
  }
  .catalog-category-shortcut{
    min-height:72px;
    padding:16px;
    gap:10px;
  }
  .catalog-category-shortcut strong{
    font-size:.94rem;
  }
}


/* ===== Inquiry form server submission ===== */
.form-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.form-status{
  min-height:1.4em;
  margin-top:10px;
  font-size:.78rem;
  line-height:1.55;
}
.form-status.is-success{color:#2f7650;font-weight:700}
.form-status.is-error{color:#b33a3a;font-weight:700}
.submit-button:disabled{opacity:.55;cursor:wait}
.about-copy p + p{margin-top:18px}


/* ===== Responsive product grids: mobile 2 / tablet 3 / desktop 4 ===== */

/* Desktop: four product cards per row */
.product-grid,
.featured-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}

/* Tablet: three product cards per row */
@media (max-width:1024px){
  .product-grid,
  .featured-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
  }
}

/* Mobile: two product cards per row */
@media (max-width:760px){
  .product-grid,
  .featured-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px 10px !important;
  }

  .product-card{
    min-width:0;
  }

  .product-card .product-card-body,
  .product-card .card-body{
    padding:10px 2px 4px;
  }

  .product-card h3,
  .product-card strong{
    font-size:.86rem;
    line-height:1.25;
  }

  .product-card p,
  .product-card small,
  .product-card .product-meta,
  .product-card .category-path{
    font-size:.7rem;
    line-height:1.35;
  }

  .product-card img,
  .product-card video{
    width:100%;
  }
}

/* Very small phones still keep two columns, with tighter spacing */
@media (max-width:390px){
  .product-grid,
  .featured-grid{
    gap:10px 8px !important;
  }

  .product-card h3,
  .product-card strong{
    font-size:.8rem;
  }

  .product-card p,
  .product-card small,
  .product-card .product-meta,
  .product-card .category-path{
    font-size:.66rem;
  }
}


/* Featured/New products use .featured-row + .mini-card */
.featured-row{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
}

@media (max-width:1024px){
  .featured-row{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }
}

@media (max-width:760px){
  .featured-row{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px 8px !important;
  }

  .mini-card{
    min-width:0;
  }

  .mini-card div:last-child{
    padding-top:8px;
  }

  .mini-card small{
    font-size:.64rem;
  }

  .mini-card strong{
    font-size:.82rem;
    line-height:1.25;
  }
}


/* ===== Mobile category selection visual fix =====
   모바일 브라우저가 터치 후 hover 색상을 유지하는 현상 방지 */
@media (hover:none), (pointer:coarse){
  .filter:not(.is-active):not(.is-context),
  .subfilter:not(.is-active){
    background:#fff !important;
    color:var(--ink) !important;
    border-color:var(--line) !important;
    box-shadow:none !important;
  }

  .filter:not(.is-active):not(.is-context){
    color:#66758a !important;
  }

  .filter.is-active,
  .subfilter.is-active{
    background:var(--navy) !important;
    border-color:var(--navy) !important;
    color:#fff !important;
  }

  /* 상위 카테고리가 열려 있기만 한 상태는 '선택됨'과 다르게 표시 */
  .filter.is-context:not(.is-active){
    background:#fff !important;
    border-color:var(--navy) !important;
    color:var(--navy) !important;
  }
}


/* ===== Audit fixes ===== */
.drawer-bottom>.drawer-email{
  display:block;
  color:var(--muted);
  font-size:.76rem;
  word-break:break-all;
}
.drawer-bottom>.drawer-email:hover{
  color:var(--navy);
}
.footer-pending{
  color:inherit;
  opacity:.72;
  cursor:default;
}
