/* استایل بخش اصلی محتوا */
.content-area {
    padding: 20px;
    max-width: 100rem; 
    margin: 0 auto; 
}

/* استایل پاراگراف‌ها و عناصر متن */
p, 
.woocommerce-product-details__short-description p, 
.comment-text p, 
.woocommerce-tabs .woocommerce-Tabs-panel p,
.single-product .related.products ul.products li.product .woocommerce-loop-product__title, 
.single-product .related.products ul.products li.product .price, 
.single-product .related.products ul.products li.product .button {
    word-wrap: break-word; 
    word-break: break-word; 
}

/* مسیر */
.vwalt-single-product-breadcrumb {
    padding: 20px;
    font-size: 14px;
    color: #666;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.vwalt-single-product-breadcrumb a {
    color: #81858b;
}

.vwalt-single-product-breadcrumb span {
    color: #81858b;
}

.vwalt-single-product-breadcrumb a:hover {
    text-decoration: underline;
}

.single-breadcrumb-separator {
    color: #999;
    margin: 0 10px;
}

/* استایل فرم سبد خرید ووکامرس */
.woocommerce div.product form.cart {
    margin: 0;
    background: #fff;
    padding: 20px;
    border-radius: 25px;
    box-shadow: 0px 3px 15px rgba(0, 0, 255, 0.3);
}

.woocommerce div.product form.cart .button {
    vertical-align: middle;
    float: right;
    background: #000;
    border-radius: 50px;
    padding: 25px;
    width: 100%;
}

.woocommerce div.product form.cart .button:hover {
   background: #7f7f7f;
}

.woocommerce div.product form.cart .variations {
    margin-bottom: 5px;
}

.vwalt-single-page-price {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

/* حذف عنوان و دکمه ریست */
.woocommerce .variations .label {
    display: none;
}

.woocommerce div.product form.cart .reset_variations {
    display: none !important;
}

/* استایل دکمه انتخاب گزینه‌ها */
.woocommerce div.product form.cart .variations select {
    background: transparent;
    color: #00000075;
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    border: 1px solid #00000054;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.woocommerce div.product form.cart .variations select:hover {
    color: #333;
    border: 1px solid #333;
}

/* استایل دکمه‌های تغییرات محصول */
.variation-button {
    background-color: #ffffff;
    color: #2501a5;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid #e4e9ee;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* انیمیشن برای حالت hover */
.variation-button:hover {
    transform: translateY(2px);
    box-shadow: 0px 3px 10px rgba(0, 0, 255, 0.3);
}

.variation-button.selected {
    background-color: #007cba;
    color: #ffffff;
    border-color: #005f99;
}

/* استایل برای ردیف و ستون محصولات */
.row {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    justify-content: space-around;
}

/* ستون سمت چپ برای تصویر محصول */
.col-5 {
    width: 50%;
    box-sizing: border-box;
    display: flex;
    padding-left: 15px;
}

/* ستون سمت راست برای جزئیات محصول */
.col-7 {
    width: 50%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 15px;
}

/* استایل گالری تصاویر محصول */
.woocommerce-product-gallery__wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 25px;
}

.woocommerce div.product div.images {
    margin-bottom: 2em;
    width: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    transition: all cubic-bezier(.795,-.035,0,1) .5s;
    margin: 0;
    padding: 0;
    max-height: 512px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    width: 100%;
    background: #fff;
    padding: 0;
    border-radius: 25px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* استایل عنوان، قیمت و توضیحات محصول */
.product_title.entry-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vwalt-product-title {
    font-size: 20px;
    font-weight: bold;
    color: #0c0c0c;
}

.product-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
}

.product-share-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    padding: 0;
}

.product-share-button svg {
    width: 24px; 
    height: 24px;
    transition: fill 0.3s ease;
    fill: #3f4064a3; 
}

.product-share-button:hover svg {
    fill: #027bff; 
}


.woocommerce-product-details__short-description {
    font-size: 14px;
    color: #0c0c0c;
    margin-bottom: 20px;
    line-height: 1.6;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 25px 25px 0 0;
    margin-bottom: -5em;
    padding-bottom: 7em;
    box-shadow: 0px 3px 15px rgba(0, 0, 255, 0.3);
}

/* استایل فرم انتخاب و دکمه افزودن به سبد خرید */
.variations_form.cart {
    margin-top: 20px;
}

.variations_form select {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    margin-bottom: 10px;
}

.woocommerce-variation-add-to-cart .quantity input.qty {
    width: 60px;
    padding: 10px;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.single_add_to_cart_button {
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.single_add_to_cart_button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single_add_to_cart_button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.single_variation_wrap {
    margin: 0;
}

.single-product form.cart div.quantity {
    display: none !important;
}

/* استایل بخش تب‌ها */
.woocommerce-tabs {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-Tabs-panel--description h2:first-child,
.woocommerce-Tabs-panel--additional_information h2:first-child {
    display: none;
}

.woocommerce-tabs ul.tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid #f0f4f8;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
}

.woocommerce-tabs ul.tabs li {
    flex: 1 0 auto;
    text-align: center;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    color: #555;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce-tabs ul.tabs li a:hover,
.woocommerce-tabs ul.tabs li.active a {
    color: #007bff;
    background-color: #fff;
    border-radius: 25px;
}

.woocommerce-tabs ul.tabs li a::after {
    content: "";
    display: block;
    height: 4px;
    width: 0;
    background: #007bff;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transition: width 0.3s ease, left 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a::after,
.woocommerce-tabs ul.tabs li a:hover::after {
    width: 100%;
    left: 0;
}

.woocommerce-tabs .woocommerce-Tabs-panel {
    display: none;
    font-size: 14px;
    color: #333;
    margin: 20px;
    padding-bottom: 10px;
}

.woocommerce-tabs .woocommerce-Tabs-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* استایل دکمه‌های ارسال نظر */
.woocommerce-Reviews .form-submit input[type="submit"],
.woocommerce-Reviews input[type="submit"] {
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.woocommerce-Reviews .form-submit input[type="submit"]:hover,
.woocommerce-Reviews input[type="submit"]:hover {
    background-color: #2980b9;
}

.woocommerce-Tabs-panel input,
.woocommerce-Tabs-panel textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.woocommerce-Tabs-panel textarea {
    height: 120px;
    resize: none;
}

/* استایل برای سوال (نظرات اصلی) */
.woocommerce #reviews #comments ol.commentlist > li.comment > .comment_container > .comment-text {
    background-color: #0584fe;
    color: #fff;
    font-size: 14px;
}

/* استایل برای جواب (نظرات پاسخ) */
.woocommerce #reviews #comments ol.commentlist li.comment ul.children li.comment > .comment_container > .comment-text {
    background-color: #e3f7df;
    color: #27a654;
    font-size: 14px;
}

/* استایل برای متای نظرات */
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta {
    font-size: .83em;
    color: #fff;
}

/* استایل برای ستاره‌های امتیازدهی سفارشی */
.custom-star-rating {
    margin-bottom: 5px;
    font-size: 16px; /* اندازه ستاره‌ها */
    color: #ffc107; /* رنگ ستاره‌های پر */
}

.custom-star-rating .star {
    font-family: Arial, sans-serif;
    display: inline-block;
    margin-right: 2px;
}

.custom-star-rating .star.empty {
    color: #ddd; /* رنگ ستاره‌های خالی */
}


/* رنگ متا برای سوالات اصلی */
.woocommerce #reviews #comments ol.commentlist > li.comment > .comment_container > .comment-text p.meta {
    color: #ffffff;
    font-size: 10px;
}

/* رنگ متا برای نظرات پاسخ */
.woocommerce #reviews #comments ol.commentlist ul.children li.comment > .comment_container > .comment-text p.meta {
    color: #28a745;
    font-size: 10px;
}

/* استایل آواتار نظرات */
.commentlist .comment .comment_container img.avatar {
    border-radius: 15px;
    margin-right: 10px;
}

.woocommerce #reviews #comments ol.commentlist li img.avatar {
    float: right;
    position: absolute;
    top: 10px;
    right: 0;
    padding: 0;
    width: 42px;
    border-radius: 15px;
    height: auto;
    background: none;
    border: none;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.6);
}

/* تنظیم استایل برای متن نظرات */
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    margin: 10px 50px 0 0;
    border: none;
    border-radius: 20px;
    padding: 1em 1em 0;
    display: flex;
    flex-direction: column-reverse;
    background-color: #0584fe;
    color: #fff;
    font-size: 14px;
}

/* استایل برای ستاره های امتیاز */
.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating {
    margin-bottom: 5px;
    font-size: 12px; /* اندازه متن در بخش امتیاز */
    color: #ffffff; /* رنگ متن ستاره‌ها */
}

/* استایل برای بخش توضیحات نظرات */
.woocommerce #reviews #comments ol.commentlist li .comment-text .description {
    font-size: 13px;
    margin-top: 5px;
    color: inherit; /* رنگ متن به رنگ عمومی بخش نظرات */
}

/* مخفی کردن عناوین پیش‌فرض نظرات */
.comment-reply-title, .woocommerce-Reviews-title {
    display: none;
}

/* استایل کلی نظرات */
.woocommerce-Reviews {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column-reverse;
}

.woocommerce #reviews #comments ol.commentlist {
    background: #fff;
    padding: 15px;
}

.woocommerce-noreviews {
    padding: 15px;
}

.woocommerce #reviews #comments ol.commentlist ul.children {
    list-style: none outside;
    margin: 0;
    padding: 0;
}

.woocommerce #reviews #comments ol.commentlist li {
    margin: 0;
}

.woocommerce #review_form #respond {
    text-align: center; 
}

.must-log-in {
    padding: 10px;
}

.custom-comment-notice {
    margin-top: 10px;
    padding: 10px 0;
    color: green;
    text-align: center;
    font-weight: bold;
}

/* استایل لیست نظرات اسکرول‌دار */
.woocommerce-Reviews .commentlist {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8f8f8;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

/* استایل فرم ارسال نظر */
.comment-form {
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #f0f4f8;
}

/* استایل ستاره‌های امتیازدهی */
.comment-form .comment-form-rating {
    display: flex;
    justify-content: center;
    font-size: 2.5em; 
    margin-bottom: -10px;
    transform: perspective(500px) rotateX(15deg); 
    text-shadow: 0px 8px 20px rgba(0, 0, 255, 0.3);
}

.woocommerce p.stars a {
   color: #3d04ff;
   font-size: 34px;
}

/* چینش دکمه ارسال و فیلد تایپ در یک ردیف */
.comment-form .form-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: row-reverse;
}

.comment-form .form-submit input#submit {
    background-color: #0064ff !important; 
    color: #ffffff !important;
    padding: 20px !important;
    border-radius: 50px !important;
}

.comment-form .form-submit input#submit:hover {
    background-color: #0957d0 !important; 
}

/* تغییر ارتفاع و استایل فیلد تایپ نظر در ووکامرس */
.woocommerce #reviews #comment {
    height: 7em;
    border-radius: 15px;
    margin: 0;
    background: #f8f9fa;
}

/* استایل بخش متا محصول */
.product-meta {
    margin-top: 30px;
    padding-top: 20px;
    background-color: #f2f2ff75;
    border-radius: 15px;
    padding: 20px;
}

.product-meta-item {
    margin-bottom: 10px;
    font-size: 13px;
    color: #3f4064;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.product-meta-item strong {
    font-weight: bold;
    color: #3f4064;
    margin-right: 5px; 
    flex-shrink: 0;
}

.product-meta-item .meta-value {
    margin-left: 10px;
}

.product-meta-item a {
    color: #3f4064;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.product-meta-item a:hover {
    color: #3f4064;
    text-decoration: underline;
}

.product-meta-item:last-child {
    margin-bottom: 0;
}

/* استایل محصولات مرتبط */
.vwalt-single-products-title {
    width: 100%;
    font-size: 34px;
    margin-bottom: 40px;
    text-align: center; 
    color: #333;
    text-shadow: 2px 2px 45px rgba(0, 0, 255, 0.5);
    transform: perspective(500px) rotateX(25deg) scale(0.9); 
}

.vwalt-single-products-random {
    margin-top: 40px;
}

.vwalt-random-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.vwalt-random-product {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    padding: 15px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vwalt-random-product:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 255, 0.3);
}

.vwalt-random-product img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 15px;
    object-fit: cover;
}

.vwalt-random-product h3 {
    font-size: 13px;
    margin: 10px 0 0;
    color: #333;
}


@media (max-width: 1024px) {
    .row {
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
        flex-direction: column;
    }

    .col-7, .col-5 {
        width: 100%;
        padding: 0;
    }
    
    .woocommerce-product-gallery {
        margin-bottom: 20px;
    }

    .single_add_to_cart_button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    
    .content-area {
        padding: 20px 10px;
    }
    
    .vwalt-random-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vwalt-random-products-grid .vwalt-random-product:nth-child(3) {
        display: none;
    }
}
