/*
Theme Name: GeneratePress Child
Theme URI: https://mug.io.kr
Description: Mug.io.kr 전용 GeneratePress 자식 테마 (hover 라인 제거 + 최적화)
Author: 탁지훈
Template: generatepress
Version: 1.1.5
*/

/* 부모 테마 스타일 */
@import url("../generatepress/style.css");

/* 폰트 선언 */
@font-face {
  font-family: 'TheJamsil2Light';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil2Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'TheJamsil4Medium';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil4Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'TheJamsil5Bold';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302_01@1.0/TheJamsil5Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* 기본 구조 */
body {
  font-family: 'TheJamsil2Light', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

/* 본문 */
.entry-content {
  font-size: 18px;
  line-height: 33px;
  font-weight: 400;
}

/* 헤딩 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 700;
  line-height: 1.4;
}
h1 { font-size: 1.7em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.3em; }
h5 { font-size: 1.1em; }
h6 { font-size: 1em; }

/* 본문 단락 */
.entry-content p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 1.8em;
}

/* 리스트 */
.entry-content ul,
.entry-content ol {
  font-size: 14px;
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}
.entry-content li {
  margin-bottom: 0.6em;
}

/* 링크 */
a {
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

/* 테이블 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border: 1px solid #ddd;
  font-size: 15px;
}
table th,
table td {
  border: 1px solid #e5e5e5;
  padding: 12px 15px;
  text-align: left;
}
table th {
  font-weight: 600;
}

/* 이미지 */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* WooCommerce 썸네일 */
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  object-fit: contain !important;
  width: 100% !important;
  height: auto !important;
}

/* 링크로 감싼 이미지 hover 라인 제거 */
a img {
  display: block !important;
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}
a:hover img,
a:focus img {
  border: none !important;
  outline: none !important;
  text-decoration: none !important;
}
a:has(img) {
  display: inline-block !important;
  line-height: 0 !important;
  border: none !important;
  text-decoration: none !important;
}
a:hover,
a:focus {
  border-bottom: none !important;
  text-decoration: none !important;
}

/* 사이드바 위젯 박스 */
aside.widget {
  padding: 20px 20px !important;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
  font-size: 14px !important;
  line-height: 1.6 !important;
}
aside.widget ul,
aside.widget ol {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
aside.widget p {
  margin-left: 0 !important;
}
aside.widget h2 {
  font-size: 1.2em;
  margin-top: 0.8em !important;
  margin-bottom: 0.6em;
  font-weight: 600;
  line-height: 1.4;
}
aside.widget h6 {
  font-size: 1.2em;
  margin-top: 0.2em !important;
  margin-bottom: 0.2em;
  font-weight: 300;
  line-height: 1.4;
}
aside.widget .widget-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px 0;
  position: relative;
}
aside.widget .widget-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 6px;
  margin-bottom: 10px;
}
aside.widget ul {
  list-style: none;
  padding-left: 0;
}
aside.widget ul li {
  margin-bottom: 5px;
}

/* WooCommerce 상품 위젯 */
.woocommerce ul.product_list_widget li a {
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

/* 헤더 검색창 */
.site-header button.wp-block-search__button {
  border: 1px solid var(--accent);
  margin-left: 0;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
  padding: 10px;
}
.site-header #wp-block-search__input-1 {
  border-radius: 5px 0 0 5px;
  border: 1px solid var(--accent);
}
.site-header .wc-block-product-search .wc-block-product-search__button {
  margin-left: 0;
}
.site-header .wp-block-search {
  display: flex;
  align-items: center;
  flex: 1;
  width: auto !important;
  max-width: none !important;
}
.site-header .wp-block-search__input,
.site-header .wc-block-product-search__field {
  flex: 1 1 350px !important;
  width: 350px !important;
  max-width: 100% !important;
  min-width: 200px;
}
.site-header .wp-block-search__button,
.site-header .wc-block-product-search__button {
  flex-shrink: 0 !important;
  padding: 10px 18px !important;
  border-radius: 0 5px 5px 0;
}

/* 사이드바 위젯 헤딩 간격 최소화 */
aside.widget h1,
aside.widget h2,
aside.widget h3,
aside.widget h4,
aside.widget h5,
aside.widget h6 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.2 !important;
}

/* 배너 위젯 */
.widget-banner {
  margin: 30px 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.sidebar .widget-banner,
.sidebar .widget-banner .textwidget,
.sidebar .widget-banner .custom-html-widget {
  padding: 0 !important;
  margin: 0 !important;
}
.widget-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}
.widget-banner a {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

/* WooCommerce 상품명 H1 */
.single-product .product_title {
    font-size: 25px !important;
    line-height: 1.3;
    font-weight: 700;
}
