/* ===============================
   بدنه سایت و ساختار کلی
================================ */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSans.woff2') format('woff2'),
       url('../fonts/IRANSans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
    background-color: #f9f9f9;
    font-family: IRANSans, sans-serif;
}
button,
input,
select,
textarea,
.woocommerce button,
.woocommerce a.button {
    font-family: IRANSans, sans-serif !important;
}

/* ====================== GLOBAL CONTAINER ====================== */
.container,
.single-book,
.single-product-page,
.main-content,
.site-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

/* برای عرض‌های خیلی بزرگ */
@media (min-width: 1400px) {
    .container,
    .single-book,
    .single-product-page {
        padding: 0 40px;
    }
}

/* ====================== موبایل ====================== */

@media (max-width: 768px) {
  .container {
      padding: 0 6px;
  }
}


/* === استایل بالت و جدول شورتکد شده === */
/* =========================
   SU LIST
========================= */
.su-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.su-list li {
    position: relative;
    padding-right: 28px;
    margin-bottom: 12px;
    line-height: 2em;
}

.su-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: #d40000;
    font-weight: bold;
    font-size: 18px;
}

/* اگر آیکون قدیمی هنوز داخل محتوا هست مخفی کن */
.su-list li i.sui {
    display: none !important;
}

/* =========================
   SU BOX
========================= */
.custom-su-box {
    margin: 0 0 1.5em;
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.custom-su-box-title {
    padding: 12px 18px;
    font-weight: bold;
    font-size: 15px;
}

.custom-su-box-content {
    padding: 0;
    background: #fff;
}

/* =========================
   SU TABLE
========================= */
.su-table {
    width: 100%;
    overflow-x: auto;
}

.su-table table {
    width: 100%;
    border-collapse: collapse;
}

.su-table td,
.su-table th {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: right;
}

.su-table tr:nth-child(even) {
    background: #f8f8f8;
}

.su-table a {
    text-decoration: none;
}



/* =========================
   ارور 404
========================= */

.error-404 {
    padding: 120px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.error-subtitle {
    font-size: 1.8rem;
    margin: 20px 0 15px;
    color: #333;
}

.error-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.error-search {
    max-width: 420px;
    margin: 0 auto 40px;
}

.error-search .search-form {
    display: flex;
    gap: 10px;
}

.error-search input[type="search"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .error-title {
        font-size: 8rem;
    }
    .error-subtitle {
        font-size: 1.5rem;
    }
}
