/* Atelier del sol — Sixshop 디자인 설정(designSetting CSS)에서 옮겨온 값 기준 */
:root {
  --bg: #fff;
  --title: #424242;
  --body: #757575;
  --accent: #e9244f;      /* 현재 메뉴 */
  --footer-line: #FFD145; /* 푸터 상단 선 */
  --line: #e6e6e6;
  --w-narrow: 640px;
  --w-normal: 1000px;
  --w-wide: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Nanum Gothic', sans-serif;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #fff; }
.hdr-inner { display: flex; align-items: center; gap: 48px; padding: 30px 40px; max-width: 100%; }
.logo img { width: 150px; height: auto; }
.menu { display: flex; gap: 28px; font-family: 'Noto Sans', sans-serif; font-size: 14px; letter-spacing: .1em; color: var(--title); }
.menu a { padding: 4px 0; transition: color .15s; }
.menu a:hover, .menu a.now { color: var(--accent); }
.hamburger { display: none; background: none; border: 0; width: 28px; height: 28px; color: var(--title); }
.hamburger svg { width: 24px; height: 24px; }

.side-menu { display: none; }

/* ───────── Page / sections ───────── */
main { min-height: 40vh; }
.section { margin: 0 auto; padding: 0 20px; }
.section.widthFull { max-width: none; padding: 0; }
.section.widthWide { max-width: var(--w-wide); }
.section.widthNormal, .section.widthDefault { max-width: var(--w-normal); }
.section.widthNarrow { max-width: var(--w-narrow); }
.cols { display: grid; gap: 0 24px; align-items: start; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.item { width: 100%; }
.item-text-title { font-family: 'Noto Sans KR', sans-serif; font-weight: 400; letter-spacing: .06em; color: var(--title); font-size: 26px; }
.item-text-body { font-family: 'Nanum Gothic', sans-serif; color: var(--body); font-size: 16px; }
.item-text-title p, .item-text-body p { min-height: 1.5em; line-height: 1.5; overflow-wrap: anywhere; }
.item-shape { padding: 10px 0; }
.item-shape hr { border: 0; height: 1px; background: var(--body); }
.item-image .img { width: 100%; object-fit: cover; }
.item-image a { display: block; }
.item-button { padding: 4px 0; }
.item-button .btn-el { display: inline-block; padding: 14px 40px; background: #757575; border: 2px solid #757575; color: #fff; letter-spacing: .05em; }

.ratio-1to1 { aspect-ratio: 1/1; }
.ratio-3to4 { aspect-ratio: 3/4; }
.ratio-2to3 { aspect-ratio: 2/3; }
.ratio-3to1 { aspect-ratio: 3/1; }
.ratio-default { height: auto; aspect-ratio: auto; }

/* ───────── Gallery ───────── */
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: var(--gap, 10px); padding: var(--gap, 10px); }
.gallery-grid img { width: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-masonry { column-count: var(--cols, 6); column-gap: var(--gap, 10px); padding: var(--gap, 10px); }
.gallery-masonry img { width: 100%; height: auto; margin-bottom: var(--gap, 10px); cursor: zoom-in; break-inside: avoid; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .45s ease; }
.carousel-slide { flex: 0 0 calc(100% / var(--per, 3)); }
.carousel-slide img { width: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 56px; border: 0; background: rgba(255,255,255,.55); color: #424242; font-size: 22px; z-index: 2; }
.carousel-btn.prev { left: 0; } .carousel-btn.next { right: 0; }
.carousel-btn:hover { background: rgba(255,255,255,.85); }

/* ───────── Product list ───────── */
.product-list { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 40px 20px; padding: 0 0; }
.product-list.slide { display: block; position: relative; }
.product-card { display: block; text-align: center; }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f4f4f4; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.product-thumb img + img { opacity: 0; }
.product-card:hover .product-thumb img + img { opacity: 1; }
.product-name { margin-top: 14px; font-family: 'Noto Sans', 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: .02em; color: var(--body); }
.product-price { margin-top: 4px; font-family: 'Noto Sans', 'Noto Sans KR', sans-serif; font-size: 15px; color: var(--body); }
.product-price s { margin-left: 6px; opacity: .6; }
.slide-viewport { overflow: hidden; }
.slide-track { display: flex; transition: transform .45s ease; }
.slide-track .product-card { flex: 0 0 calc(100% / var(--per, 2)); padding: 0 10px; }
.slide-btn { position: absolute; top: 40%; width: 36px; height: 36px; border: 1px solid #ccc; background: #fff; color: #555; z-index: 2; border-radius: 50%; }
.slide-btn.prev { left: -6px; } .slide-btn.next { right: -6px; }

/* ───────── Blog ───────── */
.blog-post { padding: 40px 0 60px; border-bottom: 1px solid var(--line); }
.blog-post:last-child { border-bottom: 0; }
.blog-title { font-family: 'Noto Sans KR', sans-serif; font-weight: 400; font-size: 26px; letter-spacing: .06em; color: var(--title); line-height: 1.4; }
.blog-date { margin: 8px 0 24px; font-size: 14px; opacity: .8; }
.blog-content { font-size: 16px; line-height: 1.5; }
.blog-content p { min-height: 1.5em; }
.blog-content img { margin: 0 auto; }

/* ───────── Product detail ───────── */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 40px 40px 60px; align-items: start; }
.pd-images { display: grid; gap: 12px; }
.pd-images img { width: 100%; }
.pd-info { position: sticky; top: 110px; }
.pd-name { font-family: 'Noto Sans KR', sans-serif; font-size: 26px; font-weight: 400; letter-spacing: .06em; color: var(--title); }
.pd-price { margin: 14px 0 22px; font-family: 'Noto Sans', sans-serif; font-size: 20px; color: var(--title); }
.pd-price s { margin-left: 8px; font-size: 16px; opacity: .55; }
.pd-caption { margin-bottom: 22px; line-height: 1.7; font-size: 15px; }
.pd-row { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pd-row .t { width: 72px; flex: none; color: var(--title); }
.qty { display: inline-flex; border: 1px solid #ccc; }
.qty button { width: 38px; height: 38px; border: 0; background: #fff; font-size: 18px; }
.qty input { width: 52px; height: 38px; border: 0; border-left: 1px solid #ccc; border-right: 1px solid #ccc; text-align: center; font: inherit; }
.pd-sum { border-top: 1px solid var(--body); margin-top: 18px; padding-top: 14px; font-size: 15px; }
.pd-sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.pd-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.btn { display: block; text-align: center; padding: 15px 0; border: 1px solid #757575; background: #757575; color: #fff; letter-spacing: .05em; }
.btn.outline { background: #fff; color: #757575; }
.btn:hover { opacity: .85; }
.pd-detail { max-width: 1000px; margin: 0 auto; padding: 0 40px 80px; font-size: 14px; }
.pd-detail img { margin: 0 auto 6px; }
.pd-detail p { min-height: 1.5em; }
.pd-detail hr { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }

/* ───────── Contact form ───────── */
.cform { display: grid; gap: 22px; }
.cform label { display: block; font-size: 14px; margin-bottom: 6px; }
.cform input, .cform select, .cform textarea { width: 100%; padding: 12px; border: 1px solid #ccc; font: inherit; color: var(--body); background: #fff; }
.cform textarea { min-height: 160px; resize: vertical; }
.cform .tel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; }
.cform button { justify-self: center; padding: 14px 60px; border: 2px solid #757575; background: #757575; color: #fff; letter-spacing: .05em; }

/* ───────── System pages (약관 등) ───────── */
.system-page { max-width: var(--w-normal); margin: 0 auto; padding: 60px 20px 100px; font-size: 14px; line-height: 1.5; }
.system-page p { min-height: 1.5em; }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--footer-line); padding: 50px 20px; text-align: center; color: var(--body); }
.f-sns { display: flex; justify-content: center; gap: 22px; margin-bottom: 26px; }
.f-sns a:hover, .side-sns a:hover { color: var(--accent); }
.f-sns svg, .side-sns svg { width: 22px; height: 22px; fill: currentColor; }
.f-menu { display: flex; justify-content: center; gap: 30px; font-family: 'Noto Sans', sans-serif; font-size: 14px; letter-spacing: .1em; color: var(--title); }
.f-menu a:hover { color: var(--accent); }
.f-sys { margin-top: 18px; font-size: 14px; }
.f-sys a { margin: 0 8px; }
.f-sys a:hover { color: var(--accent); }
.f-info { margin-top: 22px; font-size: 14px; line-height: 2; }
.f-info span { display: inline-block; }

/* ───────── Lightbox ───────── */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.96); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: 22px; border: 0; background: none; font-size: 34px; color: #424242; }

/* ───────── Mobile ───────── */
@media (max-width: 900px) {
  .hdr-inner { padding: 18px 20px; gap: 14px; }
  .menu { display: none; }
  .hamburger { display: block; }
  .logo img { width: 120px; }
  .side-menu { position: fixed; inset: 0 auto 0 0; width: 78%; max-width: 320px; background: #fff; z-index: 120; padding: 28px 24px; transform: translateX(-100%); transition: transform .3s; display: block; visibility: hidden; }
  .side-menu.open { transform: none; visibility: visible; box-shadow: 2px 0 14px rgba(0,0,0,.12); }
  .side-menu .logo img { width: 130px; }
  .side-menu ul { margin-top: 30px; font-family: 'Noto Sans', sans-serif; font-size: 14px; letter-spacing: .1em; color: var(--title); }
  .side-menu li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .side-menu li a.now { color: var(--accent); }
  .side-sns { display: flex; gap: 20px; margin-top: 28px; color: var(--title); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 110; display: none; }
  .scrim.open { display: block; }

  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .gallery-grid { --cols: 1 !important; }
  .gallery-masonry { --cols: 1 !important; column-count: 1; }
  .product-list { --cols: 2 !important; }
  .pd { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px 40px; }
  .pd-info { position: static; }
  .pd-images { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; }
  .pd-images img { flex: 0 0 100%; scroll-snap-align: start; }
  .pd-detail { padding: 0 20px 60px; }
  .item-text-title { font-size: 22px; }
  .f-menu { gap: 18px; }
}
@media (max-width: 560px) {
  .item-text-body { font-size: 15px; }
}

/* ───────── DRAW (작품) ───────── */
.art { display: grid; gap: 28px; margin-bottom: 80px; text-align: center; }
.art-img, .art-detail { width: 100%; height: auto; display: block; }
.art-detail { max-width: 600px; margin: 0 auto; }
.art-info { font-family: 'Noto Sans', 'Noto Sans KR', sans-serif; color: var(--body); }
.art-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.art-meta { font-size: 15px; line-height: 1.8; }
.art-price { margin: 14px 0 18px; font-size: 15px; }
.art-info .btn { display: inline-block; padding: 15px 56px; }

/* ───────── SOLD OUT ───────── */
.product-card.soldout { cursor: pointer; }
.product-card.soldout .product-thumb img { opacity: .45; }
.product-card.soldout:hover .product-thumb img + img { opacity: 0; }
.product-card.soldout:hover .product-thumb img { opacity: .6; }
.soldout-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; padding: 10px 22px; background: rgba(255,255,255,.88); color: var(--title); font-family: 'Noto Sans', 'Noto Sans KR', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .12em; white-space: nowrap; }
