/* =======================================
   استایل‌های پایه و عمومی صفحه
   ======================================= */

@font-face {
    font-family: titr;
    src: url(../../fonts/Rubik/static/Rubik-Bold.ttf);
}
@font-face {
    font-family: titr2;
    src: url(../../fonts/Lalezar-Regular.ttf);
}
@font-face {
    font-family: titr3;
    src: url(../../fonts/Alexandria/static/Alexandria-Bold.ttf);
}
@font-face {
    font-family: titr4;
    src: url(../../fonts/Rubik/static/Rubik-Bold.ttf);
}

.titr{
    font-size: 18px;
    font-family: titr;
    text-shadow: 0.1rem 0.1rem 0.8rem #000;
    
}
.titr2{
    font-family: titr2;
    font-size: 28px;
    text-shadow: 0.1rem 0.1rem 0.8rem #fff;
}
.titr3{
    font-family: titr3;
    font-size: 17px;
}
.titr4{
    font-family: titr4;
    font-size: 17px;
}
.titr5{
    font-family: titr3;
    font-size: 13px;
    text-shadow: 1px 2px #06ee9d;
}
.titr5:hover{
    font-size: 17px;
    transition: 800ms;
}
.titr6{
    color: #000;
    font-family: titr4;
    font-size: 19px;
    
}
.titr7{
    color: #000;
    font-family: titr4;
    font-size: 30px;
}
.titr8{
    color: #000;
    font-family: titr4;
    font-size: 18px;
}

body, html {
    background-image: url('../images/callbg2.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    font-family: titr3, Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}

#single-product-container {
    padding: 100px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =======================================
   کارت اصلی محصول (چیدمان افقی)
   ======================================= */
.product-details-card {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    overflow: hidden; /* برای گردی گوشه‌های داخلی */
    margin-bottom: 30px;
}

/* =======================================
   بخش تصویر محصول (با افکت زوم)
   ======================================= */
.product-image-container {
    flex: 1 1 450px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa; /* پس‌زمینه روشن برای تصاویر کوچک */
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0s cubic-be.5zier(0.25, 0.8, 0.25, 1);
}

.product-image-container:hover {
    cursor: zoom-in;
}
.product-image-container:hover img {
    transform: scale(1.30);
    transition: 0.8s;
}

/* =======================================
   بخش اطلاعات محصول
   ======================================= */
.product-info {
    flex: 1 1 400px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-family: titr2, Tahoma, sans-serif;
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.product-category {
    font-family: titr4, Tahoma, sans-serif;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}
.product-category a {
    color: rgb(76, 159, 200);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
.product-category a:hover {
    color: rgb(60, 140, 180);
}

.product-price {
    font-family: titr2, Tahoma, sans-serif;
    font-size: 26px;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 25px;
}
.product-price::before {
    content: 'قیمت: ';
    font-family: titr4;
    font-size: 16px;
    color: #555;
    font-weight: normal;
}

.product-description {
    font-family: titr4, Tahoma, sans-serif;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    text-align: justify;
}

.btn-add-to-cart {
    background: linear-gradient(45deg, rgb(76, 159, 200), rgb(60, 140, 180));
    color: white;
    padding: 15px 30px;
    border-radius: 50px; /* دکمه گرد */
    text-decoration: none;
    font-family: titr4, Tahoma, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 159, 200, 0.3);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 159, 200, 0.4);
    background: linear-gradient(45deg, rgb(60, 140, 180), rgb(50, 120, 160));
}

/* =======================================
   استایل کارت‌های مجزا (توضیحات و نظرات)
   ======================================= */
.content-card {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.12);
}

.content-card h2 {
    font-family: titr2, Tahoma, sans-serif;
    color: #333;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(76, 159, 200);
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-card h2 i {
    color: rgb(76, 159, 200);
}

.description-content {
    font-family: titr4, Tahoma, sans-serif;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}

/* =======================================
   بخش نظرات و امتیازات
   ======================================= */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
}
.stars {
    color: #ffc107;
    font-size: 22px;
}
.rating-text {
    font-family: titr4, Tahoma, sans-serif;
    color: #555;
}

.comment-form .form-group {
    margin-bottom: 20px;
}
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-family: titr4, Tahoma, sans-serif;
    font-weight: bold;
    color: #333;
}
.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: titr4, Tahoma, sans-serif;
    transition: border-color 0.3s ease;
}
.comment-form input:focus, .comment-form textarea:focus {
    border-color: rgb(76, 159, 200);
    outline: none;
}
.btn-submit-comment {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-family: titr4, Tahoma, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-submit-comment:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* =======================================
   رسپانسیو برای موبایل
   ======================================= */
@media (max-width: 968px) {
    .product-details-card {
        flex-direction: column;
    }
    .product-info {
        padding: 30px 20px;
    }
    .product-title {
        font-size: 24px;
    }
}
/* =======================================
   استایل امتیازدهی ستاره‌ای
   ======================================= */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* چون راست‌چین هستیم */
    justify-content: flex-end;
    font-size: 2.5em; /* اندازه ستاره‌ها */
}

.star-rating input[type="radio"] {
    display: none; /* مخفی کردن رادیو باتن‌های پیش‌فرض */
}

.star-rating label {
    color: #ddd; /* رنگ ستاره‌های خالی */
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 2px;
}

.star-rating input[type="radio"]:checked ~ label {
    color: #ffc107; /* رنگ ستاره‌های انتخاب شده */
}

/* افکت هاور: وقتی ماوس روی ستاره‌ها می‌رود */
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffc107;
}

/* برای اینکه هاور روی ستاره‌های قبلی کار کند */
.star-rating input[type="radio"]:checked ~ label:hover,
.star-rating input[type="radio"]:checked ~ label:hover ~ label {
    color: #ddd;
}
/* =======================================
   استایل‌های بخش نظرات
   ======================================= */
.comments-list {
    margin-top: 30px;
}

.comment-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.comment-author {
    font-family: titr4, Tahoma, sans-serif;
    font-weight: bold;
    color: #495057;
}

.comment-date {
    font-family: titr4, Tahoma, sans-serif;
    font-size: 13px;
    color: #6c757d;
}

.comment-content p {
    font-family: titr4, Tahoma, sans-serif;
    line-height: 1.8;
    color: #343a40;
    margin: 0;
}

.no-comments {
    text-align: center;
    padding: 30px;
    font-family: titr4, Tahoma, sans-serif;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 10px;
}
/* استایل‌های بخش کشور سازنده */
.product-origin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-family: 'titr3', Tahoma, sans-serif;
    color: #555;
}

.origin-label {
    font-weight: bold;
}

.origin-flag {
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.license-plus {
    font-size: 1.2em;
    font-weight: bold;
    color: #888;
}