* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
    background: #f5f5f5;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

/* بخش‌ها */

section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}


/* عنوان‌ها */

h1 {
    font-size: 32px;
    color: #1b263b;
    margin-bottom: 25px;
}

h2 {
    color: #333;
}


/* کارت محصولات */

.product-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


.product-box > div {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px #ddd;
    text-align: center;
}


.product-box h3 {
    color: #d35400;
    font-size: 22px;
}


/* دکمه‌ها */

.btn,
button {
    background: #d35400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}


/* جدول قیمت */

table {
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}


th {
    background: #1b263b;
    color: white;
    padding: 15px;
}


td {
    padding: 12px;
    text-align: center;
}


/* فرم پیش فاکتور */

input,
textarea,
select {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}


/* مقالات */

article {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px #ddd;
}


/* موبایل */

@media(max-width:800px){

.product-box {
    grid-template-columns: 1fr;
}

section {
    width: 95%;
}

}
/* Header */

header {
    background: #1b263b;
    padding: 15px 0;
}


.navbar {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
}


.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}


.navbar ul li a {
    color: white;
    font-size: 16px;
    transition: .3s;
}


.navbar ul li a:hover {
    color: #f39c12;
}


/* فونت */

body {
    font-family: Vazirmatn, Tahoma, sans-serif;
}.hero {
    min-height: 450px;
    background-image: linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
    url("/assets/images/pipes.jpg");
    background-size: cover;
    background-position: center;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
    border-radius:15px;
}


.hero h1 {
    color:white;
    font-size:42px;
}


.hero p {
    font-size:20px;
    margin:20px;
}
.home-prices {
    margin-top: 50px;
}

.home-prices h2 {
    text-align: center;
    margin-bottom: 25px;
}

.home-prices table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px #ddd;
}

.home-prices th {
    background: #1b263b;
    color: white;
    padding: 15px;
}

.home-prices td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.home-prices tr:hover {
    background: #f8f8f8;
}
.quote-box {
    background: white;
    padding: 35px;
    margin-top: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px #ddd;
    text-align: center;
}

.quote-box input,
.quote-box textarea {
    max-width: 600px;
    margin: 10px auto;
    display: block;
}

.quote-box textarea {
    height: 120px;
}
.articles-home {
    margin-top: 50px;
}


.articles-home h2 {
    text-align: center;
    margin-bottom: 30px;
}


.article-box {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}


.article-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px #ddd;
    text-align: center;
}


.article-card h3 {
    color: #1b263b;
}


.article-card p {
    line-height: 1.8;
    color: #555;
}


.article-card a {
    display: inline-block;
    margin-top: 15px;
    color: #f39c12;
    font-weight: bold;
}


@media(max-width:800px){

.article-box {
    grid-template-columns:1fr;
}

}
.about-home {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px #ddd;
    text-align: center;
}

.about-home h2 {
    color: #1b263b;
}

.about-home p {
    line-height: 2;
    color: #555;
}
.product-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    display: table;
}

.product-page th {
    background: #1b263b;
    color: white;
    padding: 15px;
    text-align: center;
}

.product-page td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
}

.product-page tr:hover {
    background: #f7f7f7;
}
.product-page {
    width: 100%;
}

.product-page th,
.product-page td {
    min-width: 120px;
}
.home-prices table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.home-prices th,
.home-prices td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.home-prices th {
    white-space: nowrap;
}

.home-prices td {
    word-break: break-word;
}
.product-card{
    background:#fff;
    border-radius:15px;
    padding:20px;
    margin:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    text-align:center;
}

.product-card img{
    width:200px;
    height:150px;
    object-fit:cover;
    border-radius:10px;
}

.product-card h3{
    margin-top:15px;
}

.product-card a{
    display:inline-block;
    background:#b00000;
    color:#fff;
    padding:10px 20px;
    border-radius:8px;
    text-decoration:none;
}
.dropdown{
    position:relative;
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:35px;
    right:0;
    background:#fff;
    width:180px;
    padding:10px;
    border-radius:8px;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    z-index:1000;
}

.dropdown-menu li{
    list-style:none;
    padding:8px;
}

.dropdown-menu li a{
    color:#333;
    text-decoration:none;
}

.dropdown-menu{
    display:none;
}
.dropdown:hover .dropdown-menu{
    display:block;
}
.dropdown{
    position:relative;
}

.dropdown-menu{
    display:none !important;
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    min-width:180px;
    padding:10px;
    z-index:9999;
}

.dropdown:hover .dropdown-menu{
    display:block !important;
}
.product-box{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    justify-content:center;
}

.product-box > div{
    background:#fff;
    width:220px;
    padding:20px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.12);
}

.product-box h3{
    margin-bottom:10px;
}

.product-box a{
    display:inline-block;
    margin-top:15px;
    background:#b00000;
    color:#fff;
    padding:8px 20px;
    border-radius:8px;
    text-decoration:none;
}
.product-box > div{
    display:flex;
    flex-direction:column;
    height:230px;
}

.product-box a{
    margin-top:auto;
}