.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    font-size: 1.5em;
    font-weight: 600;
    padding: 10px;
    width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--icon-button:is(button) {
    top: 10px;
}

.woocommerce-product-gallery__image {
    margin-bottom: 10px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
    margin-left: 5px;
}
.woocommerce .quantity .qty {
    border: none;
    padding: 6px;
}

.comment-form-rating {
    display: flex !important;
    gap: 10px !important;
    padding: 16px 0;
}

.page-link:hover {
    background-color: var(--bs-pagination-active-bg);
    color: #f9f9f9;
}

p {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
p.woocommerce-shipping-destination {
    font-size: inherit;
}

.form-wrapper p {
    font-size: .95rem;
}

.egy-woo-table .variation {
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}

.variation p {
    font-size: .95rem;
}

p.card-text.text-muted.small {
    font-size: .95rem;
}

.card-img,
.card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-category a{
    color: #ffffff;
}

/*
.price .woocommerce-Price-amount:nth-of-type(3) {
    color: #949292;
    font-size: 1.25rem !important
}
*/

/* تنسيق السعر العادي */
.woocommerce-Price-amount.amount del {
    font-size: 13px;
    color: #949292; /* لون مميز للسعر العادي */
}

/* تنسيق السعر الجديد (بعد الخصم) */
.price-container ins > span.woocommerce-Price-amount.amount {
    font-size: 26px;
    color: #f00;
}

/* تنسيق أسعار المتغيرات (Variation Swatches) */
/* تنسيق <span class="price"> التي لا تحتوي على <ins> */
.price-container .current-price .price:not(:has(ins)) .woocommerce-Price-amount.amount bdi {
    font-size: 26px;
    color: #f00;  /* لون مميز */
}




.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.woocommerce-notices-wrapper {
    transition: opacity 1s ease-in-out;
}

button[name="update_cart"]:not(:disabled) {
    background-color: #cd4a21;
    color: white;
/*    border-color: #007bff;*/
}

.product-image {
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    object-fit: cover;
}

.product-image i {
    font-size: 4rem;
    color: #6c757d;
    opacity: 0.7;
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-badge.pro {
    background: #28a745;
}

.category-badge.ultimate {
    background: #6f42c1;
}

.category-badge.new {
    background: #fd7e14;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.btn-add-cart {
    /*    background: linear-gradient(45deg, #007bff, #0056b3);*/
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    /*    background: linear-gradient(45deg, #0056b3, #004085);*/
    transform: translateY(-2px);
}

.shop-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.results-bar {
    border-bottom: 2px solid #e9ecef;
    padding: 20px 0;
    margin-bottom: 30px;
}

/*استايلات صفحة المنتج*/

.product-container {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 50px;
}

.product-images .zoom-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.product-images img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-images img:hover {
    transform: scale(1.05);
}

.thumbnail-nav {
    margin-top: 15px;
}

.thumbnail-nav img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-nav img:hover,
.thumbnail-nav img.active {
    border-color: #0d6efd;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    font-size: 18px;
    margin-left: 10px;
}

.discount-badge {
    background-color: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
}

.product-short-description {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.product-meta {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.product-meta-item:last-child {
    border-bottom: none;
}

.stock-status.in-stock {
    color: #198754;
    font-weight: 500;
}

.stock-status.low-stock {
    color: #fd7e14;
    font-weight: 500;
}

.quantity-input {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
    font-size: 18px;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-input input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    margin: 0;
}

.add-to-cart-btn {
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.wishlist-btn {
    color: #dc3545;
    border: 1px solid #dc3545;
    background: none;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.woocommerce-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    margin-bottom: 10px;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

.woocommerce .star-rating span:before,
.woocommerce .star-rating:before {
    color: #f5c518;
    /* اللون الذهبي */
}

.wishlist-btn:hover {
    background-color: #dc3545;
    color: white;
}

.social-share {
    margin-top: 20px;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share .facebook {
    background-color: #1877f2;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .pinterest {
    background-color: #bd081c;
}

.social-share .whatsapp {
    background-color: #25d366;
}

.social-share a:hover {
    transform: translateY(-3px);
}

.product-tabs {
    margin-top: 40px;
}

.tab-content {
    padding: 20px 0;
}

.related-products {
    margin-top: 60px;
}
section.related h2 {
    margin-bottom: 21px;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 1.9em !important;
}
.related-products ul.products.columns-4 li h2 {
    border: none !important;
    font-size: 1.3em !important;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card-img {
    height: 200px;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 15px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-weight: 600;
    color: #dc3545;
    font-size: 18px;
}

.product-card-rating {
    color: #ffc107;
    font-size: 14px;
    margin: 8px 0;
}

.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1;
}
/* تخصيص سعر التخفيض (السعر القديم) */
.woocommerce .price .amount del {
    color: #999; /* اللون الرمادي الفاتح للسعر القديم */
    font-size: 1rem; /* تقليل حجم الخط */
    text-decoration: line-through; /* إضافة خط فوق السعر القديم */
}

/* تخصيص سعر البيع (السعر الجديد) */
.woocommerce .price .amount ins {
    color: #007bff; /* اللون الأزرق الفاتح للسعر الجديد */
    font-size: 1.2rem; /* زيادة حجم الخط */
    font-weight: bold; /* جعل النص عريض */
}

.badge-sale {
    background-color: #dc3545;
    color: white;
}

/* رجّع الأسهم في كروم وسفاري وإيدج */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1 !important;
    -webkit-appearance: inner-spin-button !important;
    display: inline !important;
}

/* رجّع الأسهم في فايرفوكس */
input[type=number] {
    -moz-appearance: number-input !important;
}


@media (max-width: 767.98px) {

    .quantity-input {
        width: 100px;
    }

    .quantity-input input {
        width: 50px;
    }
}

.cfvsw-label-option,
.cfvsw-image-option {
    border: 1px solid #cecece;
}
.cfvsw-swatches-option {
    border-radius: 10px !important;
}
.single-product .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

textarea#comment {
    min-height: 116px;
}
