/*
Theme Name: MiniShop
Theme URI: phproject.ir
Author: Phoenix
Author URI: 
Description: a mini shop website
Version: 1.2
License: 
License URI: 
Text Domain:
Tags: 
*/

/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

/* change colours to suit your needs */
ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

/* change colours to suit your needs */
mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Vazirmatn;
    src: url('assets/webfonts/Vazirmatn-FD-NL-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: Vazirmatn !important;
    overflow-x: hidden !important;
    height: 100%;
    background-color: #f8f9fa !important;
    color: #2d465e !important;
}

.fs-90 {
    font-size: 0.85rem;
}

.toresina-logo {
    background: #c4ffdd;
    background: linear-gradient(90deg, rgba(196, 255, 221, 1) 2%, rgba(137, 250, 186, 1) 30%, rgba(33, 235, 120, 1) 100%);
    width: 160px;
}

.toresina-description {
    /* background: #ffd1f0;
    background: linear-gradient(90deg, rgba(255, 209, 240, 1) 2%, rgba(250, 182, 229, 1) 30%, rgba(255, 133, 214, 1) 100%);
    width: 250px !important; */
}

.story,
.mag-post {
    overflow-x: scroll !important;
}

.single .mag-post p {
    /* background-color: #fff;
    padding: 5px 7px;
    border-radius: 8px; */
}

.story .item {
    width: 80px;
    min-width: 80px !important;
    min-height: 80px !important;
}

.top-banner .item {
    width: 100%;
    height: 200px;
}

/* استایل بخش دسته‌بندی‌ها */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0px 0;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    background: #f8f9fa;
}

.category-icon {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: #007bff;
    transform: scale(1.1);
}

.category-icon img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 8px;
}

.category-name {
    font-weight: 600;
    color: #2d465e;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-name {
    color: #007bff;
}

/* استایل صفحه دسته‌بندی */
.category-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.category-info {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 40px;
    text-align: right;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.category-description {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.category-meta {
    display: flex;
    gap: 20px;
}

.product-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* گرید محصولات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px 0;
}

.product-title a {
    color: #2d465e;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* صفحه‌بندی */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .category-hero {
        height: 200px;
    }

    .category-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}


.product-box,
.custom-shop-page .product-box {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: relative;
    width: 170px !important;
    /* max-width: 242.7px; */
    height: 275.06px;
    background-color: #e9e9e9e9;
    border-radius: 12px;
}

.product-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgb(31, 31, 31) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 12px;
}

.related-product .product-box {
    width: 120px !important;
    height: 194.16px !important;
}

.related-product .product-box img {
    width: 100% !important;
    height: 100% !important;
}

.product-box-title {
    position: absolute;
    bottom: 20px;
    margin: 0;
    color: white;
    z-index: 1;
}

.index .mag-box {
    min-width: 250px;
    width: 350px;
    height: 154.5px;
    background-color: #e9e9e9e9;
    border-radius: 12px;
    padding: 8px 12px;
}

.ads-box {
    padding: 10px;
    /* background-color: #ffde22; */
    border-radius: 20px;
    text-align: center;
}

.footer {
    height: 300px;
    background-color: #fff;
}

.gradient {
    background: #FFB75E;
    background: linear-gradient(to right,
            #eb9c3c, #ffaf37);
}


/* style for single-product */
.single-product-page .product-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px !important;
}

.single-product-page .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
}

.single-product-page .product-images {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.single-product-page .product-images img {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.bg-green {
    background-color: #10DF68 !important;
}

.text-pink {
    color: #ff414e !important;
    ;
}

.text-green {
    color: #2ECC71 !important;
}

.text-justify {
    text-align: justify !important;
}

/* style for blog page */
.blog .mag-box {
    min-width: 350px;
    width: 100%;
    height: 154.5px;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid #dfdfdf;
}

/* style for single page */
.single .mag-box {
    min-width: 250px;
    width: 100%;
}

/* style for cart */
.cart-product-box .cart-products .product-item {
    width: 100%;
    height: 150px;
    background-color: #fff;
    border-radius: 8px;

}

.cart-product-box .cart-products .product-item {
    /* padding: 8px; */
}

.list-group .thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 0 8px 0 8px;
}

.list-group .thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 0 8px 0 8px;
}

.text-color {
    color: #2d465e !important;
}

.page-numbers {
    border: 1px solid #b1b1b1;
    padding: 2px 12px;
    border-radius: 5px;
}

.paginate-box a {
    text-decoration: none;
    color: #2d465e;
}

.paginate-box .current {
    background-color: #afafaf;
}

.social-box img {
    width: 30px;
    height: 30px;
}

.fixed-menu {
    z-index: 100000;
}

.quantity {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 2px;
}

.quantity button,
input {
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #afafaf;
    width: 34px;
    height: 34px;
    text-align: center;
}

/* برای مرورگرهای WebKit مثل Chrome و Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* برای مرورگر Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.slider-single-product-images .slide,
.slider-single-product-images img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: auto;
    /* اطمینان از دریافت رویدادها */
}

.btn-pink {
    background-color: rgba(255, 133, 214, 1) !important;
}

.btn-green-add-to-cart {
    background-color: rgb(36, 235, 122) !important;
}

.woocommerce-popup {
    position: fixed;
    top: 120px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
    font-family: system-ui;
}

.woocommerce-popup.show {
    transform: translateX(0);
}

.woocommerce-popup.error {
    background: #dc3545;
}

.woocommerce-popup.warning {
    background: #ffc107;
    color: #000;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-popup.warning .popup-close {
    color: #000;
}

.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading {
    font-size: large !important;
    margin-top: 8px !important;
}

#order_review {
    background-color: #fff;
}

/* Profile Styles */

/* استایل برای منوی حساب کاربری */
.woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
    margin-bottom: 30px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #fff;
    color: #007bff;
    border-color: #007bff;
    transform: translateX(5px);
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* آیکون برای منوها */
.woocommerce-MyAccount-navigation a::before {
    font-family: 'Bootstrap Icons';
    margin-left: 10px;
    font-size: 16px;
}

.woocommerce-MyAccount-navigation a[href*="dashboard"]::before {
    content: "\f3e2";
    /* house */
}

.woocommerce-MyAccount-navigation a[href*="orders"]::before {
    content: "\f295";
    /* bag */
}

.woocommerce-MyAccount-navigation a[href*="downloads"]::before {
    content: "\f30a";
    /* download */
}

.woocommerce-MyAccount-navigation a[href*="edit-address"]::before {
    content: "\f3e8";
    /* geo-alt */
}

.woocommerce-MyAccount-navigation a[href*="edit-account"]::before {
    content: "\f4e1";
    /* person */
}

.woocommerce-MyAccount-navigation a[href*="customer-logout"]::before {
    content: "\f343";
    /* box-arrow-left */
}

/* استایل برای محتوای اصلی */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

/* استایل برای تایتل صفحه */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #2d465e;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* استایل برای جدول سفارشات */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-orders-table thead {
    background: #f8f9fa;
}

.woocommerce-orders-table th {
    padding: 15px;
    text-align: right;
    font-weight: 600;
    color: #2d465e;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    text-align: center;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
    text-align: center;
}

/* استایل برای دکمه‌ها */
.woocommerce-button {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.woocommerce-button:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* استایل برای فرم‌ها */
.woocommerce-form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d465e;
}

.woocommerce-form__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.woocommerce-form__input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* استایل برای وضعیت‌های سفارش */
.woocommerce-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.woocommerce-badge--completed {
    background: #d4edda;
    color: #155724;
}

.woocommerce-badge--processing {
    background: #cce7ff;
    color: #004085;
}

.woocommerce-badge--pending {
    background: #fff3cd;
    color: #856404;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation a {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        font-size: 14px;
    }

    .woocommerce-MyAccount-navigation a::before {
        display: none;
    }

    .woocommerce-orders-table {
        display: block;
        overflow-x: auto;
    }
}

/* استایل برای صفحه آدرس‌ها */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.woocommerce-Address {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.woocommerce-Address:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.woocommerce-Address-title h3 {
    color: #2d465e;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.woocommerce-Address-title .edit {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.woocommerce-Address-title .edit:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.address {
    line-height: 1.8;
    color: #555;
}

.address p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.address strong {
    color: #2d465e;
    min-width: 100px;
    display: inline-block;
}

/* استایل برای فرم ویرایش آدرس */
.woocommerce-address-fields {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.woocommerce-address-fields__field-wrapper p {
    margin: 0;
}

.woocommerce-address-fields__field-wrapper p.form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-address-fields label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d465e;
}

.woocommerce-address-fields input,
.woocommerce-address-fields select,
.woocommerce-address-fields textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus,
.woocommerce-address-fields textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.woocommerce-address-fields button {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-address-fields button:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* استایل برای وقتی آدرس خالیه */
.woocommerce-Address .none {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .woocommerce-Address-title {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .address p {
        flex-direction: column;
        align-items: flex-start;
    }

    .address strong {
        margin-bottom: 5px;
    }
}

/* استایل برای دکمه برگشت */
.woocommerce .button {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.woocommerce .button:hover {
    background: #545b62;
    color: white;
    transform: translateY(-2px);
}

/* ==================== */
/* استایل‌های جدید برای آدرس‌ها */
/* ==================== */

/* استایل فقط برای woocommerce-Address */
.woocommerce-Address {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 25px !important;
    border-left: 4px solid #007bff !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce-Address:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #dee2e6 !important;
}

.woocommerce-Address-title h3 {
    color: #2d465e !important;
    margin: 0 !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.woocommerce-Address-title .edit {
    background: #007bff !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.woocommerce-Address-title .edit:hover {
    background: #0056b3 !important;
    transform: translateY(-2px) !important;
}

.address {
    line-height: 1.8 !important;
    color: #555 !important;
}

.address p {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
}

.address strong {
    color: #2d465e !important;
    min-width: 100px !important;
    display: inline-block !important;
}

/* غیرفعال کردن استایل‌های قبلی */
.u-column1,
.col-1 {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    float: none !important;
}

/* استایل برای صفحه آدرس‌ها */
.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-top: 20px !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .woocommerce-Address-title {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center !important;
    }
}

/* روش مطمئن با float */
.woocommerce-MyAccount-navigation {
    float: right;
    width: 300px;
    margin-left: 30px;
    margin-bottom: 0;
}

.woocommerce-MyAccount-content>div {
    float: right;
    width: calc(100% - 330px);
}

/* پاکسازی float */
.woocommerce-MyAccount-content::after {
    content: "";
    display: table;
    clear: both;
}

/* موبایل */
@media (max-width: 768px) {

    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content>div {
        float: none;
        width: 100%;
        margin-left: 0;
    }

    /* منوی افقی در موبایل */
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation li {
        flex: 1;
        min-width: 120px;
    }

    .woocommerce-MyAccount-navigation a {
        justify-content: center;
        text-align: center;
        font-size: 14px;
        padding: 10px 8px;
    }
}

/* استایل برای صفحه ویرایش آدرس */
.custom-edit-address-page {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.custom-edit-address-page .page-title {
    color: #2d465e;
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 600;
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.woocommerce-address-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-form-row {
    margin-bottom: 0;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d465e;
}

.woocommerce-form-row input,
.woocommerce-form-row select,
.woocommerce-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.woocommerce-form-row input:focus,
.woocommerce-form-row select:focus,
.woocommerce-form-row textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.form-actions {
    text-align: left;
    margin-top: 30px;
}

.btn-primary {
    background: #28a745;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .custom-edit-address-page {
        padding: 20px;
    }
}

/* استایل صفحه جزئیات سفارش */
.custom-view-order-page {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.order-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.order-title {
    color: #2d465e;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.order-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.order-date,
.order-status {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #cce7ff;
    color: #004085;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #dc3545;
}

.order-details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: #2d465e;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    /* font-size: 1.3rem; */
}

/* استایل محصولات */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #28a745;
}

.product-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    margin: 0 0 8px 0;
    color: #2d465e;
    font-size: 1.1rem;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* استایل اطلاعات */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.info-title {
    margin: 0 0 15px 0;
    color: #2d465e;
    font-size: 1.1rem;
}

.info-content {
    line-height: 1.6;
    color: #555;
}

/* استایل خلاصه مالی */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d465e;
    border-bottom: none;
    border-top: 2px solid #007bff;
    margin-top: 5px;
    padding-top: 15px;
}

/* استایل پرداخت و یادداشت‌ها */
.payment-method,
.order-notes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-note {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    border-right: 3px solid #007bff;
}

/* استایل دکمه‌ها */
.order-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-pay {
    background: #28a745;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .order-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-meta {
        flex-direction: column;
        gap: 10px;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
    }

    .product-meta {
        justify-content: center;
    }

    .order-actions {
        flex-direction: column;
    }

    .custom-view-order-page {
        padding: 20px;
    }
}

/* استایل برای منوی حساب کاربری */
.woocommerce-MyAccount-navigation {
    background: #ffffff !important;
    border-radius: 12px;
    padding: 25px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
    margin-bottom: 30px;
    border-left: 1px solid #e9ecef;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
    position: relative;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #f8f9fa;
    color: #007bff;
    border-color: #007bff;
    transform: translateX(5px);
}

.woocommerce-MyAccount-navigation .is-active a {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* آیکون‌های منو */
.woocommerce-MyAccount-navigation a::before {
    font-family: 'Bootstrap Icons';
    margin-left: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.woocommerce-MyAccount-navigation a[href*="dashboard"]::before {
    content: "\f3e2";
    /* house */
}

.woocommerce-MyAccount-navigation a[href*="orders"]::before {
    content: "\f295";
    /* bag */
}

.woocommerce-MyAccount-navigation a[href*="downloads"]::before {
    content: "\f30a";
    /* download */
}

.woocommerce-MyAccount-navigation a[href*="edit-address"]::before {
    content: "\f3e8";
    /* geo-alt */
}

.woocommerce-MyAccount-navigation a[href*="edit-account"]::before {
    content: "\f4e1";
    /* person */
}

.woocommerce-MyAccount-navigation a[href*="customer-logout"]::before {
    content: "\f343";
    /* box-arrow-left */
}

/* اگر Bootstrap Icons ندارید، از این آیکون‌های یونیکد استفاده کنید */
.woocommerce-MyAccount-navigation a[href*="dashboard"]::before {
    content: "🏠";
    font-family: Arial !important;
}

.woocommerce-MyAccount-navigation a[href*="orders"]::before {
    content: "🛍️";
    font-family: Arial !important;
}

.woocommerce-MyAccount-navigation a[href*="downloads"]::before {
    content: "📥";
    font-family: Arial !important;
}

.woocommerce-MyAccount-navigation a[href*="edit-address"]::before {
    content: "📍";
    font-family: Arial !important;
}

.woocommerce-MyAccount-navigation a[href*="edit-account"]::before {
    content: "👤";
    font-family: Arial !important;
}

.woocommerce-MyAccount-navigation a[href*="customer-logout"]::before {
    content: "🚪";
    font-family: Arial !important;
}

/* استایل برای محتوای اصلی */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    border: 1px solid #e9ecef;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woocommerce-MyAccount-navigation a {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        font-size: 14px;
        padding: 10px 8px;
    }

    .woocommerce-MyAccount-navigation a::before {
        display: none;
    }
}

/* استایل صفحه تشکر */
.custom-thankyou-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* هدر صفحه */
.thankyou-header {
    text-align: center;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 50px 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.success-icon {
    font-size: 2rem;
    /* margin-bottom: 20px; */
    animation: bounceIn 1s ease;
}

.thankyou-title {
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.thankyou-message {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}

/* overview اطلاعات */
.order-overview {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.overview-icon {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.overview-content {
    display: flex;
    flex-direction: column;
}

.overview-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.overview-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d465e;
}

/* محتوای اصلی */
.thankyou-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 40px;
}

.section-title {
    color: #2d465e;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    /* font-size: 1.3rem; */
    font-weight: 600;
}

/* کارت خلاصه سفارش */
.order-summary-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.order-products {
    margin-bottom: 25px;
}

.order-product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-product-item:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-name {
    font-weight: 500;
    color: #2d465e;
}

.product-quantity {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.product-total {
    font-weight: 600;
    color: #28a745;
}

/* خلاصه مالی */
.order-totals {
    border-top: 2px solid #007bff;
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.total-row.discount {
    color: #dc3545;
}

.total-row.final-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2d465e;
    border-bottom: none;
    border-top: 2px solid #28a745;
    margin-top: 10px;
    padding-top: 15px;
}

/* کارت‌های اطلاعات */
.order-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.address-card,
.payment-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.address-content,
.payment-content {
    line-height: 1.8;
    color: #555;
}

.payment-note {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    border-right: 3px solid #ffc107;
}

/* دکمه‌ها */
.thankyou-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* انیمیشن */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .thankyou-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .thankyou-header {
        padding: 15px 10px;
    }

    .thankyou-title {
        font-size: 1.2rem;
    }
}

/* دکمه ثبت سفارش بنفش زیبا */
.woocommerce-checkout #place_order,
.btn-green {
    background: linear-gradient(135deg, #b984f5, #6A3093) !important;
    border-color: #6A3093 !important;
    color: white !important;
    padding: 16px 32px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(106, 48, 147, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #7A4DAD, #5A2082) !important;
    border-color: #5A2082 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(106, 48, 147, 0.4) !important;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(106, 48, 147, 0.4) !important;
}

/* دکمه ثبت سفارش با گرادینت سبز زیبا */
/* .btn-green {
    background: linear-gradient(135deg, rgb(83, 241, 144), rgb(10, 173, 73)) !important;
    border-color: rgb(15, 150, 67) !important;
    color: white !important;
    padding: 12px 32px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(19, 187, 84, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    display: block;
    margin-top: 16px;
    text-align: center;
    text-decoration: none;
} */

.btn-green:hover {
    background: linear-gradient(135deg, rgb(17, 167, 75), rgb(13, 130, 58)) !important;
    border-color: rgb(13, 130, 58) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(19, 187, 84, 0.4) !important;
}

.btn-green:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(19, 187, 84, 0.4) !important;
}

/* استایل صفحه فروشگاه */
.custom-shop-page {
    /* padding: 40px 20px; */
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 30px;
    /* border-radius: 15px; */
    margin-bottom: 40px;
}

.shop-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.shop-description {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* استایل صفحه جستجو */
.custom-search-page {
    min-height: 100vh;
    background: #f8f9fa;
}

/* هدر جستجو */
.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.search-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 30px;
}

/* فرم جستجو */
.search-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-field {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    outline: none;
}

.search-submit {
    background: linear-gradient(135deg, rgb(19, 187, 84), rgb(15, 150, 67));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-submit:hover {
    background: linear-gradient(135deg, rgb(17, 167, 75), rgb(13, 130, 58));
    transform: translateX(-2px);
}

/* آمار نتایج */
.search-stats {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-right: 4px solid #007bff;
}

.search-stats p {
    margin: 0;
    font-weight: 600;
    color: #2d465e;
}

/* گرید محصولات */
.search-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.search-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image-link {
    display: block;
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.3s ease;
}

.search-product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-title {
    margin: 0 0 10px 0;
}

.product-title a {
    color: #2d465e;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.product-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-to-cart-btn,
.view-details-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-to-cart-btn {
    background: #28a745;
    color: white;
}

.add-to-cart-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.view-details-btn {
    background: #007bff;
    color: white;
}

.view-details-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* صفحه‌بندی */
.search-pagination {
    text-align: center;
    margin-top: 40px;
}

.search-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-pagination a,
.search-pagination span {
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-pagination a:hover,
.search-pagination .current {
    background: #007bff;
    color: white;
}

/* حالت بدون نتیجه */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-results-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #2d465e;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.suggestions {
    text-align: right;
    margin-bottom: 30px;
}

.suggestions h4 {
    color: #2d465e;
    margin-bottom: 15px;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-right: 20px;
}

.suggestions li::before {
    content: "•";
    color: #007bff;
    position: absolute;
    right: 0;
}

.btn-primary {
    background: linear-gradient(135deg, rgb(19, 187, 84), rgb(15, 150, 67));
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgb(17, 167, 75), rgb(13, 130, 58));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 187, 84, 0.3);
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .search-input-group {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-field {
        border-radius: 15px 15px 0 0;
    }

    .search-submit {
        border-radius: 0 0 15px 15px;
        justify-content: center;
    }

    .search-products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}

.slide-background {
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: 50% 50% !important;
    height: 250px !important;
    border-radius: 12px;
}

/* استایل پیغام‌های خطای ووکامرس در صفحه پرداخت */
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
    background: linear-gradient(135deg, #fff5f5, #fed7d7) !important;
    border: 2px solid #fc8181 !important;
    border-right: 4px solid #e53e3e !important;
    color: #742a2a !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15) !important;
    list-style: none !important;
    position: relative !important;
}

.woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
    content: "\F623" !important;
    font-family: 'Bootstrap Icons' !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 1.5rem !important;
    color: #e53e3e !important;
}

.woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-error li {
    color: #742a2a !important;
    font-weight: 500 !important;
    padding: 8px 0 8px 25px !important;
    border-bottom: 1px solid #fed7d7 !important;
    position: relative !important;
}

.woocommerce-error li::before,
.woocommerce-notices-wrapper .woocommerce-error li::before {
    content: "\F333" !important;
    font-family: 'Bootstrap Icons' !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1rem !important;
    color: #e53e3e !important;
}

.woocommerce-error li:last-child,
.woocommerce-notices-wrapper .woocommerce-error li:last-child {
    border-bottom: none !important;
}

/* استایل برای پیغام‌های موفقیت */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5) !important;
    border: 2px solid #68d391 !important;
    border-right: 4px solid #38a169 !important;
    color: #22543d !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15) !important;
    position: relative !important;
}

.woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
    content: "\F26B" !important;
    font-family: 'Bootstrap Icons' !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 1.5rem !important;
    color: #38a169 !important;
}

/* استایل برای پیغام‌های اخطار */
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info {
    background: linear-gradient(135deg, #e6fffa, #b2f5ea) !important;
    border: 2px solid #4fd1c7 !important;
    border-right: 4px solid #319795 !important;
    color: #234e52 !important;
    padding: 20px 25px !important;
    border-radius: 12px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(49, 151, 149, 0.15) !important;
    position: relative !important;
}

.woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    content: "\F431" !important;
    font-family: 'Bootstrap Icons' !important;
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    font-size: 1.5rem !important;
    color: #319795 !important;
}

/* استایل برای فیلدهای دارای خطا */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
    border-color: #e53e3e !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 1px #e53e3e !important;
    position: relative !important;
}

.woocommerce-invalid .select2-selection {
    border-color: #e53e3e !important;
}

/* استایل برای لیبل فیلدهای دارای خطا */
.woocommerce-invalid label {
    color: #e53e3e !important;
    font-weight: 600 !important;
}

/* استایل برای دکمه بستن پیغام */
.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button {
    background: #2d465e !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.woocommerce-error .button::before,
.woocommerce-message .button::before,
.woocommerce-info .button::before {
    content: "\F62a" !important;
    font-family: 'Bootstrap Icons' !important;
    font-size: 0.9rem !important;
}

.woocommerce-error .button:hover,
.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: #1e3246 !important;
    transform: translateY(-1px) !important;
}

/* استایل مخصوص صفحه پرداخت */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info {
    animation: slideInDown 0.5s ease !important;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل برای خطاهای real-time validation */
.woocommerce .woocommerce-form .form-row.woocommerce-invalid .woocommerce-error {
    background: #fff5f5 !important;
    border: 1px solid #fc8181 !important;
    color: #742a2a !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-top: 5px !important;
    font-size: 0.9rem !important;
    position: relative !important;
}

.woocommerce .woocommerce-form .form-row.woocommerce-invalid .woocommerce-error::before {
    content: "\F333" !important;
    font-family: 'Bootstrap Icons' !important;
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.9rem !important;
    color: #e53e3e !important;
}

/* استایل بنر تبلیغاتی */
.promo-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
    transition: all 0.4s ease;
    height: 400px;
    margin: 20px 0;
}

.promo-banner:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); */
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: 16px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.promo-banner:hover .banner-image {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    text-align: right;
    backdrop-filter: blur(2px);
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    }

    to {
        text-shadow: 3px 3px 12px rgba(255, 255, 255, 0.3);
    }
}

.banner-description {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgb(19, 187, 84), rgb(15, 150, 67));
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    align-self: flex-start;
    box-shadow: 0 8px 25px rgba(19, 187, 84, 0.4);
    position: relative;
    overflow: hidden;
}

.banner-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.banner-link:hover .banner-cta {
    background: linear-gradient(135deg, rgb(17, 167, 75), rgb(13, 130, 58));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(19, 187, 84, 0.5);
}

.banner-link:hover .banner-cta::before {
    left: 100%;
}

.banner-cta::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.banner-link:hover .banner-cta::after {
    transform: translateX(5px);
}

/* افکت‌های اضافی */
.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(19, 187, 84, 0.1), transparent 50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promo-banner:hover::before {
    opacity: 1;
}

/* حذف آیکون‌ها از تمام پیغام‌های ووکامرس */

/* حذف آیکون از پیغام‌های خطا */
.woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-error li::before,
.woocommerce-notices-wrapper .woocommerce-error li::before {
    display: none !important;
}

/* حذف آیکون از پیغام‌های موفقیت */
.woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
    display: none !important;
}

/* حذف آیکون از پیغام‌های اطلاعات */
.woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    display: none !important;
}

/* حذف آیکون از پیغام‌های real-time validation */
.woocommerce .woocommerce-form .form-row.woocommerce-invalid .woocommerce-error::before {
    display: none !important;
}

/* تنظیم مجدد padding برای پیغام‌ها بعد از حذف آیکون */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 20px 25px !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    padding: 8px 0 !important;
    display: block !important;
}

/* حذف آیکون از لیست پیغام‌ها */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

.woocommerce-error li::before,
.woocommerce-message li::before,
.woocommerce-info li::before {
    content: "" !important;
    margin: 0 !important;
}

/* حذف آیکون از دکمه بستن پیغام */
.woocommerce-error .button::before,
.woocommerce-message .button::before,
.woocommerce-info .button::before {
    display: none !important;
}

.woocommerce-error .button,
.woocommerce-message .button,
.woocommerce-info .button {
    padding: 8px 16px !important;
}

/* حذف باکس قرمز پیغام‌های خطا از صفحه تسویه حساب */
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-notices-wrapper .woocommerce-error {
    display: none !important;
}

/* حذف فقط از صفحه پرداخت */
form.checkout .woocommerce-error {
    display: none !important;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .banner-content {
        padding: 0 40px;
    }

    .banner-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .promo-banner {
        height: 300px;
        border-radius: 15px;
    }

    .banner-content {
        padding: 0 30px;
        text-align: center;
    }

    .banner-title {
        font-size: 2rem;
        text-align: center;
    }

    .banner-description {
        font-size: 1.1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-cta {
        align-self: center;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        height: 250px;
        margin: 15px 0;
    }

    .banner-content {
        padding: 0 20px;
    }

    .banner-title {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }

    .banner-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .banner-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* افکت برای حالت تاریک/روشن */
@media (prefers-color-scheme: dark) {
    .banner-title {
        background: linear-gradient(135deg, #fff, #e0e0e0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* انیمیشن ورود */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-banner {
    animation: fadeInUp 0.8s ease-out;
}

/* ریسپانسیو */
@media (max-width: 768px) {

    .woocommerce-error,
    .woocommerce-message,
    .woocommerce-info {
        padding: 15px 20px !important;
        margin-bottom: 20px !important;
    }

    .woocommerce-error::before,
    .woocommerce-message::before,
    .woocommerce-info::before {
        right: 15px !important;
        top: 15px !important;
        font-size: 1.3rem !important;
    }

    .woocommerce-error li,
    .woocommerce-message li,
    .woocommerce-info li {
        font-size: 0.9rem !important;
        padding-left: 20px !important;
    }
}

/* ریسپانسیو */
@media (min-width: 768.2px) {
    .categories-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .slide-background {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: 50% 50% !important;
        height: 330px !important;
        border-radius: 12px;
    }

    .single-product-page .product-images {
        width: 100%;
        height: 330px;
        border-radius: 12px;
    }

    .single-product-page .product-images img {
        width: 100%;
        height: 330px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0px;
    }

    .category-card {
        padding: 15px 5px;
    }

    .category-name {
        font-size: 0.9rem;
    }
}