/**
 * Digital Plus — Base Styles
 * Ported from: shopify-theme/assets/base.css
 * Liquid syntax removed; font URLs point to WordPress theme directory (wp_get_theme()->get_stylesheet_directory_uri())
 */

/* ===== Font Faces ===== */
/* Register fonts via wp_enqueue_style() or place woff2 files in /assets/fonts/ */
@font-face {
  font-family: 'Maison Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Maison Neue Book'), url('../fonts/MaisonNeue-Book.woff2') format('woff2');
}

@font-face {
  font-family: 'Maison Neue';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Maison Neue Demi'), url('../fonts/MaisonNeue-Demi.woff2') format('woff2');
}

@font-face {
  font-family: 'ITC Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local('ITC Garamond'), url('../fonts/ITCGaramond-Light.woff2') format('woff2');
}

/* ===== CSS Reset ===== */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body,
canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed,
fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup,
html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol,
output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary,
sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== Base Element Styles ===== */
html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic), var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-background);
}

button, input, select, textarea {
  font-family: inherit;
}

ol, ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: 50px;
  letter-spacing: -1.01px;
}

h2 {
  font-size: 28px;
  line-height: 1;
}

h3 {
  font-size: 20px;
  line-height: 1.65;
}

h4 {
  font-size: var(--font-size-lg);
}

h5 {
  font-size: var(--font-size-md);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

em, i {
  font-style: italic;
}

/* ===== Layout Utilities ===== */
.dp-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dp-container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dp-main {
  min-height: 60vh;
}

/* ===== Accessibility ===== */
.dp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dp-skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-md);
  background: var(--color-accent);
  color: var(--color-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.dp-skip-link:focus {
  top: var(--spacing-md);
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Range Slider (rc-slider port) ===== */
.dp-range-slider * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Breadcrumbs ===== */
.dp-breadcrumbs {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
}

.dp-breadcrumbs a {
  color: var(--color-text-light);
}

.dp-breadcrumbs a:hover {
  color: var(--color-text);
}

.dp-breadcrumbs__separator {
  color: var(--color-border);
}

/* ===== Stars / Rating ===== */
.dp-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-accent);
  direction: ltr;
}

/* ===== Badges ===== */
.dp-badge {
  display: inline-block;
  padding: 2px var(--spacing-sm);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.dp-badge--sale {
  background: var(--color-sale);
  color: #ffffff;
}

.dp-badge--new {
  background: var(--color-primary);
  color: #ffffff;
}

.dp-badge--accent {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===== Pagination ===== */
.dp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xxl) 0;
}

.dp-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.dp-pagination__item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.dp-pagination__item:hover,
.dp-pagination__item.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.dp-pagination__arrow {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  width: 70px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(30px);
  transition: all var(--transition-normal);
}

.dp-pagination__arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

@media (max-width: 480px) {
  .dp-pagination {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  .dp-pagination__item {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
  }
}

@media (min-width: 1024px) {
  .dp-pagination__arrow {
    margin: 0 10px;
  }

  .dp-pagination {
    font-size: var(--font-size-md);
  }
}
