/* =====================================================
   NOVOMART MOBILE SKIN CSS
   mobile/skin/shop/novomart/style.css
   ===================================================== */

/* ── CSS 변수 ─────────────────────────────────────── */
:root {
  --navy: #0D2137;
  --mint: #00BFA5;
  --red2: #e02020;
  --c1: #111; --c2: #333; --c3: #555; --c4: #888; --c5: #bbb;
  --bg1: #fafafa; --bg2: #f5f5f5;
  --border: #ebebeb;
}

/* ── 전체 리셋 ────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif; }

/* ══════════════════════════════════════════════════
   메인 배너 (owlcarousel)
   ══════════════════════════════════════════════════ */
#main_bn {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
#main_bn .main_banner_owl .item img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 220px;
}
#main_bn .btn_wr {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(0,0,0,.45);
  padding: 3px 8px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
}
#main_bn .btn_wr a { color: #fff; font-size: 14px; text-decoration: none; }
#main_bn #slide-counter { font-size: 11px; }

/* ══════════════════════════════════════════════════
   섹션 공통
   ══════════════════════════════════════════════════ */
.sct_wrap,
.section_wrap { margin-bottom: 28px; }

.sct_wrap > h2,
.section_wrap > h2,
.sct_tit {
  font-size: 15px;
  font-weight: 800;
  color: var(--c1);
  padding: 14px 14px 10px;
  border-bottom: 2px solid var(--navy);
  margin: 0 0 10px;
}

/* ══════════════════════════════════════════════════
   상품 리스트 (sct / ul li)
   ══════════════════════════════════════════════════ */
ul.sct,
ul.sct_10 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 10px;
  margin: 0;
  list-style: none;
}

ul.sct li,
ul.sct_10 li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

ul.sct li .sct_img,
ul.sct_10 li .sct_img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
}

ul.sct li .sct_img img,
ul.sct_10 li .sct_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

ul.sct li .sct_txt,
ul.sct_10 li .sct_txt {
  padding: 6px 8px 2px;
}

ul.sct li .sct_txt a,
ul.sct_10 li .sct_txt a {
  font-size: 12.5px;
  color: var(--c1);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 36px;
}

ul.sct li .sct_cost,
ul.sct_10 li .sct_cost {
  padding: 4px 8px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c1);
}

ul.sct li .sct_cost del,
ul.sct_10 li .sct_cost del {
  color: var(--c5);
  font-size: 11px;
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 3px;
}

/* 위시/공유 버튼 */
ul.sct li .sct_op_btn,
ul.sct_10 li .sct_op_btn {
  display: flex;
  justify-content: flex-end;
  padding: 0 6px 6px;
  gap: 4px;
}

.btn_wish, .btn_share {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--c4);
  cursor: pointer;
}

/* 품절 */
.shop_icon_soldout {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.soldout_txt {
  color: #fff; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 2px;
}

/* ══════════════════════════════════════════════════
   상품 없음
   ══════════════════════════════════════════════════ */
.sct_noitem {
  text-align: center;
  padding: 30px 0;
  color: var(--c5);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════
   SNS 공유 오버레이
   ══════════════════════════════════════════════════ */
.sct_sns_wrap { display: none; position: fixed; inset: 0; z-index: 9999; }
.sct_sns_bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.sct_sns {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 16px 16px 0 0;
  padding: 20px; z-index: 1;
}
.sct_sns h3 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--c1); }
.sct_sns a { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-right: 16px; text-decoration: none; }
.sct_sns a img { width: 40px; height: 40px; border-radius: 50%; }
.sct_sns_cls {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--c4); cursor: pointer;
}

/* ══════════════════════════════════════════════════
   오늘 본 상품 (boxtodayview) - basic 스타일 유지
   ══════════════════════════════════════════════════ */
#stv { position: relative; margin: 10px 0; background: #fff; border-bottom: 1px solid var(--border); }
#stv h2 { border-bottom: 1px solid var(--border); padding: 10px; line-height: 30px; font-size: 14px; font-weight: 700; }
#stv .stv_ul { padding: 10px; display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; }
#stv .stv_ul li { min-width: 70px; text-align: center; }
#stv .stv_ul li img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border); }
