
:root {
  --par-ink: #2D2A26;
  --par-paper: #FFFEFC;
  --par-warm: #F7F4F0;
  --par-soft: #FAF8F5;
  --par-brand: #8E6252;
  --par-brand-light: #E8E0D5;
  --par-muted: #787572;
  --par-border: #E8E5DF;
  --par-sale: #B6263D;
  --par-success: #007963;
  --par-warning: #A25A20;
  --par-radius-sm: 4px;
  --par-radius-md: 8px;
  --par-radius-lg: 16px;
  --par-shadow-soft: 0 16px 50px rgba(45,42,38,0.08);
  --par-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  background: var(--par-paper);
  color: var(--par-ink);
  line-height: 1.8;
  direction: rtl;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 42px; width: auto; }

.par-container {
  width: 100%; max-width: 1600px; margin-inline: auto;
  padding-inline: 16px;
}
@media(min-width:768px){ .par-container { padding-inline: 24px; } }
@media(min-width:1024px){ .par-container { padding-inline: clamp(32px, 4vw, 64px); } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.par-announcement-bar {
  background: var(--par-ink); color: var(--par-paper);
  padding: 8px 0; font-size: 0.875rem; text-align: center;
}
.par-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,254,252,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--par-border);
}
.par-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.par-header__brand-name {
  font-size: 1.5rem; font-weight: 700; color: var(--par-ink);
}
.par-header__nav--desktop { display: none; }
.par-header__nav--desktop ul {
  display: flex; gap: 32px; list-style: none;
}
.par-header__nav--desktop a {
  font-size: 0.9375rem; font-weight: 500;
  padding: 8px 0; position: relative;
}
.par-header__actions { display: flex; align-items: center; gap: 20px; }
.par-header__action { position: relative; display: flex; }
.par-header__cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--par-brand); color: #fff;
  font-size: 0.625rem; width: 16px; height: 16px;
  border-radius: 999px; display: grid; place-items: center;
}

@media(min-width:1024px){
  .par-header__menu-toggle { display: none; }
  .par-header__nav--desktop { display: block; }
}

/* Mobile Menu */
.par-mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; opacity: 0; transition: opacity 0.3s;
}
.par-mobile-menu[aria-hidden="false"] { visibility: visible; opacity: 1; }
.par-mobile-menu__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4);
}
.par-mobile-menu__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(320px, 80vw); background: var(--par-paper);
  padding: 24px; transform: translateX(100%);
  transition: transform 0.42s var(--par-ease);
}
.par-mobile-menu[aria-hidden="false"] .par-mobile-menu__panel {
  transform: translateX(0);
}
.par-mobile-menu__close {
  margin-bottom: 24px; width: 40px; height: 40px;
  display: grid; place-items: center;
}
.par-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }

/* Hero */
.par-hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--par-warm);
}
.par-hero__canvas-wrapper {
  position: absolute; inset: 0; z-index: 1;
}
.par-hero__canvas-wrapper canvas { width: 100%; height: 100%; display: block; }
.par-hero__fallback {
  position: absolute; inset: 0; z-index: 1;
}
.par-hero__fallback-img {
  width: 100%; height: 100%; object-fit: cover;
}
.par-hero__fallback-img--placeholder {
  background: linear-gradient(135deg, var(--par-warm), var(--par-brand-light));
}
.par-hero__content {
  position: relative; z-index: 2; text-align: center;
  padding: 48px 16px;
}
.par-hero__eyebrow {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--par-brand); margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.par-hero__headline {
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 20px;
}
.par-hero__body {
  font-size: 1.125rem; color: var(--par-muted);
  max-width: 560px; margin: 0 auto 32px;
  line-height: 1.8;
}
.par-hero__actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.par-hero__scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.par-scroll-cue__line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--par-ink), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%,100% { opacity: 0; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

.par-section--warm { background: var(--par-warm); }
.par-content-area { padding-block: clamp(56px, 8vw, 120px); min-height: 55vh; }
.par-content-area--narrow { max-width: 900px; }
.par-entry { margin-bottom: 56px; }
.par-entry__title { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 20px; }
.par-entry-content > * + * { margin-top: 1.4em; }
.par-entry-content ul, .par-entry-content ol { padding-right: 1.5rem; }
.par-editorial { display: grid; gap: 40px; }
.par-editorial__features { display: grid; gap: 16px; }
.par-editorial__features p { padding: 20px; background: var(--par-soft); border: 1px solid var(--par-border); border-radius: var(--par-radius-md); }
@media(min-width:900px) {
  .par-editorial { grid-template-columns: 1fr 1fr; align-items: start; }
}
.par-footer { padding: 72px 0 24px; background: var(--par-ink); color: var(--par-paper); }
.par-footer__grid { display: grid; gap: 40px; }
.par-footer__brand { font-size: 1.5rem; margin-bottom: 12px; }
.par-footer ul { list-style: none; display: grid; gap: 8px; }
.par-footer__bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 24px; font-size: .8125rem; opacity: .75; }
@media(min-width:768px) { .par-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.par-error-404 { padding-block: 120px; text-align: center; }
.par-error-title { font-size: clamp(5rem, 18vw, 12rem); line-height: 1; color: var(--par-brand-light); }
.par-error-404 p { margin: 24px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Buttons */
.par-button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; font-size: 0.9375rem; font-weight: 500;
  border-radius: var(--par-radius-pill, 999px);
  transition: all 0.18s var(--par-ease);
}
.par-button--primary {
  background: var(--par-brand); color: #fff;
}
.par-button--primary:hover { background: #7a5345; }
.par-button--ghost {
  background: transparent; color: var(--par-ink);
  border: 1px solid var(--par-border);
}
.par-button--ghost:hover { background: var(--par-soft); }
.par-button--large { padding: 16px 36px; font-size: 1rem; }

/* Sections */
.par-section { padding: clamp(72px, 10vw, 160px) 0; }
.par-section__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px; flex-wrap: wrap;
}
.par-section__title {
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  font-weight: 600; line-height: 1.3;
}
.par-link--arrow {
  font-size: 0.9375rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.par-link--arrow::after {
  content: "←"; display: inline-block;
}

/* Grids */
.par-products-grid,
.par-collections-grid,
.par-categories-grid {
  display: grid; gap: 16px;
}
.par-products-grid { grid-template-columns: repeat(2, 1fr); }
.par-collections-grid { grid-template-columns: repeat(2, 1fr); }
.par-categories-grid { grid-template-columns: repeat(2, 1fr); }

@media(min-width:768px){
  .par-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .par-collections-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .par-categories-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media(min-width:1024px){
  .par-products-grid { grid-template-columns: repeat(4, 1fr); }
  .par-collections-grid { grid-template-columns: repeat(4, 1fr); }
  .par-categories-grid { grid-template-columns: repeat(6, 1fr); }
}
@media(min-width:1600px){
  .par-products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Cards */
.par-product-card__link,
.par-collection-card__link,
.par-category-card {
  display: block; group: card;
}
.par-product-card__image-wrapper,
.par-collection-card__image-wrapper,
.par-category-card__img {
  position: relative; aspect-ratio: 3/4;
  background: var(--par-soft);
  overflow: hidden; margin-bottom: 12px;
}
.par-product-card__image,
.par-collection-card__image,
.par-category-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--par-ease);
}
.par-product-card:hover .par-product-card__image,
.par-collection-card:hover .par-collection-card__image,
.par-category-card:hover .par-category-card__img {
  transform: scale(1.04);
}
.par-product-card__badge--sale {
  position: absolute; top: 12px; right: 12px;
  background: var(--par-sale); color: #fff;
  font-size: 0.75rem; padding: 4px 10px;
  border-radius: var(--par-radius-sm);
}
.par-product-card__title,
.par-collection-card__title {
  font-size: 0.9375rem; font-weight: 500;
  margin-bottom: 6px; line-height: 1.5;
}
.par-product-card__price {
  font-size: 0.875rem; color: var(--par-muted);
}
.par-product-card__price ins,
.par-collection-card__count {
  text-decoration: none; color: var(--par-ink);
  font-weight: 500;
}
.par-category-card__name {
  font-size: 0.9375rem; font-weight: 500; text-align: center; display: block;
}

/* Placeholders */
.par-product-card--placeholder .par-product-card__image,
.par-collection-card--placeholder .par-collection-card__image,
.par-category-card--placeholder .par-category-card__img {
  background: linear-gradient(110deg, var(--par-soft) 40%, var(--par-warm) 50%, var(--par-soft) 60%);
  background-size: 200% 100%; animation: shimmer 2s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Editorial Banner */
.par-editorial-banner {
  display: grid; gap: 40px; align-items: center;
}
.par-editorial-banner__media { overflow: hidden; border-radius: var(--par-radius-lg); }
.par-editorial-banner__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.par-editorial-banner__title { margin-bottom: 16px; }
.par-editorial-banner__text { color: var(--par-muted); margin-bottom: 28px; }
@media(min-width:1024px){
  .par-editorial-banner { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Brand Story */
.par-brand-story { max-width: 720px; margin: 0 auto; text-align: center; }
.par-brand-story__title { margin-bottom: 20px; }
.par-brand-story__text { color: var(--par-muted); }

/* Trust Strip */
.par-trust-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding: 32px; background: var(--par-soft); border-radius: var(--par-radius-lg);
}
.par-trust-item {
  display: flex; align-items: center; gap: 12px;
}
.par-trust-item__icon { color: var(--par-brand); flex-shrink: 0; }
.par-trust-item__label { font-size: 0.875rem; font-weight: 500; }
@media(min-width:768px){ .par-trust-strip { grid-template-columns: repeat(4, 1fr); } }

/* Footer */
.par-footer { background: var(--par-ink); color: var(--par-paper); padding: 64px 0 32px; }
.par-footer__grid {
  display: grid; gap: 40px; margin-bottom: 48px;
}
.par-footer__brand-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.par-footer__tagline { color: var(--par-muted); font-size: 0.875rem; }
.par-footer__heading { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.par-footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.par-footer a { color: var(--par-muted); font-size: 0.875rem; transition: color 0.18s; }
.par-footer a:hover { color: var(--par-paper); }
.par-footer__email a { color: var(--par-brand-light); }
.par-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.par-footer__copyright { font-size: 0.875rem; color: var(--par-muted); text-align: center; }
@media(min-width:1024px){ .par-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* Page layouts */
.par-page-header, .par-archive-header, .par-search-header, .par-error-404 {
  padding: 48px 0; text-align: center;
}
.par-page-title, .par-archive-title, .par-search-title, .par-error-title {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; margin-bottom: 16px;
}
.par-error-title { font-size: clamp(4rem, 12vw, 8rem); opacity: 0.15; }
.par-posts-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(1, 1fr);
}
@media(min-width:768px){ .par-posts-grid { grid-template-columns: repeat(2, 1fr); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .par-hero__canvas-wrapper { display: none; }
  .par-hero__fallback { display: block !important; }
}
