/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES (ISOLATED NAMESPACE: sp-*)
   ========================================================================== */

.sp-section {
  padding: 40px 0 0 0;
  background-color: #ffffff;
}

/* Breadcrumb Navigation */
.sp-breadcrumbs {
  font-family: var(--font-body);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  color: #565656;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 52px;
}

.sp-breadcrumbs a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-breadcrumbs a:hover {
  color: var(--color-primary, var(--color-primary));
}

.sp-breadcrumbs .sp-sep {
  margin: 0 10px;
}

.sp-breadcrumbs .sp-current {
  color: #836649;
}

/* Product Gallery */
.sp-gallery-wrapper {
  display: flex;
  gap: 30px;
  height: 100%;
}

.sp-thumb-col {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-thumb-item {
  width: 108px;
  height: 132px;
  overflow: hidden;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  background-color: #f7f7f7;
}

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

.sp-thumb-item:hover,
.sp-thumb-item.active {
  border-color: #111111;
}

.sp-main-col {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.sp-main-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info Right Column */
.sp-info-col {
  padding-left: 20px;
}

.sp-code {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 29px;
}

.sp-title {
  font-family: var(--font-body);
  margin-top: 3px;
  margin-bottom: 3px;
  color: var(--color-black);
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 32px;
}

/* Price Box */
.sp-price-box {
  display: flex;
  align-items: baseline;
  margin-bottom: 7px;
  gap: 18px;
}

.sp-price-main {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 35.379px;
  font-style: normal;
  font-weight: 600;
  line-height: 57px;
}

.sp-price-old {
  font-family: var(--font-body);
  text-decoration: line-through;
  margin-left: 12px;
  color: #939393;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 29px;
  text-decoration-line: line-through;
}

.sp-tax-note {
  font-family: var(--font-body);
  margin-bottom: 18px;
  color: #6B6969;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 29px;
}

/* Option Labels */
.sp-option-label {
  font-family: var(--font-body);
  margin-bottom: 6px;
  display: block;
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Size Boxes */
.sp-sizes-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sp-size-box {
  min-width: 42px;
  height: 40px;
  padding: 9px 12px;
  border: 1px solid #D9C7B4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #ffffff;
  user-select: none;
  position: relative;
  color: var(--color-black);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.sp-size-box:hover {
  border-color: #D9C7B4;
}

.sp-size-box.active {
  background-color: #D9C7B4;
  font-weight: 500;
}

.sp-size-box.disabled {
  color: #aaaaaa;
  background-color: #fafafa;
  border-color: #eeeeee;
  cursor: not-allowed;
}

.sp-size-box.disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 1px;
  background-color: #888888;
  transform: rotate(-30deg);
}

/* Size Selection Error Message */
.sp-size-error {
  display: inline-flex;
  align-items: center;
  color: #c53125;
  background-color: #fdf3f2;
  border: 1px solid #f8d7da;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  margin-top: -20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(197, 49, 37, 0.06);
}

.sp-size-error.d-none {
  display: none !important;
}

/* Quantity Counter */
.sp-qty-row {
  margin-bottom: 24px;
}

.sp-qty-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.sp-qty-btn {
  width: 42px;
  height: 39px;
  border: 1px solid #D9C7B4;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.sp-qty-btn:hover {
  background-color: rgba(217, 199, 180, 0.25);
}

.sp-qty-input {
  width: 42px;
  height: 39px;
  border: 1px solid #D9C7B4;
  background: rgba(217, 199, 180, 0.25);
  text-align: center;
  font-family: var(--font-body);
  outline: none;
  color: var(--color-black);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Trust Badges Row */
.sp-trust-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  text-align: center;
}

.sp-badge-item {
  flex: 1;
  padding: 0 10px;
  border-right: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #333333;
  line-height: 1.35;
}

.sp-badge-item:first-child {
  padding-left: 0;
}

.sp-badge-item:last-child {
  border-right: none;
}

.sp-badge-icon {
  margin-bottom: 6px;
  color: var(--color-primary, var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-badge-item span {
  color: var(--color-black);
  text-align: center;
  font-family: var(--font-body);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}

/* Action Buttons */
.sp-actions-row {
  display: flex;
  gap: 28px;
}

.sp-btn-cart {
  flex: 1;
  background-color: var(--color-black);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  border: 1px solid #000;
  background: #000;
}

.sp-btn-cart:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-black);
}

.sp-btn-buy {
  flex: 1;
  height: 50px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-btn-buy:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Tabbed Detail Section */
.sp-tabs-container {
  margin-top: 80px;
}

.sp-tabs-nav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  gap: 40px;
  margin-bottom: 28px;
  justify-content: space-between;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.sp-tabs-nav::-webkit-scrollbar {
  display: none !important;
  /* Chrome, Safari, Opera */
  width: 0 !important;
  height: 0 !important;
}

.sp-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 0;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  margin-bottom: -1px;
  white-space: nowrap;
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}

.sp-tab-btn:hover {
  color: var(--color-primary-dark);
}

.sp-tab-btn.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.sp-tab-pane {
  display: none;
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.sp-tab-pane,
.sp-tab-pane p {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.sp-tab-pane.active {
  display: block;
}

/* Related Products Section */
.sp-related-section {
  padding: 60px 0 80px 0;
}

.sp-related-title {
  margin-top: 0;
  margin-bottom: 28px;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
  .sp-info-col {
    margin-top: 32px !important;
  }

  .sp-gallery-wrapper {
    flex-direction: column-reverse;
  }

  .sp-thumb-col {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .sp-thumb-item {
    width: 80px;
    height: 100px;
    flex-shrink: 0;
  }

  .sp-main-col {
    min-height: 380px;
  }

  .sp-trust-badges {
    flex-wrap: wrap;
    gap: 16px;
  }

  .sp-badge-item {
    flex: 1 0 40%;
    border-right: none;
  }

  .sp-tabs-nav {
    gap: 24px;
    justify-content: flex-start;
  }

  .sp-tab-pane * {
    font-size: 14px;
  }

  .sp-tab-btn {
    font-size: 14px;
  }

  .sp-breadcrumbs {
    font-size: 14px;
    line-height: 24px;
  }

  .sp-price-box {
    gap: 8px;
  }
}