﻿/* ریست پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* بدنه کلی صفحه */
body {
    font-family: Parastoo, Parastoo, Tahoma, sans-serif;
    background: #f6f8fc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* رپّر اصلی که Flex روی آن اعمال می‌شود (داخل form) */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* support box */
.support {
    position: absolute;
    right: 20px;
    background: linear-gradient(135deg, #4f7cff, #3c5cff);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* desktop menu */
.menu {
    display: flex;
    gap: 18px;
}

.menu a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: 0.25s;
}

.menu a:hover {
    background: #f1f3f9;
    color: #000;
}

/* mobile button */
.menu-btn {
    position: absolute;
    left: 20px;
    font-size: 26px;
    cursor: pointer;
    display: none;
}

/* mobile menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    text-align: right;
}

.mobile-menu a {
    text-decoration: none;
    color: #444;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: .2s;
}

.mobile-menu a:hover {
    color: #000;
    padding-right: 6px;
}

/* center area */
.center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-top: 70px; /* برای اینکه زیر هدر نرود */
}

/* logo */
.logo {
    font-size: 64px;
    font-weight: bold;
    letter-spacing: -2px;
    margin-bottom: 35px;
}

.logo span:nth-child(1) {
    color: #4285f4;
}

.logo span:nth-child(2) {
    color: #ea4335;
}

.logo span:nth-child(3) {
    color: #fbbc05;
}

.logo span:nth-child(4) {
    color: #4285f4;
}

.logo span:nth-child(5) {
    color: #34a853;
}

.logo span:nth-child(6) {
    color: #ea4335;
}
.logo span:nth-child(7) {
    color: lightseagreen;
}
.logo span:nth-child(8) {
    color: darkslateblue;
}
.logo span:nth-child(9) {
    color: #ea4335;
}

/* search */
.search {
    width: 90%;
    max-width: 720px;
    background: white;
    border-radius: 40px;
    padding: 18px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    transition: .25s;
}

.search:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 20px;
    background: transparent;
    text-align: right;
}

.icon {
    margin-left: 15px;
    font-size: 22px;
    color: #777;
}

/* mobile */
@media (max-width: 768px) {

    .menu {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .logo {
        font-size: 46px;
    }

    .search {
        padding: 16px 20px;
    }

   .search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 20px;
    background: transparent;
    text-align: right;
}

.hidden-btn {
    display: none;
}
}
.results-wrapper {
    margin-top: 100px;
    width: 90%;
    max-width: 900px;
}

.results-list {
    list-style: none;
    margin-top: 20px;
}

.result-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.result-link {
    color: #333;
    text-decoration: none;
    display: block;
}
.result-link:hover {
    color: #0078ff;
}
/* صفحه جزییات محصول */
.product-page {
    margin-top: 110px; /* کمی پایین‌تر از هدر اصلی */
    width: 100%;
    max-width: 1100px;
}

.product-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

/* ستون تصویر */
.product-image-box {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    object-fit: contain;
}

/* ستون اطلاعات */
.product-info-box {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* متای محصول (شناسه، بازدید) */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: #64748b;
}

.product-meta span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

/* توضیح کوتاه */
.product-short-desc {
    font-size: 14px;
    line-height: 2;
    color: #4b5563;
    margin: 0;
}

/* قیمت و دکمه */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    color: #0f172a;
}

.price-label {
    font-size: 13px;
    color: #64748b;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
}

.price-currency {
    font-size: 13px;
    color: #6b7280;
}

/* دکمه اصلی (هماهنگ با استایل شیشه‌ای سایت) */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, #0284c7, #4f46e5);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

.download-btn {
    min-width: 220px;
}

/* توضیحات کامل محصول */
.product-description-section {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.product-description {
    font-size: 14px;
    line-height: 2.1;
    color: #4b5563;
}

/* برای هر تگی که از دیتابیس می‌آید (p, ul, li و...) کمی فاصله */
.product-description p,
.product-description ul,
.product-description li {
    margin-bottom: 8px;
}

/* واکنش‌گرا (موبایل) */
@media (max-width: 768px) {
    .product-card {
        padding: 18px;
    }

    .product-image-box {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }

    .product-info-box {
        flex: 1 1 100%;
    }

    .product-title {
        font-size: 20px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .download-btn {
        width: 100%;
    }
}
