@charset "utf-8";

/* Homepage product categories — index-sv-items */
.index-sv-items {
  position: relative;
  overflow: visible;
  padding: 32px 15px 24px !important;
  background: linear-gradient(180deg, #f4f6f9 0%, #ffffff 100%);
}

.index-sv-items::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #EE4547;
  border-radius: 2px;
}

.index-sv-items .sv-section-head {
  text-align: center;
  margin-bottom: 24px;
}

.index-sv-items .sv-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.3;
}

.index-sv-items .sv-section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #EE4547;
  margin: 10px auto 0;
  border-radius: 2px;
}

.index-sv-items .layout {
  position: relative;
}

.index-sv-items .layout > ul.sv-grid {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: sv-cat;
  box-sizing: border-box;
  /* Collapse whitespace text nodes between <li> (flex anonymous items) */
  font-size: 0;
  line-height: 0;
}

.index-sv-items .layout > ul.sv-grid::before,
.index-sv-items .layout > ul.sv-grid::after {
  display: none !important;
  content: none !important;
}

.index-sv-items .layout > ul.sv-grid > li.sv-item {
  float: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 20, 25, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  transform: none !important;
  -webkit-transform: none !important;
  opacity: 1 !important;
  animation: none !important;
  outline: none !important;
  counter-increment: sv-cat;
  text-align: left !important;
  transition-duration: 0.35s !important;
  box-sizing: border-box;
  font-size: 14px;
  line-height: normal;
}

.index-sv-items .layout > ul.sv-grid > li.sv-item:hover {
  transform: translateY(-4px) !important;
  -webkit-transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(15, 20, 25, 0.12);
  border-color: rgba(238, 69, 71, 0.2);
  outline: none !important;
}

.index-sv-items .sale-info {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 100% !important;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e8ecf0;
}

.index-sv-items .sale-info::before {
  display: none !important;
  content: none !important;
}

.index-sv-items .sale-info a {
  display: block;
  width: 100%;
  height: 100%;
}

.index-sv-items .sale-info img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.index-sv-items .layout > ul.sv-grid > li.sv-item:hover .sale-info img {
  transform: scale(1.08) !important;
  -webkit-transform: scale(1.08) !important;
  -moz-transform: scale(1.08) !important;
  -ms-transform: scale(1.08) !important;
  -o-transform: scale(1.08) !important;
}

.index-sv-items .sale-hide {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.index-sv-items .layout > ul.sv-grid > li.sv-item:hover .sale-hide {
  opacity: 1 !important;
  transform: none !important;
  -webkit-transform: none !important;
}

.index-sv-items .sv-tit {
  position: relative;
  padding: 36px 18px 16px !important;
  margin: 0 !important;
  border-bottom: none !important;
  line-height: 1.45 !important;
  font-size: 14px !important;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0.01em;
  pointer-events: auto;
}

.index-sv-items .sv-item:hover .sale-hide .sv-tit {
  display: block !important;
  margin-top: 0 !important;
  text-align: left !important;
}

.index-sv-items .sv-tit,
.index-sv-items .sv-tit a {
  color: #fff !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

.index-sv-items .sv-tit a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.index-sv-items .sv-tit a::after {
  content: '\f178';
  font-family: FontAwesome;
  font-size: 12px;
  font-weight: normal;
  color: #EE4547;
  background: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.index-sv-items .layout > ul.sv-grid > li.sv-item:hover .sv-tit a::after {
  opacity: 1;
  transform: translateX(0);
}

.index-sv-items .sv-desc {
  display: none;
}

.index-sv-items .sv-item:hover .sv-ico,
.index-sv-items .sv-item:hover .sv-ico img {
  transform: none !important;
}

/* Mobile: 2 per row */
@media screen and (max-width: 768px) {
  .index-sv-items {
    padding: 28px 15px 32px !important;
  }

  .index-sv-items .sv-section-head {
    margin-bottom: 20px;
  }

  .index-sv-items .sv-section-head h2 {
    font-size: 20px;
  }

  .index-sv-items .layout > ul.sv-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px 0 !important;
  }

  .index-sv-items .layout > ul.sv-grid > li.sv-item {
    flex: 0 0 calc(50% - 7px) !important;
    width: calc(50% - 7px) !important;
    max-width: calc(50% - 7px) !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .index-sv-items .sv-tit {
    font-size: 12px !important;
    padding: 28px 12px 12px !important;
  }

  .index-sv-items .sv-tit a::after {
    opacity: 1;
    transform: translateX(0);
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

@media screen and (max-width: 480px) {
  .index-sv-items .layout > ul.sv-grid {
    gap: 10px 0 !important;
  }

  .index-sv-items .layout > ul.sv-grid > li.sv-item {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }

  .index-sv-items .sv-tit {
    font-size: 11px !important;
    padding: 22px 8px 10px !important;
  }
}

/* Desktop: 1 row, 4 columns */
@media screen and (min-width: 769px) {
  .index-sv-items .layout > ul.sv-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 12px !important;
  }

  .index-sv-items .layout > ul.sv-grid > li.sv-item {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
  .index-sv-items .layout > ul.sv-grid {
    gap: 12px !important;
  }

  .index-sv-items .sv-tit {
    font-size: 12px !important;
    padding: 24px 10px 12px !important;
  }

  .index-sv-items .sv-tit a::after {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
}

/* Kill legacy style.css float/width rules */
@media screen and (max-width: 768px) {
  section.index-sv-items .layout > ul.sv-grid > li.sv-item {
    width: calc(50% - 7px) !important;
    max-width: calc(50% - 7px) !important;
    float: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
}

@media screen and (min-width: 769px) {
  section.index-sv-items .layout > ul.sv-grid > li.sv-item {
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
}
