/* =============================================================================
   NOVA PRODUCTS BLOCK — [nova_products] shortcode
   Custom product grid matching Figma node 10203-68072.
   Section padding/background come from the parent Elementor container.
   ============================================================================= */

/* ── Outer wrapper ────────────────────────────────────────────────────────── */
.nova-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;          /* between grid and View All — Figma outer gap */
    width: 100%;
}

/* ── 4-column product grid ────────────────────────────────────────────────── */
.nova-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 13px;   /* Figma layout_P3YB5T gap: 32px */
    row-gap: 8px;      /* Figma layout_MMFOM3 gap: 64px */
    width: 100%;
    align-items: start;
}

@media (max-width: 1024px) {
    .nova-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nova-products__grid {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
}

/* ── Card — outer container ───────────────────────────────────────────────── */
/* Figma layout_11MC23: column, gap 16px, fill width */
.nova-products__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #0000001A;
    border-radius: 11px;
    background-color: #FCFCFC;
    overflow: hidden;
    height: 100%;
}

/* ── Product image ────────────────────────────────────────────────────────── */
/* Figma layout_72EXG5: fill horizontal, fixed height 364.8px */
.nova-products__img-wrap {
    display: block;
    overflow: hidden;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
    height: 265px;
}

.nova-products__img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.nova-products__img--placeholder {
    background-color: #EEEEEE;
    height: 365px;
    width: 100%;
    display: block;
}

/* ── Card body ────────────────────────────────────────────────────────────── */
/* Figma layout_IHPJDC: column, gap 16px (between text-group and button) */
.nova-products__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    background-color: #FFF;
    margin: -10px 0 0;
    padding: 20px 14px;
    justify-content: space-between;
}

/* ── Text group ───────────────────────────────────────────────────────────── */
/* Figma layout_M99CH4: column, gap 8px (between header block and price) */
.nova-products__text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Header (name + variant) ─────────────────────────────────────────────── */
/* Figma layout_5ADXHE: column, gap 0 */
.nova-products__header {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product name — Figma Text/Medium/Semi Bold */
.nova-products__title {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 150%;
    text-align: left;
    color: #000000;
}

.nova-products__title a {
    color: #171717;
    text-decoration: none;
    font-family: Inter;
    font-weight: 500;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: -4%;
}

.nova-products__title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* ── Price — Figma Text/Large/Semi Bold ──────────────────────────────────── */
.nova-products__price {
    font-family: var(--font-heading, "Roboto", sans-serif);
    text-align: left;
    color: #000000;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -5%;
}

/* Override any WooCommerce price colour/size */
.nova-products__price .woocommerce-Price-amount,
.nova-products__price bdi {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

.nova-products__price del {
    opacity: 0.5;
    font-size: 14px;
}

/* ── Add to cart button ───────────────────────────────────────────────────── */
/* Figma layout_8A9EK9: full-width, 8/20px padding, 40px height, 1px #000 stroke */
.nova-products__btn.nova-products__btn {
    display: block !important;
    width: 100% !important;
    padding: 8px 20px !important;
    background-color: var(--color-cta) !important;
    border: none !important;
    color: var(--color-cta-text) !important;
    font-family: var(--font-ui, "Roboto", sans-serif) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;   /* 8+24+8 = 40px total height */
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border-radius: 60px !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
    letter-spacing: 0 !important;
    letter-spacing: 1%;
}

/* Quantity wrapper — hide it inside nova-products cards */
.nova-products .cart .quantity {
    display: none !important;
}

/* ── View All button ─────────────────────────────────────────────────────── */
.nova-products__actions {
    display: flex;
    justify-content: center;
}

.nova-products__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    background-color: var(--color-cta);
    border: none;
    border-radius: 55px;
    color: var(--color-cta-text);
    font-family: var(--font-ui, "Roboto", sans-serif);
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 150%;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.nova-products__empty {
    text-align: center;
    color: var(--color-text-muted, #6B7280);
    padding: 0;
    margin: 0;
    font-size: 16px;
    width: 100%;
}

.nova-shop.is-empty {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.nova-shop.is-empty .nova-shop__sidebar {
    display: block;
}

.nova-shop.is-empty .nova-shop__main {
    grid-column: 1;
    width: 100%;
}

.nova-shop__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 320px;
    padding: 40px 20px;
}

button.nova-shop__clear-filters {
    appearance: none;
    border: none !important;
    border-radius: 50px !important;
    background-color: var(--color-cta) !important;
    padding: 10px 24px;
    font-family: var(--font-ui, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-cta-text) !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Yellow button hover — see global.css */

/* =============================================================================
   NOVA SHOP — sidebar layout + filters (Products template)
   Shortcode: [nova_shop]
   ============================================================================= */

/*
 * Full-width shop breakout (page 6 → template 321).
 * Elementor nests multiple boxed containers, each with 5% horizontal padding,
 * which compounds and shrinks the product grid to ~650px. Keep one outer gutter
 * on ee53ffac and zero horizontal padding on every inner wrapper.
 */
.elementor-6 .elementor-element.elementor-element-ee53ffac,
.elementor-6 .elementor-element.elementor-element-df442cb5 {
    --content-width: 100% !important;
    --width: 100% !important;
    width: 100% !important;
    max-width: 1360px !important;
    margin: 0 auto !important;
    padding-left: clamp(20px, 5vw, 48px) !important;
    padding-right: clamp(20px, 5vw, 48px) !important;
    box-sizing: border-box !important;
}

.elementor-6 .elementor-element.elementor-element-ee53ffac > .e-con-inner,
.elementor-6 .elementor-element.elementor-element-e22ce6f9,
.elementor-6 .elementor-element.elementor-element-e22ce6f9 > .elementor-widget-container,
.elementor-6 .elementor-element.elementor-element-e22ce6f9 .elementor-template,
.elementor.elementor-321,
.elementor-321 .elementor-element.elementor-element-7506a94f,
.elementor-321 .elementor-element.elementor-element-7506a94f > .e-con-inner,
.elementor-321 .elementor-element.elementor-element-1f861949,
.elementor-321 .elementor-element.elementor-element-1f861949 .elementor-widget-container,
.elementor-321 .elementor-element.elementor-element-1f861949 .elementor-shortcode,
.elementor-widget:has([data-nova-shop]),
.elementor-widget:has([data-nova-shop]) .elementor-widget-container,
.elementor-widget:has([data-nova-shop]) .elementor-shortcode {
    --content-width: 100% !important;
    --width: 100% !important;
    --container-widget-width: 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.elementor-321 .elementor-element.elementor-element-7506a94f,
.elementor-321 .elementor-element.elementor-element-7506a94f.e-con-boxed {
    align-items: stretch !important;
}

@media (min-width: 768px) {
    .elementor-321 .elementor-element.elementor-element-7506a94f {
        --content-width: 100% !important;
    }
}

.nova-shop-wrap {
    display: flex;
    flex-direction: column;
    gap: 23px;
    width: 100%;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.nova-shop {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 32px);
    align-items: start;
    width: 100%;
}

@media (max-width: 1024px) {
    .nova-shop {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.nova-shop__sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nova-shop__filters {
    background: var(--color-bg-white, #fff);
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 10px;
    overflow: hidden;
}

.nova-shop__filters-title {
    margin: 0;
    padding: 14px 18px;
    font-family: var(--font-heading, "Roboto", sans-serif) !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-neutral-darkest) !important;
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.nova-shop__filter-group {
    border-bottom: 1px solid var(--color-border, #E5E7EB);
}

.nova-shop__filter-group:last-child {
    border-bottom: none;
}

.nova-shop__filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    font-family: var(--font-ui, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-neutral-darkest) !important;
    cursor: pointer;
    list-style: none;
}

.nova-shop__filter-heading::-webkit-details-marker {
    display: none;
}

.nova-shop__filter-chevron {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--color-text-muted, #6B7280);
    border-bottom: 1.5px solid var(--color-text-muted, #6B7280);
    transform: rotate(225deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nova-shop__filter-group:not([open]) .nova-shop__filter-chevron {
    transform: rotate(45deg);
}

.nova-shop__filter-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 20px 16px;
}

.nova-shop__filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(  --color-neutral) !important;
    cursor: pointer;
}

.nova-shop__filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    border: 2px solid var(--color-neutral-lighter, #CCC) !important;
    border-radius: 3px;
    background: var(--color-bg-white, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.nova-shop__filter-option input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 8px;
}

/* ── CTA card ────────────────────────────────────────────────────────────── */
.nova-shop__cta {
    background: var(--color-bg-white, #fff);
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 12px;
    padding: 24px 20px;
}

.nova-shop__cta-title {
    margin: 0 0 16px !important;
    font-family: var(--font-heading, "Roboto", sans-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-neutral-darkest) !important;
}

.nova-shop__cta-text {
    margin: 0 0 20px;
    font-family: var(--font-body, "Roboto", sans-serif);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted, #6B7280);
}

.nova-shop__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 24px;
    background-color: var(--color-cta);
    border: none;
    border-radius: 60px;
    color: var(--color-cta-text);
    font-family: var(--font-ui, "Roboto", sans-serif);
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Main column (product grid only) ─────────────────────────────────────── */
.nova-shop__main {
    min-width: 0;
}

/* ── Toolbar: full-width row above .nova-shop ────────────────────────────── */
.nova-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.nova-shop__toolbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 1 auto;
    min-width: 0;
}

.nova-shop__search {
    position: relative;
    flex: 0 0 auto;
    min-width: 280px;
    margin: 0;
}

.nova-shop__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--color-neutral-darkest);
    pointer-events: none;
}

.nova-shop__search-icon svg {
    width: 18px;
    height: 18px;
}

input[type="search"].nova-shop__search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--color-border, #E5E7EB);
    border-radius: 50px;
    background: var(--color-bg-white, #fff);
    font-family: var(--font-body, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text, #000);
    outline: none;
    transition: border-color 0.2s ease;
}

.nova-shop__search-input::placeholder {
    color: var(--color-text-muted, #6B7280);
}

.nova-shop__search-input:focus {
    border-color: var(--color-neutral, #666);
}

.nova-shop__sort {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nova-shop__sort-label {
    font-family: var(--font-body, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #000);
    white-space: nowrap;
    display: none;
}

.nova-shop__sort-select-wrap {
    position: relative;
}

.nova-shop__sort-select {
    appearance: none;
    height: 40px;
    padding: 0 32px 0 12px;
    border: 1px solid transparent;
    border-radius: 50px;
    background: #F2F2F2;
    font-family: var(--font-ui, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-neutral-darkest);
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.nova-shop__sort-select:focus {
    border-color: var(--color-border, #E5E7EB);
}

.nova-shop__sort-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
    color: var(--color-text, #000);
}

.nova-shop__count {
    margin: 0;
    flex-shrink: 0;
    font-family: var(--font-body, "Roboto", sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-neutral-darkest);
    text-align: right;
}

.nova-shop__count strong {
    font-weight: 600;
    color: var(--color-neutral-darkest);
}

@media (max-width: 768px) {
    .nova-shop__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nova-shop__toolbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .nova-shop__search {
        width: 100%;
        max-width: none;
    }

    .nova-shop__sort {
        justify-content: space-between;
    }

    .nova-shop__count {
        text-align: left;
    }
}

/* ── Results grid area ───────────────────────────────────────────────────── */
.nova-shop__results {
    min-width: 0;
    transition: opacity 0.2s ease;
}

.nova-shop__results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.nova-products--shop {
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.nova-products--shop .nova-products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 13px;
    row-gap: clamp(24px, 2.5vw, 32px);
    align-items: stretch;
    width: 100%;
}

.nova-products--shop .nova-products__card {
    min-width: 0;
}

.nova-products--shop .nova-products__img-wrap {
    height: 265px;
    padding: 0;
    display: block;
    background: #FCFCFC;
}

.nova-products--shop .nova-products__img {
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.nova-products--shop .nova-products__body {
    padding: 20px 14px;
    gap: 10px;
    margin-top: -10px;
}

.nova-products--shop .nova-products__text-group {
    flex: 1;
    min-height: 0;
}

.nova-products--shop .nova-products__title {
    min-height: 0;
}

.nova-products--shop .nova-products__title a {
    font-family: Inter, var(--font-heading, "Roboto", sans-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    display: block;
    overflow: hidden;
    word-break: break-word;
}

.nova-products--shop .nova-products__price {
    font-size: 16px;
    line-height: 1.2;
}

.nova-products--shop .nova-products__btn.nova-products__btn {
    margin-top: auto;
    padding: 8px 20px !important;
    font-size: 16px !important;
}

@media (max-width: 1024px) {
    .nova-products--shop .nova-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nova-products--shop .nova-products__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.nova-shop__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: clamp(24px, 3vw, 40px);
}

.nova-shop__page-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nova-shop__page {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border, #d9d9d9);
    border-radius: 55px !important;
    background: #fff;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nova-shop__page:hover:not(:disabled):not(.is-active) {
    background-color: var(--color-bg-light, #E8F3FE) !important;
    border-color: var(--color-cta, #0171F2) !important;
    color: var(--color-neutral-darkest, #000) !important;
}

.nova-shop__page.is-active {
    background: var(--color-cta, #0171F2);
    border-color: var(--color-cta, #0171F2);
    color: #fff;
}

.nova-shop__page:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nova-shop__page--prev,
.nova-shop__page--next {
    min-width: auto;
}

.nova-products__btn--learn-more {
    display: block !important;
}
