@charset "UTF-8";
/* =========================================================
   HANAROMART ECWID CUSTOM CSS
   ========================================================= */
/* =========================================================
   1. 상단 메뉴
   ========================================================= */
.horizontal-menu-container.horizontal-desktop nav.horizontal-menu {
  padding: 5px 10px;
  border: none;
}

.horizontal-menu-container.horizontal-mobile {
  padding: 5px 10px;
  border: none;
}

/* 모바일 메뉴 버튼 글자 숨기기 */
.horizontal-menu-container.horizontal-mobile
.horizontal-menu-button
.horizontal-menu-button-text {
  font-size: 0 !important;
}

/* =========================================================
   2. ECWID 전체 상단 간격
   ========================================================= */
div.ecwid-productBrowser {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ec-size .ec-store .ec-grid {
  margin-top: 5px !important;
}

/* =========================================================
   3. 상품명 및 가격
   ========================================================= */
/* 상품명 */
.ec-size .ec-store .grid-product__title-inner {
  color: #000 !important;
  font-size: 15px !important;
}

/* 상품 가격 */
.ec-size .ec-store .grid-product__price-amount {
  color: #000 !important;
}

.ec-size .ec-store .grid-product__price {
  font-size: 10px !important;
}

/* =========================================================
   4. 사전주문 제목
   ========================================================= */
/* 제목 영역의 기본 여백 제거 */
.ec-size .ec-store .ec-page-title__featured-products {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 제목 내부 영역 여백 제거 */
.ec-size .ec-store
.ec-page-title__featured-products
.page-title {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 기존 Featured Products 제목 숨기기 */
.ec-size .ec-store
.ec-page-title__featured-products
.page-title__name.ec-header-h1 {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
}

/* 사전주문 제목 표시 */
.ec-size .ec-store
.ec-page-title__featured-products
.page-title__name.ec-header-h1::after {
  content: "가까운 하나로마트에서 픽업하세요! ★사/전/주/문★";
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #000 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}

/* =========================================================
   5. 사전주문 제목과 상품 사이 빈 줄 제거
   ========================================================= */
/*
   아래 값을 조절하면 사전주문 상품이 위로 올라갑니다.
   현재 PC에서는 40px 위로 이동합니다.
*/
.ec-size .ec-store .grid__products--featured {
  position: relative !important;
  top: -40px !important;
  margin-bottom: -40px !important;
  padding-top: 0 !important;
}

/* Ecwid 구조가 다를 경우 적용되는 보조 선택자 */
.ec-size .ec-store
.ec-page-title__featured-products + .grid__products {
  position: relative !important;
  top: -40px !important;
  margin-bottom: -40px !important;
  padding-top: 0 !important;
}

.ec-size .ec-store
.ec-page-title__featured-products + .ec-grid {
  position: relative !important;
  top: -40px !important;
  margin-bottom: -40px !important;
  padding-top: 0 !important;
}

/* =========================================================
   6. 상시판매 MARKET PLACE 제목
   ========================================================= */
.ec-size .ec-store
.grid__category-block
.page-title__name {
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  color: #000 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

/* =========================================================
   7. 상품 목록 기본 설정
   ========================================================= */
.ec-size .ec-store .grid__products {
  padding-top: 0 !important;
}

/* =========================================================
   8. ON SALE 라벨
   ========================================================= */
.ec-size .ec-store .label--notice {
  background-color: red !important;
}

.ec-size .ec-store .label--notice::after,
.ec-size .ec-store .label--notice::before {
  border-color: red !important;
  border-right-color: transparent !important;
}

/* =========================================================
   9. 상품 버튼
   ========================================================= */
.ec-size .ec-store
.form-control--small
.form-control__button {
  width: 100px !important;
  height: 25px !important;
  font-size: 13px !important;
}

/* =========================================================
   10. 2열 상품 목록 좌우 여백
   ========================================================= */
.ec-size .ec-store
.grid__products[data-cols="2"]
.grid-product
.grid-product__wrap-inner > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ec-size .ec-store
.grid__products[data-cols="2"]
.grid-product__wrap-inner
.grid-product__button {
  padding-bottom: 0 !important;
}

/* =========================================================
   11. 첫 페이지 기본 카테고리 숨기기
   ========================================================= */
.ec-size .ec-store.ec-store__category-page--0
.ec-grid
.grid__categories {
  display: none !important;
}

/* =========================================================
   12. 카테고리 정렬
   ========================================================= */
.ec-size .ec-store
.ec-grid
.grid__categories {
  justify-content: flex-start !important;
}

/* 카테고리가 1열일 때 2열 표시 */
.ec-size .ec-store
.ec-grid
.grid__categories[data-cols="1"]
.grid-category {
  width: 50% !important;
}

/* 큰 카테고리는 중앙 1열 */
.ec-size .ec-store
.ec-grid
.grid__categories.grid__categories--large-items[data-cols="1"] {
  justify-content: center !important;
}

.ec-size .ec-store
.ec-grid
.grid__categories.grid__categories--large-items[data-cols="1"]
.grid-category {
  width: 100% !important;
  max-width: 480px !important;
}

/* =========================================================
   13. 상품 상세설명 전체 표시
   ========================================================= */
.ec-size .ec-store
.product-details-module__content--collapsed {
  max-height: none !important;
  overflow: visible !important;
}

.ec-size .ec-store
.product-details__product-description::after {
  display: none !important;
}

.ec-size .ec-store
.product-details-module__content--collapsed
~ .product-details-module__btn-more {
  display: none !important;
}

/* =========================================================
   14. 상품 상세설명 이미지
   ========================================================= */
#productDescription img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* =========================================================
   15. 상품 카드 정렬
   ========================================================= */
.grid-product__wrap {
  display: flex;
}

/* =========================================================
   16. 모바일 설정
   따로 입력하지 않고 이 코드에 포함되어 있습니다.
   ========================================================= */
@media only screen and (max-width: 600px) {
  div.ecwid-productBrowser {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* 일반 카테고리 페이지 제목 */
  .ec-size .ec-store.ec-store__category-page
.ec-page-title:not(.ec-page-title__featured-products)
.page-title__name.ec-header-h1 {
    color: #000 !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
  /* 사전주문 제목 */
  .ec-size .ec-store
.ec-page-title__featured-products
.page-title__name.ec-header-h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  .ec-size .ec-store
.ec-page-title__featured-products
.page-title__name.ec-header-h1::after {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /*
       모바일에서는 상품을 30px 위로 이동
    */
  .ec-size .ec-store .grid__products--featured,
.ec-size .ec-store
.ec-page-title__featured-products + .grid__products,
.ec-size .ec-store
.ec-page-title__featured-products + .ec-grid {
    position: relative !important;
    top: -30px !important;
    margin-bottom: -30px !important;
    padding-top: 0 !important;
  }
  /* 상시판매 제목 */
  .ec-size .ec-store
.grid__category-block
.page-title__name {
    margin-bottom: 18px !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
  }
}

@media only screen and (max-width: 600px) {
  .ec-size .ec-store.ec-store__category-page
.ec-page-title:not(.ec-page-title__featured-products)
.page-title__name.ec-header-h1 {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
  .ec-size .ec-store
.grid__category-block
.page-title__name {
    font-size: 19px !important;
    line-height: 1.3 !important;
  }
}
