body { margin:10 0; padding:10 5; }

.mobileBR {
    display: none;
}

@media (max-width: 800px) {
    .mobileBR {
        display: inline;
    }
}


@media (max-width: 500px) {
    .H500 {
        display: none;
    }
}

@media (max-width: 600px) {
    .H600 { display: none; }
	}

.S600 { display:none; }
@media (max-width: 600px) {
    .S600 { display:inline !important; }
	}


@media (max-width: 600px) {
    .HS600 { display:inline !important; }
	}

@media (max-width: 700px) {
    .H700 { display: none; }
}

@media (max-width: 800px) {
    .H800 { display: none; }
}

@font-face {
    font-family: 'Cafe24';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Cafe24Ohsquare.woff') format('woff');
}

@font-face {
    font-family: 'NanumPen';
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumBrush/NanumPen.eot);
    src: url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumBrush/NanumPen.eot?#iefix) format("embedded-opentype"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumBrush/NanumPen.woff) format("woff"), url(https://hangeul.pstatic.net/hangeul_static/webfont/NanumBrush/NanumPen.ttf) format("truetype");
}


.visually-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* header ************************************************/
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.logo-container {
  flex: 1;
  text-align: left;
}

.main-logo {
  width: 30vw;
  min-width: 100px;
  max-width: 200px;
}

.header-menu {
  flex: 1;
  text-align: right;
  white-space: nowrap;
}

.header-menu a {
  margin-left: 15px;
  text-decoration: none;
  color: black;
}


@media (max-width: 600px) {
  body { margin:0 0; padding:0 0; }

  header {
    flex-direction: column;
    text-align: center !important;
  }

  header > .logo-container,
  header nav {
    width: 100%;
    text-align: center !important;
    margin: 5px 0;
  }

  header nav a {
    display: inline-block;
    margin: 5px 10px;
  }

  .main-logo {
    display: none; /* 600px 이하에서는 로고 이미지 숨김 */
  }
}

/* 검색바 */

.search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;

    z-index: 99999 !important;
}

.search-form {
    display: flex;
    width: 80%;
    max-width: 800px;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;

    /* 기존보다 더 진한 그림자 */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 500px) {
.search-form {
    width: 100%;
    }
  }

.search-input {
    flex-grow: 1;
    padding: 20px 30px;
    font-size: 1.3em;
    border: none;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-btn {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: #fff;
    font-size: 1.2em;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: background 0.3s ease;

    /* 추가된 안정화 속성 */
    white-space: nowrap;     /* 줄바꿈 방지 */
    min-width: 90px !important;         /* 최소 너비 확보 */
    flex-shrink: 0;          /* 버튼이 줄어들지 않도록 함 */
}



.search-btn:hover {
    background: linear-gradient(to right, #00f2fe, #4facfe);
}

/* 등록상품 카운터 */

.header-count-container {
	max-width: 900px;
    display:flex; justify-content: space-evenly;
    align-items: center;
    margin-top: 20px;
    font-family: 'Segoe UI', sans-serif;
}


/* 헤더 중앙 */

.header-center h1 {
	margin: 10px 0 5px; font-size: 2.3em; position: relative; display: inline-block; color:black;
	font-family:Cafe24;
	}

.header-center h1_title {
	margin: 10px 0 5px; font-size: 2.3em; position: relative; display: inline-block; color:black;
	font-family:Cafe24;
	}

.header-center imgx {
	max-height: 40px; position: absolute; top: -30px; right: -50px;
	}

.header-center p {
    margin: 0; 
	font-size: 1.3em; color: #555; font-family:NanumPen
}

.count-box {
    font-size: 22px;
    color: #666;
    text-align: center;
	width:100px;
}

.count-label {
    display: block;
    font-size: 15px;
    color: #aaa;
    margin-bottom: 4px;
}

.count-number {
	font-family:Cafe24;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}




/* index ************************************************/

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* 카테고리 아이콘 */
.category-box {
	background:#FDFAF1; width: 80px; border-radius: 15px; border: 1px solid #ddd; padding: 10px 10px 10px; text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.category-box img {
	margin-bottom:5px; width: 60px; height: 60px; object-fit: contain; border-radius:15%; 
	}


/* 세일상품 표시 */

.product-image-wrapper {
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: red;
    color: white;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 12px;
    z-index: 10;
}

.badge.sale {
    background: red;
}

.badge.hot {
    background: orange;
}

.badge.new {
    background: green;
}



/* search ************************************************/


.product-card {
    width: 250px; height:440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.product-card img {
    width: 100%; max-height:240px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor:pointer;
    transition: transform 0.3s ease;  /* 자연스럽게 커지게 */
}

.product-card img:hover {
	scale:1.05;
}

.product-title {
    font-size: 1em;
    margin: 10px 0 5px;
    color: #333;
	height:90px;
    overflow: hidden; /* 추가: 넘치는 내용 숨김 */
    text-overflow: ellipsis; /* 추가: 말줄임표 (...) */
    display: -webkit-box; /* 추가: 줄 제한을 위해 flex box 사용 */
    -webkit-line-clamp: 4; /* 추가: 최대 4줄까지 보여줌 */
    -webkit-box-orient: vertical; /* 추가 */
}

.product-card .product-title {
    font-size: 1em;
    line-height: 1.4;
    font-weight: bold;
}

.product-card .product-price .previous-price {
    font-size: 1em;
    color: #0072ff;
}


/* 모바일 대응 */
@media (max-width: 670px) {
  .product-card {
	width:100%;
	}
  .product-card img {
    width:80%; max-height:260px;
	}
}


.product-price {
    color: #1a73e8;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center; /* 추가 */
}

.previous-price {
    color: red;           /* 글자색 빨간색 */
    text-decoration: line-through; /* 가운데 줄 긋기 */
    margin: 0;            /* 기본 여백 제거 (필요시) */
}

.button-group {
    margin-top: auto;
    display: flex;
    justify-content: center;     /* 버튼 가로 가운데 정렬 */
    gap: 10px;                    /* 버튼 간격 */
    flex-wrap: wrap;              /* 줄바꿈 허용 */
}

.compare-btn,
.buy-btn {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-block;        /* 줄바꿈 방지 */
}


.compare-btn {
    background: linear-gradient(to right, #00c6ff, #0072ff);
    color: white;
}

.compare-btn:hover {
    background: linear-gradient(to right, #0072ff, #00c6ff);
}

.buy-btn {
    background: #f9f9f9;
    color: #222;
    border: 1px solid #ccc;
}

.buy-btn:hover {
    background: #eee;
}

/* 인기자료 */
#inki {
    scroll-margin-top: 120px;
    margin-top: 80px;
}

.popular-products-box {
	display:flex; flex-wrap:wrap; justify-content:center; 
	gap:20px; padding:30px;
	max-width:900px;
	}

/* product ************************************************/

.product-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    text-align: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.product-detail-title {
    font-size: 1.3em;
    margin: 10px 0;
}

.product-price {
    font-size: 1.2em;
    color: #1a73e8;
    font-weight: bold;
    margin-bottom: 20px;
}



/* 카테고라 , 공유링크 */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-category {
    margin: 0;
    color: #555;
}

.share-button {
    cursor: pointer;
    color: gray;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.share-button:hover {
    color: #0080ff;
}

/* ===== 가격변경 확인 ===== */

.price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-check-btn , .coupon-btn , .freeship-btn {
    padding: 8px 16px;
    background: #0072ff;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.price-check-btn:hover {
    background: #005ac8;
}
.coupon-btn:hover {
    background: #ED8E00;
}

/* 추가버튼 */
.extra-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;  /* 가운데 정렬 */
}


.coupon-btn {
    background-color: #ff9800; /* 오렌지 */
}

.freeship-btn {
    background-color: #4caf50; /* 초록 */
}

/* 상품정보 더 보기 (쿠팡) 바로가기 */
.purchase-section a {
    display: inline-block;
    padding: 15px;
    margin: 10px;
    font-size: 18px;
    background-color: #fff;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    width: 90%;
    max-width: 460px;
    border: 1px solid #ccc;
    transition: background-color 0.1s, color 0.1s;
}

.purchase-section a:hover {
    background-color: #35C5F0;
    color: white;
    border: 1px solid #249EE4;
}


/* ===== 뒤로가기 버튼 ===== */

.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.bottom-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    background: #eee;
    color: #333;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.bottom-btn:hover {
    background: #ddd;
}

.bottom-btn.highlight {
    background: #0072ff;
    color: white;
}

.bottom-btn.highlight:hover {
    background: #005ac8;
}

/* 상품이미지 제목 */
	/* 기본: PC 기준 */

	.product-top {
	  display: flex;
	  flex-direction: row; /* PC에서는 가로 */
	  align-items: flex-start;
	  justify-content: center;
	  gap: 40px;
	  margin-bottom: 30px;

	}

	.product-image-box {
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  background: #ffffff;
	  border-radius: 16px;
	  padding: 15px;
	  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	  max-width: 320px;
	  margin: 0 auto;
	  box-sizing: border-box;
	}

	.product-image {
	  width: 100%;
	  max-width: 280px;
	  border-radius: 12px;
	  object-fit: contain;
	}

	.product-info-box {
	  flex: 1;
	  width: 100%;
	  text-align: left;
	}

	/* 모바일 대응 */
	@media (max-width: 800px) {
	  .product-top {
		flex-direction: column;
		align-items: center;
	  }

	  .product-image-box {
		max-width: 600px;
		width: 100%;
		padding: 5px;
		background: #ffffff;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
		border-radius: 16px;
	  }

	  .product-image {
		max-width: 100%;
		border-radius: 12px;
		padding: 0;
	  }

	  .product-info-box {
		text-align: center;
	  }
	}


/* 가격 차트 */

	.price-chart-container {
	  display: flex;
	  align-items: flex-start;
	  gap: 20px;
	  padding: 50px 0;
	  width: 100%;
	  max-width: 900px;
	  background: #16283B;
	  border-radius: 15px;
	  flex-direction: row;
	}

	.price-chart-left {
	  width: 80%;
	  max-height: 300px;
	  padding-right: 20px;
	}

	.price-chart-right {
	  width: 20%;
	  font-size: 14px;
	  line-height: 2.6;
	  text-align: right;
	  padding-right: 40px;
	  color: gray;
	}

	/* 가격 차트  모바일 대응 */
	@media (max-width: 768px) {
	  .price-chart-container {
		flex-direction: column;
		padding: 30px 15px;
		 max-width: 100%;
		 box-sizing: border-box;
	  }

	  .price-chart-left,
	  .price-chart-right {
		width: 100%;
		padding-right: 0;
		text-align: center;
	  }

	  .price-chart-right {
		margin-top: 20px;

		/* 가로 나열을 위한 설정 */
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		line-height: 1.6;
	  }

	  .price-chart-right > div {
		min-width: 120px;
		text-align: center;
		color: gray;
	  }
	}




/* 탑 버튼 */

#topBtn {
    position: fixed;
    bottom: 40px;
    right: 15px;
    z-index: 998;
    background: #0072ff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: none;
}


/* 푸터 베너 */

.footer-banner-wrapper {
    max-width: 900px;
    margin: 80px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-banner-wrapper a {
    display: block;
    text-align: center;
}

.footer-banner-wrapper img {
    width: 250px;
    max-width: 90%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.footer-banner-wrapper img:hover {
    transform: scale(1.03);
}


/* 푸터 텍스트 */

.footerInfo {
	text-align:center; font-size:14px; color:#888; margin-top:100px; line-height:1.1;
	}



/* 인기검색어 */
.popular-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    margin: 10px auto;
    max-width: 800px;
}

.popular-keywords .keyword {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f0f8ff;
    border-radius: 20px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

.popular-keywords .keyword:hover {
    background-color: #dbeeff;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .popular-keywords {
        gap: 8px;
        padding: 10px;
    }
    .popular-keywords .keyword {
        font-size: 14px;
        padding: 6px 12px;
    }
}