/* ==================================================
   Shahmoradi Theme – Global Styles
   --------------------------------------------------
   هدف:
   - بک‌گراند ملایم آبی
   - خوانایی بالا
   - هماهنگ با برند Emaux
   - مناسب ووکامرس و صفحات محتوا
================================================== */


/* =========================================
   CSS Variables (Brand Colors)
========================================= */
:root {
    --emaux-blue-dark: #0b3c5d;
    --emaux-blue-main: #1f5f8b;
    --emaux-blue-light: #4fa3c7;

    --page-bg: #f2f7fb;
    --content-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e5eef5;
}

html body {
    background-color: #e9f2f8 !important;
}


/* =========================================
   Global Reset (Safe)
========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}


/* =========================================
   Body
========================================= */
body {
    background-color: var(--page-bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
}


/* =========================================
   Main Content Wrapper
========================================= */
.site-main,
main,
.woocommerce,
.page,
.single {
    background: var(--content-bg);
    max-width: 1200px;
    margin: 30px auto;
    padding: 24px;

    border-radius: 8px;
}


/* =========================================
   Headings
========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--emaux-blue-dark);
    margin-top: 0;
    line-height: 1.4;
}

h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }


/* =========================================
   Links
========================================= */
a {
    color: var(--emaux-blue-main);
    text-decoration: none;
}

a:hover {
    color: var(--emaux-blue-dark);
    text-decoration: underline;
}


/* =========================================
   Paragraphs & Text
========================================= */
p {
    color: var(--text-main);
    margin-bottom: 1em;
}

.small-text {
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================================
   Images
========================================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =========================================
   Buttons (General)
========================================= */
button,
.button,
input[type="submit"] {
    background: var(--emaux-blue-main);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--emaux-blue-dark);
}


/* =========================================
   Forms
========================================= */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
}


/* =========================================
   Tables
========================================= */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid var(--border-light);
    text-align: right;
}

th {
    background: #f0f6fa;
    color: var(--emaux-blue-dark);
}


/* =========================================
   WooCommerce – Basic Improvements
========================================= */
.woocommerce-message,
.woocommerce-info {
    background: #eef5fb;
    border-left: 4px solid var(--emaux-blue-main);
    padding: 12px;
    margin-bottom: 20px;
}

.woocommerce-error {
    background: #fff5f5;
    border-left: 4px solid #dc2626;
    padding: 12px;
}
