/* =========================================================
   کفش ایوان | E1Shoes — استایل صفحات داخلی v2
   ========================================================= */

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 48px 0 32px;
  background:
    radial-gradient(circle at 90% 0%, var(--accent-soft) 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.page-header.compact { padding: 24px 0 18px; }
.page-header.compact .breadcrumb { margin-bottom: 0; }

.page-desc {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 620px;
  line-height: 1.75;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a {
  color: var(--text-soft);
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--text-muted); }

/* ============ PAGE SECTION ============ */
.page-section { padding: 64px 0; }
.page-section.bg-soft { background: var(--bg-soft); }
.page-section .section-head.align-right { text-align: right; }

/* ============ PROSE ============ */
.prose {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.9;
}
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--accent-dark); }

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 14px;
  letter-spacing: -.3px;
}
.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.prose ul, .prose ol {
  padding-right: 22px;
  margin-bottom: 20px;
}
.prose ul li, .prose ol li {
  margin-bottom: 8px;
  line-height: 1.85;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.stat-number {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .88rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* ============ VALUES ============ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.value {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.value:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}
.value h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.value p { color: var(--text-soft); font-size: .9rem; line-height: 1.75; }

/* ============ INFO TABLE ============ */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: .93rem;
}
.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text);
  width: 40%;
}
.info-table td { color: var(--text-soft); }

@media (max-width: 700px) {
  .info-table { font-size: .84rem; display: block; overflow-x: auto; white-space: nowrap; }
  .info-table th, .info-table td { padding: 12px 14px; }
}

/* ============ SHIPPING METHODS ============ */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.method {
  position: relative;
  padding: 26px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.method-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.method h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.method-sub {
  display: block;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.method p {
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}
.method ul { display: flex; flex-direction: column; gap: 6px; }
.method ul li {
  font-size: .85rem;
  color: var(--text-soft);
  padding-right: 18px;
  position: relative;
}
.method ul li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--success);
  font-weight: 700;
}

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step::before {
  content: counter(step, persian);
  position: absolute;
  top: -14px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: .95rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255,90,31,.3);
}
.step h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  margin-top: 4px;
}
.step p { font-size: .88rem; color: var(--text-soft); line-height: 1.75; }

/* ============ NOTICE BOX ============ */
.notice {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-right: 4px solid var(--accent);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.8;
  margin: 20px 0;
}
.notice strong { color: var(--accent-dark); }

/* ============ FAQ ============ */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.faq-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.faq-tab:hover { border-color: var(--accent); color: var(--accent); }
.faq-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,90,31,.25);
}

.faq-group { margin-bottom: 40px; }
.faq-group h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
  line-height: 1.5;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 48px;
  color: var(--text);
  transition: color var(--t-fast);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) rotate(180deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 20px 20px;
  color: var(--text-soft);
  font-size: .92rem;
  line-height: 1.85;
  animation: faqOpen .25s ease;
}
.faq-answer a { color: var(--accent); text-decoration: underline; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ CONTACT PAGE ============ */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.contact-method:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.contact-method-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-method-icon svg { width: 26px; height: 26px; }
.contact-method-body { flex: 1; min-width: 0; }
.contact-method-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.contact-method-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

/* ============ FORM (page-level) ============ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 13px 16px;
  font-size: .95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.form-field .hint { font-size: .78rem; color: var(--text-muted); }

.form-msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .92rem;
  margin-bottom: 18px;
  display: none;
}
.form-msg.is-success {
  display: block;
  background: var(--success-soft);
  color: #065f46;
  border-right: 4px solid var(--success);
}
.form-msg.is-error {
  display: block;
  background: var(--danger-soft);
  color: #991b1b;
  border-right: 4px solid var(--danger);
}

/* ============ MAP ============ */
.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============ LEGAL PAGES ============ */
.legal-toc {
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.legal-toc h3 {
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-toc ol {
  padding-right: 20px;
  list-style: decimal;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.legal-toc a {
  color: var(--text-soft);
  font-size: .9rem;
  transition: color var(--t-fast);
}
.legal-toc a:hover { color: var(--accent); }

.legal-updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

/* ============ RESPONSIVE ============ */
@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-field.full { grid-column: 1 / -1; }
  .legal-toc ol { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: 64px 0 40px; }
  .page-section { padding: 72px 0; }
}

@media (min-width: 900px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
  .methods-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .page-header { padding: 72px 0 48px; }
  .page-section { padding: 88px 0; }
}

@media (max-width: 400px) {
  .contact-method { padding: 16px; gap: 12px; }
  .contact-method-icon { width: 44px; height: 44px; }
  .contact-method-icon svg { width: 22px; height: 22px; }
  .info-table th, .info-table td { padding: 12px 14px; font-size: .85rem; }
}