.section-soft {
  background: var(--ep-soft);
}

.section-gap {
  padding: 72px 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--ep-blue) 0%, var(--ep-blue-2) 100%);
  padding: 76px 0 54px;
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ep-gold);
}

.detail-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.detail-hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 1.02rem;
  max-width: 760px;
  margin-bottom: 0;
}

.panel,
.spec-card,
.related-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
}

.gallery-main {
  height: 520px;
  border-radius: 28px;
  background: #eef3f8;
  overflow: hidden;
  box-shadow: var(--ep-shadow);
  border: 1px solid var(--ep-border);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}

.thumb-item {
  height: 95px;
  border-radius: 18px;
  border: 1px solid var(--ep-border);
  background: #eef3f8;
  overflow: hidden;
  cursor: pointer;
  transition: .25s ease;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.thumb-item:hover,
.thumb-item.active {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  border-color: rgba(249, 185, 27, .45);
}

.product-panel {
  padding: 1.7rem;
  height: 100%;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .72rem;
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid var(--ep-border);
  font-size: .82rem;
  color: #46505f;
  font-weight: 600;
}

.product-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: .85rem;
}

.lead-copy {
  color: var(--ep-muted);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 1.4rem;
}

.price-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ep-blue);
  line-height: 1;
}

.price small {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ep-muted);
}

.old-price {
  color: #a1a7b0;
  text-decoration: line-through;
  font-weight: 700;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(44, 170, 104, .1);
  color: #1e8f57;
  border: 1px solid rgba(44, 170, 104, .14);
  font-weight: 700;
  font-size: .88rem;
}

.mini-info {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 1.5rem;
}

.mini-info li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .78rem 0;
  border-top: 1px dashed rgba(0, 0, 0, .08);
  font-size: .95rem;
}

.mini-info li:first-child {
  border-top: 0;
  padding-top: 0;
}

.mini-info span:first-child {
  color: var(--ep-muted);
  font-weight: 600;
}

.mini-info span:last-child {
  text-align: right;
  color: #243041;
  font-weight: 700;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 46px;
  height: 46px;
  border: 0;
  background: #f7f8fb;
  font-size: 1.2rem;
  font-weight: 800;
  color: #27303b;
}

.qty-input {
  width: 72px;
  height: 46px;
  border: 0;
  text-align: center;
  font-weight: 700;
  outline: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-2));
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: .95rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(228, 171, 36, .24);
}

.btn-gold:hover {
  color: #fff;
  filter: brightness(.98);
}

.btn-soft {
  background: #f6f7fb;
  border: 1px solid var(--ep-border);
  color: #2d3440;
  font-weight: 600;
  border-radius: 14px;
  padding: .95rem 1.1rem;
}

.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fb;
  color: var(--ep-blue);
  font-size: 1.2rem;
  flex: 0 0 auto;
  border: 1px solid var(--ep-border);
}

.spec-card {
  padding: 1.4rem;
  height: 100%;
}

.spec-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.spec-title h5 {
  margin: 0;
  font-weight: 800;
}

.spec-card p,
.spec-card li {
  color: var(--ep-muted);
  line-height: 1.85;
  margin-bottom: 0;
}

.detail-tabs .nav-link {
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  color: #253041;
  font-weight: 700;
  padding: .9rem 1rem;
  background: #fff;
}

.detail-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--ep-gold), var(--ep-gold-2));
  border-color: transparent;
  color: #fff;
}

.tab-panel {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .05);
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table tr:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.detail-table th,
.detail-table td {
  padding: 1rem .25rem;
  vertical-align: top;
}

.detail-table th {
  width: 240px;
  color: var(--ep-muted);
  font-weight: 700;
}

.detail-table td {
  color: #26313f;
  font-weight: 600;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: .8rem;
}

.muted-text {
  color: var(--ep-muted);
  line-height: 1.8;
}

.related-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.related-slider-shell {
  position: relative;
}

.related-slider-wrap {
  overflow: hidden;
}

.related-slider {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.related-slider::-webkit-scrollbar {
  display: none;
}

.related-slide {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: calc(25% - 1.125rem);
}

.related-card {
  position: relative;
  padding: 1rem;
  transition: .3s ease;
  height: 100%;
  overflow: hidden;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ep-shadow);
}

.related-card .product-offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: inline-flex !important;
}

.related-thumb {
  height: 180px;
  border-radius: 20px;
  background: #eef3f8;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--ep-border);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.related-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: .45rem;
}

.related-arrow-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ep-gold);
  border-radius: 14px;
  background: var(--ep-gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  transition: .25s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.related-arrow-btn-prev {
  left: -75px;
}

.related-arrow-btn-next {
  right: -75px;
}

.related-arrow-btn:hover {
  background: var(--ep-black);
  border-color: var(--ep-black);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .related-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
  }

  .related-arrow-btn-prev {
    left: -12px;
  }

  .related-arrow-btn-next {
    right: -12px;
  }
}

@media (max-width: 991.98px) {
  .gallery-main {
    height: 420px;
  }

  .related-slide {
    flex: 0 0 calc(50% - .75rem);
    min-width: calc(50% - .75rem);
  }

  .related-arrow-btn {
    width: 42px;
    height: 42px;
  }

  .related-arrow-btn-prev {
    left: -8px;
  }

  .related-arrow-btn-next {
    right: -8px;
  }
}

@media (max-width: 575.98px) {
  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-main {
    height: 320px;
  }

  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
    padding: .65rem 0;
  }

  .detail-table th {
    padding-bottom: .2rem;
  }

  .related-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .related-slider-shell {
    padding: 0 52px;
  }

  .related-arrow-btn {
    width: 40px;
    height: 40px;
  }

  .related-arrow-btn-prev {
    left: 0;
  }

  .related-arrow-btn-next {
    right: 0;
  }

  .related-card .product-offer-badge {
    top: 12px;
    left: 12px;
  }
}


@media (max-width: 1024px) {
    .related-arrow-btn-prev{
        left:40%;
        
    }
    .related-arrow-btn-next {
        right: 40%;
    }
    .related-arrow-btn{
        top:100%;
        transform: translateY(0%);
    }
}


.main-sale-product{
    top:0;
    left:1rem;
    width:200px;
}