/* ==========================================================================
   Flatsome Child — Jakomo Editorial Catalog Layout (cateCd=002 style)
   ========================================================================== */

body {
  font-family: 'Be Vietnam Pro', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1c1c1c;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.heading-font {
  font-family: 'Be Vietnam Pro', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header minimalist spacing */
.header-main {
  border-bottom: 1px solid #f0f0f0;
}

.header-nav-main > li > a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   1. Hero Banner Section (.jkm-hero-banner)
   -------------------------------------------------------------------------- */
.jkm-hero-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.jkm-hero-banner {
  min-height: 60vh;
}

.jkm-hero-banner .text-box-content h2,
.jkm-hero-banner .text-box-content h1 {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 12px;
}

.jkm-hero-banner .text-box-content p {
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   2. Main Split Catalog Layout (.jkm-catalog-section)
   -------------------------------------------------------------------------- */
.jkm-catalog-section {
  padding-top: 38px !important;
  padding-bottom: 70px !important;
  background-color: #ffffff;
}

.jkm-catalog-row {
  max-width: 1830px !important;
  align-items: flex-start;
}

/* Left Sticky Sidebar */
.jkm-left-sidebar {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

.jkm-sidebar-heading h1,
.jkm-sidebar-heading h2 {
  padding: 0 0 20px 16px;
  margin: 0 0 18px;
  border-bottom: 2px solid #000000;
  color: #000000;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.jkm-cate-items {
  padding-bottom: 24px;
  border-bottom: 1px solid #dedede;
}

.jkm-cate-items .ux-menu-link__link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 20px !important;
  color: #888888 !important;
  font-size: 15px;
  font-weight: 400;
  border-radius: 6px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.jkm-cate-items .ux-menu-link__link:hover,
.jkm-cate-items .ux-menu-link:first-child .ux-menu-link__link {
  color: #111111 !important;
  font-weight: 600;
  background-color: #f7f7f7;
}

/* Sidebar Editorial Promo Slider */
.jkm-sidebar-slider .box-image img {
  border-radius: 8px;
}

.jkm-sidebar-slider .box-text {
  padding: 12px 4px 4px !important;
  text-align: left !important;
}

.jkm-sidebar-slider .box-text p,
.jkm-sidebar-slider .box-text h4,
.jkm-sidebar-slider .box-text h5 {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  margin-bottom: 0;
  line-height: 1.45;
}

/* Right Main Catalog Area */
.jkm-page-heading h1,
.jkm-page-heading h2 {
  font-size: 30px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  line-height: 1.2;
}

/* Horizontal Category Tabs matching .cate_name_box */
.jkm-cat-tabs > .nav {
  border-bottom: 1px solid #dedede !important;
  margin-bottom: 28px !important;
  gap: 28px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.jkm-cat-tabs > .nav::-webkit-scrollbar {
  display: none;
}

.jkm-cat-tabs > .nav > li {
  margin: 0 !important;
  flex: 0 0 auto;
}

.jkm-cat-tabs > .nav > li > a {
  padding: 0 0 14px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: #999999 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  border: 0 !important;
  background: transparent !important;
  position: relative;
}

.jkm-cat-tabs > .nav > li > a::before,
.jkm-cat-tabs > .nav > li > a::after {
  display: none !important;
}

.jkm-cat-tabs > .nav > li.active > a,
.jkm-cat-tabs > .nav > li > a:hover {
  color: #111111 !important;
  font-weight: 600 !important;
}

.jkm-cat-tabs > .nav > li.active > a {
  box-shadow: inset 0 -2px 0 #111111;
}

.jkm-cat-tabs > .tab-panels {
  padding-top: 4px !important;
}

.jkm-sub-label p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #666666;
  margin-bottom: 14px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. Product Card Styling (both UX Builder Grids & WooCommerce Archive)
   -------------------------------------------------------------------------- */
.jkm-best-grid .badge-container,
.jkm-main-grid .badge-container,
.products .product-small .badge-container {
  display: none !important;
}

.jkm-best-grid .product-small .box-image,
.jkm-main-grid .product-small .box-image,
.products .product-small .box-image {
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.jkm-best-grid .product-small .box-image img,
.jkm-main-grid .product-small .box-image img,
.products .product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sharp Top-Left Pill Badge (matches .sale_icon) */
.jkm-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.jkm-badge-pill.is-collection {
  background-color: #899641;
}

.jkm-badge-pill.is-hot {
  background-color: #733247;
}

/* Card Typography & 2-Line Price Layout */
.jkm-best-grid .product-small .box-text,
.jkm-main-grid .product-small .box-text,
.products .product-small .box-text {
  padding: 14px 2px 10px !important;
  text-align: left !important;
}

.jkm-best-grid .product-title,
.jkm-main-grid .product-title,
.products .product-small .product-title {
  margin-bottom: 8px;
}

.jkm-best-grid .product-title a,
.jkm-main-grid .product-title a,
.products .product-small .product-title a {
  color: #222222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 43px;
}

.jkm-best-grid .price-wrapper .price,
.jkm-main-grid .price-wrapper .price,
.products .product-small .price-wrapper .price {
  display: block;
  margin-top: 2px;
}

.jkm-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jkm-price-regular del {
  color: #999999;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 1 !important;
}

.jkm-price-bottom {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.jkm-dc-pct {
  color: #6e904a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.jkm-price-bottom ins,
.jkm-price-single .woocommerce-Price-amount {
  text-decoration: none;
  background: transparent;
  color: #111111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   4. Pagination & Relay Result Count
   -------------------------------------------------------------------------- */
.ux-relay__pagination,
.woocommerce-pagination {
  margin-top: 32px;
}

.ux-relay__pagination .page-numbers li > span,
.ux-relay__pagination .page-numbers li > a,
.woocommerce-pagination .page-numbers li > span,
.woocommerce-pagination .page-numbers li > a {
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  color: #555555;
  font-size: 13px;
  font-weight: 500;
  min-width: 34px;
  height: 34px;
  line-height: 32px;
}

.ux-relay__pagination .page-numbers li > span.current,
.ux-relay__pagination .page-numbers li > a:hover,
.woocommerce-pagination .page-numbers li > span.current,
.woocommerce-pagination .page-numbers li > a:hover {
  background-color: #111111;
  border-color: #111111;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. Responsive (Tablet & Mobile)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .jkm-left-sidebar {
    position: static;
  }

  .jkm-hero-banner {
    min-height: 46vh;
  }
}

@media (max-width: 767px) {
  .jkm-catalog-section {
    padding-top: 22px !important;
    padding-bottom: 44px !important;
  }

  .jkm-hero-banner {
    min-height: 38vh;
  }

  .jkm-sidebar-heading h1,
  .jkm-sidebar-heading h2 {
    padding: 0 0 12px 4px;
    margin-bottom: 12px;
    font-size: 18px;
  }

  .jkm-cate-items {
    padding-bottom: 12px;
  }

  .jkm-cate-items .ux-menu {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }

  .jkm-cate-items .ux-menu::-webkit-scrollbar {
    display: none;
  }

  .jkm-cate-items .ux-menu-link {
    flex: 0 0 auto;
    border-bottom: 0 !important;
  }

  .jkm-cate-items .ux-menu-link__link {
    padding: 6px 14px !important;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    min-height: 32px;
    font-size: 13px;
  }

  .jkm-sidebar-slider {
    display: none;
  }

  .jkm-page-heading h1,
  .jkm-page-heading h2 {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .jkm-cat-tabs > .nav {
    gap: 18px;
    margin-bottom: 18px !important;
  }

  .jkm-cat-tabs > .nav > li > a {
    font-size: 14.5px !important;
    padding-bottom: 10px !important;
  }

  .jkm-dc-pct,
  .jkm-price-bottom ins,
  .jkm-price-single .woocommerce-Price-amount {
    font-size: 15px;
  }

  .jkm-price-regular del {
    font-size: 12.5px;
  }
}
