@import url("../../../../../skin/shop/basic/style.css");

/* ==========================================================================
   HI-MARKET PREMIUM THEME SHOP OVERRIDES
   ========================================================================== */

/* Typography & General */
body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif !important;
}

/* Category Navigation (Breadcrumbs) - Hidden per user request */
#sct_location {
  display: none !important;
}

/* Category Title Header */
.shop-category-header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  text-align: center;
}
.shop-category-header h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}
.shop-category-header p {
  color: #666;
  font-size: 15px;
}

/* Sorting Options Bar - Hidden per user request */
#sct_sort {
  display: none !important;
}
#sct_sort h2 {
  display: none !important; /* Hide the screen reader header */
}
#ssch_sort {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
  margin: 0;
  list-style: none;
}
#ssch_sort li {
  margin: 0;
  padding: 0;
  float: none !important;
  height: auto !important;
  line-height: normal !important;
}
#ssch_sort li:hover:after {
  display: none !important; /* Remove default underline hover effect */
}
#ssch_sort a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #eaeaea;
  transition: all 0.25s ease;
}
#ssch_sort a:hover {
  color: #a1824a;
  border-color: #a1824a;
  background: #fdfaf4;
}
#ssch_sort .sct_act {
  color: #fff !important;
  background: #a1824a !important;
  border-color: #a1824a !important;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(161, 130, 74, 0.2);
}

/* Hide standard view switcher to keep the custom grid-5col styling consistent */
#sct_lst {
  display: none !important;
}

/* Product Listing Grid Tweaks */
.catalog-layout-container {
  background-color: #fff;
}
.smartstore-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}

/* Pagination Redesign */
.pg_wrap {
  margin: 50px auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.pg_page, .pg_current {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pg_page {
  color: #555;
  background: #fff;
  border: 1px solid #eaeaea;
}
.pg_page:hover {
  color: #a1824a;
  border-color: #a1824a;
  background: #fdfaf4;
}
.pg_current {
  color: #fff;
  background: #a1824a;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(161, 130, 74, 0.25);
}
.pg_start, .pg_prev, .pg_next, .pg_end {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  color: #777;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s ease;
}
.pg_start:hover, .pg_prev:hover, .pg_next:hover, .pg_end:hover {
  color: #a1824a;
  border-color: #a1824a;
  background: #fdfaf4;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR SHOP SKINS
   ========================================================================== */
@media (max-width: 1024px) {
  #sct_location {
    margin: 15px auto 5px auto !important;
    padding: 8px 15px !important;
  }
  #sct_sort {
    margin: 10px 15px 25px 15px !important;
  }
}

@media (max-width: 768px) {
  #ssch_sort {
    gap: 8px 6px;
    padding: 10px 0;
  }
  #ssch_sort a {
    padding: 6px 12px;
    font-size: 12px;
  }
  .smartstore-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px 10px;
  }
}

/* ==========================================================================
   SHOP CATEGORY SPLIT HEADER LAYOUT
   ========================================================================== */
.shop-category-split-header {
  background: linear-gradient(135deg, #fcfbfa 0%, #f5f3ef 100%);
  /* border-bottom: 1px solid #eaeaea; */
  padding: 50px 0;
  /* margin-bottom: 30px; */
}

.split-header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.split-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split-text-col .category-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #a1824a;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(161, 130, 74, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(161, 130, 74, 0.05);
}

.category-main-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 34px;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  line-height: 1.3;
}

.category-main-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  word-break: keep-all;
}

.category-features-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-features-mini .feat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  background: #fff;
  border: 1px solid #eaeaea;
  padding: 6px 12px;
  border-radius: 4px;
}

.category-features-mini .feat-badge i {
  color: #a1824a;
}

/* Video Column styling */
.split-video-col {
  position: relative;
  width: 100%;
}

.split-video-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.split-video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive for Split Header */
@media (max-width: 1024px) {
  .split-header-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .category-main-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .shop-category-split-header {
    padding: 35px 0;
  }
  .category-main-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .category-main-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   SUBCATEGORY NAVIGATION TABS (BELOW VIDEO HEADER)
   ========================================================================== */
.sct_ct {
  max-width: 1300px;
  margin: 30px auto 10px auto !important;
  padding: 0 20px !important;
  border: none !important;
  background: none !important;
  clear: both;
}

.sct_ct h2 {
  display: none !important; /* Hide default YoungCart screen-reader subcategory title */
}

.sct_ct ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

.sct_ct ul li {
  margin: 0;
  padding: 0;
  float: none !important;
  display: inline-block;
  height: auto !important;
  line-height: normal !important;
}

.sct_ct ul li:hover:after {
  display: none !important; /* Remove legacy hover underlines */
}

.sct_ct ul li a {
  display: inline-block;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 30px;
  transition: all 0.25s ease;
}

.sct_ct ul li a:hover {
  color: #a1824a;
  border-color: #a1824a;
  background: #fdfaf4;
  box-shadow: 0 4px 12px rgba(161, 130, 74, 0.1);
  transform: translateY(-2px);
}


