/* ==========================================================================
   KDK VIETNAM — DETAIL PAGES CSS (Product & Post)
   Premium layout with sidebar, highlights, tabs, related items
   ========================================================================== */

/* ---- PAGE HERO BREADCRUMB ---- */
.dp-page-hero {
  padding: 64px 0 48px;
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  position: relative;
  overflow: hidden;
}

.dp-page-hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(237,27,36,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.dp-hero-inner { position: relative; z-index: 1; }

.dp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.dp-breadcrumb a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.dp-breadcrumb a:hover { color: var(--accent-pink); }

.dp-bread-sep {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}

.dp-page-title {
  font-size: clamp(22px, 3.5vw, 36px);
  color: var(--white) !important;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  max-width: 820px;
}

/* POST META */
.dp-post-hero { padding-bottom: 32px; }

.dp-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
}

.dp-post-meta span { display: flex; align-items: center; gap: 6px; }
.dp-post-meta i { color: var(--accent-pink); }

/* FEATURED IMAGE CONTAINER IN ARTICLE */
.dp-post-featured-image-container {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

.dp-post-featured-image {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
}

/* ---- MAIN LAYOUT ---- */
.dp-main-section {
  padding: 60px 0 80px;
  background: var(--bg-page);
}

.dp-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.dp-content,
.dp-sidebar {
  min-width: 0;
  max-width: 100%;
}

/* ---- PRODUCT GALLERY + SUMMARY CARD ---- */
.dp-top-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 36px;
}

.dp-top-card-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}

.dp-top-card-full {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
}

.dp-gallery-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dp-summary-col {
  min-width: 0;
}

/* GALLERY */
.dp-main-img-box {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 360px;
  background: #0f1218;
  border-radius: var(--radius-lg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
}

.dp-main-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dp-main-img-box:hover img { transform: scale(1.05); }

.dp-zoom-overlay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border-radius: 6px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  opacity: 0.85;
  transition: all 0.25s ease;
  pointer-events: none;
}

.dp-main-img-box:hover .dp-zoom-overlay {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--primary);
  border-color: var(--primary);
}

.dp-thumbs-strip {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dp-thumb-btn {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 4px;
  background: var(--bg-light);
  cursor: pointer;
  transition: border-color 0.2s;
}

.dp-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dp-thumb-btn.active,
.dp-thumb-btn:hover {
  border-color: var(--primary);
}

/* SUMMARY COL */
.dp-summary-col {
  display: flex;
  flex-direction: column;
}

/* Category pills */
.dp-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dp-cat-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  gap: 5px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(237,27,36,0.2);
  border-radius: 6px;
}

.dp-product-name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--text-dark) !important;
  line-height: 1.3;
  margin-bottom: 16px;
}

.dp-sku {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* PRICE */
.dp-price-wrap {
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid rgba(237,27,36,0.15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.dp-price-val {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-dark);
}

.dp-price-call {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HIGHLIGHTS GRID */
.dp-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.dp-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  line-height: 1.5;
}

.dp-highlight-item i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

/* SHORT DESC */
.dp-short-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
}

/* CTA BUTTONS */
.dp-cta-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 20px;
}

.dp-cta-group .btn {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.dp-cta-main {
  flex: 1;
}

/* SHARE ROW */
.dp-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.dp-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.dp-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff !important;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.dp-share-btn i,
.dp-share-btn svg {
  color: #fff !important;
  fill: #fff !important;
  line-height: 1;
}

.dp-share-btn:hover { transform: scale(1.15); box-shadow: 0 4px 14px rgba(0,0,0,0.25); color: #fff !important; }
.dp-share-btn.facebook  { background: #1877f2; }
.dp-share-btn.linkedin  { background: #0a66c2; }
.dp-share-btn.twitter   { background: #111111; }
.dp-share-btn.copy-link { background: #64748b; }
.dp-share-btn.copy-link.copied { background: #16a34a; }

/* ---- TABS CARD ---- */
.dp-tabs-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 32px;
}

.dp-tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-light);
}

.dp-tab-btn {
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, border-color 0.2s;
}

.dp-tab-btn:hover { color: var(--primary); }

.dp-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white);
}

.dp-tab-pane {
  display: none;
  padding: 36px;
}

.dp-tab-pane.active { display: block; }

/* Entry content styling */
.dp-entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
}

.dp-entry-content h1,
.dp-entry-content h2,
.dp-entry-content h3,
.dp-entry-content h4 {
  color: var(--text-dark) !important;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.dp-entry-content h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.dp-entry-content h3 { font-size: 19px; }
.dp-entry-content h4 { font-size: 16px; }

.dp-entry-content p { margin-bottom: 18px; }

.dp-entry-content ul,
.dp-entry-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.dp-entry-content li { margin-bottom: 8px; }

.dp-entry-content strong { color: var(--text-dark); font-weight: 700; }

.dp-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 24px 0;
  box-shadow: var(--shadow-card);
  display: block;
}

.dp-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.dp-entry-content table th,
.dp-entry-content table td {
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.dp-entry-content table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-dark);
}

.dp-entry-content table tr:nth-child(even) td {
  background: #fafbfc;
}

/* SPECS */
.dp-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dp-specs-table th,
.dp-specs-table td {
  padding: 12px 18px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.dp-specs-table th {
  background: var(--bg-light);
  width: 36%;
  font-weight: 700;
  color: var(--text-dark);
}

.dp-specs-table tr:nth-child(even) td {
  background: #fafbfc;
}

.dp-section-sub {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dp-section-sub i { color: var(--primary); }

/* ---- RELATED SECTION ---- */
.dp-related-section { margin-bottom: 0; }

.dp-related-section-head {
  margin-bottom: 24px;
}

.dp-related-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--grad-primary);
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* Product related grid & slider */
.dp-related-slider-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 6px 2px 16px;
}

.dp-related-slider {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  width: 100%;
}

.dp-related-slider .product-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  box-sizing: border-box;
  margin: 0;
}

.dp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dp-related-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.dp-related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(237,27,36,0.35);
}

.dp-related-card-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 160px;
  background: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.dp-related-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s;
}

.dp-related-card:hover .dp-related-card-img-wrap img { transform: scale(1.08); }

.dp-related-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  background: var(--grad-primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.dp-related-card-body {
  padding: 16px;
}

.dp-related-card-body h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.dp-related-card-body h4 a { color: var(--text-dark); }
.dp-related-card-body h4 a:hover { color: var(--primary); }

.dp-related-card-btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 7px 14px;
}

/* Post related grid */
.dp-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dp-post-related-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dp-post-related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.dp-post-rc-img-wrap {
  display: block;
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.dp-post-rc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.dp-post-related-card:hover .dp-post-rc-img-wrap img { transform: scale(1.06); }

.dp-post-rc-body { padding: 18px; }

.dp-post-rc-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dp-post-rc-date i { color: var(--primary); }

.dp-post-rc-body h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
}

.dp-post-rc-body h4 a { color: var(--text-dark); }
.dp-post-rc-body h4 a:hover { color: var(--primary); }

.dp-post-rc-body p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ---- ARTICLE CARD ---- */
.dp-article-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  padding: 44px;
  margin-bottom: 28px;
}

.dp-article-lead {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--text-body);
  padding: 18px 22px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

/* POST TAGS */
.dp-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.dp-post-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 6px;
  border: 1px solid rgba(237,27,36,0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dp-post-tag i { font-size: 10px; }

/* AUTHOR BOX */
.dp-author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  margin-bottom: 32px;
}

.dp-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary-light);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.dp-author-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 8px;
}

.dp-author-info p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ---- SIDEBAR ---- */
.dp-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dp-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.dp-sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-sidebar-title i { color: var(--primary); }

/* CTA sidebar */
.dp-sidebar-cta {
  background: linear-gradient(145deg, #1a1d24, #0e1117);
  border-color: var(--dark-border);
  text-align: center;
}

.dp-sidebar-cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.dp-sidebar-cta h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white) !important;
  margin-bottom: 10px;
}

.dp-sidebar-cta p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* CATEGORY LINKS */
.dp-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dp-sidebar-cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.dp-sidebar-cat-link:hover,
.dp-sidebar-cat-link.dp-cat-all {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: rgba(237,27,36,0.2);
}

.dp-sidebar-cat-link i { color: var(--primary); font-size: 13px; }

/* RELATED LIST in sidebar */
.dp-related-list,
.dp-related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-related-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.dp-related-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dp-related-img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.dp-related-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dp-related-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dp-related-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-related-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* RELATED POST LIST */
.dp-related-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.dp-related-post-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dp-related-post-img {
  width: 68px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dp-related-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-related-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dp-related-post-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dp-related-post-date {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dp-related-post-date i { color: var(--primary); font-size: 10px; }

/* SIDEBAR PRODUCTS */
.dp-sidebar-products { display: flex; flex-direction: column; gap: 12px; }

.dp-sidebar-product-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.dp-sidebar-product-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dp-sidebar-prod-img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.dp-sidebar-prod-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dp-sidebar-prod-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* PDF SIDEBAR */
.dp-sidebar-pdf {
  text-align: center;
  border: 1px dashed rgba(237,27,36,0.3);
  background: #fff8f8;
}

.dp-pdf-icon {
  font-size: 40px;
  color: var(--primary);
  display: block;
  margin-bottom: 12px;
}

.dp-sidebar-pdf h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.dp-sidebar-pdf p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* SIDEBAR SEARCH */
.dp-sidebar-search {
  display: flex;
  gap: 8px;
}

.dp-sidebar-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
}

.dp-sidebar-input:focus { border-color: var(--primary); }

.dp-sidebar-search-btn {
  padding: 10px 14px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s;
}

.dp-sidebar-search-btn:hover { transform: scale(1.08); }

/* FOOTER EXTRAS */
.footer-top-bar {
  background: var(--grad-primary);
  padding: 14px 0;
}

.footer-top-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-top-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-top-text i { font-size: 16px; }

.footer-main {
  background: var(--dark-surface);
  padding: 60px 0 40px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
}

.footer-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-input:focus { border-color: var(--primary); }

.footer-form-btn { flex-shrink: 0; }

.footer-cert-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cert-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.75);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-badge i { color: var(--accent-pink); }

/* ---- GSAP animation hooks ---- */
.gsap-fade-up { opacity: 0; transform: translateY(30px); }
.gsap-slide-up { opacity: 0; transform: translateY(20px); }

/* TABLE OF CONTENTS (ToC) FOR SEO */
.dp-toc {
  background: #fdfdfd;
  border: 1px solid rgba(237, 27, 36, 0.12);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.dp-toc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.dp-toc-title i {
  color: var(--primary);
  margin-right: 8px;
}

.dp-toc-toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 8px;
  outline: none;
}

.dp-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dp-toc-list.hidden {
  display: none;
}

.dp-toc-item a {
  color: var(--text-body);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.45;
  display: inline-block;
}

.dp-toc-item a:hover {
  color: var(--primary);
}

.dp-toc-h2 {
  font-weight: 600;
}

.dp-toc-h3 {
  padding-left: 18px;
  position: relative;
}

.dp-toc-h3::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--text-muted);
}

.dp-toc-h4 {
  padding-left: 36px;
  position: relative;
  font-size: 13.5px;
}

.dp-toc-h4::before {
  content: "-";
  position: absolute;
  left: 24px;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .dp-layout { grid-template-columns: 1fr; }
  .dp-sidebar { position: static; }
  .dp-related-slider { grid-auto-columns: calc(50% - 8px); }
}

@media (max-width: 768px) {
  .dp-main-section {
    padding: 24px 0 40px !important;
  }

  .dp-top-card {
    padding: 20px 16px !important;
    gap: 20px !important;
    border-radius: var(--radius-lg) !important;
  }

  .dp-top-card-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .dp-gallery-col {
    width: 100% !important;
  }

  .dp-main-img-box {
    width: 100% !important;
    min-height: unset !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-height: 380px !important;
    border-radius: var(--radius-md) !important;
  }

  .dp-thumbs-strip {
    margin-top: 10px !important;
    gap: 8px !important;
  }

  .dp-thumb-btn {
    width: 58px !important;
    height: 58px !important;
    border-radius: var(--radius-sm) !important;
  }

  .dp-summary-col {
    width: 100% !important;
    padding: 0 !important;
  }

  .dp-product-name {
    font-size: 21px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .dp-price-wrap {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
    border-radius: var(--radius-md) !important;
  }

  .dp-price-call {
    font-size: 14.5px !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    line-height: 1.4 !important;
  }

  .dp-price-call strong {
    white-space: nowrap !important;
    color: var(--primary) !important;
    font-size: 16.5px !important;
  }

  .dp-top-card-full {
    padding-top: 18px !important;
  }

  .dp-highlights-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }

  .dp-highlight-item {
    padding: 10px 12px !important;
    font-size: 12px !important;
    gap: 8px !important;
    border-radius: var(--radius-sm) !important;
  }

  .dp-cta-group {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dp-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 18px !important;
    font-size: 14px !important;
  }

  .dp-share-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .dp-tabs-card {
    border-radius: var(--radius-lg) !important;
    margin-bottom: 24px !important;
  }

  .dp-tabs-header {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    border-bottom: 1px solid var(--border-light) !important;
  }

  .dp-tabs-header::-webkit-scrollbar {
    display: none !important;
  }

  .dp-tab-btn {
    flex-shrink: 0 !important;
    padding: 13px 16px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .dp-tab-pane {
    padding: 20px 16px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* Smooth scrollable related products strip on mobile */
  .dp-related-slider-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px 14px !important;
  }

  .dp-related-slider-wrap::-webkit-scrollbar {
    display: none !important;
  }

  .dp-related-slider {
    display: flex !important;
    gap: 14px !important;
    transform: none !important;
    width: max-content !important;
  }

  .dp-related-slider .product-card {
    width: 250px !important;
    min-width: 250px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .dp-related-nav {
    display: none !important;
  }

  .dp-sidebar-card {
    padding: 22px 18px !important;
    border-radius: var(--radius-lg) !important;
  }

  .dp-author-box { flex-direction: column; gap: 16px; }
  .dp-feat-img-banner { max-height: 280px; }
  .footer-top-flex { flex-direction: column; text-align: center; }
  .footer-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .dp-highlights-grid {
    grid-template-columns: 1fr !important;
  }
  .dp-related-slider .product-card {
    width: 230px !important;
    min-width: 230px !important;
  }
  .dp-page-title {
    font-size: 19px !important;
  }
}

/* ==========================================================================
   PRODUCT IMAGE LIGHTBOX MODAL
   ========================================================================== */
.dp-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  user-select: none;
}

.dp-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.dp-lightbox-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TOOLBAR */
.dp-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 10;
}

.dp-lightbox-title-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.dp-lightbox-product-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.dp-lightbox-counter {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(237, 27, 36, 0.2);
  color: #ff4d58;
  border: 1px solid rgba(237, 27, 36, 0.4);
  flex-shrink: 0;
}

.dp-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-lightbox-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dp-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.dp-lightbox-close-btn:hover {
  background: #ed1b24;
  border-color: #ed1b24;
}

/* BODY & STAGE */
.dp-lightbox-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 12px 0;
}

.dp-lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
}

.dp-lightbox-stage.is-zoomed {
  cursor: zoom-out;
}

.dp-lightbox-stage img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* NAVIGATION ARROWS */
.dp-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.dp-lightbox-prev { left: 10px; }
.dp-lightbox-next { right: 10px; }

.dp-lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(237, 27, 36, 0.4);
}

/* THUMBNAILS BAR */
.dp-lightbox-thumbs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 100%;
}

.dp-lightbox-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.dp-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dp-lightbox-thumb:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.4);
}

.dp-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(237, 27, 36, 0.5);
  transform: scale(1.06);
}

/* RESPONSIVE LIGHTBOX */
@media (max-width: 768px) {
  .dp-lightbox-modal { padding: 10px; }
  .dp-lightbox-wrapper { height: 96vh; }
  .dp-lightbox-product-title { max-width: 200px; font-size: 13px; }
  .dp-lightbox-nav { width: 38px; height: 38px; font-size: 15px; }
  .dp-lightbox-thumb { width: 48px; height: 48px; }
  .dp-lightbox-stage img { max-width: 96%; max-height: 85%; }
}

