@import url('variables.css');
@import url('typography.css');

/* ════════════════════════════════════════════
   فانتزی‌های ویانا — main.css
   ════════════════════════════════════════════ */



/* ── ریست پایه ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── ظرف اصلی ── */
.container {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── دکمه‌ها ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .55em 1.4em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 0 0 3px oklch(68% .16 78 / .25);
}

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--accent-subtle);
}

.btn--add-cart {
  width: 100%;
  justify-content: center;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: .82rem;
  padding: .45em 1em;
  border-radius: var(--radius-sm);
}
.btn--add-cart:hover { background: var(--accent-dark); }

/* ── عنوان بخش‌ها ── */
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--text-body);
  margin: 0 0 1.5rem;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: .5rem auto 0;
}

.section-pad { padding-block: 3rem; }
.section-pad--alt { background: oklch(97% .005 78); }
.section-more { text-align: center; margin-top: 2rem; }

/* ── دسترسی‌پذیری: focus ring ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Header Background Fix */
.site-header,
.site-header .header-main-wrapper,
.site-header .header-top-wrapper,
.site-header .header-bottom-wrapper {
    background-color: #ffffff !important;
}

.site-header.is-sticky,
.site-header.is-sticky .header-main-wrapper {
    background-color: #ffffff !important;
}
/* ── هدر ویانا ── */
.viana-header {
    justify-content: space-between;
    width: 100%;
}

:root {
    --theme-container-edge-spacing: 100vw;
}
