/* ===== RESET & GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
  flex: 1;
  width: 100%;
}

/* ===== HEADER ===== */
.header {
  background: #1e2530;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}

.logo span {
  color: #f59e0b;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  max-width: 720px;
  height: 42px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #334155;
  background: transparent;
}

.search-bar input::placeholder {
  color: #94a3b8;
}

.search-bar button {
  width: 62px;
  height: 100%;
  border: none;
  background: #f59e0b;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #d97706;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 32px;
  padding: 0 28px 16px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.nav a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: #f59e0b;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #2563eb;
}

.breadcrumb .sep {
  color: #cbd5e1;
}

.breadcrumb .current {
  color: #0f172a;
  font-weight: 600;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  background: #ffffff;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 56px;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }
}

/* ===== GALLERY ===== */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Slider --- */
.slider {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 1 / 1;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f1f5f9;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.slider-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active {
  background: #f59e0b;
  transform: scale(1.3);
}

/* --- Thumbnail Strip --- */
.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.thumb-btn {
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.thumb-btn.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===== PRODUCT INFO ===== */
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.category-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.product-info h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 14px;
  color: #0f172a;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.rating .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1rem;
}

.rating-text {
  color: #64748b;
}

.lead {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Features */
.features {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.features-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 12px;
}

.features ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.features .check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ===== AMAZON CTA ===== */
.amazon-btn-wrapper {
  margin-top: auto;
  padding-top: 8px;
}

.amazon-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.amazon-link:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

.amazon-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.affiliate-note {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 8px;
}

/* ===== RELATED SECTION ===== */
.related-section {
  margin-bottom: 60px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.section-head span {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 999px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.related-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #eef2f7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.related-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #f1f5f9;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.related-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  transition: transform 0.35s ease;
}

.related-card:hover .thumb img {
  transform: scale(1.06);
}

.related-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 6px;
}

.related-card .rating-small {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 14px;
}

.related-card .rating-small .stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.related-card .btn-view {
  margin-top: auto;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.83rem;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.related-card .btn-view:hover {
  background: #1d4ed8;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background: #1e2530;
  color: #ffffff;
  text-align: center;
  padding: 40px 24px 44px;
  margin-top: 40px;
}

.footer__logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer__logo span {
  color: #f59e0b;
}

.footer__copy {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 400;
}

/* --- Floating Toolbar --- */
.float-toolbar {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, 42px);
  grid-template-rows: repeat(2, 42px);
  gap: 4px;
  background: #2a3340;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.tool-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: #353f4d;
  color: #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.tool-btn:hover {
  background: #f59e0b;
  color: #ffffff;
  transform: translateY(-1px);
}

.tool-btn