
:root{
  --ink:#1d1919; --text:#292626; --muted:#6f6a69; --line:#e8e3e1;
  --soft:#f7f5f4; --paper:#fff; --accent:#d7192d; --warm:#2d201e;
  --max:1180px; --shadow:0 18px 50px rgba(35,24,22,.08);
}
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Malgun Gothic",sans-serif;color:var(--text);background:#fff;letter-spacing:-.01em} a{text-decoration:none;color:inherit} img{max-width:100%;display:block} button,input,select,textarea{font:inherit}.container{width:min(var(--max),calc(100% - 40px));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(232,227,225,.9)}.header-inner{height:84px;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand img{height:58px;width:auto}.main-nav{display:flex;align-items:center;gap:30px;font-size:15px;font-weight:650}.main-nav a{padding:31px 0 27px;border-bottom:2px solid transparent}.main-nav a:hover,.main-nav a.active{color:var(--accent);border-color:var(--accent)}.mobile-menu{display:none;border:0;background:none;font-size:26px;cursor:pointer}
.eyebrow{font-size:12px;letter-spacing:.15em;font-weight:800;color:var(--accent);margin:0 0 14px}.hero{padding:76px 0 68px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.07fr .93fr;gap:64px;align-items:center}.hero h1{font-size:clamp(46px,6vw,78px);line-height:1.06;letter-spacing:-.06em;margin:0;font-weight:780;color:var(--ink)}.hero-desc{font-size:18px;line-height:1.8;color:var(--muted);max-width:630px;margin:26px 0 0}.hero-actions{display:flex;gap:10px;margin-top:32px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:1px solid var(--warm);font-weight:700;font-size:14px;transition:.2s}.btn.primary{background:var(--warm);color:#fff}.btn.primary:hover{background:#130d0c}.btn.ghost{background:#fff}.btn.ghost:hover{background:var(--soft)}
.hero-panel{position:relative;min-height:450px;background:var(--soft);border:1px solid var(--line);padding:28px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1.2fr .8fr;gap:14px}.hero-panel:after{content:"HAPPYON";position:absolute;right:-12px;bottom:-26px;font-size:86px;font-weight:900;letter-spacing:-.08em;color:rgba(45,32,30,.055)}.hero-tile{background:#fff;border:1px solid var(--line);padding:22px;display:flex;flex-direction:column;justify-content:space-between;min-height:150px}.hero-tile.big{grid-row:1/3}.hero-tile .num{font-size:12px;color:var(--accent);font-weight:800}.hero-tile h3{margin:30px 0 5px;font-size:22px;letter-spacing:-.04em}.hero-tile p{margin:0;color:var(--muted);font-size:13px}.hero-tile.big h3{font-size:30px}.hero-tile.big .circle{width:96px;height:96px;border-radius:50%;border:22px solid var(--warm);position:relative}.hero-tile.big .circle:before{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:var(--accent);left:-50px;top:15px}
.trust{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}.trust-item{padding:25px 28px;border-right:1px solid var(--line)}.trust-item:last-child{border-right:0}.trust-item strong{font-size:13px;color:var(--ink);display:block}.trust-item span{display:block;margin-top:7px;color:var(--muted);font-size:13px}
.section{padding:100px 0}.section.soft{background:var(--soft)}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:34px}.section h2,.sub-hero h1{font-size:42px;letter-spacing:-.05em;line-height:1.15;margin:0;color:var(--ink)}.section-intro{margin:0;max-width:580px;color:var(--muted);line-height:1.75}.text-link{font-size:14px;font-weight:750;color:var(--accent);white-space:nowrap}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:15px}.category-card{background:#fff;border:1px solid var(--line);min-height:255px;padding:24px;display:flex;flex-direction:column;justify-content:space-between;transition:.22s}.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d8cfcc}.category-card .index{font-size:12px;font-weight:800;color:var(--accent)}.category-card h3{font-size:22px;margin:40px 0 7px;letter-spacing:-.04em}.category-card p{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.category-card .arrow{margin-top:22px;font-weight:800}
.about-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:80px;align-items:start}.about-number{font-size:86px;font-weight:850;letter-spacing:-.08em;color:var(--warm);line-height:1}.about-number small{display:block;font-size:13px;letter-spacing:.12em;color:var(--accent);margin-bottom:12px}.about-copy p{font-size:18px;line-height:1.9;margin:0;color:#4b4544}.about-copy p+p{margin-top:14px}.info-list{margin-top:34px;border-top:1px solid var(--line)}.info-row{display:grid;grid-template-columns:130px 1fr;border-bottom:1px solid var(--line);padding:15px 0;font-size:14px}.info-row dt{font-weight:750}.info-row dd{margin:0;color:var(--muted)}
.sub-hero{padding:70px 0 54px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfaf9)}.sub-hero p:last-child{max-width:680px;color:var(--muted);line-height:1.75;margin:18px 0 0}.breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:#8a8381;margin-bottom:24px}.breadcrumbs a:hover{color:var(--accent)}
.products-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:26px}.search-box{position:relative;max-width:370px;width:100%}.search-box input{width:100%;height:46px;border:1px solid var(--line);padding:0 15px;background:#fff;outline:none}.search-box input:focus{border-color:#b8aba7}.product-count{font-size:13px;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.product-card{border:1px solid var(--line);background:#fff;transition:.22s;overflow:hidden}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-media{aspect-ratio:1/1;background:#f2efed;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.product-media img{width:100%;height:100%;object-fit:contain;background:#fff}.product-placeholder{width:100%;height:100%;display:flex;align-items:flex-end;padding:22px;background:linear-gradient(135deg,#f7f4f2,#e9e2df);color:#7e7471;font-weight:800;font-size:13px;letter-spacing:.02em}.product-placeholder:before{content:"";position:absolute;width:74px;height:74px;border:17px solid rgba(45,32,30,.12);border-radius:50%;top:26px;right:26px}.product-body{padding:20px}.product-meta{font-size:11px;letter-spacing:.09em;font-weight:800;color:var(--accent);text-transform:uppercase}.product-body h3{font-size:20px;letter-spacing:-.035em;margin:9px 0 7px}.product-body p{color:var(--muted);font-size:13px;line-height:1.65;margin:0}.card-arrow{display:block;margin-top:18px;font-size:13px;font-weight:800}
.subcategory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.subcategory-card{min-height:200px;padding:22px;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;justify-content:space-between;transition:.2s}.subcategory-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.subcategory-card .tag{font-size:11px;color:var(--accent);font-weight:800}.subcategory-card h3{font-size:20px;margin:32px 0 5px}.subcategory-card .count{font-size:13px;color:var(--muted)}
.detail-wrap{padding:54px 0 84px}.detail-top{display:grid;grid-template-columns:1.05fr .95fr;gap:62px;align-items:start}.detail-main-image{aspect-ratio:1/1;background:#f3f0ee;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.detail-main-image img{width:100%;height:100%;object-fit:contain;background:#fff}.detail-info h1{font-size:44px;letter-spacing:-.05em;line-height:1.15;margin:0}.detail-summary{font-size:17px;line-height:1.75;color:var(--muted);margin:17px 0 0}.quick-spec{margin-top:30px;border-top:1px solid var(--line)}.quick-row{display:grid;grid-template-columns:135px 1fr;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.quick-row strong{font-weight:750}.quick-row span{color:var(--muted)}.order-note{margin-top:14px;font-size:12px;color:#8a8381;line-height:1.6}.gallery{display:grid;grid-template-columns:1fr;gap:0;margin:72px auto 0;max-width:860px}.gallery img{display:block;width:100%;height:auto;max-height:none;object-fit:initial;background:#fff;border:0}.detail-section{margin-top:72px}.detail-section h2{font-size:30px;margin:0 0 25px;letter-spacing:-.04em}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.feature-card{border:1px solid var(--line);padding:22px;background:#fff}.feature-card h3{font-size:17px;margin:0 0 8px}.feature-card p{font-size:13px;color:var(--muted);line-height:1.65;margin:0}.spec-table{border-top:1px solid var(--line)}.spec-table .row{display:grid;grid-template-columns:180px 1fr;padding:16px 0;border-bottom:1px solid var(--line);font-size:14px}.spec-table strong{font-weight:750}.spec-table span{color:var(--muted);white-space:pre-wrap}.set-box{background:var(--soft);border:1px solid var(--line);padding:30px}.set-box h3{margin:0 0 10px;font-size:21px}.set-box p{margin:0;color:var(--muted);line-height:1.7}.set-items{margin:18px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}.set-items li{padding:8px 12px;background:#fff;border:1px solid var(--line);font-size:13px}.related-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:var(--line);gap:1px}.process-item{background:#fff;padding:28px;min-height:210px}.process-item .step{font-size:12px;color:var(--accent);font-weight:850}.process-item h3{margin:36px 0 8px;font-size:19px}.process-item p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.contact-card{background:var(--warm);color:#fff;padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:50px}.contact-card .eyebrow{color:#ff6878}.contact-card h2{color:#fff}.contact-card p{color:#d7cecb;line-height:1.75}.contact-list{display:grid;gap:12px;align-content:center}.contact-row{display:grid;grid-template-columns:90px 1fr;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.14);font-size:14px}.contact-row strong{color:#fff}.contact-row span,.contact-row a{color:#ddd3d0}
.empty{border:1px dashed #cfc6c3;background:#faf9f8;padding:45px;text-align:center;color:var(--muted);grid-column:1/-1}.site-footer{border-top:1px solid var(--line);padding:38px 0 46px;background:#fff}.footer-grid{display:grid;grid-template-columns:220px 1fr auto;gap:38px;align-items:start}.footer-logo{width:135px}.footer-info{font-size:12px;color:var(--muted);line-height:1.8}.footer-info strong{color:var(--text)}.copyright{font-size:11px;color:#9a9390;text-align:right}.admin-note{padding:14px 16px;background:#fff8e8;border:1px solid #f0dfb0;font-size:13px;line-height:1.7;color:#6c5832}
@media(max-width:980px){.category-grid{grid-template-columns:repeat(3,1fr)}.subcategory-grid{grid-template-columns:repeat(3,1fr)}.hero-grid,.about-grid,.detail-top{grid-template-columns:1fr;gap:42px}.hero-panel{min-height:360px}.product-grid{grid-template-columns:repeat(2,1fr)}.related-grid{grid-template-columns:repeat(2,1fr)}.process-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:180px 1fr}.copyright{grid-column:1/-1;text-align:left}.contact-card{grid-template-columns:1fr}}
@media(max-width:720px){.container{width:min(var(--max),calc(100% - 28px))}.header-inner{height:70px}.brand img{height:47px}.mobile-menu{display:block}.main-nav{display:none;position:absolute;top:70px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:18px 20px;flex-direction:column;align-items:flex-start;gap:4px}.main-nav.open{display:flex}.main-nav a{padding:10px 0;border:0;width:100%}.hero{padding:50px 0}.hero h1{font-size:44px}.hero-desc{font-size:16px}.hero-panel{grid-template-columns:1fr 1fr;padding:18px;min-height:320px}.hero-tile.big{grid-row:auto;grid-column:1/3}.hero-tile.big .circle{width:64px;height:64px;border-width:14px}.hero-tile.big .circle:before{width:15px;height:15px;left:-34px}.trust-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--line)}.section{padding:70px 0}.section-head{align-items:flex-start;flex-direction:column}.section h2,.sub-hero h1{font-size:34px}.category-grid,.subcategory-grid,.product-grid{grid-template-columns:1fr}.about-number{font-size:68px}.info-row{grid-template-columns:105px 1fr}.products-toolbar{align-items:flex-start;flex-direction:column}.feature-grid,.related-grid,.process-grid{grid-template-columns:1fr}.detail-info h1{font-size:36px}.quick-row,.spec-table .row{grid-template-columns:115px 1fr}.contact-card{padding:30px 24px}.footer-grid{grid-template-columns:1fr}.footer-logo{width:120px}}

/* product display fix */
@media(max-width:720px){.gallery{max-width:100%;margin-top:48px}.product-media{aspect-ratio:1/1}}


/* Direct subcategory -> detail navigation + 1:1 subcategory thumbnails */
.subcategory-card-with-image{
  min-height:0;
  padding:0;
  display:block;
  overflow:hidden;
}
.subcategory-media{
  aspect-ratio:1/1;
  width:100%;
  background:#f2efed;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.subcategory-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}
.subcategory-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:flex-end;
  padding:22px;
  background:linear-gradient(135deg,#f7f4f2,#e9e2df);
  color:#7e7471;
  font-weight:800;
  font-size:13px;
}
.subcategory-content{
  padding:20px 22px 22px;
}
.subcategory-card-with-image .tag{
  display:block;
  margin-bottom:20px;
}
.subcategory-card-with-image h3{
  margin:0 0 7px;
  font-size:20px;
}
.subcategory-card-with-image .count{
  display:block;
}
.subcategory-action{
  display:block;
  margin-top:17px;
  font-size:13px;
  font-weight:800;
  color:var(--text);
}
.subcategory-card.is-empty{
  pointer-events:none;
  opacity:.58;
}

/* Homepage admin-editable category image cards */
#home-categories.category-grid{
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}

.home-category-card{
  display:flex;
  flex-direction:column;
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  min-width:0;
  transition:transform .22s ease, box-shadow .22s ease;
}

.home-category-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.home-category-image{
  position:relative;
  inset:auto;
  display:block;
  width:100%;
  aspect-ratio:1/1;
  height:auto;
  object-fit:cover;
  background:#f3efed;
  transition:transform .3s ease;
}

.home-category-card:hover .home-category-image{
  transform:scale(1.02);
}

.home-category-shade{
  display:none;
}

.home-category-content{
  position:relative;
  z-index:1;
  min-height:205px;
  padding:20px 22px 22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  background:#fff;
  color:var(--text);
}

.home-category-top{
  display:block;
  margin-bottom:24px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  color:var(--accent);
}

.home-category-bottom{
  display:flex;
  flex-direction:column;
  flex:1;
}

.home-category-bottom h3{
  margin:0 0 9px;
  font-size:22px;
  line-height:1.25;
  letter-spacing:-.04em;
  color:var(--text);
}

.home-category-bottom p{
  margin:0;
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
}

.home-category-link{
  display:block;
  margin-top:auto;
  padding-top:20px;
  font-size:13px;
  font-weight:800;
  color:var(--text);
}

.home-category-card.no-image::before{
  content:"";
  display:block;
  width:100%;
  aspect-ratio:1/1;
  background:#f3efed;
}

.home-category-card.no-image .home-category-content{
  min-height:205px;
}

.home-category-card.no-image .home-category-top{
  color:var(--accent);
}
.home-category-card.no-image .home-category-bottom h3,
.home-category-card.no-image .home-category-link{
  color:var(--text);
}
.home-category-card.no-image .home-category-bottom p{
  color:var(--muted);
}

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

@media(max-width:720px){
  #home-categories.category-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:520px){
  #home-categories.category-grid{
    grid-template-columns:1fr;
  }
}


/* Main 4-page product carousel */
.hero-carousel{
  position:relative;
  padding:0;
  overflow:hidden;
  background:#fff;
}
.hero-slide{
  display:none;
  padding:76px 0 92px;
}
.hero-slide.active{
  display:block;
}
.hero-products-page{
  min-height:500px;
}
.hero-products-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  margin-bottom:28px;
}
.hero-products-head h2{
  margin:0;
  font-size:clamp(34px,4vw,50px);
  line-height:1.12;
  letter-spacing:-.05em;
  color:var(--ink);
}
.hero-product-grid{
  display:grid;
  gap:20px;
}
.hero-product-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.hero-product-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.hero-feature-card{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(180px,.82fr);
  min-height:360px;
  background:#fff;
  border:1px solid var(--line);
  overflow:hidden;
  transition:transform .2s ease, box-shadow .2s ease;
}
.hero-product-grid-3 .hero-feature-card{
  display:flex;
  flex-direction:column;
  min-height:0;
}
.hero-feature-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}
.hero-feature-media{
  min-width:0;
  aspect-ratio:1/1;
  background:#f2efed;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.hero-product-grid-2 .hero-feature-media{
  aspect-ratio:auto;
  min-height:360px;
}
.hero-feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hero-feature-placeholder{
  font-size:26px;
  font-weight:900;
  letter-spacing:.05em;
  color:#c8bfbc;
}
.hero-feature-copy{
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:#fff;
}
.hero-feature-copy>span{
  margin-bottom:auto;
  padding-bottom:28px;
  color:var(--accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
}
.hero-feature-copy h3{
  margin:0 0 8px;
  font-size:24px;
  line-height:1.25;
  letter-spacing:-.04em;
  color:var(--ink);
}
.hero-feature-copy p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
}
.hero-feature-copy strong{
  display:block;
  margin-top:18px;
  font-size:13px;
  color:var(--ink);
}
.hero-product-grid-3 .hero-feature-copy{
  min-height:180px;
}
.hero-product-grid-3 .hero-feature-media{
  aspect-ratio:1/1;
}
.hero-feature-empty{
  pointer-events:none;
}
.hero-feature-empty .hero-feature-media{
  background:linear-gradient(135deg,#f5f1ef,#ebe4e1);
}
.hero-feature-empty .hero-feature-copy{
  opacity:.65;
}
.hero-carousel-controls{
  position:absolute;
  left:50%;
  bottom:26px;
  transform:translateX(-50%);
  z-index:20;
  display:flex;
  align-items:center;
  gap:14px;
  padding:7px 11px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(8px);
}
.hero-arrow{
  border:0;
  background:transparent;
  padding:3px 5px;
  cursor:pointer;
  color:var(--ink);
  font-size:18px;
  line-height:1;
}
.hero-dots{
  display:flex;
  align-items:center;
  gap:7px;
}
.hero-dot{
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#cfc7c4;
  cursor:pointer;
}
.hero-dot.active{
  width:20px;
  border-radius:10px;
  background:var(--accent);
}

@media(max-width:900px){
  .hero-product-grid-2,
  .hero-product-grid-3{
    grid-template-columns:1fr 1fr;
  }
  .hero-product-grid-3 .hero-feature-card:last-child{
    grid-column:1/-1;
    max-width:50%;
    width:100%;
    justify-self:center;
  }
  .hero-product-grid-2 .hero-feature-card{
    display:flex;
    flex-direction:column;
  }
  .hero-product-grid-2 .hero-feature-media{
    min-height:0;
    aspect-ratio:1/1;
  }
}
@media(max-width:620px){
  .hero-slide{
    padding:54px 0 86px;
  }
  .hero-product-grid-2,
  .hero-product-grid-3{
    grid-template-columns:1fr;
  }
  .hero-product-grid-3 .hero-feature-card:last-child{
    grid-column:auto;
    max-width:none;
  }
  .hero-products-page{
    min-height:0;
  }
}
/* Main slider: fixed equal-height redesign */
.hero-carousel{
  position:relative;
  height:680px;
  min-height:680px;
  overflow:hidden;
}

.hero-slide{
  display:none;
  height:680px;
  min-height:680px;
  box-sizing:border-box;
  padding:58px 0 78px;
  overflow:hidden;
}

.hero-slide.active{
  display:block;
}

.hero-slide > .container{
  height:544px;
  min-height:544px;
  box-sizing:border-box;
}

/* 1페이지 */
.hero-slide:first-child .hero-grid{
  height:544px;
  min-height:544px;
  align-items:center;
}

/* 2~4페이지 */
.hero-products-page{
  height:544px;
  min-height:544px;
  display:flex;
  flex-direction:column;
}

.hero-products-head{
  flex:0 0 auto;
  margin-bottom:20px;
}

.hero-products-head h2{
  font-size:clamp(30px,3.4vw,46px);
}

/* 상품 영역은 남은 높이 안에만 들어오게 */
.hero-product-grid{
  flex:1 1 auto;
  min-height:0;
  align-items:stretch;
}

/* 2페이지: 2개는 크게 */
.hero-product-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
  height:430px;
}

.hero-product-grid-2 .hero-feature-card{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  height:430px;
  min-height:430px;
}

.hero-product-grid-2 .hero-feature-media{
  min-height:0;
  height:430px;
  aspect-ratio:auto;
}

.hero-product-grid-2 .hero-feature-copy{
  padding:24px 22px;
}

/* 3·4페이지: 3개를 같은 높이 안에 맞추는 컴팩트 카드 */
.hero-product-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
  height:430px;
  gap:18px;
}

.hero-product-grid-3 .hero-feature-card{
  display:flex;
  flex-direction:column;
  height:430px;
  min-height:430px;
  overflow:hidden;
}

.hero-product-grid-3 .hero-feature-media{
  flex:0 0 275px;
  width:100%;
  height:275px;
  aspect-ratio:auto;
}

.hero-product-grid-3 .hero-feature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-product-grid-3 .hero-feature-copy{
  flex:1 1 auto;
  min-height:0;
  padding:17px 18px 16px;
  justify-content:flex-start;
}

.hero-product-grid-3 .hero-feature-copy>span{
  margin:0 0 8px;
  padding:0;
  font-size:10px;
}

.hero-product-grid-3 .hero-feature-copy h3{
  margin:0 0 5px;
  font-size:19px;
  line-height:1.22;
}

.hero-product-grid-3 .hero-feature-copy p{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:12px;
  line-height:1.5;
}

.hero-product-grid-3 .hero-feature-copy strong{
  margin-top:auto;
  padding-top:8px;
  font-size:12px;
}

/* 페이지 점 위치도 모든 페이지에서 동일 */
.hero-carousel-controls{
  bottom:22px;
}

/* 태블릿에서는 높이 고정을 유지하면서 3개 카드도 한 줄 */
@media(max-width:1000px) and (min-width:721px){
  .hero-carousel,
  .hero-slide{
    height:650px;
    min-height:650px;
  }
  .hero-slide > .container,
  .hero-slide:first-child .hero-grid,
  .hero-products-page{
    height:514px;
    min-height:514px;
  }
  .hero-product-grid-2,
  .hero-product-grid-3{
    height:400px;
  }
  .hero-product-grid-2 .hero-feature-card{
    height:400px;
    min-height:400px;
  }
  .hero-product-grid-2 .hero-feature-media{
    height:400px;
  }
  .hero-product-grid-3 .hero-feature-card{
    height:400px;
    min-height:400px;
  }
  .hero-product-grid-3 .hero-feature-media{
    flex-basis:245px;
    height:245px;
  }
}

/* 모바일은 한 화면에 자연스럽게 보이도록 높이 고정 해제 */
@media(max-width:720px){
  .hero-carousel,
  .hero-slide{
    height:auto;
    min-height:0;
    overflow:visible;
  }
  .hero-slide{
    padding:48px 0 76px;
  }
  .hero-slide > .container,
  .hero-slide:first-child .hero-grid,
  .hero-products-page{
    height:auto;
    min-height:0;
  }
  .hero-product-grid-2,
  .hero-product-grid-3{
    grid-template-columns:1fr;
    height:auto;
  }
  .hero-product-grid-2 .hero-feature-card,
  .hero-product-grid-3 .hero-feature-card{
    height:auto;
    min-height:0;
  }
  .hero-product-grid-2 .hero-feature-media,
  .hero-product-grid-3 .hero-feature-media{
    height:auto;
    min-height:0;
    flex-basis:auto;
    aspect-ratio:1/1;
  }
}


/* Shop-style major / sub category navigation */
.shop-category-bar{
  position:relative;
  z-index:60;
  height:52px;
  background:#111;
  border-top:1px solid #111;
}

.shop-category-inner{
  height:52px;
}

.shop-category-nav{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  height:52px;
}

.shop-category-item{
  position:relative;
  min-width:0;
}

.shop-category-main{
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  color:#fff;
  font-size:14px;
  font-weight:750;
  letter-spacing:-.02em;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease;
}

.shop-category-item:hover .shop-category-main,
.shop-category-item.active .shop-category-main{
  background:#292323;
  color:#ff5a69;
}

.shop-category-dropdown{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  min-width:190px;
  padding:10px 0;
  background:#fff;
  border:1px solid var(--line);
  border-top:0;
  box-shadow:0 18px 36px rgba(25,18,17,.14);
  opacity:0;
  visibility:hidden;
  transform:translateY(7px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  z-index:100;
}

.shop-category-item:hover .shop-category-dropdown,
.shop-category-item:focus-within .shop-category-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.shop-category-dropdown a{
  display:block;
  padding:11px 18px;
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.35;
  background:#fff;
  transition:background .15s ease,color .15s ease,padding .15s ease;
}

.shop-category-dropdown a:hover{
  padding-left:22px;
  background:var(--soft);
  color:var(--accent);
}

/* 카테고리 바가 추가된 뒤 메인 슬라이드 내부 여백을 균형 있게 조정 */
.hero-slide{
  padding-top:66px;
  padding-bottom:70px;
}

/* Mobile: hover dropdown 대신 대카테고리를 가로 스크롤로 사용 */
@media(max-width:720px){
  .site-header{
    position:sticky;
    top:0;
  }

  .shop-category-bar,
  .shop-category-inner{
    height:46px;
  }

  .shop-category-inner{
    width:100%;
  }

  .shop-category-nav{
    display:flex;
    height:46px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:0 14px;
  }

  .shop-category-nav::-webkit-scrollbar{
    display:none;
  }

  .shop-category-item{
    flex:0 0 auto;
  }

  .shop-category-main{
    height:46px;
    padding:0 16px;
    font-size:13px;
  }

  .shop-category-dropdown{
    display:none;
  }

  .hero-slide{
    padding-top:54px;
    padding-bottom:76px;
  }
}

/* Main slider product thumbnails: show full 1:1 image without cropping */
.hero-feature-media{
  background:#fff;
}
.hero-feature-media img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  object-position:center;
  background:#fff;
}

/* Page 2 product cards: keep text grouped and vertically centered */
.hero-product-grid-2 .hero-feature-copy{
  padding:32px 28px;
  justify-content:center;
  align-items:flex-start;
}

.hero-product-grid-2 .hero-feature-copy>span{
  margin:0 0 14px;
  padding:0;
  font-size:11px;
  line-height:1.2;
}

.hero-product-grid-2 .hero-feature-copy h3{
  margin:0 0 10px;
  font-size:27px;
  line-height:1.2;
}

.hero-product-grid-2 .hero-feature-copy p{
  margin:0;
  font-size:13px;
  line-height:1.65;
}

.hero-product-grid-2 .hero-feature-copy strong{
  margin-top:20px;
  padding:0;
  font-size:13px;
}


/* =========================================================
   GLOBAL PRODUCT SEARCH
   모든 페이지 공통 헤더 검색
   ========================================================= */
.global-product-search{
  position:relative;
  z-index:60;
  background:#fff;
  border-top:1px solid #f0f1f3;
  padding:10px 0 12px;
}

.global-search-shell{
  position:relative;
  width:min(720px,100%);
  margin:0 auto;
}

.global-search-form{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:5px 6px 5px 16px;
  background:#f7f8fa;
  border:1px solid #dfe3e8;
  border-radius:11px;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.global-search-form:focus-within{
  background:#fff;
  border-color:#8792a3;
  box-shadow:0 6px 18px rgba(27,39,61,.08);
}

.global-search-input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#171a1f;
  font:inherit;
  font-size:14px;
  line-height:1.4;
  padding:7px 0;
}

.global-search-input::placeholder{
  color:#999fa8;
}

.global-search-button{
  flex:0 0 auto;
  border:0;
  border-radius:8px;
  background:#1f2d44;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1;
  padding:11px 15px;
  cursor:pointer;
}

.global-search-dropdown{
  display:none;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 7px);
  z-index:120;
  max-height:min(560px,70vh);
  overflow:auto;
  background:#fff;
  border:1px solid #dfe3e8;
  border-radius:12px;
  box-shadow:0 16px 38px rgba(20,30,48,.16);
}

.global-search-dropdown.show{
  display:block;
}

.global-search-count{
  padding:11px 14px 9px;
  color:#737a84;
  font-size:12px;
  border-bottom:1px solid #eef0f3;
}

.global-search-list{
  padding:6px;
}

.global-search-item{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  gap:11px;
  align-items:center;
  padding:8px;
  border-radius:9px;
  color:inherit;
  text-decoration:none;
}

.global-search-item:hover{
  background:#f5f7fa;
}

.global-search-thumb{
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:7px;
  background:#f4f5f7;
  color:#9aa0aa;
  font-size:9px;
}

.global-search-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.global-search-copy{
  min-width:0;
}

.global-search-meta{
  margin-bottom:3px;
  color:#848b95;
  font-size:11px;
}

.global-search-copy strong{
  display:block;
  overflow:hidden;
  color:#181b20;
  font-size:14px;
  line-height:1.35;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.global-search-copy p{
  margin:3px 0 0;
  overflow:hidden;
  color:#6c737d;
  font-size:12px;
  line-height:1.4;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.global-search-empty{
  padding:22px 16px;
  color:#777e88;
  font-size:13px;
  text-align:center;
}

@media(max-width:720px){
  .global-product-search{
    padding:8px 0 9px;
  }

  .global-search-shell{
    width:100%;
  }

  .global-search-form{
    padding-left:12px;
  }

  .global-search-input{
    font-size:13px;
  }

  .global-search-button{
    padding:10px 12px;
  }

  .global-search-dropdown{
    max-height:60vh;
  }
}
