/* BASIC css start */
/* =========================
ÆË¾÷ ¹è°æ
========================= */
.s16Area {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 600;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.s16Area.open {
  display: flex;
}

/* =========================
ÆË¾÷ ¹Ú½º
========================= */
.s16_b {
  max-width: 1200px;
  width: 100%;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.s16Close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 40px;
  cursor: pointer;
  background: #fff;
  padding: 5px 15px;
  border: 1px solid #eee;
  border-radius: 6px;
}

.s16Close:hover {
  color: #fff;
  background: #e17690;
}

/* =========================
Ä¿½ºÅÍ¸¶ÀÌÀú
========================= */
.penCustomizer {
  font-family: Arial;
  padding: 10px;
  display: flex;
  justify-content: center;
}

.penCustomizer .container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* =========================
ÇÁ¸®ºä
========================= */
.penCustomizer .preview {
  position: relative;
  width: 550px;
  aspect-ratio: 1/1;
}

.penCustomizer .preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
¿É¼Ç ¿µ¿ª
========================= */
.penCustomizer .options {
  width: 420px;
}

/* =========================
ÅÇ
========================= */
.penCustomizer .tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  background: #fff;
  flex-wrap: nowrap;
}

.penCustomizer .tab {
  background: none;
  border: none;
  font-size: 20px;
  padding: 14px 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.penCustomizer .tab.active:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: red;
}

/* =========================
ÆÐ³Î
========================= */
.penCustomizer .panel {
  display: none;
}

.penCustomizer .panel.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 60px;
}

/* =========================
¿É¼Ç
========================= */
.penCustomizer .option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* =========================
»ö»ó
========================= */
.penCustomizer .swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.penCustomizer .swatch.active {
  border: 3px solid #ccc;
}

.penCustomizer .label {
  font-size: 16px;
  color: #777;
}

.penCustomizer .swatch.active + .label {
  color: black;
  font-weight: 700;
}

/* =========================
¼±ÅÃ Á¤º¸
========================= */
.penCustomizer .selectedInfo {
  display: flex;
  gap: 20px;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

/* =========================
»ö»ó Á¾·ù
========================= */
.black { background: black; }
.white { background: #eee; }
.red { background: red; }
.blue { background: blue; }
.pink { background: pink; }
.turquoise { background: turquoise; }
.silver { background: silver; }
.gold { background: gold; }
.rosegold { background: #e6a4a4; }
.neonorange { background: orange; }
.neonpink { background: #ff3fa4; }
.mattblue { background: #4c6fbf; }
.mattred { background: #a23232; }
.mattturquoise { background: #3ab7b1; }
.mattviolet { background: #7a54c7; }
.mattgreen { background: #3fa65c; }
.mattorange { background: #e26c2c; }
.mattpink { background: #e17aa6; }
.mattyellow { background: #f2d94c; }
.cobaltblue { background: #0047ab; }

/* =========================
È­¸éº° ¹ÝÀÀÇü
========================= */

/* 1200px ~ 1001px : ÇÁ¸®ºä-¸Þ´º °¡·Î À¯Áö, ÇÁ¸®ºä ¾à°£ Ãà¼Ò */
@media (max-width:1200px) and (min-width:1001px) {
  .penCustomizer .preview { width: 480px; }
  .penCustomizer .options { width: calc(100% - 480px - 40px); }
  .penCustomizer .tabs { gap: 25px; }
  .penCustomizer .tab { font-size: 18px; }
}

/* 1000px ÀÌÇÏ : ¸ð¹ÙÀÏ ½ºÅ¸ÀÏ */
@media (max-width:1000px) {
  .s16_b { width: 100%; max-width: 100%; border-radius: 0; padding: 15px; }
  .penCustomizer .container { flex-direction: column; align-items: center; gap: 20px; }
  .penCustomizer .preview { width: 100%; max-width: 360px; aspect-ratio: 1/1; }
  .penCustomizer .options { width: 100%; }
  .penCustomizer .tabs { overflow-x: auto; gap: 15px; padding-bottom: 5px; }
  .penCustomizer .panel.active { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
  .penCustomizer .option { flex: 0 0 auto; flex-direction: column; align-items: center; }
  .penCustomizer .swatch { width: 36px; height: 36px; }
  .penCustomizer .label { font-size: 13px; text-align: center; }
}
/* BASIC css end */

