/*
 * Arovia Fashion — Base Reset & Typography
 * -----------------------------------------
 * Modern, lightweight CSS reset + global typographic defaults.
 * Loaded after arovia-variables.css.
 */

/* ─── Modern Reset ──────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg-ivory);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Root Layout ───────────────────────────────────────────── */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* ─── Container Utility ─────────────────────────────────────── */

.arv-container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

.arv-container--narrow {
  max-width: var(--container-md);
}

.arv-container--wide {
  max-width: var(--container-2xl);
}

.arv-container--full {
  max-width: var(--container-max);
}

/* ─── Typography — Headings ─────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

@media (max-width: 767px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
}

/* ─── Typography — Body ─────────────────────────────────────── */

p {
  font-size: var(--text-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

strong, b {
  font-weight: var(--fw-medium);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ─── Links ─────────────────────────────────────────────────── */

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

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

a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Lists ─────────────────────────────────────────────────── */

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Styled lists inside content areas */
.arv-content ul,
.entry-content ul,
.woocommerce-product-details__short-description ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.arv-content ol,
.entry-content ol {
  list-style: decimal;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.arv-content li,
.entry-content li {
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2);
}

/* ─── Images & Media ────────────────────────────────────────── */

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

picture {
  display: block;
}

/* ─── Forms — Global Resets ─────────────────────────────────── */

input,
textarea,
select,
button {
  font-family: var(--font-sans);
  font-size: var(--text-base);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(110, 31, 42, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-light);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6460' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  letter-spacing: var(--ls-wide);
}

/* ─── Tables ─────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ─── HR / Divider ──────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

.arv-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

.arv-divider--accent {
  border-top-color: var(--color-accent);
}

/* ─── Utility Classes ───────────────────────────────────────── */

/* Visibility */
.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;
}

/* Text helpers */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-muted   { color: var(--color-text-muted); }
.text-brand   { color: var(--color-brand); }
.text-accent  { color: var(--color-accent); }
.text-light-c { color: var(--color-text-light); }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
}

.text-serif { font-family: var(--font-serif); }
.text-sans  { font-family: var(--font-sans); }

/* Font sizes */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }

/* Flex utilities */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Section spacing */
.arv-section {
  padding-block: var(--space-16);
}

.arv-section--sm {
  padding-block: var(--space-12);
}

.arv-section--lg {
  padding-block: var(--space-24);
}

.arv-section--xl {
  padding-block: var(--space-32);
}

/* Backgrounds */
.bg-ivory  { background-color: var(--color-bg-ivory); }
.bg-white  { background-color: var(--color-bg-white); }
.bg-light  { background-color: var(--color-bg-light); }
.bg-brand  { background-color: var(--color-brand); }
.bg-dark   { background-color: var(--color-bg-dark); }

/* Section heading alignment block */
.arv-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.arv-section-header--left {
  text-align: left;
}

.arv-section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.arv-section-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-4);
}

.arv-section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin-inline: auto;
}

.arv-section-header--left .arv-section-subtitle {
  margin-inline: 0;
}

@media (max-width: 767px) {
  .arv-section {
    padding-block: var(--space-12);
  }
  .arv-section--lg {
    padding-block: var(--space-16);
  }
  .arv-section-title {
    font-size: var(--text-2xl);
  }
}

/* ─── Entry content (blog / page prose) ─────────────────────── */

.entry-content > * + * {
  margin-top: var(--space-6);
}

.entry-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.entry-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--lh-snug);
  color: var(--color-text-muted);
}

.entry-content blockquote cite {
  display: block;
  font-size: var(--text-sm);
  font-style: normal;
  font-family: var(--font-sans);
  margin-top: var(--space-3);
  color: var(--color-text-light);
}

.entry-content a {
  color: var(--color-brand);
  border-bottom: 1px solid rgba(110, 31, 42, 0.3);
  transition: border-color var(--transition-fast);
}

.entry-content a:hover {
  border-bottom-color: var(--color-brand);
}

.entry-content figure {
  margin: var(--space-8) 0;
}

.entry-content figcaption {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-2);
}

.entry-content img {
  border-radius: var(--radius-md);
}

.entry-content table th {
  background-color: var(--color-bg-light);
}

/* ─── Star Rating ───────────────────────────────────────────── */

.arv-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star-filled);
  font-size: var(--text-sm);
}

.arv-stars--empty {
  color: var(--color-star-empty);
}

/* ─── Badges ─────────────────────────────────────────────────── */

.arv-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.arv-badge--sale {
  background-color: var(--color-brand);
  color: var(--color-text-on-brand);
}

.arv-badge--new {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.arv-badge--out-of-stock {
  background-color: var(--color-border);
  color: var(--color-text-muted);
}

/* ─── Scrollbar (optional, subtle) ─────────────────────────── */

@supports (scrollbar-width: thin) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
  }
}
