/*
Theme Name: Jewelry
Description: A clean and elegant jewelry theme with M JEWELRY inspired design
Version: 1.0
Author: Your Name
*/

/* Custom styles for the jewelry theme */
body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.home {
    background-color: #180303;
}

/* Header styles */
footer,
header {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    background-color: #D9D9D9;
}

#mobile-menu {
    background-color: #D9D9D9;
}

/* Navigation menu styling */
#desktop-nav {
    display: flex;
    list-style: none;
    flex-flow: row wrap;
    justify-content: flex-start;
    column-gap: 22px;
    row-gap: 16px;
    margin: 0;
    padding: 0;
}

#desktop-nav li {
    display: inline-block;
    margin: 0;
}

#desktop-nav li a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    font-weight: bold;
}

#desktop-nav li a:hover {
    text-decoration: underline;
}

/* Mobile menu styling */
#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu ul li {
    margin: 0;
}

#mobile-menu ul li a {
    text-decoration: none;
    display: block;
}

/* Cart badge animation */
.cart-badge {
    animation: bounce 0.5s ease-in-out;
}

.cart-container {
    background-color: #D9D9D9;
    height: 100%;
    top: 0;
    right: -100%;
    z-index: 1;
    transition: all 0.7s ease-in-out;
    padding-top: 15%;
}

ul.cart_list li img,
ul.product_list_widget li img {
    float: left;
    margin-right: 4px;
    width: 32px;
    height: auto;
    box-shadow: none;
}

@keyframes bounce {

    0%,
    20%,
    60%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    80% {
        transform: translateY(-5px);
    }
}

/* WooCommerce Cart Styles */
.woocommerce .cart_item {
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce .cart_item:last-child {
    border-bottom: none;
}

.woocommerce input[type="number"].qty {
    width: 4rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem;
}

.woocommerce .cart-collaterals .cart_totals {
    width: 100%;
}

.woocommerce .cart-collaterals .cart_totals table {
    width: 100%;
}

.woocommerce .wc-proceed-to-checkout {
    padding: 0;
}

.woocommerce .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    text-align: center;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #1d4ed8;
}

/* Hide default WooCommerce table styles on cart */
.woocommerce table.cart {
    display: none;
}

.woocommerce .cart-collaterals {
    width: 100%;
}

/* Remove default WooCommerce styling */
.woocommerce .cart-empty {
    text-align: center;
    padding: 2rem 0;
}

/* Quantity input styling */
.woocommerce .quantity input[type=number] {
    width: 4rem !important;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.25rem;
}

/* Product thumbnail styling */
.woocommerce .cart_item .product-thumbnail {
    width: 80px;
    height: 80px;
}

.woocommerce .cart_item .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* ===== SINGLE PRODUCT PAGE STYLES ===== */

/* Custom styles for the single product page */
.woocommerce div.product .woocommerce-product-gallery {
    width: 100%;
    margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    border-radius: 2rem;
}

.woocommerce div.product form.cart {
    margin: 0;
}

.woocommerce div.product form.cart .button {
    background-color: #000 !important;
    color: #fff !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin: 10px 0 !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

.woocommerce .quantity {
    /* Show default quantity input with custom styling */
    display: inline-block !important;
    margin-bottom: 1rem !important;
}

.woocommerce .quantity .qty {
    background-color: #fff !important;
    border: 2px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    padding: 8px 12px !important;
    text-align: center !important;
    width: 60px !important;
    font-size: 16px !important;
}

/* Hide default title and price since we're showing them custom */
.woocommerce div.product .product_title {
    display: none;
}

.woocommerce div.product p.price {
    display: none;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    display: none;
}

/* Style the product meta */
.woocommerce div.product .product_meta {
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Ensure images are properly styled */
.woocommerce div.product .woocommerce-product-gallery .flex-viewport {
    border-radius: 2rem;
    overflow: hidden;
}

/* Navigation arrows for product images */
.woocommerce div.product .flex-direction-nav {
    display: none;
}

/* Responsive adjustments for single product */
@media (max-width: 1024px) {
    .grid.lg\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .order-1.lg\:order-2 {
        order: 1;
    }

    .order-2.lg\:order-1 {
        order: 2;
    }
}

/* ===== FLOATING CART STYLES ===== */

/* Floating cart sidebar */
.floating-cart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.floating-cart.show {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.floating-cart-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.floating-cart-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.floating-cart-close:hover {
    color: #1f2937;
}

.floating-cart-content {
    padding: 20px;
    padding-bottom: 100px;
}

.floating-cart-footer {
    position: fixed;
    bottom: 0;
    right: -400px;
    width: 400px;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    transition: right 0.3s ease-in-out;
}

.floating-cart-footer.show {
    right: 0;
}

.checkout-btn {
    width: 100%;
    background: #1f2937;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #111827;
}

.view-cart-btn {
    width: 100%;
    background: transparent;
    color: #1f2937;
    padding: 12px;
    border: 2px solid #1f2937;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-cart-btn:hover {
    background: #1f2937;
    color: white;
}

.floating-cart .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-cart .woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.floating-cart .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.floating-cart .woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 15px;
}

.floating-cart .woocommerce-mini-cart-item .quantity {
    font-size: 14px;
    color: #6b7280;
    margin-top: 5px;
}

.floating-cart .woocommerce-mini-cart__total {
    padding: 20px 0;
    border-top: 2px solid #e5e7eb;
    font-weight: bold;
    font-size: 18px;
    text-align: right;
    color: #1f2937;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

body.cart-open {
    overflow: hidden;
}

/* Floating Cart Mobile Styles */
@media (max-width: 480px) {
    .floating-cart {
        width: 320px;
        right: -320px;
    }

    .floating-cart-footer {
        width: 320px;
        right: -320px;
    }
}

@media (max-width: 320px) {
    .floating-cart {
        width: 100vw;
        right: -100vw;
    }

    .floating-cart-footer {
        width: 100vw;
        right: -100vw;
    }
}

/* ===== INFINITE SCROLL STYLES ===== */

/* Infinite Scroll Styles */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

.loading-indicator.active {
    display: block;
}

.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 24px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: #555;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.load-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hide WooCommerce default pagination when infinite scroll is active */
.infinite-scroll-active .woocommerce-pagination {
    display: none !important;
}

/* Smooth transitions for new products loading */
.products .product {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.products .product.loading {
    opacity: 0;
    transform: translateY(20px);
}

/* RTL support for infinite scroll elements */
html[dir="rtl"] .loading-indicator,
html[dir="rtl"] .load-more-btn {
    text-align: center;
}

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

html[dir="rtl"] .loading-spinner {
    margin-left: 0;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== PARALLAX EFFECT STYLES ===== */

/* Parallax Effect Styles */
.parallax-bg {
    background-image: url('./images/first-section-bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: transform;
}

/* Smooth parallax on mobile */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ===== MINI CART STYLES ===== */

/* Mini Cart Item Layout */
.mini-cart-item-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.mini-cart-item-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.product-thumbnail {
    flex-shrink: 0;
}

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

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #333;
}

.product-quantity-price {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

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

/* Mini cart list styling */
.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-mini-cart-item {
    position: relative;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

/* Remove button styling */
.woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 10px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.3s ease;
}

.woocommerce-mini-cart-item .remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* ===== HEBREW TEXT OVERRIDES ===== */

/* Override Add to Cart button text to Hebrew */
.add_to_cart_button:after,
.single_add_to_cart_button:after {
    content: none;
}

/* Hide original English text and replace with Hebrew */
.add_to_cart_button {
    font-size: 0;
    line-height: 0;
}

/* Apply standard button styling to archive page buttons */
.add_to_cart_button:not(.standard-add-to-cart) {
    width: 119px !important;
    height: 41px !important;
    line-height: 39px !important;
    padding: 0 !important;
    display: block !important;
    background-color: #000000 !important;
    color: white !important;
    border-radius: 9999px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.add_to_cart_button:not(.standard-add-to-cart):hover {
    background-color: #333333 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Variable products "Select options" button */
.product_type_variable:before {
    content: "בחר אפשרויות" !important;
}

/* External products button */
.product_type_external:before {
    content: "קרא עוד" !important;
}

/* Grouped products button */
.product_type_grouped:before {
    content: "צפה במוצרים" !important;
}

/* ===== ARCHIVE PRODUCT PAGE STYLES ===== */

/* Archive Product Search Button Hide */
.woocommerce-product-search input[type="submit"],
.woocommerce-product-search button[type="submit"] {
    display: none !important;
}

/* Archive Product Active Category Styling */
.category-link.active,
.category-link.current-category {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    border-left: 3px solid #6b7280;
}

.category-link.active:hover,
.category-link.current-category:hover {
    background-color: #e5e7eb !important;
}

/* View Cart Button Styling */
.added_to_cart,
.wc-forward,
.added_to_cart.wc-forward {
    display: inline-block !important;
    background-color: #065f46 !important;
    color: white !important;
    width: 119px !important;
    height: 41px !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-align: center !important;
    line-height: 41px !important;
    box-sizing: border-box !important;
}

.added_to_cart:hover,
.wc-forward:hover,
.added_to_cart.wc-forward:hover {
    background-color: #047857 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

/* Standard Add to Cart Button Class - Reusable */
.standard-add-to-cart {
    width: 119px !important;
    height: 41px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    background-color: #000000 !important;
    color: white !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.standard-add-to-cart:hover {
    background-color: #333333 !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ===== WOOCOMMERCE ADD TO CART BUTTON OVERRIDES ===== */

/* Universal Add to Cart Button Override - Very High Specificity */
body .woocommerce div.product form.cart .button,
body .woocommerce .single-product form.cart .button,
body .woocommerce-page .single-product form.cart .button,
body .single_add_to_cart_button,
body .woocommerce .button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .woocommerce #respond input#submit.alt,
body .woocommerce a.button.alt,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit,
body .woocommerce a.button {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    border: none !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin: 10px 0 !important;
    min-width: 200px !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

body .woocommerce div.product form.cart .button:hover,
body .woocommerce .single-product form.cart .button:hover,
body .woocommerce-page .single-product form.cart .button:hover,
body .single_add_to_cart_button:hover,
body .woocommerce .button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover,
body .woocommerce #respond input#submit.alt:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce #respond input#submit:hover,
body .woocommerce a.button:hover {
    background-color: #333333 !important;
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    opacity: 1 !important;
}

/* Related Products Add to Cart Buttons */
body .ajax_add_to_cart,
body .add_to_cart_button,
body .woocommerce ul.products li.product .ajax_add_to_cart,
body .woocommerce ul.products li.product .add_to_cart_button {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    border: none !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

body .ajax_add_to_cart:hover,
body .add_to_cart_button:hover,
body .woocommerce ul.products li.product .ajax_add_to_cart:hover,
body .woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: #333333 !important;
    background: #333333 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
}

/* Archive/Shop page buttons */
body .woocommerce ul.products li.product .button,
body .woocommerce-page ul.products li.product .button,
body .woocommerce ul.products li.product a.button,
body .woocommerce-page ul.products li.product a.button {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
    border: none !important;
}

body .woocommerce ul.products li.product .button:hover,
body .woocommerce-page ul.products li.product .button:hover,
body .woocommerce ul.products li.product a.button:hover,
body .woocommerce-page ul.products li.product a.button:hover {
    background-color: #333333 !important;
    background: #333333 !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Force override any theme styles */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
    background-image: none !important;
    background-color: #000000 !important;
    border: none !important;
}

.single-product-main-image {
    width: 320px;
}

@media (max-width: 768px) {
    .single-product-main-image {
        width: 100%;
    }
}

#wooswipe {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.thumbnails img {
    height: 100%;
    width: 100%;
}

/* Blog Archive Styles */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Archive Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
}

/* Blog Archive Meta Styles */
.blog-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Blog Archive Pagination Styles */
.pagination-wrapper nav a,
.pagination-wrapper nav span {
    transition: all 0.2s ease;
}

.pagination-wrapper nav a:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

/* Blog Archive Category Tags */
.category-tag {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* Blog Archive Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Blog Archive Read More Button */
.read-more-btn {
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

/* Blog Archive Responsive Improvements */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }
}

/* Single Post Styles */
.single-post-hero {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.single-post-content {
    background-color: #fafafa;
}

/* Single Post Typography */
.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose blockquote {
    border-right: 4px solid #1f2937;
    padding-right: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-right: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Single Post Author Bio */
.author-bio {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

/* Single Post Navigation */
.post-navigation {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.post-nav-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.post-nav-card:hover {
    border-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Related Posts Section */
.related-posts {
    background-color: #f8fafc;
}

.related-post-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Single Post Meta Icons */
.post-meta-icon {
    transition: color 0.2s ease;
}

.post-meta-item:hover .post-meta-icon {
    color: #1f2937;
}

/* Single Post Tags */
.post-tag {
    transition: all 0.2s ease;
}

.post-tag:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

/* Single Post Categories */
.post-category {
    transition: all 0.2s ease;
}

.post-category:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* Single Post Featured Image Overlay */
.featured-image-overlay {
    background: linear-gradient(to top,
            rgba(31, 41, 55, 0.9) 0%,
            rgba(31, 41, 55, 0.5) 50%,
            rgba(31, 41, 55, 0.1) 100%);
}

/* Single Post Content Enhancements */
.single-content img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

/* Single Post Responsive */
@media (max-width: 768px) {
    .single-post-hero h1 {
        font-size: 2.25rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-posts .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== CONTACT FORM 7 STYLES ===== */

/* Contact Form 7 Container */
.contact-form-container .wpcf7 {
    direction: rtl;
    text-align: right;
}

/* Contact Form 7 Form Elements */
.contact-form-container .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Input Fields */
.contact-form-container .wpcf7-form input[type="text"],
.contact-form-container .wpcf7-form input[type="email"],
.contact-form-container .wpcf7-form input[type="tel"],
.contact-form-container .wpcf7-form input[type="url"],
.contact-form-container .wpcf7-form input[type="number"],
.contact-form-container .wpcf7-form select,
.contact-form-container .wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
    text-align: right;
}

/* Focus State */
.contact-form-container .wpcf7-form input:focus,
.contact-form-container .wpcf7-form select:focus,
.contact-form-container .wpcf7-form textarea:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Labels */
.contact-form-container .wpcf7-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    direction: rtl;
    text-align: right;
}

/* Required Asterisk */
.contact-form-container .wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    direction: rtl;
    text-align: right;
}

/* Submit Button */
.contact-form-container .wpcf7-form input[type="submit"] {
    width: 100%;
    background-color: #111827;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 1rem;
}

.contact-form-container .wpcf7-form input[type="submit"]:hover {
    background-color: #1f2937;
    transform: translateY(-1px);
}

.contact-form-container .wpcf7-form input[type="submit"]:active {
    transform: translateY(0);
}

/* Textarea */
.contact-form-container .wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Row - Two Columns */
.contact-form-container .wpcf7-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Form Group */
.contact-form-container .wpcf7-form .form-group {
    display: flex;
    flex-direction: column;
}

/* Success/Error Messages */
.contact-form-container .wpcf7-response-output {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    direction: rtl;
    text-align: center;
    font-weight: 500;
}

.contact-form-container .wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-form-container .wpcf7-mail-sent-ng,
.contact-form-container .wpcf7-validation-errors {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading Spinner */
.contact-form-container .wpcf7-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #111827;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-form-container .wpcf7-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-container .wpcf7-form input[type="submit"] {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .contact-form-container .wpcf7-form input,
    .contact-form-container .wpcf7-form select,
    .contact-form-container .wpcf7-form textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* Accessibility Improvements */
.contact-form-container .wpcf7-form input:invalid {
    border-color: #dc2626;
}

.contact-form-container .wpcf7-form input:valid {
    border-color: #10b981;
}

/* RTL Specific Adjustments */
html[dir="rtl"] .contact-form-container .wpcf7-form {
    text-align: right;
}

html[dir="rtl"] .contact-form-container .wpcf7-form input,
html[dir="rtl"] .contact-form-container .wpcf7-form select,
html[dir="rtl"] .contact-form-container .wpcf7-form textarea {
    text-align: right;
    direction: rtl;
}

/* ===== WOOCOMMERCE NOTIFICATIONS & MESSAGES ===== */

/* Hide Cart Update Messages on Checkout Page */
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.page-template-page-checkout .woocommerce-message,
body.page-template-page-checkout .woocommerce-info {
    display: none !important;
}

/* Style WooCommerce Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    direction: rtl;
    text-align: right;
}

.woocommerce-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.woocommerce-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.woocommerce-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Hide "View Cart" buttons on checkout */
body.woocommerce-checkout .woocommerce-message a,
body.page-template-page-checkout .woocommerce-message a {
    display: none !important;
}

/* Success Messages Animation */
.woocommerce-message {
    animation: slideInDown 0.5s ease-out;
}

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

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

/* Auto-hide success messages after 3 seconds */
.woocommerce-message.auto-hide {
    animation: fadeOut 0.5s ease-out 3s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* Fix for overlapping messages */
.woocommerce-notices-wrapper {
    position: relative;
    z-index: 10;
}

.woocommerce-notices-wrapper .woocommerce-message:not(:last-child) {
    margin-bottom: 0.5rem;
}

/* Hide cart update messages specifically */
.woocommerce-message:contains("Cart updated"),
.woocommerce-message:contains("עגלה עודכנה") {
    display: none !important;
}

/* Checkout Page Specific Overrides */
.checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-message {
    display: none !important;
}

/* ===== ATTRIBUTE FILTERS STYLES ===== */

/* Attribute Filter Dropdowns */
.attribute-filter {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-left: 2.5rem;
    appearance: none;
}

html[dir="rtl"] .attribute-filter {
    background-position: right 0.5rem center;
    padding-left: 0.75rem;
    padding-right: 2.5rem;
}

.attribute-filter:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Clear Filters Button */
.clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #6b7280;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}

.clear-filters:active {
    background-color: #e5e7eb;
}

/* Filter Section Responsive */
@media (max-width: 640px) {
    .attribute-filter {
        font-size: 0.8rem;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }

    html[dir="rtl"] .attribute-filter {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
    }

    .clear-filters {
        width: 2.25rem;
        height: 2.25rem;
    }

    .clear-filters svg {
        width: 1rem;
        height: 1rem;
    }
}

/* Filter Active State */
.attribute-filter[data-selected="true"] {
    background-color: #f3f4f6;
    border-color: #6b7280;
    font-weight: 600;
}

/* Filter Group Spacing */
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .filter-group {
        gap: 0.5rem;
    }
}

/* Loading State for Filters */
.attribute-filter.loading {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f9fafb;
}

/* Filter Results Count */
.filter-results-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* No Results State */
.no-filter-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* Filter Animation */
.attribute-filter {
    transition: all 0.2s ease;
}

.clear-filters {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== PRODUCT GALLERY STYLES ===== */

/* Product Gallery Container */
.product-gallery {
    width: 100%;
}

/* Main Image Container */
.main-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.main-image-container img.opacity-50 {
    opacity: 0.5;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    width: 100%;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item img {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.thumbnail-item:hover img {
    border-color: #9ca3af !important;
    transform: scale(1.05);
}

.thumbnail-item.active img {
    border-color: #374151 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Lightbox Modal */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

#lightbox-modal.flex {
    opacity: 1;
}

#lightbox-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
    border-radius: 0.5rem;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Gallery Responsive Design */
@media (max-width: 768px) {
    .thumbnail-item img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .thumbnail-gallery .flex {
        gap: 0.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    #lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .thumbnail-item img {
        width: 3rem;
        height: 3rem;
    }

    .main-image-container {
        margin-bottom: 0.75rem;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 2.5rem;
        height: 2.5rem;
    }

    .lightbox-close svg,
    .lightbox-prev svg,
    .lightbox-next svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Gallery Animation Effects */
.main-image-container .group:hover img {
    transform: scale(1.02);
}

.thumbnail-item {
    animation: slideInUp 0.4s ease forwards;
}

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

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

/* Zoom Icon Animation */
.main-image-container .group .absolute {
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Loading State */
.product-gallery.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-gallery.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #374151;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* RTL Support for Gallery */
html[dir="rtl"] .thumbnail-gallery .flex {
    direction: ltr;
}

html[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 1rem;
}

html[dir="rtl"] .lightbox-next {
    right: auto;
    left: 1rem;
}

@media (max-width: 768px) {
    html[dir="rtl"] .lightbox-prev {
        right: 1rem;
        left: auto;
    }

    html[dir="rtl"] .lightbox-next {
        left: 1rem;
        right: auto;
    }
}