/* ==========================================================================
   Pardis Gifts Pure - Base Stylesheet (RTL-First, Zero Elementor/Astra)
   Version: 1.0.0
   ========================================================================== */

:root {
  --pg-font: 'DanaVF', 'Vazirmatn', Tahoma, sans-serif;
  --pg-primary: #0F3D3E;
  --pg-primary-dark: #09292A;
  --pg-primary-soft: #E6F0F0;
  --pg-amber: #F59E0B;
  --pg-ink: #0F172A;
  --pg-ink-muted: #475569;
  --pg-border: #E2E8F0;
  --pg-surface: #FFFFFF;
  --pg-bg-soft: #F8FAFC;
  --pg-radius-sm: 10px;
  --pg-radius-md: 14px;
  --pg-radius-lg: 18px;
  --pg-container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }

body.pg-pure-body {
  margin: 0;
  font-family: var(--pg-font);
  color: var(--pg-ink);
  background: var(--pg-bg-soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pg-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.pg-skip-link:focus {
  position: fixed; top: 12px; right: 12px; z-index: 9999;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: var(--pg-primary); color: #fff; border-radius: var(--pg-radius-sm);
}

.pg-container { width: 100%; max-width: var(--pg-container); margin: 0 auto; padding-inline: 20px; }
.pg-narrow { max-width: 860px; }
.pg-section { padding-block: 36px 56px; }

.pg-site-header { background: var(--pg-surface); border-bottom: 1px solid var(--pg-border); position: sticky; top: 0; z-index: 100; }
.pg-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.pg-brand-link { font-size: 1.15rem; font-weight: 700; color: var(--pg-primary); }
.pg-nav-list { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.pg-nav-toggle { display: none; background: none; border: 1px solid var(--pg-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.pg-nav-toggle span { display: block; width: 20px; height: 2px; background: var(--pg-ink); margin: 4px 0; }

.pg-hero { background: linear-gradient(135deg, var(--pg-primary) 0%, #145354 100%); color: #fff; padding: 56px 0; }
.pg-badge { display: inline-block; background: rgba(245, 158, 11, 0.2); color: #FDE68A; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 12px; }
.pg-hero-title { margin: 0 0 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pg-hero-subtitle { margin: 0 0 24px; color: rgba(255, 255, 255, 0.88); max-width: 640px; }

.pg-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: var(--pg-radius-sm); font-weight: 600; transition: transform 0.2s ease, background-color 0.2s ease; }
.pg-btn-primary { background: var(--pg-amber); color: #0F172A; }
.pg-btn-primary:hover { background: #D97706; text-decoration: none; }

.pg-grid { display: grid; gap: 20px; }
.pg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pg-card { background: var(--pg-surface); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-md); overflow: hidden; display: flex; flex-direction: column; }
.pg-card-media { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.pg-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pg-card-body { padding: 16px; }
.pg-card-title { margin: 0 0 8px; font-size: 1rem; }

.pg-product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; background: var(--pg-surface); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-lg); padding: 28px; }
.pg-breadcrumb { display: flex; gap: 8px; font-size: 0.875rem; color: var(--pg-ink-muted); margin-bottom: 12px; }
.pg-404 { text-align: center; padding-block: 80px; }
.pg-404-code { font-size: 4rem; margin: 0; color: var(--pg-primary); }

.pg-site-footer { background: var(--pg-surface); border-top: 1px solid var(--pg-border); padding: 40px 0 28px; }
.pg-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.pg-footer-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 16px; }
.pg-footer-meta { display: flex; gap: 12px; font-size: 0.875rem; color: var(--pg-ink-muted); }

@media (max-width: 1024px) {
  .pg-grid-4, .pg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pg-grid-4, .pg-grid-3 { grid-template-columns: 1fr; }
  .pg-nav-toggle { display: block; }
  .pg-primary-nav { display: none; }
  .pg-primary-nav.is-open { display: block; position: absolute; top: 100%; right: 0; left: 0; background: var(--pg-surface); border-bottom: 1px solid var(--pg-border); padding: 16px 20px; }
  .pg-nav-list { flex-direction: column; gap: 12px; }
}

/* Global Reset: remove UA 8px body margin & default link underlines */
html, body { margin: 0 !important; }
a, a:hover, a:focus, a:visited { text-decoration: none !important; }
