/**
 * Nova Premium - Additional CSS
 * Extends style.css with extra components
 */

/* =========================================================
   NOVA PRODUCT CARD - Custom Loop Template
   ========================================================= */

/* Reset WooCommerce defaults on our cards */
ul.products li.product.nova-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}
ul.products li.product.nova-product-card:hover {
    box-shadow: 0 8px 32px rgba(200,169,110,0.18);
    transform: translateY(-5px);
    border-color: var(--nova-primary);
}

/* ---- Image ---- */
.nova-card-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    max-height: 220px;
    line-height: 0;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}
.nova-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    margin: 0;
}
.nova-card-img,
ul.products li.product.nova-product-card img.nova-card-img,
ul.products li.product.nova-product-card .nova-card-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
}
ul.products li.product.nova-product-card:hover .nova-card-img {
    transform: scale(1.06);
}

/* ---- Badges ---- */
.nova-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
    z-index: 3;
    letter-spacing: 0.3px;
}
.nova-badge-sale {
    background: #dc3545;
    color: #fff;
}
.nova-badge-oos {
    background: #6c757d;
    color: #fff;
}

/* ---- Wishlist ---- */
.nova-card-wishlist,
.nova-quick-view {
    display: none !important;
}
.nova-card-wishlist .yith-wcwl-add-to-wishlist {
    position: static !important;
    top: auto !important;
    left: auto !important;
}
.nova-card-wishlist .yith-wcwl-add-to-wishlist a {
    width: 34px !important;
    height: 34px !important;
    background: rgba(255,255,255,0.92) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    color: #999 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    transition: all 0.25s !important;
    text-decoration: none !important;
}
.nova-card-wishlist .yith-wcwl-add-to-wishlist a:hover,
.nova-card-wishlist .yith-wcwl-add-to-wishlist.exists a {
    background: var(--nova-danger, #dc3545) !important;
    color: #fff !important;
}

/* ---- Body ---- */
.nova-card-body {
    padding: 18px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
    text-align: center;
    align-items: center;
}

/* ---- Category ---- */
.nova-card-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--nova-primary);
    line-height: 1;
}
.nova-card-cat a {
    color: inherit;
    text-decoration: none;
}
.nova-card-cat a:hover { opacity: 0.75; }

/* ---- Title ---- */
.nova-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--nova-secondary, #1a1a2e);
    line-height: 1.4;
    margin: 4px 0 0;
    min-height: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.nova-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.nova-card-title a:hover { color: var(--nova-primary); }

.nova-card-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Price ---- */
.nova-card-price {
    margin-top: auto;
    padding-top: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--nova-primary);
    line-height: 1.2;
}
.nova-card-price .woocommerce-Price-amount { color: var(--nova-primary); }
.nova-card-price del .woocommerce-Price-amount {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 400;
}
.nova-card-price ins {
    text-decoration: none;
    display: inline;
}

/* ---- BUY NOW BUTTON ---- */
.nova-buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 11px 16px;
    background: #F4B243;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    font-family: inherit;
}
.nova-buy-now-btn:hover {
    background: #e0a032 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,178,67,0.45);
    text-decoration: none !important;
}
.nova-buy-now-btn i {
    display: none !important;
}
.nova-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}
.nova-buy-now-btn.nova-buy-now-disabled {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
}

/* ---- RTL tweaks ---- */
.rtl .nova-card-badge { right: auto; left: 12px; }
.rtl .nova-card-wishlist { left: auto; right: 12px; }
.rtl .nova-badge-sale + .nova-card-wishlist,
.rtl .nova-badge-oos + .nova-card-wishlist { right: auto; left: 12px; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .nova-card-body { padding: 14px 16px 16px; gap: 6px; }
    .nova-card-title {
        font-size: 0.95rem;
        white-space: normal;
    }
    .nova-buy-now-btn { font-size: 0.9rem; padding: 12px 14px; }
}

.nova-shop-header {
    text-align: center;
    margin-bottom: 22px;
}
.nova-shop-header .page-title {
    font-size: 1.8rem;
    margin: 0 0 8px;
}

.nova-shop-filter {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 36px;
    padding: 4px;
    border: 0.5px solid #E7E6E4;
    border-radius: 20px;
    background: #FBF8F4;
    box-sizing: border-box;
}

.nova-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 55px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #504D49;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nova-filter-btn:hover {
    background: rgba(255,255,255,0.7);
    color: #C38B33;
}
.nova-filter-btn.is-active {
    background: #FBDEB7;
    border-color: #FDEDD9;
    color: #C38B33;
}

@media (max-width: 640px) {
    .nova-shop-filter {
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
    }
    .nova-filter-btn {
        flex: 1 1 0;
        white-space: normal;
        min-height: 48px;
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* Hide overlay arrow / quick-view on product images */
.nova-quick-view,
ul.products .nova-quick-view,
.elementor-widget-woocommerce-products .elementor-button,
.elementor-widget-wc-archive-products .elementor-button,
ul.products li.product .elementor-icon,
ul.products li.product a.elementor-button,
.nova-card-image-wrap .elementor-icon {
    display: none !important;
}

.nova-services-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    container-type: inline-size;
    container-name: nova-services;
}
.nova-services-block ul.products,
.nova-services-block .nova-shop-ajax,
.nova-services-block li.product {
    min-width: 0;
    max-width: 100%;
}
.nova-services-block-title {
    text-align: center;
    margin: 0 0 24px;
    font-size: 1.5rem;
    color: var(--nova-secondary, #1a1a2e);
}

/* Stack by the shortcode/widget WIDTH (works in Elementor mobile preview) */
@container nova-services (max-width: 1100px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}
@container nova-services (max-width: 767px) {
    ul.products {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    ul.products > li.product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
    }
    .nova-shop-filter {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        border-radius: 20px;
        background: #FBF8F4;
    }
    .nova-filter-btn {
        width: auto;
        flex: 1 1 0;
        white-space: normal;
        min-height: 48px;
        padding: 12px 10px;
    }
    .nova-card-title {
        font-size: 0.95rem;
        white-space: normal;
    }
}

/* Elementor device preview fallback */
html.elementor-device-tablet .nova-services-block ul.products,
body.elementor-device-tablet .nova-services-block ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
}
html.elementor-device-mobile .nova-services-block ul.products,
body.elementor-device-mobile .nova-services-block ul.products,
html.elementor-device-mobile ul.products,
body.elementor-device-mobile ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}
html.elementor-device-mobile .nova-shop-filter,
body.elementor-device-mobile .nova-shop-filter {
    flex-direction: row;
    width: 100%;
    background: #FBF8F4;
}
.nova-shop-ajax {
    position: relative;
    min-height: 200px;
    transition: opacity 0.2s ease;
}
.nova-shop-ajax.is-loading {
    opacity: 0.45;
    pointer-events: none;
}
.nova-shop-ajax.is-loading::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 3px solid rgba(244,178,67,0.25);
    border-top-color: #F4B243;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}
ul.products li.product.nova-product-card > .button,
ul.products li.product.nova-product-card > a.button {
    display: none !important;
}

/* =========================================================
   SINGLE PRODUCT — Full-Width, Image RIGHT, Details LEFT
   ========================================================= */

/* ── WooCommerce notice: shrink & style nicely ── */
.nova-single-product-wrap .woocommerce-message,
.nova-single-product-wrap .woocommerce-info,
.nova-single-product-wrap .woocommerce-error {
    margin: 0 0 12px !important;
    border-radius: 10px !important;
    font-size: 0.9rem !important;
}

/* Page wrapper */
.nova-single-product-wrap {
    padding-top: 16px;
    padding-bottom: 50px;
}

/* Kill WooCommerce default floats — scoped so 100% means 100% of the COLUMN */
.nova-sp-layout .images,
.nova-sp-layout .woocommerce-product-gallery,
.nova-sp-layout .summary,
.nova-sp-layout .entry-summary,
.woocommerce .nova-sp-layout div.product div.images,
.woocommerce .nova-sp-layout div.images,
.woocommerce .nova-sp-layout div.summary,
.woocommerce-page .nova-sp-layout div.images,
.woocommerce-page .nova-sp-layout div.summary {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Two columns: image RIGHT, details LEFT, details in the VERTICAL MIDDLE of the image */
.nova-sp-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 20px;
    direction: rtl;
    margin-bottom: 40px;
    width: 100%;
}

.nova-sp-gallery {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0;
    direction: rtl;
}

.nova-sp-summary {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0;
    direction: rtl;
    text-align: right;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* ---- Gallery column ---- */
.nova-sp-gallery .woocommerce-product-gallery {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    position: relative;
    top: auto;
    background: #fff;
    width: 100% !important;
    float: none !important;
}
.nova-sp-gallery .woocommerce-product-gallery__wrapper img,
.nova-sp-gallery .woocommerce-product-gallery figure img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px 12px 0 0;
}
.nova-sp-gallery .flex-viewport,
.nova-sp-gallery .woocommerce-product-gallery__image {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
/* Thumbnails strip */
.nova-sp-gallery .flex-control-thumbs {
    display: flex !important;
    gap: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    margin: 0 !important;
}
.nova-sp-gallery .flex-control-thumbs li {
    float: none !important;
    width: 70px !important;
    height: 70px !important;
    margin: 0 !important;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.nova-sp-gallery .flex-control-thumbs li.flex-active-slide,
.nova-sp-gallery .flex-control-thumbs li:hover {
    border-color: var(--nova-primary, #c8a96e);
}
.nova-sp-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px;
}
/* Sale flash badge */
.nova-sp-gallery .onsale {
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    background: #dc3545 !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
}
/* Zoom icon */
.nova-sp-gallery .woocommerce-product-gallery__trigger {
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    font-size: 1rem !important;
}
.nova-sp-gallery .woocommerce-product-gallery__trigger img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 0 !important;
}

/* ---- Summary column ---- */

/* Product title */
.nova-sp-summary .product_title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--nova-secondary, #1a1a2e);
    line-height: 1.3;
    margin: 0 0 10px;
}

/* Rating stars */
.nova-sp-summary .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.nova-sp-summary .star-rating { font-size: 0.9rem; }
.nova-sp-summary .woocommerce-review-link {
    font-size: 0.85rem;
    color: var(--nova-text-light, #666);
}

/* Price */
.nova-sp-summary .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--nova-primary, #c8a96e) !important;
    line-height: 1.2;
    margin: 0 0 14px;
    display: block;
}
.nova-sp-summary .price del {
    font-size: 1.1rem;
    color: #aaa !important;
    font-weight: 400;
    margin-left: 10px;
}
.nova-sp-summary .price ins {
    text-decoration: none;
    color: var(--nova-primary, #c8a96e);
}

/* Short description */
.nova-sp-summary .woocommerce-product-details__short-description {
    font-size: 0.95rem;
    color: var(--nova-text-light, #555);
    line-height: 1.8;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nova-border, #e0e0e0);
}

/* ── Add to Cart Form ── */
.nova-sp-summary form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 12px !important;
    padding: 0 !important;
}
.single-product .nova-sp-summary .quantity,
.nova-sp-summary form.cart .quantity {
    display: none !important;
}

/* Quantity input */
.nova-sp-summary .quantity .qty {
    width: 72px;
    height: 52px;
    padding: 0 12px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid var(--nova-border, #e0e0e0);
    border-radius: 10px;
    background: #fff;
    color: var(--nova-secondary, #1a1a2e);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.nova-sp-summary .quantity .qty:focus {
    border-color: var(--nova-primary, #c8a96e);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}

/* "إضافة إلى السلة" button — now acts as checkout */
.nova-sp-summary .single_add_to_cart_button {
    flex: 1;
    min-width: 180px;
    height: 52px;
    background: #F4B243 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    letter-spacing: 0.2px;
    text-decoration: none !important;
}
.nova-sp-summary .single_add_to_cart_button::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4h1.5l1 2H19a1 1 0 0 1 1 1.2l-1.5 7A2 2 0 0 1 16.5 16H9.2A2.2 2.2 0 0 1 7 13.9L5.3 6H4V4h3zm2.2 14.5A1.5 1.5 0 1 0 9.2 22a1.5 1.5 0 0 0 0-3zm7.3 0A1.5 1.5 0 1 0 16.5 22a1.5 1.5 0 0 0 0-3z'/></svg>") center / contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7 4h1.5l1 2H19a1 1 0 0 1 1 1.2l-1.5 7A2 2 0 0 1 16.5 16H9.2A2.2 2.2 0 0 1 7 13.9L5.3 6H4V4h3zm2.2 14.5A1.5 1.5 0 1 0 9.2 22a1.5 1.5 0 0 0 0-3zm7.3 0A1.5 1.5 0 1 0 16.5 22a1.5 1.5 0 0 0 0-3z'/></svg>") center / contain no-repeat;
}
.nova-sp-summary .single_add_to_cart_button:hover {
    background: #e0a032 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(244,178,67,0.45) !important;
    color: #fff !important;
}
.nova-sp-summary .single_add_to_cart_button.loading {
    opacity: 0.75 !important;
    pointer-events: none !important;
}
.nova-sp-summary .single_add_to_cart_button.loading::after {
    content: '' !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
    border-top-color: #fff !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    animation: spin 0.7s linear infinite !important;
    display: inline-block !important;
    margin-right: 6px !important;
}

/* Meta (category, tags, SKU) */
.nova-sp-summary .product_meta {
    font-size: 0.88rem;
    color: var(--nova-text-light, #666);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--nova-border, #e0e0e0);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nova-sp-summary .product_meta .posted_in a,
.nova-sp-summary .product_meta .tagged_as a {
    color: var(--nova-primary, #c8a96e);
    font-weight: 600;
    text-decoration: none;
}
.nova-sp-summary .product_meta .posted_in a:hover,
.nova-sp-summary .product_meta .tagged_as a:hover {
    text-decoration: underline;
}
.nova-sp-summary .product_meta span { display: block; }
.nova-sp-summary .product_meta .sku { color: var(--nova-text-light, #666); }

/* Social share (if enabled) */
.nova-sp-summary .woocommerce-product-details__short-description + .product_meta {
    margin-top: 0;
}

/* ── Trust Badges under button ── */
.nova-sp-trust {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 100%;
}
.nova-sp-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--nova-text-light, #666);
    background: var(--nova-bg-light, #f9f9f9);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid var(--nova-border, #e0e0e0);
    line-height: 1.3;
}
.nova-sp-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--nova-primary, #c8a96e);
    display: block;
}

/* ── Bottom section: Tabs + Related ── */
.nova-sp-bottom { margin-top: 20px; }

/* Tabs */
.nova-sp-bottom .woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--nova-border, #e0e0e0);
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0;
}
.nova-sp-bottom .woocommerce-tabs .tabs li {
    border: none !important;
    background: none !important;
    list-style: none !important;
}
.nova-sp-bottom .woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--nova-text-light, #666);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    text-decoration: none;
}
.nova-sp-bottom .woocommerce-tabs .tabs li.active a,
.nova-sp-bottom .woocommerce-tabs .tabs li a:hover {
    color: var(--nova-primary, #c8a96e);
    border-bottom-color: var(--nova-primary, #c8a96e);
}
.nova-sp-bottom .woocommerce-tabs .woocommerce-Tabs-panel,
.nova-sp-bottom .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    padding: 28px 32px !important;
    background: var(--nova-bg-light, #f9f9f9);
    border-radius: 0 0 12px 12px;
    border: 1px solid var(--nova-border, #e0e0e0);
    border-top: none;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--nova-text, #333);
    margin: 0 0 2em !important;
}
.woocommerce div.product .woocommerce-tabs .panel h2,
.nova-sp-bottom .woocommerce-tabs .panel h2 {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 1.15rem;
}

/* Related / Upsell products */
.nova-sp-bottom .related.products,
.nova-sp-bottom .up-sells.upsells.products {
    margin-top: 50px;
    width: 100% !important;
    float: none !important;
    clear: both;
}
.nova-sp-bottom .related.products > h2,
.nova-sp-bottom .up-sells.upsells.products > h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--nova-secondary, #1a1a2e);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nova-primary, #c8a96e);
    display: inline-block;
}
.nova-sp-bottom .related ul.products,
.nova-sp-bottom .upsells ul.products,
.related.products ul.products,
.up-sells ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}
@media (max-width: 1024px) {
    .nova-sp-bottom .related ul.products,
    .nova-sp-bottom .upsells ul.products,
    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 767px) {
    .nova-sp-bottom .related ul.products,
    .nova-sp-bottom .upsells ul.products,
    .woocommerce div.product .related.products ul.products,
    .woocommerce div.product .up-sells ul.products,
    .related.products ul.products {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .nova-sp-bottom .related ul.products > li.product,
    .nova-sp-bottom .upsells ul.products > li.product,
    .related.products ul.products > li.product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        float: none !important;
    }
}
.nova-sp-bottom .related ul.products::before,
.nova-sp-bottom .related ul.products::after,
.related.products ul.products::before,
.related.products ul.products::after {
    content: none !important;
    display: none !important;
}
.nova-sp-bottom .related ul.products li.product,
.related.products ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .nova-sp-layout {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 24px;
    }
    .nova-sp-gallery,
    .nova-sp-summary {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nova-sp-gallery .woocommerce-product-gallery {
        position: static;
    }
    .nova-sp-summary .price { font-size: 1.4rem; }
    .nova-sp-summary form.cart { gap: 10px; }
}

@media (max-width: 480px) {
    .nova-single-product-wrap { padding-top: 16px; padding-bottom: 50px; }
    .nova-sp-summary .single_add_to_cart_button { min-width: 100%; }
    .nova-sp-summary form.cart { flex-direction: row; }
    .nova-sp-summary .quantity .qty { width: 60px; }
    .nova-sp-trust { gap: 8px; }
    .nova-sp-trust-item { font-size: 0.75rem; padding: 6px 10px; }
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area { margin-top: 50px; }
.comments-title {
    font-size: 1.3rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--nova-primary);
    display: inline-block;
}

.comment-list { padding: 0; }
.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--nova-border);
    list-style: none;
}
.comment-body { display: flex; gap: 15px; }
.comment-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.comment-author .fn { font-weight: 700; font-size: 0.95rem; color: var(--nova-secondary); }
.comment-metadata { font-size: 0.8rem; color: var(--nova-text-light); }
.comment-content p { font-size: 0.9rem; line-height: 1.7; color: var(--nova-text-light); }
.comment-respond {
    background: var(--nova-bg-light);
    border-radius: var(--nova-radius-lg);
    padding: 30px;
    margin-top: 40px;
    border: 1px solid var(--nova-border);
}
.comment-reply-title { font-size: 1.2rem; margin-bottom: 20px; }
.comment-form label { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; display: block; }
.comment-form input,
.comment-form textarea {
    border: 1.5px solid var(--nova-border);
    border-radius: var(--nova-radius);
    padding: 12px 16px;
    width: 100%;
    transition: var(--nova-transition);
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--nova-primary);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
}
.comment-form .submit {
    background: var(--nova-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--nova-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--nova-transition);
    font-family: inherit;
    font-size: 0.95rem;
}
.comment-form .submit:hover { background: var(--nova-primary-dark); transform: translateY(-2px); }
.children { padding-right: 30px; margin-top: 20px; }

/* =========================================================
   WooCommerce: Product Single - Tabs
   ========================================================= */
.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--nova-border);
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.woocommerce-tabs .tabs li {
    border: none !important;
    background: none !important;
}
.woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nova-text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--nova-transition);
}
.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: var(--nova-primary);
    border-bottom-color: var(--nova-primary);
}

/* =========================================================
   WooCommerce: Reviews
   ========================================================= */
#reviews .comment-form-rating { margin-bottom: 15px; }
#reviews .stars a { color: #f5c518 !important; }
#reviews .comment-form-rating label { font-weight: 700; }

/* =========================================================
   WooCommerce: Account Pages
   ========================================================= */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--nova-bg-light);
    border-radius: var(--nova-radius-lg);
    padding: 20px;
    border: 1px solid var(--nova-border);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: var(--nova-radius);
    color: var(--nova-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--nova-transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--nova-primary);
    color: #fff;
}

/* =========================================================
   WooCommerce: Order Details
   ========================================================= */
.woocommerce-order-details .woocommerce-table {
    border-radius: var(--nova-radius-lg);
    overflow: hidden;
    box-shadow: var(--nova-shadow);
}
.woocommerce-order-details .woocommerce-table th {
    background: var(--nova-secondary);
    color: #fff;
    padding: 14px 20px;
}
.woocommerce-order-details .woocommerce-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--nova-border);
}

/* =========================================================
   Search Form
   ========================================================= */
.search-form { display: flex; gap: 0; position: relative; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1.5px solid var(--nova-border);
    border-radius: var(--nova-radius);
    font-size: 0.95rem;
    outline: none;
    transition: var(--nova-transition);
}
.search-form .search-field:focus { border-color: var(--nova-primary); }
.search-form .search-submit {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nova-primary);
    font-size: 1rem;
    padding: 0;
}

/* =========================================================
   Gutenberg Blocks
   ========================================================= */
.wp-block-button__link {
    background: var(--nova-primary) !important;
    border-color: var(--nova-primary) !important;
    border-radius: var(--nova-radius) !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
}
.wp-block-button__link:hover {
    background: var(--nova-primary-dark) !important;
    border-color: var(--nova-primary-dark) !important;
}
.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--nova-primary) !important;
    border-color: var(--nova-primary) !important;
}
.is-style-outline .wp-block-button__link:hover {
    background: var(--nova-primary) !important;
    color: #fff !important;
}

.wp-block-separator { border-color: var(--nova-border); }
.wp-block-quote {
    border-right: 4px solid var(--nova-primary);
    padding: 15px 20px;
    background: var(--nova-bg-light);
    border-radius: 0 var(--nova-radius) var(--nova-radius) 0;
    font-style: italic;
}
.wp-block-quote cite { color: var(--nova-primary); font-style: normal; font-size: 0.85rem; }

/* =========================================================
   Notification Toast
   ========================================================= */
#nova-notifications { direction: ltr; }

/* =========================================================
   Nova Quick View Modal
   ========================================================= */
#novaQuickViewModal.active {
    opacity: 1 !important;
    visibility: visible !important;
}
#novaQuickViewModal.active .nova-modal-box {
    transform: scale(1) !important;
}

/* =========================================================
   YITH Wishlist
   ========================================================= */
.yith-wcwl-add-to-wishlist {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 3 !important;
}
.yith-wcwl-add-to-wishlist a {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--nova-text-light) !important;
    font-size: 0.95rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: var(--nova-transition) !important;
    text-decoration: none !important;
}
.yith-wcwl-add-to-wishlist a:hover,
.yith-wcwl-add-to-wishlist.exists a {
    background: var(--nova-danger) !important;
    color: #fff !important;
}
.yith-wcwl-add-to-wishlist .yith-wcwl-icon { display: block; }
.yith-wcwl-add-to-wishlist .ajax-loading { display: none !important; }

/* =========================================================
   WooCommerce Variation Swatches (common plugin compat)
   ========================================================= */
.variable-items-wrapper .variable-item {
    border: 2px solid var(--nova-border) !important;
    border-radius: var(--nova-radius) !important;
    transition: var(--nova-transition) !important;
}
.variable-items-wrapper .variable-item.selected,
.variable-items-wrapper .variable-item:hover {
    border-color: var(--nova-primary) !important;
}

/* =========================================================
   WooCommerce Product Filter Sidebar
   ========================================================= */
.widget_layered_nav ul li.wc-layered-nav-term a,
.widget_product_categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--nova-text);
    border-bottom: 1px solid var(--nova-border);
    text-decoration: none;
    transition: var(--nova-transition);
}
.widget_layered_nav ul li.wc-layered-nav-term a:hover,
.widget_product_categories ul li a:hover {
    color: var(--nova-primary);
    padding-right: 5px;
}
.widget_layered_nav ul li.chosen a { color: var(--nova-primary); font-weight: 700; }

/* =========================================================
   WooCommerce Notices
   ========================================================= */
.woocommerce-message::before,
.woocommerce-info::before { color: var(--nova-primary) !important; }
.woocommerce-message a.button { background: var(--nova-primary) !important; color: #fff !important; }

/* =========================================================
   Stock Badge
   ========================================================= */
.in-stock { color: var(--nova-success) !important; }
.out-of-stock { color: var(--nova-danger) !important; }
.woocommerce-product-details__short-description .stock.in-stock::before {
    content: '✓ ';
}

/* =========================================================
   RTL Fixes for WooCommerce
   ========================================================= */
.rtl .woocommerce div.product div.images { float: left; }
.rtl .woocommerce div.product div.summary { float: right; }
.rtl .woocommerce-cart table.cart td.product-remove { text-align: left; }
.rtl .woocommerce-checkout #customer_details .col-1 { float: right; }
.rtl .woocommerce-checkout #customer_details .col-2 { float: left; }
.rtl ul.products li.product .onsale { right: auto; left: 12px; }
.rtl .nova-quick-view { right: auto !important; left: 12px !important; }

/* =========================================================
   Accessibility
   ========================================================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
:focus-visible {
    outline: 3px solid var(--nova-primary);
    outline-offset: 3px;
}

/* =========================================================
   Elementor buttons: space between icon and text
   ========================================================= */
.elementor-button .elementor-button-content-wrapper,
.elementor-button-link .elementor-button-content-wrapper {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
}
.elementor-button .elementor-button-icon,
.elementor-button .elementor-align-icon-left,
.elementor-button .elementor-align-icon-right,
.elementor-button .elementor-align-icon-end,
.elementor-button .elementor-align-icon-start {
    margin: 0 !important;
    margin-inline: 0 !important;
}
.elementor-button .elementor-button-icon i,
.elementor-button .elementor-button-icon svg {
    display: block;
    line-height: 1;
}

/* ElementsKit dual / single buttons (RTL: icon was stuck to text) */
.ekit-wid-con .ekit-double-btn,
.ekit-double-btn,
.ekit-wid-con .elementskit-btn,
.elementskit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}
.ekit-double-btn > i,
.ekit-double-btn > svg,
.ekit-wid-con .ekit-double-btn > i,
.ekit-wid-con .ekit-double-btn > svg,
.elementskit-btn > i,
.elementskit-btn > svg,
.ekit-wid-con .elementskit-btn > i,
.ekit-wid-con .elementskit-btn > svg {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
}

/* Footer / header logos: never stretch full width */
.site-footer img.custom-logo,
.footer-about-logo img,
.elementor-location-footer .hfe-site-logo img,
.elementor-location-footer .hfe-site-logo-img,
.elementor-location-footer .elementor-widget-image img,
.elementor-location-footer .elementor-widget-theme-site-logo img,
body.ehf-footer .elementor-89 .elementor-element.elementor-element-f6d7e36 img,
.elementor-89 .elementor-element.elementor-element-f6d7e36 img,
.elementor-element-f6d7e36 img,
img.wp-image-91 {
    width: 158px !important;
    max-width: 158px !important;
    height: auto !important;
    max-height: 80px !important;
    object-fit: contain !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.elementor-89 .elementor-element.elementor-element-f6d7e36,
.elementor-element-f6d7e36,
.elementor-element-f6d7e36 .elementor-widget-container,
.elementor-element-f6d7e36 .elementor-image,
.elementor-element-f6d7e36 a {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
}

/* =========================================================
   HFE mobile menu: overlay from the header (do not push page)
   ========================================================= */
@media (max-width: 1024px) {
    .elementor-location-header,
    .ehf-header,
    header.header {
        overflow: visible !important;
        position: relative;
        z-index: 10000;
    }

    html[dir="rtl"] .hfe-nav-menu__toggle,
    body.rtl .hfe-nav-menu__toggle {
        margin-left: 0 !important;
        margin-right: auto !important;
        float: none !important;
    }

    /* Overlay instead of expanding the document flow */
    .hfe-nav-menu--dropdown.hfe-nav-menu__layout-horizontal,
    .hfe-nav-menu--dropdown.hfe-nav-menu__layout-vertical,
    .hfe-nav-menu--dropdown.hfe-nav-menu__layout-expandible {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 10001;
        text-align: right;
    }
}

/* =========================================================
   Mobile: kill horizontal overflow before go-live
   ========================================================= */
@media (max-width: 767px) {
    html,
    body,
    #page,
    .site {
        overflow-x: hidden;
        max-width: 100%;
    }

    .nova-row {
        margin-left: 0;
        margin-right: 0;
    }

    .elementor-section,
    .elementor-section.elementor-section-stretched,
    .e-con,
    .e-con-inner,
    .elementor-container,
    .elementor-widget-wrap,
    .ekit-wid-con,
    .ekit-element-align-wrapper,
    .nova-container,
    .nova-shop-wrap,
    .nova-services-block {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .elementor-section.elementor-section-stretched {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    img,
    video,
    iframe,
    embed {
        max-width: 100%;
    }

    .ekit-wid-con .ekit_double_button,
    .ekit_double_button {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 10px;
    }
    .ekit-double-btn,
    .ekit-wid-con .ekit-double-btn {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        box-sizing: border-box;
    }

    .elementor-button,
    .elementskit-btn,
    .ekit-wid-con .elementskit-btn {
        white-space: normal !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nova-shop-filter {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .nova-filter-btn {
        min-width: 0;
        white-space: normal;
    }

    .woocommerce table.shop_table,
    .woocommerce-cart table.cart,
    .woocommerce-checkout table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    h1, h2, h3, h4, p, li, span {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}
