/* The product search is rendered directly above the gallery and summary. */
body.nnv-product-page #masthead .ast-search-menu-icon,
body.nnv-product-page #masthead .ast-builder-layout-element[data-section="section-header-search"],
body.nnv-product-page #masthead .ast-header-search {
    display: none;
}

body.nnv-product-page .nnv-product-search {
    display: flex;
    width: 100%;
    max-width: 100%;
    clear: both;
    margin: 0 0 clamp(18px, 3vw, 32px);
    background: #fff;
    border: 1px solid #d7d4cc;
    border-radius: 12px;
    overflow: hidden;
}

body.nnv-product-page .nnv-product-search input[type="search"] {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #211e17;
    font-size: 16px;
}

body.nnv-product-page .nnv-product-search button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: #ffcf33;
    color: #211e17;
    font-weight: 700;
}

body.nnv-product-page .nnv-product-search svg {
    width: 21px;
    height: 21px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.nnv-product-page .nnv-product-search:focus-within {
    outline: 2px solid #755800;
    outline-offset: 2px;
}

body.nnv-product-page.woocommerce div.product .summary .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 52px;
    min-width: min(245px, 100%);
    max-width: 100%;
    padding: 12px 21px;
    border: 1px solid #332800;
    border-radius: 11px;
    background: #ffcf33;
    color: #211e17;
    box-shadow: 0 3px 0 #332800;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

body.nnv-product-page.woocommerce div.product .summary .single_add_to_cart_button:is(button[name="add-to-cart"], form.cart button)::before {
    content: "";
    flex: 0 0 21px;
    height: 21px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h3l3 13h12l3-10H6'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.nnv-product-page .nnv-product-search button:hover,
body.nnv-product-page.woocommerce div.product .summary .single_add_to_cart_button:hover:not(:disabled):not(.disabled) {
    background: #ffe16a;
    color: #211e17;
}

body.nnv-product-page .nnv-product-search button:focus-visible,
body.nnv-product-page.woocommerce div.product .summary .single_add_to_cart_button:focus-visible {
    outline: 2px solid #211e17;
    outline-offset: -4px;
}

@media (max-width: 768px) {
    body.nnv-product-page .nnv-product-search button { padding-inline: 11px; }
    body.nnv-product-page .nnv-product-search input[type="search"] { padding-inline: 10px; }
    body.nnv-product-page.woocommerce div.product .summary .single_add_to_cart_button {
        width: 100%;
        min-width: 0;
        float: none;
        margin-inline: 0;
    }
}

body.nnv-product-page :is(.woocommerce-breadcrumb, .ast-breadcrumbs-wrapper, .ast-breadcrumbs) {
    display: none;
}

body.nnv-product-page.woocommerce div.product .summary :is(
    .single_add_to_cart_button,
    a[href*="//wa.me/"],
    a[href*="//api.whatsapp.com/send"],
    a[href*="//web.whatsapp.com/send"],
    a[href^="whatsapp:"]
) {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    margin-inline: 0;
}

body.nnv-product-page.woocommerce div.product .summary a:is(
    [href*="//wa.me/"],
    [href*="//api.whatsapp.com/send"],
    [href*="//web.whatsapp.com/send"],
    [href^="whatsapp:"]
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.nnv-product-shipping {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 14px 0 22px;
    padding: 12px;
    border: 2px solid #d64a44;
    border-radius: 12px;
    background: #fff0ef;
    color: #8e1e18;
    text-align: center;
    animation: nnv-shipping-pulse 1.8s ease-in-out infinite;
    transition: background-color .18s ease, border-color .18s ease;
}

@media (hover: hover) {
    .nnv-product-shipping:hover {
        animation: none;
        background: #ffdcd8;
        border-color: #a7211b;
        box-shadow: 0 0 0 5px rgba(176, 46, 40, .24);
    }
}

.nnv-product-shipping-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

body.nnv-product-page .nnv-product-shipping-logos .nnv-shipping-logo {
    display: block;
    width: min(100px, 44%);
    height: 32px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    box-shadow: none;
    filter: none;
}

.nnv-shipping-logo-aras { background-image: url("aras-kargo.png"); }
.nnv-shipping-logo-surat { background-image: url("surat-kargo.png"); }

.nnv-product-shipping-countdown {
    font-size: clamp(15px, 3.8vw, 18px);
    font-weight: 800;
    line-height: 1.4;
}

@keyframes nnv-shipping-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(176, 46, 40, .24); }
    50% { box-shadow: 0 0 0 5px rgba(176, 46, 40, .32); }
}

@media (prefers-reduced-motion: reduce) {
    .nnv-product-shipping { animation: none; transition: none; }
}

@media (max-width: 768px) {
    body.nnv-product-page .nnv-product-search {
        box-sizing: border-box;
        margin: 14px 0 18px;
        height: 42px;
        border-color: #c9cdd3;
        border-radius: 6px;
        background: #f9f9fa;
    }

    body.nnv-product-page .nnv-product-search input[type="search"] {
        min-height: 0;
        padding: 0 11px;
    }

    body.nnv-product-page .nnv-product-search button {
        width: 45px;
        padding: 0;
        border-left: 1px solid #e9bf25;
    }

    body.nnv-product-page .nnv-product-search button span { display: none; }
    body.nnv-product-page .nnv-product-search svg { width: 23px; height: 23px; }
}

body.nnv-product-page .nnv-product-quick-categories {
    display: none;
}

@media (min-width: 922px) {
    body.nnv-product-page .nnv-product-quick-categories {
        display: grid;
        grid-template-columns: repeat(9, minmax(0, 1fr));
        gap: 8px;
        margin: 0 0 14px;
        clear: both;
    }

    body.nnv-product-page .nnv-product-quick-categories > a {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
        min-height: 56px;
        padding: 5px;
        border: 1px solid #dce0e5;
        border-radius: 8px;
        background: #fafbfc;
        color: #171717;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
    }

    body.nnv-product-page .nnv-product-quick-categories > a:hover {
        border-color: #d8ac17;
        background: #fff5c9;
    }

    body.nnv-product-page .nnv-product-quick-categories > a:focus-visible {
        outline: 2px solid #222;
        outline-offset: 2px;
    }

    body.nnv-product-page .nnv-product-quick-categories > a > :is(img, .nnv-quick-icon) {
        box-sizing: border-box;
        display: block;
        flex: none;
        width: 34px;
        height: 34px;
        padding: 5px;
        border-radius: 7px;
        background: #fff1b0;
    }

    body.nnv-product-page .nnv-product-quick-categories .nnv-quick-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

@media (min-width: 922px) and (max-width: 1199px) {
    body.nnv-product-page .nnv-product-quick-categories > a {
        flex-direction: column;
        min-height: 70px;
        overflow-wrap: anywhere;
    }
}

body.nnv-product-page .nnv-product-search--desktop {
    display: none;
}

@media (min-width: 922px) {
    body.nnv-product-page #ast-desktop-header .ast-below-header-wrap,
    body.nnv-product-page #ast-desktop-header .ast-below-header-bar,
    body.nnv-product-page .nnv-product-search--mobile {
        display: none;
    }

    body.nnv-product-page #content > .ast-container {
        padding-top: 14px;
    }

    body.nnv-product-page #content > .ast-container > #primary,
    body.nnv-product-page #main > .ast-article-single {
        margin-top: 0;
        padding-top: 0;
    }

    body.nnv-product-page .nnv-product-quick-categories {
        margin-bottom: 10px;
    }

    body.nnv-product-page.woocommerce div.product .summary,
    body.nnv-product-page.woocommerce div.product .woocommerce-product-gallery {
        margin-top: 0;
    }

    body.nnv-product-page .nnv-product-search--desktop {
        display: flex;
        box-sizing: border-box;
        margin: 0 0 14px;
    }
}
