/* TPWST Slider Styles */
.tpwst-slider-wrapper {
    direction: rtl;
    margin: 20px 0;
}

.tpwst-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpwst-slider-loaded {
    opacity: 1;
}

.tpwst-slider-item {
    position: relative;
    overflow: hidden;
}

.tpwst-slider-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tpwst-slider-item:hover img {

}

.tpwst-slider-item a {
    display: block;
    text-decoration: none;
}

.tpwst-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.tpwst-slider-caption h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* RTL Support for OWL Carousel */
.tpwst-slider-wrapper .owl-nav {
    direction: ltr;
}

.tpwst-slider-wrapper .owl-nav [class*='owl-'] {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin: 5px;
    transition: background 0.3s ease;
}
.tpwst-product-slider{
    position: relative;
}
.tpwst-product-slider .owl-prev,
.tpwst-product-slider .owl-next{
    position: absolute;
    top: calc(50% - 15px);
    z-index: 1;
}
.tpwst-product-slider .owl-prev{
    left: 15px;
}
.tpwst-product-slider .owl-next{
    right: 15px;
}
.tpwst-slider-wrapper .owl-nav [class*='owl-']:hover {
    background: rgba(0,0,0,0.8);
}

/* .tpwst-slider-wrapper .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.tpwst-slider-wrapper .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s ease;
}

.tpwst-slider-wrapper .owl-dot.active,
.tpwst-slider-wrapper .owl-dot:hover {
    background: #0073aa;
} */

/* Responsive */
@media (max-width: 768px) {
    .tpwst-slider-caption {
        padding: 15px;
    }
    
    .tpwst-slider-caption h3 {
        font-size: 16px;
    }
    
    .tpwst-slider-wrapper .owl-nav [class*='owl-'] {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* TPWST FAQ Styles */
.tpwst-faq-wrapper {
    direction: rtl;
    margin: 20px 0;
    font-family: inherit;
}

.tpwst-faq {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tpwst-faq-item {
    border-bottom: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.tpwst-faq-item:last-child {
    border-bottom: none;
}

.tpwst-faq-item-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: right;
}

.tpwst-faq-item-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.tpwst-faq-active .tpwst-faq-item-header {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.tpwst-faq-question {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    padding-left: 15px;
}

.tpwst-faq-active .tpwst-faq-question {
    color: white;
}

.tpwst-faq-icon {
    font-size: 18px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    color: #0073aa;
}

.tpwst-faq-active .tpwst-faq-icon {
    color: white;
    transform: rotate(180deg);
}

.tpwst-faq-icon.tpwst-icon-plus_minus {
    font-size: 20px;
}

.tpwst-faq-icon.tpwst-icon-arrows {
    font-size: 16px;
}

.tpwst-faq-icon.tpwst-icon-chevron {
    font-size: 18px;
}

.tpwst-faq-item-content {
    background: white;
    overflow: hidden;
}

.tpwst-faq-answer {
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.tpwst-faq-answer p {
    margin: 0 0 15px 0;
}

.tpwst-faq-answer p:last-child {
    margin-bottom: 0;
}

.tpwst-faq-answer ul,
.tpwst-faq-answer ol {
    margin: 15px 0;
    padding-right: 20px;
}

.tpwst-faq-answer li {
    margin-bottom: 8px;
}

.tpwst-faq-answer a {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.tpwst-faq-answer a:hover {
    border-bottom-color: #0073aa;
}

.tpwst-faq-answer blockquote {
    border-right: 4px solid #0073aa;
    margin: 15px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    font-style: italic;
}

.tpwst-faq-answer strong {
    font-weight: 600;
}

.tpwst-faq-answer em {
    font-style: italic;
}

/* Icon rotation animations */
.tpwst-faq-icon.tpwst-icon-arrows {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.tpwst-faq-active .tpwst-faq-icon.tpwst-icon-arrows {
    transform: rotate(180deg);
}

.tpwst-faq-icon.tpwst-icon-chevron {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.tpwst-faq-active .tpwst-faq-icon.tpwst-icon-chevron {
    transform: rotate(180deg);
}

/* Plus/Minus doesn't need rotation */
.tpwst-faq-active .tpwst-faq-icon.tpwst-icon-plus_minus {
    transform: none;
}

/* Hover effects */
.tpwst-faq-item-header:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

/* RTL Support */
.rtl .tpwst-faq-wrapper {
    text-align: right;
}

.rtl .tpwst-faq-question {
    padding-right: 15px;
    padding-left: 0;
}

.rtl .tpwst-faq-answer blockquote {
    border-right: 4px solid #0073aa;
    border-left: none;
}

.rtl .tpwst-faq-answer ul,
.rtl .tpwst-faq-answer ol {
    padding-right: 20px;
    padding-left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpwst-faq-item-header {
        padding: 15px;
    }
    
    .tpwst-faq-question {
        font-size: 15px;
        padding-left: 10px;
    }
    
    .tpwst-faq-answer {
        padding: 15px;
    }
    
    .tpwst-faq-icon {
        font-size: 16px;
        min-width: 20px;
    }
}

@media (max-width: 480px) {
    .tpwst-faq-wrapper {
        margin: 15px 0;
    }
    
    .tpwst-faq-item-header {
        padding: 12px;
    }
    
    .tpwst-faq-question {
        font-size: 14px;
    }
    
    .tpwst-faq-answer {
        padding: 12px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .tpwst-faq-item-header,
    .tpwst-faq-icon {
        transition: none;
    }
}

/* Print styles */
@media print {
    .tpwst-faq-item-content {
        display: block !important;
    }
    
    .tpwst-faq-icon {
        display: none;
    }
}

/* TPWST Reviews Styles */
.tpwst-reviews-wrapper {
    direction: rtl;
    margin: 20px 0;
}

.tpwst-reviews {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpwst-reviews-loaded {
    opacity: 1;
}

.tpwst-review-item {
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

/* Star Rating Styles */
.tpwst-stars {
    display: inline-flex;
    gap: 2px;
    direction: ltr;
}

.tpwst-star {
    font-size: 16px;
    color: #ddd;
    transition: color 0.3s ease;
}

.tpwst-star.filled {
    color: #ffa500;
}

/* Template 1: Classic */
.tpwst-template-classic .tpwst-review-item {
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.tpwst-template-classic .tpwst-review-image {
    margin-bottom: 15px;
}

.tpwst-template-classic .tpwst-review-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.tpwst-template-classic .tpwst-review-rating {
    margin-bottom: 15px;
}

.tpwst-template-classic .tpwst-review-text {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.tpwst-template-classic .tpwst-review-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.tpwst-template-classic .tpwst-review-author {
    font-weight: 600;
    margin-left: 10px;
}

.tpwst-template-classic .tpwst-review-product a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.tpwst-template-classic .tpwst-review-product a:hover {
    text-decoration: underline;
}

/* Template 2: Modern */
.tpwst-template-modern .tpwst-review-item {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.tpwst-template-modern .tpwst-review-header {
    display: flex;
    align-items: center;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
}

.tpwst-template-modern .tpwst-review-image {
    margin-left: 15px;
    flex-shrink: 0;
}

.tpwst-template-modern .tpwst-review-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.tpwst-template-modern .tpwst-review-header-info {
    flex: 1;
}

.tpwst-template-modern .tpwst-review-rating {
    margin-bottom: 5px;
}

.tpwst-template-modern .tpwst-review-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.tpwst-template-modern .tpwst-review-body {
    padding: 15px 20px;
}

.tpwst-template-modern .tpwst-review-body p {
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.tpwst-template-modern .tpwst-review-footer {
    padding: 15px 20px;
    background: rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tpwst-template-modern .tpwst-product-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.tpwst-template-modern .tpwst-product-link:hover {
    text-decoration: underline;
}

.tpwst-template-modern .tpwst-review-date {
    color: #666;
}

/* Template 3: Compact */
.tpwst-template-compact .tpwst-review-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e1e1;
    background: #fff;
}

.tpwst-template-compact .tpwst-compact-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.tpwst-template-compact .tpwst-compact-content {
    flex: 1;
    min-width: 0;
}

.tpwst-template-compact .tpwst-compact-rating {
    margin-bottom: 5px;
}

.tpwst-template-compact .tpwst-compact-rating .tpwst-star {
    font-size: 14px;
}

.tpwst-template-compact .tpwst-compact-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #555;
    font-style: italic;
}

.tpwst-template-compact .tpwst-compact-meta {
    font-size: 12px;
    color: #666;
}

.tpwst-template-compact .tpwst-compact-meta span {
    margin-left: 8px;
    font-weight: 500;
}

.tpwst-template-compact .tpwst-compact-meta a {
    color: #0073aa;
    text-decoration: none;
}

.tpwst-template-compact .tpwst-compact-meta a:hover {
    text-decoration: underline;
}

/* Template 4: Image Focus */
.tpwst-template-image-focus .tpwst-review-item {
    border: 1px solid #e1e1e1;
    overflow: hidden;
}

.tpwst-template-image-focus .tpwst-large-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.tpwst-template-image-focus .tpwst-large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpwst-template-image-focus .tpwst-review-item:hover .tpwst-large-image img {
    transform: scale(1.05);
}

.tpwst-template-image-focus .tpwst-image-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.tpwst-template-image-focus .tpwst-image-focus-content {
    padding: 20px;
}

.tpwst-template-image-focus .tpwst-image-focus-content h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.tpwst-template-image-focus .tpwst-image-focus-content h4 a {
    color: #333;
    text-decoration: none;
}

.tpwst-template-image-focus .tpwst-image-focus-content h4 a:hover {
    color: #0073aa;
}

.tpwst-template-image-focus .tpwst-image-focus-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #555;
    font-size: 14px;
}

.tpwst-template-image-focus .tpwst-focus-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
}

.tpwst-template-image-focus .tpwst-focus-meta strong {
    color: #333;
}

.tpwst-template-image-focus .tpwst-focus-meta span {
    color: #666;
}

/* Template 5: Grid Style */
.tpwst-template-grid .tpwst-review-item {
    height: 100%;
}

.tpwst-template-grid .tpwst-grid-inner {
    height: 100%;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tpwst-template-grid .tpwst-review-item:hover .tpwst-grid-inner {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tpwst-template-grid .tpwst-grid-image {
    height: 120px;
    overflow: hidden;
    background: #f5f5f5;
}

.tpwst-template-grid .tpwst-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpwst-template-grid .tpwst-review-item:hover .tpwst-grid-image img {
    transform: scale(1.1);
}

.tpwst-template-grid .tpwst-grid-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tpwst-template-grid .tpwst-grid-rating {
    margin-bottom: 12px;
}

.tpwst-template-grid .tpwst-grid-content p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    color: #555;
    font-size: 14px;
    flex: 1;
}

.tpwst-template-grid .tpwst-grid-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tpwst-template-grid .tpwst-grid-product a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.tpwst-template-grid .tpwst-grid-product a:hover {
    text-decoration: underline;
}

/* OWL Carousel Customization for Reviews */
.tpwst-reviews-wrapper .owl-nav {
    direction: ltr;
    margin-top: 20px;
}

.tpwst-reviews-wrapper .owl-nav [class*='owl-'] {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin: 5px;
    transition: all 0.3s ease;
}

.tpwst-reviews-wrapper .owl-nav [class*='owl-']:hover {
    background: #005a87;
    transform: scale(1.1);
}

/* .tpwst-reviews-wrapper .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.tpwst-reviews-wrapper .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(0,115,170,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.tpwst-reviews-wrapper .owl-dot.active,
.tpwst-reviews-wrapper .owl-dot:hover {
    background: #0073aa;
    transform: scale(1.2);
} */

/* Responsive Design */
@media (max-width: 768px) {
    .tpwst-template-classic .tpwst-review-item,
    .tpwst-template-modern .tpwst-review-item,
    .tpwst-template-image-focus .tpwst-review-item,
    .tpwst-template-grid .tpwst-review-item {
        margin: 5px;
    }
    
    .tpwst-template-modern .tpwst-review-header {
        padding: 15px;
    }
    
    .tpwst-template-modern .tpwst-review-body,
    .tpwst-template-modern .tpwst-review-footer {
        padding: 12px 15px;
    }
    
    .tpwst-template-image-focus .tpwst-large-image {
        height: 150px;
    }
    
    .tpwst-template-image-focus .tpwst-image-focus-content {
        padding: 15px;
    }
    
    .tpwst-template-grid .tpwst-grid-content {
        padding: 15px;
    }
    
    .tpwst-template-grid .tpwst-grid-image {
        height: 100px;
    }
    
    .tpwst-template-compact .tpwst-review-item {
        padding: 12px;
    }
    
    .tpwst-reviews-wrapper .owl-nav [class*='owl-'] {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tpwst-template-compact .tpwst-review-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tpwst-template-compact .tpwst-compact-image {
        margin: 0 0 10px 0;
    }
    
    .tpwst-template-modern .tpwst-review-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .tpwst-template-image-focus .tpwst-focus-meta {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* RTL Support */
.rtl .tpwst-reviews-wrapper .owl-nav {
    direction: rtl;
}

.rtl .tpwst-template-modern .tpwst-review-image {
    margin-right: 15px;
    margin-left: 0;
}

.rtl .tpwst-template-compact .tpwst-compact-image {
    margin-right: 12px;
    margin-left: 0;
}

.rtl .tpwst-template-compact .tpwst-compact-meta span {
    margin-right: 8px;
    margin-left: 0;
}

/* Loading State */
.tpwst-reviews:not(.tpwst-reviews-loaded) {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpwst-reviews:not(.tpwst-reviews-loaded):before {
    content: "טוען דירוגים...";
    color: #666;
    font-size: 16px;
}

/* TPWST Product Slider Styles */
.tpwst-product-slider-wrapper {
    direction: rtl;
    margin: 20px 0;
}

.tpwst-product-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpwst-product-slider-loaded {
    opacity: 1;
}

/* Product Item */
.tpwst-product-item {
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

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

.tpwst-product-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.tpwst-product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

.tpwst-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tpwst-product-item:hover .tpwst-product-image img {
    transform: scale(1.05);
}

.tpwst-product-image a {
    display: block;
}

/* Sale Badge */
.tpwst-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Featured Badge */
.tpwst-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Product Overlay */
.tpwst-product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tpwst-product-item:hover .tpwst-product-overlay {
    transform: translateY(0);
}

/* Add to Cart Button */
.tpwst-add-to-cart-btn {
    display: inline-block;
    background: #222;
    color: #fff !important;
    padding: 20px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

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

/* Product Info */
.tpwst-product-info {
    padding: 20px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Product Rating */
.tpwst-product-rating {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tpwst-rating-stars {
    display: flex;
    gap: 2px;
}

.tpwst-star {
    font-size: 14px;
    color: #ddd;
}

.tpwst-star.filled {
    color: #ffa500;
}

.tpwst-star.half-filled {
    color: #ffa500;
    position: relative;
}

.tpwst-star.half-filled:after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ddd;
}

.tpwst-review-count {
    font-size: 12px;
    color: #666;
}

.tpwst-no-rating {
    font-size: 12px;
    color: #999;
}

/* Product Title */
.tpwst-product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

.tpwst-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tpwst-product-title a:hover {
    color: #0073aa;
}

/* Product Description */
.tpwst-product-description {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

/* Product Price */
.tpwst-product-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-top: auto;
}

.tpwst-product-price .price {
    display: block;
}

.tpwst-product-price del {
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

.tpwst-product-price ins {
    color: #e74c3c;
    text-decoration: none;
}

/* WooCommerce Price Styling */
.tpwst-product-price .woocommerce-Price-amount {
    font-weight: 600;
}

.tpwst-product-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
}

/* OWL Carousel Customization for Products */
.tpwst-product-slider-wrapper .owl-nav {
    direction: ltr;
    margin-top: 20px;
}

.tpwst-product-slider-wrapper .owl-nav [class*='owl-'] {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpwst-product-slider-wrapper .owl-nav [class*='owl-']:hover {
    background: #005a87;
    transform: scale(1.1);
}

.tpwst-product-slider-wrapper .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.tpwst-product-slider-wrapper .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(0,115,170,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

/* .tpwst-product-slider-wrapper .owl-dot.active, */
.tpwst-product-slider-wrapper .owl-dot:hover {
    /* background: #0073aa;
    transform: scale(1.2); */
}

/* AJAX Loading State */
.tpwst-add-to-cart-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.tpwst-add-to-cart-btn.loading:after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpwst-product-item {
        margin: 5px;
    }
    
    .tpwst-product-info {
        padding: 15px 12px;
    }
    
    .tpwst-product-title {
        font-size: 15px;
    }
    
    .tpwst-product-price {
        font-size: 15px;
    }
    
    .tpwst-product-overlay {
        position: static;
        background: none;
        transform: none;
        padding: 10px 0 0;
    }
    
    .tpwst-add-to-cart-btn {
        position: static;
        margin-top: 10px;
    }
    
    .tpwst-product-slider-wrapper .owl-nav [class*='owl-'] {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tpwst-product-info {
        padding: 12px 10px;
    }
    
    .tpwst-product-title {
        font-size: 14px;
    }
    
    .tpwst-sale-badge,
    .tpwst-featured-badge {
        top: 8px;
        right: 8px;
        left: 8px;
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* RTL Support */
.rtl .tpwst-product-slider-wrapper .owl-nav {
    direction: rtl;
}

.rtl .tpwst-product-price del {
    margin-right: 8px;
    margin-left: 0;
}

/* Loading State */
.tpwst-product-slider:not(.tpwst-product-slider-loaded) {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpwst-product-slider:not(.tpwst-product-slider-loaded):before {
    content: "טוען מוצרים...";
    color: #666;
    font-size: 16px;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .tpwst-product-item {
        border: 2px solid #000;
    }
    
    .tpwst-add-to-cart-btn {
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tpwst-product-item,
    .tpwst-product-image img,
    .tpwst-product-overlay,
    .tpwst-add-to-cart-btn {
        transition: none;
    }
    
    .tpwst-product-item:hover {
        transform: none;
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .tpwst-product-item {
        border: 2px solid #000;
    }
    
    .tpwst-add-to-cart-btn {
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tpwst-product-item,
    .tpwst-product-image img,
    .tpwst-product-overlay,
    .tpwst-add-to-cart-btn {
        transition: none;
    }
    
    .tpwst-product-item:hover {
        transform: none;
    }
}

/* TPWST Product Accordion Styles */
.tpwst-product-accordion {
    max-width: 800px;
    margin: 20px auto;
    direction: rtl;
}

.tpwst-product-accordion * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.tpwst-accordion-item {
    margin: 0 0 10px 0;
    border: 1px solid #9f9f9f;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tpwst-accordion-item:last-child {
    margin-bottom: 0;
}

.tpwst-accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Header Styles */
.tpwst-accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: #f7f7f7;
    border: none;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
}

.tpwst-accordion-header:hover {
    background: #f0f0f0;
}

.tpwst-accordion-header:focus {
    outline: 2px solid #0073aa;
    outline-offset: -2px;
}

.tpwst-accordion-title {
    flex: 1;
    padding-left: 15px;
}

/* Icon Styles */
.tpwst-accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Plus Icon Style */
.tpwst-icon-plus::before,
.tpwst-icon-plus::after {
    content: '';
    position: absolute;
    background: #333;
    transition: transform 0.3s ease;
}

.tpwst-icon-plus::before {
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
}

.tpwst-icon-plus::after {
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
}

.active .tpwst-icon-plus::after {
    transform: rotate(90deg);
}

/* Arrow Icon Style */
.tpwst-icon-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.active .tpwst-icon-arrow::before {
    transform: rotate(-135deg);
    top: 8px;
}

/* Chevron Icon Style */
.tpwst-icon-chevron::before {
    content: '›';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 20px;
    font-weight: bold;
    color: #333;
    transition: transform 0.3s ease;
}

.active .tpwst-icon-chevron::before {
    transform: translate(-50%, -50%) rotate(-90deg);
}

/* Content Styles */
.tpwst-accordion-content {
    display: none;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.tpwst-accordion-inner {
    padding: 20px;
    line-height: 1.6;
    font-size: 15px;
}

.tpwst-accordion-inner h2 {
    display: none;
}

/* Content Typography */
.tpwst-accordion-content p {
    margin: 0 0 1em 0;
}

.tpwst-accordion-content p:last-child {
    margin-bottom: 0;
}

.tpwst-accordion-content ul,
.tpwst-accordion-content ol {
    margin: 0 20px 15px 0;
    padding: 0;
}

.tpwst-accordion-content li {
    margin-bottom: 8px;
}

.tpwst-accordion-content h1,
.tpwst-accordion-content h2,
.tpwst-accordion-content h3,
.tpwst-accordion-content h4,
.tpwst-accordion-content h5,
.tpwst-accordion-content h6 {
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.tpwst-accordion-content h1:first-child,
.tpwst-accordion-content h2:first-child,
.tpwst-accordion-content h3:first-child,
.tpwst-accordion-content h4:first-child,
.tpwst-accordion-content h5:first-child,
.tpwst-accordion-content h6:first-child {
    margin-top: 0;
}

.tpwst-accordion-content table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
}

.tpwst-accordion-content table th,
.tpwst-accordion-content table td {
    padding: 10px;
    border: 1px solid #e5e5e5;
}

.tpwst-accordion-content table th {
    background: #f9f9f9;
    font-weight: 600;
}

/* Active State */
.tpwst-accordion-item.active .tpwst-accordion-header {
    background: #f0f0f0;
    color: #0073aa;
}

/* WooCommerce Specific Styles */
.tpwst-accordion-content .woocommerce-Reviews {
    margin: 0;
}

.tpwst-accordion-content .woocommerce-Reviews-title {
    margin-top: 0;
}

.tpwst-accordion-content .shop_attributes {
    margin: 0;
}

.tpwst-accordion-content .shop_attributes th {
    background: #f9f9f9;
}

/* Focus Styles for Accessibility */
.tpwst-product-accordion *:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* RTL Support */
.rtl .tpwst-accordion-header {
    text-align: left;
}

.rtl .tpwst-accordion-title {
    padding-left: 0;
    padding-right: 15px;
    text-align: right;
}

.rtl .tpwst-accordion-content ul,
.rtl .tpwst-accordion-content ol {
    margin: 0 0 15px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpwst-product-accordion {
        margin: 15px 0;
    }
    
    .tpwst-accordion-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .tpwst-accordion-inner {
        padding: 15px;
        font-size: 14px;
    }
    
    .tpwst-accordion-icon {
        width: 18px;
        height: 18px;
    }
    
    .tpwst-icon-plus::before {
        width: 8px;
    }
    
    .tpwst-icon-plus::after {
        height: 8px;
    }
}

@media (max-width: 480px) {
    .tpwst-accordion-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tpwst-accordion-inner {
        padding: 12px;
    }
    
    .tpwst-accordion-item {
        margin-bottom: 8px;
        border-radius: 8px;
    }
}

/* Print Styles */
@media print {
    .tpwst-accordion-content {
        display: block !important;
    }
    
    .tpwst-accordion-icon {
        display: none;
    }
    
    .tpwst-accordion-header {
        cursor: default;
        background: none;
        border-bottom: 1px solid #333;
    }
}

/* Animations */
@keyframes accordionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordionSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .tpwst-product-item {
        border: 2px solid #000;
    }
    
    .tpwst-add-to-cart-btn {
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tpwst-product-item,
    .tpwst-product-image img,
    .tpwst-product-overlay,
    .tpwst-add-to-cart-btn {
        transition: none;
    }
    
    .tpwst-product-item:hover {
        transform: none;
    }
}

/* TPWST Post Slider Styles */
.tpwst-post-slider-wrapper {
    direction: rtl;
    margin: 20px 0;
}

.tpwst-post-slider {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tpwst-post-slider-loaded {
    opacity: 1;
}

/* Post Item */
.tpwst-post-item {
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.tpwst-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tpwst-post-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Post Image */
.tpwst-post-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 250px; /* גובה קבוע */
}

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

.tpwst-post-item:hover .tpwst-post-image img {
    transform: scale(1.05);
}

.tpwst-post-image a {
    display: block;
    height: 100%;
    width: 100%;
}

/* Placeholder for posts without featured image */
.tpwst-post-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
}

.tpwst-post-no-image i {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.tpwst-post-no-image span {
    font-size: 14px;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tpwst-post-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .tpwst-post-image {
        height: 180px;
        aspect-ratio: 4 / 3;
    }
}

/* Post Category Badge */
.tpwst-post-category {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.tpwst-post-category a {
    display: inline-block;
    background: #0073aa;
    color: white !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.tpwst-post-category a:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* Post Content */
.tpwst-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Post Title */
.tpwst-post-title {
    margin: 0 0 12px 0 !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.tpwst-post-title a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.tpwst-post-title a:hover {
    color: #0073aa !important;
}

/* Post Meta */
.tpwst-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.tpwst-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tpwst-post-meta i {
    font-size: 12px;
    color: #999;
}

.tpwst-post-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tpwst-post-meta a:hover {
    color: #0073aa;
}

/* Post Excerpt */
.tpwst-post-excerpt {
    flex: 1;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.tpwst-post-excerpt p {
    margin: 0;
}

/* Read More Button */
.tpwst-post-read-more {
    margin-top: auto;
}

.tpwst-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tpwst-read-more-btn:hover {
    color: #005a87 !important;
    gap: 12px;
}

.tpwst-read-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.tpwst-read-more-btn:hover i {
    transform: translateX(-3px);
}

/* No image styles */
.tpwst-post-item:not(:has(.tpwst-post-image)) .tpwst-post-content {
    padding-top: 25px;
}

/* OWL Carousel Customization for Posts */
.tpwst-post-slider-wrapper .owl-nav {
    direction: ltr;
    margin-top: 20px;
}

.tpwst-post-slider-wrapper .owl-nav [class*='owl-'] {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpwst-post-slider-wrapper .owl-nav [class*='owl-']:hover {
    background: #005a87;
    transform: scale(1.1);
}

.tpwst-post-slider-wrapper .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.tpwst-post-slider-wrapper .owl-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(0,115,170,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.tpwst-post-slider-wrapper .owl-dot.active,
.tpwst-post-slider-wrapper .owl-dot:hover {
    background: #0073aa;
    transform: scale(1.2);
}

/* Sticky Post Indicator */
.tpwst-post-item[data-sticky="true"] {
    border: 2px solid #f39c12;
}

.tpwst-post-item[data-sticky="true"] .tpwst-post-content:before {
    content: "נעוץ";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tpwst-post-item {
        margin: 5px;
    }
    
    .tpwst-post-content {
        padding: 15px;
    }
    
    .tpwst-post-title {
        font-size: 16px !important;
    }
    
    .tpwst-post-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .tpwst-post-excerpt {
        font-size: 13px;
    }
    
    .tpwst-post-category a {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .tpwst-post-slider-wrapper .owl-nav [class*='owl-'] {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tpwst-post-image {
        aspect-ratio: 4 / 3;
    }
    
    .tpwst-post-content {
        padding: 12px;
    }
    
    .tpwst-post-title {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .tpwst-post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .tpwst-post-category {
        top: 10px;
        right: 10px;
    }
}

/* RTL Support */
.rtl .tpwst-post-slider-wrapper .owl-nav {
    direction: rtl;
}

.rtl .tpwst-read-more-btn i {
    transform: rotate(180deg);
}

.rtl .tpwst-read-more-btn:hover i {
    transform: rotate(180deg) translateX(3px);
}

.rtl .tpwst-post-category {
    right: auto;
    left: 15px;
}

/* Loading State */
.tpwst-post-slider:not(.tpwst-post-slider-loaded) {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpwst-post-slider:not(.tpwst-post-slider-loaded):before {
    content: "טוען פוסטים...";
    color: #666;
    font-size: 16px;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .tpwst-post-item {
        border: 2px solid #000;
    }
    
    .tpwst-post-category a {
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .tpwst-post-item,
    .tpwst-post-image img,
    .tpwst-read-more-btn {
        transition: none;
    }
    
    .tpwst-post-item:hover {
        transform: none;
    }
}

/* סקרולבר אלגנטי תואם לכל הדפדפנים */

#tpwst-quick-view-modal > div {
    /* Firefox */
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 115, 170, 0.4) rgba(0, 115, 170, 0.1) !important;
}

/* Webkit browsers (Chrome, Safari, Edge) */
#tpwst-quick-view-modal > div::-webkit-scrollbar {
    width: 6px !important;
}

#tpwst-quick-view-modal > div::-webkit-scrollbar-track {
    background: rgba(0, 115, 170, 0.1) !important;
    border-radius: 3px !important;
}

#tpwst-quick-view-modal > div::-webkit-scrollbar-thumb {
    background: rgba(0, 115, 170, 0.4) !important;
    border-radius: 3px !important;
    transition: background 0.3s ease !important;
}

#tpwst-quick-view-modal > div::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 115, 170, 0.6) !important;
}

#tpwst-quick-view-modal > div::-webkit-scrollbar-thumb:active {
    background: rgba(0, 115, 170, 0.8) !important;
}

/* תמיכה ב-Internet Explorer/Edge הישן */
#tpwst-quick-view-modal > div {
    -ms-overflow-style: -ms-autohiding-scrollbar !important;
}

/* אלטרנטיבה עם background track גם ב-Firefox */
@supports (scrollbar-color: red blue) {
    #tpwst-quick-view-modal > div {
        scrollbar-width: thin !important;
        scrollbar-color: #0073aa #f0f8ff !important;
    }
}


/* -------------------------------------------------------------- */

.tinv-wishlist {
    position: absolute !important;
    top: 55px !important;
    right: 10px !important;
    z-index: 999 !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

.wc-block-product:hover .tinv-wishlist {
    opacity: 1 !important;
}

.tinv-wishlist {
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tinv-wishlist:hover {
    background: #0073aa !important;
}