/*
Theme Name: Humble
Theme URI: https://www.humble-eyewear.com/
Author: Plain Studio
Description: Understated eyewear catalog theme focused on content.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mb
*/


body {
  overflow-x: hidden;
}

:root {
  --hmb-bg: #f5f6fa;
  --hmb-surface: #ffffff;
  --hmb-border: rgba(0, 0, 0, 0.08);
  --hmb-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --hmb-radius: 12px;
}

body {
  background: var(--hmb-bg);
  color: #1e293b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.border-transparent {
  border-color: transparent !important;
}

.hmb-surface {
  background: var(--hmb-surface);
  border: 1px solid var(--hmb-border);
  border-radius: var(--hmb-radius);
  box-shadow: var(--hmb-shadow);
}

.hmb-navbar {
  background: var(--hmb-surface);
  border-bottom: 1px solid var(--hmb-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.hmb-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hmb-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.richtext {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.richtext * {
  max-width: 100%;
}

.richtext p,
.richtext div,
.richtext span,
.richtext li {
  white-space: normal !important;
}

.richtext img {
  max-width: 100%;
  height: auto;
}

.richtext iframe,
.richtext video {
  max-width: 100%;
}

.richtext table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.richtext table td,
.richtext table th {
  border: 1px solid #e2e8f0;
  padding: 8px;
}

.richtext a {
  text-decoration: underline;
}

.richtext pre,
.richtext code {
  white-space: pre-wrap;
  word-break: break-word;
}

.ratio-square {
  position: relative;
  padding-top: 100%;
}

.ratio-square > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.thumb-scroll::-webkit-scrollbar {
  display: none;
}

.clamp-2,
.clamp-3,
.clamp-4,
.clamp-5 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-2 {
  -webkit-line-clamp: 2;
}

.clamp-3 {
  -webkit-line-clamp: 3;
}

.clamp-4 {
  -webkit-line-clamp: 4;
}

.clamp-5 {
  -webkit-line-clamp: 5;
}

.hmb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hmb-pagination .page-numbers:hover {
  background: #f9fafb;
}

.hmb-pagination .page-numbers.current,
.hmb-pagination .page-numbers.dots {
  color: #6b7280;
}

.hmb-pagination .page-numbers.current {
  background: #111827;
  border-color: #111827;
  color: #fff;
  pointer-events: none;
}
