/* Mobile print shopping. */
.oganka-mobile-purchase,
.oganka-catalog-actions,
.oganka-gallery-hint,
.oganka-print-specs > summary,
.oganka-mobile-quantity-label { display: none; }

@media (max-width: 640px) {
    /* A fixed footprint prevents header resizing from shifting the print. */
    body.oganka-mobile-browse {
        --oganka-header-height: 44px;
        padding-top: 44px;
    }
    body.oganka-mobile-browse.oganka-header-expanded { --oganka-header-height: 59px; }
    .oganka-mobile-browse .anka-header {
        position: fixed;
        inset: 0 0 auto;
        z-index: 40;
        height: var(--oganka-header-height);
        padding: 0 12px;
        grid-template-columns: minmax(0, 1fr) 44px 44px;
        gap: 0;
        background: #fff;
        transition: height .18s ease;
    }
    .oganka-mobile-browse .anka-brand {
        display: inline-flex;
        align-items: center;
        justify-self: start;
        min-height: 44px;
        font-size: 18px;
        letter-spacing: 0;
        transition: font-size .18s ease;
    }
    .oganka-mobile-browse.oganka-header-expanded .anka-brand { font-size: 27px; }
    .oganka-mobile-browse .anka-search-toggle,
    .oganka-mobile-browse .anka-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
    }
    .oganka-mobile-browse .anka-search-toggle svg {
        width: 15px;
        height: 15px;
        transition: width .18s ease, height .18s ease;
    }
    .oganka-mobile-browse.oganka-header-expanded .anka-search-toggle svg { width: 20px; height: 20px; }
    .oganka-mobile-browse .anka-menu-toggle { position: relative; }
    .oganka-mobile-browse .anka-menu-toggle span {
        position: absolute;
        left: 13px;
        width: 18px;
        height: 1px;
        transform: none;
        transition: width .18s ease, left .18s ease, top .18s ease, transform .18s ease;
    }
    .oganka-mobile-browse .anka-menu-toggle span:first-child { top: 16px; }
    .oganka-mobile-browse .anka-menu-toggle span:nth-child(2) { top: 21.5px; }
    .oganka-mobile-browse .anka-menu-toggle span:last-child { top: 27px; }
    .oganka-mobile-browse.oganka-header-expanded .anka-menu-toggle span { left: 10px; width: 24px; }
    .oganka-mobile-browse.oganka-header-expanded .anka-menu-toggle span:first-child { top: 13px; }
    .oganka-mobile-browse.oganka-header-expanded .anka-menu-toggle span:last-child { top: 30px; }
    .oganka-mobile-browse.anka-menu-open .anka-header { background: transparent; }
    .oganka-mobile-browse.anka-menu-open .anka-menu-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
    .oganka-mobile-browse.anka-menu-open .anka-menu-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
    .oganka-mobile-browse .anka-search-form {
        position: fixed;
        top: var(--oganka-header-height);
    }

    body.oganka-print-detail {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
    .oganka-print-detail .anka-mobile-bottom { display: none; }

    .oganka-print-detail .oganka-mobile-purchase {
        position: fixed;
        z-index: 35;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 44px;
        align-items: center;
        gap: 8px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #deddda;
        background: #fff;
        color: #1d1d1d;
        box-shadow: 0 -4px 18px rgba(29, 29, 29, .04);
    }
    .oganka-mobile-product { min-width: 0; }
    .oganka-mobile-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        max-height: 2.8em;
        margin: 0 0 3px;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: .2px;
        text-overflow: ellipsis;
        white-space: normal;
    }
    .oganka-mobile-price {
        display: block;
        margin: 0;
        font-size: 19px;
        font-weight: 300;
        line-height: 1.3;
        letter-spacing: .35px;
    }
    .oganka-mobile-purchase .oganka-mobile-add {
        min-width: 112px;
        min-height: 48px;
        margin: 0;
        padding: 12px 14px;
        border: 1px solid #222;
        border-radius: 0;
        background: #222;
        color: #fff;
        font-family: inherit;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.4;
        letter-spacing: .45px;
        text-align: center;
        white-space: nowrap;
    }
    .oganka-mobile-purchase .oganka-mobile-add:hover,
    .oganka-mobile-purchase .oganka-mobile-add:focus-visible {
        border-color: #444;
        background: #444;
        color: #fff;
    }
    .oganka-mobile-purchase .oganka-mobile-add:disabled {
        cursor: not-allowed;
        opacity: .55;
    }
    .oganka-mobile-cart {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 48px;
        color: #222;
    }
    .oganka-mobile-cart svg {
        display: block;
        width: 27px;
        height: 27px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.2;
    }
    .oganka-mobile-purchase a:focus-visible,
    .oganka-mobile-purchase button:focus-visible {
        outline: 2px solid #222;
        outline-offset: 3px;
    }
    .anka-menu-open .oganka-mobile-purchase { display: none; }

    /* Keep the primary artwork, product information and purchase controls close. */
    .oganka-print-detail .anka-breadcrumb { display: none; }
    .oganka-print-detail .anka-product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 12px 20px 32px;
    }
    .oganka-print-detail .anka-product-images {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        align-items: center;
        gap: 18px;
        min-width: 0;
        padding: 8px 16px 24px;
        overflow: visible;
    }
    .oganka-print-detail .anka-product-images.oganka-multiple-images {
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: thin;
        scrollbar-color: #aaa transparent;
    }
    .oganka-print-detail .anka-product-images.oganka-multiple-images:focus-visible {
        outline: 1px solid #777;
        outline-offset: 3px;
    }
    .oganka-print-detail .anka-product-images .wp-block-group__inner-container {
        display: contents;
    }
    .oganka-print-detail .anka-product-images .wp-block-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        margin: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }
    .oganka-print-detail .anka-product-images .wp-block-image > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding: 0;
    }
    .oganka-print-detail .anka-product-images .wp-block-image img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 440px;
        max-height: min(62svh, 520px);
        object-fit: contain;
    }
    .oganka-print-detail .anka-product-images::-webkit-scrollbar { height: 3px; }
    .oganka-print-detail .anka-product-images::-webkit-scrollbar-thumb { background: #aaa; }
    .oganka-print-detail .anka-product-detail .oganka-gallery-hint {
        display: block;
        margin: -6px 0 0;
        color: #666;
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: .4px;
        text-align: center;
    }
    .oganka-print-detail .anka-product-info {
        min-width: 0;
        padding-top: 0;
    }
    .oganka-print-detail .anka-product-info .oganka-release-label {
        display: none;
    }
    .oganka-print-detail .anka-product-info h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .oganka-print-detail .anka-page-content .anka-product-info .anka-product-price {
        display: none;
    }
    .oganka-print-detail .oganka-print-specs {
        border-top: 1px solid #e1e1df;
        border-bottom: 1px solid #e1e1df;
    }
    .oganka-print-detail .oganka-print-specs > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        padding: 10px 0;
        color: #333;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: .5px;
        cursor: pointer;
        list-style: none;
    }
    .oganka-print-specs > summary::-webkit-details-marker { display: none; }
    .oganka-print-specs > summary::after { content: '+'; font-size: 20px; font-weight: 300; }
    .oganka-print-specs[open] > summary::after { content: '−'; }
    .oganka-print-detail .oganka-print-specs .anka-product-description { padding-bottom: 10px; }
    .oganka-print-detail .anka-product-description {
        font-size: 16px;
        line-height: 1.6;
        letter-spacing: .5px;
        overflow-wrap: anywhere;
    }
    .oganka-print-detail .anka-product-description p { margin: 0 0 10px; }
    .oganka-print-detail .anka-product-info .anka-woocommerce-purchase { margin-top: 12px; }
    .oganka-print-detail .anka-woocommerce-purchase form.cart {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    .oganka-print-detail .anka-woocommerce-purchase .quantity input {
        width: 70px;
        min-height: 48px;
        font-size: 16px;
        border-radius: 0;
    }
    .oganka-print-detail .anka-woocommerce-purchase.woocommerce button.single_add_to_cart_button.button.alt {
        min-height: 48px;
        margin: 0;
        padding: 14px 22px;
        font-size: 13px;
        line-height: 1.4;
        letter-spacing: .8px;
    }
    .oganka-print-detail .oganka-mobile-native-form .quantity { display: flex; align-items: center; gap: 12px; }
    .oganka-print-detail .oganka-mobile-quantity-label { display: inline; font-size: 12px; letter-spacing: .4px; color: #666; }
    .oganka-print-detail .oganka-mobile-native-form button.single_add_to_cart_button { display: none; }

    /* Each row keeps its prices and purchase actions on a common baseline. */
    .anka-page-shop .anka-product-grid .anka-product-card {
        display: grid;
        grid-template-rows: auto minmax(2.8em, 1fr) auto auto;
        align-content: start;
        min-width: 0;
    }
    .anka-page-shop .anka-product-grid .anka-product-card > .wp-block-group__inner-container {
        display: contents;
    }
    .anka-page-shop .anka-product-grid .anka-product-card .wp-block-image { width: 100%; }
    .anka-page-shop .anka-product-grid .anka-product-card .anka-product-title {
        align-self: start;
        overflow-wrap: anywhere;
        font-size: 13px;
        line-height: 1.5;
        letter-spacing: .4px;
    }
    .anka-page-shop .anka-product-grid .oganka-catalog-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        min-width: 0;
        margin-top: 12px;
    }
    .anka-page-shop .oganka-catalog-actions a.button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 11px 7px;
        border: 1px solid #222;
        border-radius: 0;
        background: #222;
        color: #fff;
        font-size: 11px;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: .25px;
        text-align: center;
        white-space: normal;
    }
    .anka-page-shop .oganka-catalog-actions a.button:hover,
    .anka-page-shop .oganka-catalog-actions a.button:focus-visible {
        background: #444;
        color: #fff;
    }
    .anka-page-shop .oganka-catalog-actions a.added_to_cart {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 9px 4px;
        color: #222;
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: .3px;
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    .oganka-new-releases { padding: 30px 20px 34px; }
    .oganka-release-heading { gap: 8px; margin-bottom: 20px; }
    .oganka-release-heading h2 { font-size: 28px; line-height: 1.25; }
    .oganka-release-feature { gap: 18px; }
    .oganka-release-art { padding: 10px 12px 20px; }
    .oganka-release-art img {
        max-height: 250px;
        max-height: min(34svh, 300px);
    }
    .oganka-new-releases .oganka-release-label {
        margin-bottom: 10px;
        font-size: 10px;
        line-height: 1.5;
        letter-spacing: 1.5px;
    }
    .oganka-release-copy h3 { margin-bottom: 14px; font-size: 32px; line-height: 1.2; }
    .oganka-release-copy p:not(.oganka-release-label):not(.oganka-release-price):not(.oganka-release-spec),
    .oganka-release-copy p.oganka-release-spec {
        margin-bottom: 7px;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: .45px;
    }
    .oganka-release-copy .oganka-release-price { margin: 14px 0; line-height: 1.3; }
    .oganka-release-button { min-height: 48px; padding-top: 13px; padding-bottom: 13px; }
    .oganka-release-all { margin-top: 10px; }
}

/* USA-only shipping tag under the Print details block. */
.oganka-ship-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 14px 0 18px;
    padding: 9px 14px;
    border: 1px solid #1d1d1d;
    box-sizing: border-box;
    color: #1d1d1d;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}
.oganka-ship-note__icon { width: 16px; height: 16px; flex: none; }
/* Beat the theme's flow-layout reset (.anka-page-content .is-layout-flow > *). */
.oganka-print-detail .anka-page-content .oganka-ship-note { margin: 14px 0 18px; }
@media (max-width: 767px) {
    .oganka-print-detail .anka-page-content .oganka-ship-note { margin-top: 16px; }
}
