/* =========================================
   BASE RESET & FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; }

body {
    font-family: 'Noto Nastaliq Urdu', 'Arial', sans-serif;
    direction: rtl;
    background: #f5f2e9;
    color: #222;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =========================================
   HEADER - TOP BAR (white background)
   ========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header__topbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header__topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    max-width: 960px;
    margin: 0 auto;
}

/* Red circle search button (appears on right in RTL layout) */
.header__search-circle {
    width: 44px;
    height: 44px;
    background: #cc0000;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.header__search-circle:hover { background: #aa0000; }
.header__search-circle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Men's Health logo and label container */
.header__logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Men's Health logo */
.header__logo {
    line-height: 1;
}

.header__logo a { display: inline-block; }

.header__logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    color: #cc0000;
    letter-spacing: -0.5px;
    display: block;
    line-height: 1;
}

.header__logo-text em {
    font-style: italic;
}

/* اردو میں label */
.header__urdu-label {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    white-space: nowrap;
    font-family: 'Noto Nastaliq Urdu', Arial, sans-serif;
    margin-top: -2px;
}

/* =========================================
   HEADER - NAV BAR (dark background)
   ========================================= */
.header__nav {
    background: #111111;
}

.header__nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    max-width: 960px;
    margin: 0 auto;
}

/* جنسی تعلقات link (right side in RTL) */
.header__user-btn {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    font-family: 'Noto Nastaliq Urdu', Arial, sans-serif;
    text-decoration: none;
    transition: color 0.2s;
}
.header__user-btn:hover { color: #ffcccc; }

/* Hamburger icon (left side in RTL) */
.header__hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.header__hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}
.header__hamburger:hover span { background: #ffcccc; }

/* =========================================
   PROMO SECTION
   ========================================= */
.promo {
    background: #fff;
    padding: 20px 16px 16px;
    border-bottom: 3px solid #cc0000;
}

.promo__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.promo__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo__author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cc0000;
}

.promo__author-info {
    font-size: 14px;
    font-weight: bold;
    color: #cc0000;
}

.promo__author-info span {
    display: block;
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.promo__social-list {
    display: flex;
    gap: 8px;
    align-items: center;
}
.promo__social-item a { display: block; transition: transform 0.2s; }
.promo__social-item a:hover { transform: scale(1.1); }
.promo__social-item svg { width: 34px; height: 34px; }

.promo__title {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    line-height: 1.6;
    margin-bottom: 14px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}

.promo__img-wrapper {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.promo__img {
    width: 100%;
    height: auto;
    display: block;
}

.promo__stats-list {
    display: flex;
    gap: 20px;
    padding: 8px 0;
}

.promo__stats-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}
.promo__stats-item--hurt::before { content: '❤️'; font-size: 16px; }
.promo__stats-item--comments::before { content: '💬'; font-size: 16px; }

/* =========================================
   ARTICLE SECTION
   ========================================= */
.article {
    background: #fff;
    padding: 20px 16px;
    margin-top: 10px;
}

.artcile__text {
    font-size: 18px !important;
    line-height: 2;
    color: #333;
    margin-bottom: 14px;
}

.artcile__text-big {
    font-size: 20px !important;
    font-weight: bold;
    color: #111;
    background: #fff8f8;
    border-right: 4px solid #cc0000;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 0 8px 8px 0;
    line-height: 1.8;
}

.article__img {
    width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    display: block;
}

.link {
    color: #cc0000;
    font-weight: bold;
    text-decoration: underline;
}

/* =========================================
   DOCTOR POST
   ========================================= */
.post {
    background: #fff8f0;
    border: 2px solid #f0a040;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}
.post img {
    border-radius: 8px;
    width: 100%;
    margin-bottom: 12px;
}
.post .yazi h4 { margin-bottom: 10px; }
.post .yazi p { margin-bottom: 10px; }

/* =========================================
   ORDER BLOCK
   ========================================= */
.order_block {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    border: 3px solid #cc0000;
    border-radius: 16px;
    padding: 20px 16px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(200,0,0,0.12);
}

.order__text {
    font-size: 17px;
    text-align: center;
    color: #cc0000;
    margin-bottom: 12px;
    line-height: 1.6;
}

.order_block__time {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    color: #cc0000;
    font-family: 'Courier New', monospace;
    background: #fff;
    border-radius: 10px;
    padding: 8px 20px;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 2px 8px rgba(200,0,0,0.10);
    letter-spacing: 4px;
}

.order_block__wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.prod_img_wrapper {
    flex: 0 0 auto;
    text-align: center;
    width: 140px;
}

.prod_img {
    width: 130px;
    height: auto;
    border-radius: 8px;
}

.priceс {
    text-align: center;
    margin-top: 8px;
}

.discountс {
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.price-block { margin-top: 6px; }
.price-block s { color: #999; font-size: 16px; }

.new_price {
    font-size: 22px;
    color: #cc0000;
    font-weight: 900;
    display: block;
    margin-top: 4px;
}

/* =========================================
   FORM
   ========================================= */
.order_form {
    flex: 1;
    min-width: 200px;
}

.data_label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    margin-bottom: 6px;
    margin-top: 14px;
}

.rulet_input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
    direction: ltr;
    text-align: left;
    background: #fafafa;
}
.rulet_input:focus {
    border-color: #cc0000;
    background: #fff;
}

.btn_rulet {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #cc0000, #ee0000);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(200,0,0,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: 'Noto Nastaliq Urdu', Arial, sans-serif;
    animation: pulse 2s infinite;
}
.btn_rulet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,0,0,0.45);
}
.btn_rulet:active { transform: translateY(0); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(200,0,0,0.35); }
    50% { box-shadow: 0 4px 28px rgba(200,0,0,0.65); }
}

/* =========================================
   ARTICLE BOTTOM BUTTON
   ========================================= */
.article__btn {
    display: block;
    margin: 20px 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #cc0000, #ee0000);
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(200,0,0,0.35);
    transition: transform 0.2s;
    font-family: 'Noto Nastaliq Urdu', Arial, sans-serif;
    animation: pulse 2s infinite;
}
.article__btn:hover { transform: scale(1.02); color: #fff; }

/* =========================================
   COMMENTS SECTION
   ========================================= */
.comments {
    background: #f9f9f9;
    padding: 0 0 32px;
    margin-top: 10px;
}

.comments__header {
    background: #cc0000;
    padding: 14px 0;
    margin-bottom: 20px;
}

.comments__title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-align: center;
}

.comments__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

.comments__item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.commtens__ava {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cc0000;
    flex-shrink: 0;
}

.comments__text-wrapper {
    flex: 1;
    min-width: 0;
}

.comments__name {
    font-size: 15px;
    font-weight: 900;
    color: #cc0000;
    margin-bottom: 6px;
}

.comments__text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.comments__date {
    font-size: 13px;
    color: #aaa;
    margin-top: 6px;
}

.comments__img {
    width: 100%;
    flex-basis: 100%;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 16px;
    font-size: 14px;
    line-height: 2.2;
}
footer a { color: #f77; text-decoration: underline; }
rekv { display: block; font-weight: bold; color: #fff; font-size: 15px; }

/* =========================================
   MISC
   ========================================= */
.form-error {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

#ordr_box {
    display: block;
    height: 0;
    visibility: hidden;
}

.order0 { margin: 16px 0 8px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* Lazy images fade in */
img.lazy { opacity: 1; }

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */
@media (max-width: 640px) {
    .header__logo-text { font-size: 24px; }
    .promo__title { font-size: 19px; }

    .order_block__wrapper { flex-direction: column; }
    .prod_img_wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .prod_img { width: 100px; }
    .priceс { text-align: right; flex: 1; }
    .btn_rulet { font-size: 15px; }
}
