/* ============================================================
   장바구니 · 위시리스트 페이지 전용
   배경 흰색 / 중앙정렬 / 좌우 최대 200px 여백 (반응형)
   ============================================================ */

/* 배경 흰색 */
#wrapper {
  background: #fff !important;
}

#wrapper_title {
  display: none;
}

/* default_shop.css 의 고정폭 1200px 해제 */
#container {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
}

/* ── 장바구니 (#sod_bsk) ── */
#sod_bsk {
  max-width: var(--max-width, 1920px);
  margin: 0 auto;
  padding: 48px var(--content-padding, 200px) 80px;
  box-sizing: border-box;
}

/* ── 위시리스트 (#sod_ws) ── */
#sod_ws {
  padding: 60px 0 100px;
  box-sizing: border-box;
}

/* ── 위시리스트 이미지 ── */
#sod_ws .sod_ws_img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f0eb;
}

#sod_ws .sod_ws_img a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

#sod_ws .sod_ws_img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

#sod_ws .sod_ws_img a:hover img {
  transform: scale(1.04);
}

/* ── gnuboard 페이지 타이틀 숨김 ── */
#container_title { display: none !important; }

/* ── 페이지 헤더 ── */
#sod_bsk .board-page-header { text-align: left; }

#sod_ws .board-page-header {
  padding: 0;
  margin-bottom: 28px;
  text-align: left;
}

#sod_ws .board-page-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}

/* ============================================================
   장바구니 테이블 (#sod_bsk .tbl_head03)
   ============================================================ */

#sod_bsk .tbl_head03 {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#sod_bsk .tbl_head03 table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--color-primary, #6b4a2b);
  font-size: 1rem;
}

#sod_bsk .tbl_head03 thead th {
  padding: 16px 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #555;
  background: #f6f4ef;
  border-bottom: 1px solid #e8ddd5;
  text-align: center;
  white-space: nowrap;
}

#sod_bsk .tbl_head03 tbody tr {
  border-bottom: 1px solid var(--color-tr-line);
  transition: background 0.15s;
}

#sod_bsk .tbl_head03 tbody tr:hover { background: #faf8f5; }

#sod_bsk .tbl_head03 tbody td {
  padding: 16px 12px;
  font-size: 1rem;
  color: #2b2b2b;
  text-align: center;
  vertical-align: middle;
  border:0;
}

#sod_bsk .tbl_head03 .td_prd { text-align: left; }
#sod_bsk .tbl_head03 .text_right { text-align: right; }
#sod_bsk .tbl_head03 .td_numbig { white-space: nowrap; }

#sod_bsk .empty_table {
  padding: 60px 16px;
  color: #888;
  font-size: 1rem;
  text-align: center;
}

/* 상품명 링크 */
#sod_bsk .prd_name {
  color: var(--color-primary, #6b4a2b);
  font-weight: 600;
  text-decoration: none;
}

#sod_bsk .prd_name:hover { text-decoration: underline; }

/* ── 선택삭제/비우기 버튼 ── */
.btn_cart_del {
  display: flex;
  gap: 8px;
  margin: 12px 0 4px;
}

.btn_cart_del button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bd-input-h, 52px);
  padding: 0 30px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: var(--bd-font-base, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn_cart_del button:hover {
  background: var(--bd-header-bg, #f6f4ef);
  border-color: var(--bd-primary, #6b4a2b);
  color: var(--bd-primary, #6b4a2b);
}

/* ── 장바구니 합계 (#sod_bsk_tot) ── */
#sod_bsk_tot {
  margin-top: 20px;
  padding:0;
  background: #f6f4ef;
  border-radius: 8px;
  overflow:hidden;
}

#sod_bsk_tot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content:space-between;
  gap:0;
  flex-wrap: wrap;
}

#sod_bsk_tot ul li {
    flex:1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: #555;
    justify-content:space-between;
    padding: 20px 24px;    
}

#sod_bsk_tot ul li strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary, #6b4a2b);
}


#sod_bsk_tot .sod_bsk_dvr {border-right:1px solid var(--color-line);}
#sod_bsk_tot .sod_bsk_pt {border-right:1px solid var(--color-line);}
#sod_bsk_tot .sod_bsk_cnt { font-weight: 700; background-color:var(--color-primary);border-color:var(--color-primary);color:#ffffff !important;}
#sod_bsk_tot .sod_bsk_cnt strong { font-size: 1.375rem; color:#ffffff;}

/* ── 장바구니 액션 버튼 (#sod_bsk_act) ── */
#sod_bsk_act {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#sod_bsk_act .btn01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bd-input-h, 52px);
  padding: 0 30px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: var(--bd-font-base, 1.125rem);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

#sod_bsk_act .btn01:hover {
  background: var(--bd-header-bg, #f6f4ef);
  border-color: var(--bd-primary, #6b4a2b);
  color: var(--bd-primary, #6b4a2b);
}

#sod_bsk_act .btn_submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bd-input-h, 52px);
  padding: 0 30px;
  border: 1.5px solid var(--bd-primary, #6b4a2b);
  border-radius: 6px;
  background: var(--bd-primary, #6b4a2b);
  color: #fff;
  font-size: var(--bd-font-base, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

#sod_bsk_act .btn_submit:hover {
  background: var(--bd-primary-dk, #5a3d23);
  border-color: var(--bd-primary-dk, #5a3d23);
}

/* ============================================================
   위시리스트 카드 그리드 (#sod_ws .list_02) — 갤러리 스타일
   ============================================================ */

#sod_ws .list_02 ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

/* ── default_shop.css 기본값 재정의 ── */
#sod_ws .list_02 li {
  float: none;
  width: auto;
  margin: 0;
}

#sod_ws .list_02 li .wish_info {
  border-bottom: none !important;
  height: auto !important;
  margin-top: 0 !important;
  padding: 0 !important;
  position: static !important;
}

/* ── 카드 ── */
#sod_ws .list_02 ul > li {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}

#sod_ws .list_02 ul > li:hover {
  box-shadow: 0 8px 28px rgba(107, 74, 43, 0.15);
  transform: translateY(-4px);
}

/* ── 체크박스 ── */
#sod_ws .wish_chk {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px;
  z-index: 1;
}

/* ── 상품명 링크 ── */
#sod_ws .info_link {
  display: block;
  padding: 10px 10px 4px;
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
  text-decoration: none;
  line-height: 1.4;
}

#sod_ws .info_link:hover { color: var(--color-primary, #6b4a2b); }

/* ── 날짜 ── */
#sod_ws .info_date {
  padding: 2px 10px 10px;
  font-size: 16px;
  color: #888;
  line-height: 1.6;
}

/* ── 삭제 버튼 (default_shop.css #sod_ws li .wish_del 재정의) ── */
#sod_ws .list_02 li .wish_del {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  line-height: inherit !important;
  background: none !important;
  display: block !important;
  text-align: right;
  color: #aaa !important;
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.15s;
  padding: 6px 10px 10px;
}

#sod_ws .list_02 li .wish_del:hover { background: none !important; color: #e53935 !important; }

/* ── 빈 목록 ── */
#sod_ws .list_02 .empty_table {
  list-style: none;
  grid-column: 1 / -1;
  padding: 80px 0;
  color: #999;
  font-size: 1.6rem;
  text-align: center;
}

/* ── 위시리스트 액션 버튼 (#sod_ws_act) ── */
#sod_ws #sod_ws_act {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

#sod_ws #sod_ws_act .btn01 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bd-input-h, 52px);
  padding: 0 30px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: var(--bd-font-base, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}

#sod_ws #sod_ws_act .btn01:hover {
  background: var(--bd-header-bg, #f6f4ef);
  border-color: var(--bd-primary, #6b4a2b);
  color: var(--bd-primary, #6b4a2b);
}

#sod_ws #sod_ws_act .btn02 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--bd-input-h, 52px);
  padding: 0 30px;
  border: 1.5px solid var(--bd-primary, #6b4a2b);
  border-radius: 6px;
  background: var(--bd-primary, #6b4a2b);
  color: #fff;
  font-size: var(--bd-font-base, 1.125rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  white-space: nowrap;
}

#sod_ws #sod_ws_act .btn02:hover {
  background: var(--bd-primary-dk, #5a3d23);
  border-color: var(--bd-primary-dk, #5a3d23);
}

.sod-cart-list-item{
    display:flex;
    align-items:center;
    gap:20px;
}

.sod-cart-list-item .sod_img{
    overflow:hidden;
    border-radius:5px;
}

/* ── 반응형 ── */
@media (max-width: 1600px) {
  #sod_ws { padding-left: 60px; padding-right: 60px; }
}

@media (max-width: 1280px) {
  #sod_ws { padding-left: 40px; padding-right: 40px; }
  #sod_ws .board-page-title { font-size: 2.4rem; }
  #sod_ws .list_02 ul { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
}

@media (max-width: 1024px) {
  #sod_ws .list_02 ul { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:1184px) {
  
  #sod_bsk_list .tbl_head03.tbl_wrap table {display:block;}
  #sod_bsk_list .tbl_head03.tbl_wrap table > thead{display:none !important;}
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody{display:flex; flex-wrap:wrap; flex-direction:column;justify-content:space-between; gap:1rem; padding:8px;}
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody > tr {flex:0 0 auto; width:100%; display:flex; flex-wrap:wrap; box-shadow:0px 2px 8px rgba(0,0,0,0.15);}  
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody > tr > td{flex:0 0 auto;}
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody > tr > td{width:100%;display:flex;justify-content:space-between;padding-right: 1rem !important;border-bottom:1px solid var(--color-tr-line) !important; padding:6px 12px;}
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody > tr > td.td_numbig { white-space: nowrap; }
  #sod_bsk_list .tbl_head03.tbl_wrap table > tbody > tr > td:not(.td_prd):before{content:attr(data-label);flex:0 0 auto; width:25%;text-align:center !important;padding:6px 12px !important;}
  
}
@media (max-width: 768px) {
  #sod_bsk .tbl_head03 thead th,
  #sod_bsk .tbl_head03 tbody td { font-size: 0.875rem; padding:5px 8px; }

  #sod_bsk_tot ul { gap: 0; }
  #sod_bsk_tot ul  .sod_bsk_cnt{width:100%;}
  #sod_bsk_tot .sod_bsk_dvr,#sod_bsk_tot .sod_bsk_pt{flex:0 0 auto; width:50%;}
  #sod_bsk_act { justify-content: stretch; }
  #sod_bsk_act .btn01,
  #sod_bsk_act .btn_submit { flex: 1; }

  #sod_ws {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    padding-bottom: 60px;
  }
  #sod_ws .board-page-header { padding: 0; }
  #sod_ws .board-page-title { font-size: 2rem; }
  #sod_ws .list_02 ul { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  #sod_ws_act { justify-content: stretch; }
  #sod_ws_act .btn01,
  #sod_ws_act .btn02 { flex: 1; }

}

@media (max-width: 501px) {
  #sod_ws { padding-left: 20px; padding-right: 20px; }
  #sod_ws .list_02 ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
