/* Shark City Bites — Product Detail Page */

.pd-breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pd-breadcrumb a { color: #64748b; text-decoration: none; }
.pd-breadcrumb a:hover { color: #0ea5e9; text-decoration: underline; }
.pd-breadcrumb-sep { color: #cbd5e1; }

.pd-hero {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .pd-hero { grid-template-columns: 1fr; gap: 24px; }
}

.pd-image-block {
  border-radius: 16px;
  overflow: hidden;
  background: var(--border, #e2e8f0);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  line-height: 1;
}

.pd-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.pd-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
}

.pd-name {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}

.pd-brand { font-size: .92rem; color: #64748b; margin: 0; }
.pd-oz    { font-size: .88rem; color: #94a3b8; margin: 0; }

.pd-price {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pd-qty-label {
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
  min-width: 56px;
}

.pd-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.pd-qty-btn {
  width: 36px;
  height: 36px;
  background: #f8fafc;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s;
}
.pd-qty-btn:hover { background: #e0f2fe; color: #0ea5e9; }

.pd-qty-val {
  min-width: 40px;
  text-align: center;
  font-size: .97rem;
  font-weight: 700;
  color: #0f172a;
  border: none;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 6px 4px;
}

.pd-add-btn {
  padding: 14px 32px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.pd-add-btn:hover { background: #0369a1; }
.pd-add-btn:active { transform: scale(.97); }
.pd-add-btn.added { background: #10b981; }

.pd-description {
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.pd-description h2 { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.pd-description p  { font-size: .97rem; color: #475569; line-height: 1.6; margin: 0; max-width: 640px; }

/* Related products strip */
.pd-related {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px 64px;
}
.pd-related-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  letter-spacing: -.01em;
}
.pd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pd-rel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,.07);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.pd-rel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,23,42,.12); }

.pd-rel-img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.pd-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-rel-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pd-rel-name { font-size: .88rem; font-weight: 600; color: #0f172a; line-height: 1.3; }
.pd-rel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.pd-rel-price { font-size: .97rem; font-weight: 700; color: #0f172a; }
.pd-rel-add {
  padding: 5px 11px;
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.pd-rel-add:hover { background: #0369a1; }
.pd-rel-add.added { background: #10b981; }

/* Added-to-cart toast */
.pd-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  z-index: 400;
}
.pd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pd-breadcrumb, .pd-hero, .pd-description, .pd-related { padding-left: 16px; padding-right: 16px; }
  .pd-name { font-size: 1.4rem; }
  .pd-add-btn { width: 100%; }
}
