/* Product detail page redesign — app/(storefront)/product/[slug]/page.tsx. */
.sw-pd-breadcrumb-strip {
  /* Hidden sitewide per explicit request — no breadcrumbs on any page. Kept
     as `display: none` rather than removing every page's JSX (dozens of
     storefront pages render this strip) so a future request to bring it
     back is a one-line revert instead of re-adding markup everywhere. */
  display: none;
  position: relative;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.sw-pd-breadcrumb-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 22, 28, 0.72), rgba(20, 22, 28, 0.35));
}
.sw-pd-breadcrumb {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  margin: 0;
  color: #eee;
  font-size: 13px;
}
.sw-pd-breadcrumb a {
  color: #eee;
}
.sw-pd-breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.sw-pd-breadcrumb .current {
  color: var(--sw-primary-light);
  font-weight: 600;
}

.sw-pd-gallery {
  display: flex;
  gap: 12px;
}
.sw-pd-thumb-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 64px;
}
.sw-pd-thumb-rail-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sw-pd-thumb-rail-scroll::-webkit-scrollbar {
  display: none;
}
.sw-pd-thumb-scroll-btn {
  border: none;
  background: #f5f5f5;
  color: #777;
  width: 100%;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.sw-pd-thumb-scroll-btn:hover {
  background: #eee;
}
.sw-pd-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f8fa;
  cursor: pointer;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.sw-pd-thumb.active {
  border-color: var(--sw-primary);
}
.sw-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-pd-main-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fa;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  position: relative;
}
.sw-pd-main-image img {
  transition: transform 0.25s ease;
}
.sw-pd-main-image:hover img {
  transform: scale(1.06);
}
.sw-pd-lightbox-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}
.sw-pd-lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.sw-pd-lightbox-nav button {
  border: 1px solid var(--sw-border);
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.sw-pd-lightbox-nav button:hover {
  background: #f5f5f5;
}

@media (min-width: 900px) {
  .sw-pd-info-panel {
    position: sticky;
    top: 96px;
    align-self: flex-start;
  }
}

.sw-pd-stock-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}
.sw-pd-stock-badge.in-stock {
  background: rgba(30, 158, 92, 0.12);
  color: var(--sw-success);
}
.sw-pd-stock-badge.out-of-stock {
  background: rgba(192, 57, 43, 0.1);
  color: var(--sw-error);
}
.sw-pd-cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
  background: rgba(30, 158, 92, 0.12);
  color: var(--sw-success);
}

.sw-pd-share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sw-pd-share span {
  font-size: 13px;
  color: #777;
}
.sw-pd-share-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}
.sw-pd-share-btn.facebook {
  background: #3b5998;
}
.sw-pd-share-btn.twitter {
  background: #1da1f2;
}
.sw-pd-share-btn:hover {
  opacity: 0.85;
}

.sw-pd-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.sw-pd-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #eee;
  margin-top: 8px;
}
.sw-pd-tab {
  background: none;
  border: none;
  padding: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: #999;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}
.sw-pd-tab.active {
  color: #111;
  border-bottom-color: var(--sw-primary);
}

.sw-pd-section {
  border-top: 1px solid #eee;
  padding: 32px 0;
}
.sw-pd-section:first-child {
  border-top: none;
}
.sw-pd-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 18px;
}

.sw-pd-additional-info {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
}
.sw-pd-additional-info tr {
  border-bottom: 1px solid #f0f0f0;
}
.sw-pd-additional-info td {
  padding: 10px 12px 10px 0;
  font-size: 14px;
}
.sw-pd-additional-info td:first-child {
  color: #888;
  width: 160px;
}
.sw-pd-additional-info td:last-child {
  color: #222;
  font-weight: 500;
}
