/* استایل‌های کلی */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background: #f9f9f9;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر */
.header {
    background: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.logo h1 {
    font-size: 24px;
    color: #ff6f61;
    margin: 0;
}

.navmenu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navmenu ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.navmenu ul li a:hover {
    color: #ff6f61;
}

.btn-getstarted {
    background: #ff6f61;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* محتوای اصلی */
.main {
    margin-top: 80px;
    padding: 20px 0;
}

.product-details-container {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.product-gallery {
    flex: 1;
}

.main-image {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}


.main-image:hover img {
    transform: scale(1.2);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.gallery-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s;
}

.gallery-item.active img,
.gallery-item:hover img {
    border-color: #ff6f61;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rating .stars i {
    color: #ff6f61;
}

.rating-text {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.availability {
    color: #28a745;
    font-size: 14px;
}

.price-container {
    margin: 20px 0;
}

.current-price {
    font-size: 26px;
    color: #ff6f61;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-right: 10px;
}

.discount-badge {
    background: #ff6f61;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.product-description-short p {
    color: #666;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.add-to-cart-btn {
    background: #ff6f61;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #e65b50;
}

.wishlist-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.wishlist-btn:hover {
    color: #ff6f61;
}

.product-features h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
}

.product-features ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    margin-bottom: 10px;
}

/* فوتر */
/*.footer {*/
/*  background: #2c2c2c;*/
/*  color: #fff;*/
/*  padding: 40px 0;*/
/*}*/

/*.footer-top {*/
/*  text-align: center;*/
/*}*/

/*.footer-about .logo span {*/
/*  font-size: 24px;*/
/*  color: #ff6f61;*/
/*}*/

/*.footer-contact p {*/
/*  margin: 10px 0;*/
/*  font-size: 14px;*/
/*}*/

/*.footer-contact strong {*/
/*  color: #ff6f61;*/
/*}*/

/*.social-links {*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  gap: 20px;*/
/*  margin-top: 20px;*/
/*}*/

/*.social-links a {*/
/*  color: #fff;*/
/*  font-size: 20px;*/
/*  transition: color 0.3s;*/
/*}*/

/*.social-links a:hover {*/
/*  color: #ff6f61;*/
/*}*/

/*.copyright {*/
/*  border-top: 1px solid #444;*/
/*  padding-top: 20px;*/
/*  text-align: center;*/
/*  font-size: 14px;*/
/*}*/

/*.copyright a {*/
/*  color: #ff6f61;*/
/*  text-decoration: none;*/
/*}*/

/* طراحی ریسپانسیو */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px;
    }

    .navmenu ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #fff;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }

    .navmenu ul.show {
        display: flex;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .btn-getstarted {
        margin-top: 10px;
    }

    .product-details-container {
        flex-direction: column;
    }

    .gallery-thumbnails {
        flex-wrap: wrap;
        gap: 8px;
    }

    .gallery-item img {
        width: 60px;
        height: 60px;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .current-price {
        font-size: 22px;
    }

    .gallery-item img {
        width: 50px;
        height: 50px;
    }

    .add-to-cart-btn {
        font-size: 14px;
        padding: 10px;
    }
}

.product-info {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.price-container {
    margin: 20px 0;
    direction: rtl;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #c00;
}

.old-price {
    font-size: 18px;
    text-decoration: line-through;
    color: #777;
    margin-right: 10px;
}

.discount-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.product-description-short {
    margin: 25px 0;
    line-height: 1.8;
    text-align: justify;
}

.product-specs {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.product-specs h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-specs ul {
    list-style-type: none;
    padding: 0;
}

.product-specs li {
    margin-bottom: 8px;
}

.availability.in-stock {
    color: green;
    font-weight: bold;
}

.availability.out-of-stock {
    color: red;
    font-weight: bold;
}

.btn-addtocart {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    width: 100%;
}

.btn-addtocart:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.quantity-btn {
    background-color: #f1f1f1;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    margin: 0 5px;
    border: 1px solid #ddd;
}

.product-description-container {
    margin: 25px 0;
}

.product-description-box {
    border: 1px solid #e0e0e0;
    border-radius: 15px; /* لبه های گرد */
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.description-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.product-description-content {
    line-height: 1.8;
    text-align: justify;
}

.product-description-content p {
    margin-bottom: 15px;
}

.product-description-content p:last-child {
    margin-bottom: 0;
}

/* استایل گالری */
/* استایل گالری */


.main-image-container {
    width: 100%;
    height: 400px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #f9f9f9;
}


.thumbnails-wrapper {
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* مخفی کردن اسکرول‌بار در فایرفاکس */
    -ms-overflow-style: none; /* مخفی کردن اسکرول‌بار در اینترنت اکسپلورر */
}

.thumbnails-wrapper::-webkit-scrollbar {
    display: none; /* مخفی کردن اسکرول‌بار در کروم، سافاری و اج */
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    min-width: max-content;
    padding: 0 15px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #ff6f61;
}

.thumbnail-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* حالت زوم */
.main-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .main-image-container {
        height: 100px;
        touch-action: pan-y;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }

    /* اسلایدر برای موبایل */
    .thumbnails-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* اسکرول روان در iOS */
    }

    .thumbnail-container {
        justify-content: flex-start; /* شروع از چپ در موبایل */
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 250px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

/*.main-image img {*/
/*    max-width: 100%;*/
/*    height: auto;*/
/*    width: 400px; !* اندازه دلخواه *!*/
/*    max-height: 400px; !* حداکثر ارتفاع *!*/
/*    object-fit: contain;*/
/*}*/
@media (max-width: 768px) {
    .main-image img {
        width: 300px;
        max-height: 300px;
    }
}

@media (min-width: 768px) {
    .main-image img {
        max-width: 100%;
        height: auto;
        width: 400px; /* اندازه دلخواه */
        max-height: 400px; /* حداکثر ارتفاع */
        object-fit: contain;
    }

}

.footer {
    background: #f8f8f8;
    padding: 60px 0 30px;
    font-family: 'Vazirmatn', sans-serif;
}

.footer-top {
    padding-bottom: 30px;
}

.footer-about .logo {
    font-size: 24px;
    font-weight: 700;
    color: #a11212;
}

.footer-about p {
    color: #666;
    line-height: 1.8;
}

.footer-links h4,
.footer-newsletter h4 {
    color: #a11212;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-newsletter h4:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #a11212;
}

.footer-links ul,
.footer-newsletter ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-newsletter li {
    padding: 8px 0;
}

.footer-links a,
.footer-newsletter a {
    color: #666;
    transition: 0.3s;
}

.footer-links a:hover,
.footer-newsletter a:hover {
    color: #a11212;
    padding-right: 5px;
}

.footer-links i {
    color: #a11212;
    margin-left: 8px;
}

.copyright {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #666;
    font-size: 14px;
}

.main-image {
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.main-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.active,
.gallery-item:hover {
    border-color: #ff6f61;
    transform: scale(1.05);
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.quick-links li {
    margin-bottom: 10px;
}

/* بخش نظرات کاربران */
.reviews-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reviews-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 10px;
}

