/**
 * ALRAKI Jotun — Components CSS
 * Brand Colors: Deep Navy (#0B0D5C) | Royal Blue (#0057B8) | Yellow (#F5B400)
 */

/* ── Cursor dot — premium micro-animation ───────────────────── */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-top);
  opacity: 0.85;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  will-change: transform;
}

.cursor-dot.is-expanded {
  width: 26px;
  height: 26px;
  background-color: var(--color-blue);
  opacity: 0.3;
}

/* ── Post content typography ─────────────────────────────────── */
.post-content {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-charcoal);
}

.post-content h2 {
  margin: var(--space-10) 0 var(--space-4);
  color: var(--color-navy);
}

.post-content h3 {
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-navy);
}

.post-content p {
  margin-bottom: var(--space-5);
  color: var(--color-charcoal);
}

.post-content ul,
.post-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { margin-bottom: var(--space-2); }

.post-content a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--weight-medium);
}

.post-content a:hover {
  color: var(--color-navy);
}

.post-content blockquote {
  border-left: 3px solid var(--color-blue);
  padding-left: var(--space-6);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  font-style: italic;
  color: var(--color-navy);
  margin: var(--space-8) 0;
  background-color: var(--color-blue-tint);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content img {
  width: 100%;
  height: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-sm);
}

.post-content pre,
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: var(--color-blue-tint);
  color: var(--color-navy);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-blue-subtle);
}

.post-content pre {
  padding: var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}

/* ── Single product layout ─────────────────────────────────── */
.single-product__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
  padding-top: var(--space-16);
  margin-bottom: var(--space-16);
}

.single-product__main-img {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-100);
  background-color: var(--color-blue-tint);
}

.single-product__img {
  width: 100%;
  display: block;
}

.single-product__thumb-gallery {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.product-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  background-color: var(--color-blue-tint);
}

.product-thumb-btn:hover,
.product-thumb-btn.is-active {
  border-color: var(--color-blue);
}

.product-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product__short-desc {
  font-size: var(--text-md);
  color: var(--color-gray-500);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
}

.single-product__specs {
  margin-bottom: var(--space-8);
}

.spec-row {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.spec-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  min-width: 110px;
}

.spec-value {
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.single-product__features h3 {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
}

.single-product__features ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.single-product__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.single-product__features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background-color: var(--color-yellow);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5em;
}

.single-product__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-200);
}

.single-product__content,
.single-product__technical {
  max-width: 800px;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-gray-100);
}

.single-product__technical h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .single-product__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ── Pagination ─────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.page-numbers.current {
  border-bottom: 2px solid var(--color-yellow);
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 var(--space-5);
}
