/*
 * BPLM Product Tag Ditto Layout
 * HARD ISOLATION: every selector begins with body.bplm-product-tag-ditto.
 * Shop and Product Category pages never receive this class and never load this file.
 */
body.bplm-product-tag-ditto {
    --bplm-master-width: min(1280px, calc(100vw - 40px));
    --bplm-card-title-size: 16px;
    --bplm-body-size: 17px;
    --bplm-faq-size: 17px;
    --bplm-gold: #f4c400;
    --bplm-border: #ead9a4;
}

/* Tag-only cleanup of the old archive title/breadcrumb/results strip. */
body.bplm-product-tag-ditto .woocommerce-products-header,
body.bplm-product-tag-ditto .woocommerce-products-header__title,
body.bplm-product-tag-ditto .woocommerce-products-header__description,
body.bplm-product-tag-ditto .shop-page-title,
body.bplm-product-tag-ditto .woocommerce-breadcrumb,
body.bplm-product-tag-ditto .woocommerce-result-count,
body.bplm-product-tag-ditto form.woocommerce-ordering {
    display: none !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort form.woocommerce-ordering {
    display: block !important;
}

/* One exact master width, copied from the approved V79 sample. */
body.bplm-product-tag-ditto .bplm-tag-master,
body.bplm-product-tag-ditto .products.bplm-v12-master,
body.bplm-product-tag-ditto ul.products.bplm-v12-master,
body.bplm-product-tag-ditto nav.woocommerce-pagination.bplm-v12-master,
body.bplm-product-tag-ditto .woocommerce-pagination.bplm-v12-master {
    box-sizing: border-box !important;
    width: var(--bplm-master-width) !important;
    max-width: var(--bplm-master-width) !important;
    min-width: 0 !important;
    margin-left: calc((100% - var(--bplm-master-width)) / 2) !important;
    margin-right: calc((100% - var(--bplm-master-width)) / 2) !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Hero: same approved Shop/Category proportions. */
body.bplm-product-tag-ditto .bplm-tag-ditto-hero {
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    min-height: 374px !important;
    margin-top: 28px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: #1d1d17 !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.08) !important;
}
body.bplm-product-tag-ditto .bplm-tag-hero-copy {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 46px 52px !important;
    color: #fff !important;
    border-right: 12px solid var(--bplm-gold) !important;
}
body.bplm-product-tag-ditto .bplm-tag-eyebrow {
    margin-bottom: 18px !important;
    color: var(--bplm-gold) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-hero h1 {
    margin: 0 0 18px !important;
    color: #fff !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: 1.03 !important;
    font-weight: 800 !important;
    letter-spacing: -.03em !important;
    text-transform: none !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-hero p {
    max-width: 520px !important;
    margin: 0 0 22px !important;
    color: #f2f2f2 !important;
    font-size: 15px !important;
    line-height: 1.58 !important;
}
body.bplm-product-tag-ditto .bplm-tag-hero-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
}
body.bplm-product-tag-ditto .bplm-tag-hero-links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    border: 1px solid rgba(244,196,0,.5) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
body.bplm-product-tag-ditto .bplm-tag-accent {
    display: block !important;
    width: 70px !important;
    height: 4px !important;
    margin-top: 28px !important;
    border-radius: 4px !important;
    background: var(--bplm-gold) !important;
}
body.bplm-product-tag-ditto .bplm-tag-hero-image {
    min-width: 0 !important;
    background: #fff !important;
}
body.bplm-product-tag-ditto .bplm-tag-hero-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 374px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Category/filter bar: mirrors the approved Shop/Category reference. */
body.bplm-product-tag-ditto .bplm-tag-ditto-toolbar {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    min-height: 84px !important;
    margin-bottom: 16px !important;
    padding: 10px 12px !important;
    border: 1px solid #ead9a4 !important;
    border-radius: 15px !important;
    background: #fff !important;
    box-shadow: none !important;
}
body.bplm-product-tag-ditto .bplm-tag-toolbar-label {
    min-width: 0 !important;
    padding-right: 2px !important;
}
body.bplm-product-tag-ditto .bplm-tag-toolbar-label span {
    display: block !important;
    margin: 0 0 5px !important;
    color: #a97800 !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}
body.bplm-product-tag-ditto .bplm-tag-toolbar-label strong {
    display: block !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-links {
    display: flex !important;
    align-items: stretch !important;
    gap: 7px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-links::-webkit-scrollbar { display: none !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    gap: 5px !important;
    min-width: 92px !important;
    min-height: 58px !important;
    padding: 7px 10px 8px !important;
    border: 1px solid #ead9a4 !important;
    border-radius: 12px !important;
    background: #fffdf8 !important;
    color: #171717 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:nth-child(2) { min-width: 106px !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:nth-child(3) { min-width: 143px !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:nth-child(4) { min-width: 96px !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:nth-child(5) { min-width: 113px !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:nth-child(6) { min-width: 112px !important; }
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:hover,
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button:focus {
    border-color: #e1bf3a !important;
    background: #fff8dc !important;
    color: #111 !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button.is-active {
    border-color: #eab900 !important;
    background: #f6c600 !important;
    color: #101010 !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    color: currentColor !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-icon svg {
    display: block !important;
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
body.bplm-product-tag-ditto .bplm-tag-category-text {
    display: block !important;
    color: currentColor !important;
    font-size: 13.5px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 250px !important;
    padding-left: 14px !important;
    border-left: 1px solid #eadfb9 !important;
    white-space: nowrap !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort-label {
    display: inline-block !important;
    color: #49433a !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort .woocommerce-ordering {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort select,
body.bplm-product-tag-ditto .bplm-tag-sort select.orderby {
    box-sizing: border-box !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 38px 0 13px !important;
    border: 1px solid #dfcd91 !important;
    border-radius: 10px !important;
    background-color: #fff !important;
    color: #222 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Intro strip directly above products, matching category reference. */
body.bplm-product-tag-ditto .bplm-tag-ditto-intro {
    box-sizing: border-box !important;
    margin-bottom: 18px !important;
    padding: 18px 22px !important;
    border: 1px solid #e7cc69 !important;
    border-left: 5px solid var(--bplm-gold) !important;
    border-radius: 12px !important;
    background: #fff8dc !important;
    color: #4b4033 !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* PRODUCT CARDS: deliberately DO NOT rebuild, stretch or force fixed card/image heights.
   These are the exact minimal rules from the uploaded V79 sample. */
body.bplm-product-tag-ditto ul.products li.product .woocommerce-loop-product__title,
body.bplm-product-tag-ditto ul.products li.product h2,
body.bplm-product-tag-ditto ul.products li.product h3,
body.bplm-product-tag-ditto .products .product .woocommerce-loop-product__title,
body.bplm-product-tag-ditto .products .product h2,
body.bplm-product-tag-ditto .products .product h3,
body.bplm-product-tag-ditto .products .product-small .name.product-title {
    font-size: var(--bplm-card-title-size) !important;
    line-height: 1.42 !important;
    margin-bottom: 8px !important;
}

body.bplm-product-tag-ditto .products .product .button,
body.bplm-product-tag-ditto ul.products li.product .button,
body.bplm-product-tag-ditto .products .product-small .button,
body.bplm-product-tag-ditto .products .product .bplm-v12-buy-now {
    box-sizing: border-box !important;
    min-height: 46px !important;
    padding: 11px 16px !important;
    margin-top: 20px !important;
    margin-bottom: 14px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
}

body.bplm-product-tag-ditto .products .product .bplm-v12-buy-now,
body.bplm-product-tag-ditto ul.products li.product .bplm-v12-buy-now,
body.bplm-product-tag-ditto .products .product-small .bplm-v12-buy-now,
body.bplm-product-tag-ditto .products .product a.button,
body.bplm-product-tag-ditto ul.products li.product a.button,
body.bplm-product-tag-ditto .products .product-small a.button {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important;
}

/* The category reference uses a yellow circular arrow at the right of BUY NOW. */
body.bplm-product-tag-ditto .products .product a.button::after,
body.bplm-product-tag-ditto ul.products li.product a.button::after,
body.bplm-product-tag-ditto .products .product-small a.button::after,
body.bplm-product-tag-ditto .products .product .bplm-v12-buy-now::after {
    content: '→' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    margin-left: 10px !important;
    border-radius: 50% !important;
    background: var(--bplm-gold) !important;
    color: #111 !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Same V79 archive image rule: source is large, geometry remains the theme's native geometry. */
body.bplm-product-tag-ditto ul.products li.product img.attachment-large,
body.bplm-product-tag-ditto ul.products li.product .woocommerce-loop-product__link img,
body.bplm-product-tag-ditto .products .product img.attachment-large,
body.bplm-product-tag-ditto .products .product .woocommerce-loop-product__link img,
body.bplm-product-tag-ditto .products .product-small img {
    object-fit: contain !important;
    object-position: center center !important;
}

/* Keep native Flatsome card geometry. Only ensure images are not hidden by lazy-load state. */
body.bplm-product-tag-ditto .products .product-small img,
body.bplm-product-tag-ditto .products .product img,
body.bplm-product-tag-ditto ul.products li.product img {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Pagination. */
body.bplm-product-tag-ditto nav.woocommerce-pagination,
body.bplm-product-tag-ditto .woocommerce-pagination {
    clear: both !important;
    margin-top: 8px !important;
    margin-bottom: 28px !important;
    text-align: center !important;
}

/* Exactly ONE long Description box. */
body.bplm-product-tag-ditto .bplm-tag-ditto-tail {
    clear: both !important;
    /* V3.1.2: slightly more breathing room between the final product row/pagination and Description. */
    margin-top: 36px !important;
    margin-bottom: 0 !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-description {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: 28px 32px 30px !important;
    border: 1px solid var(--bplm-border) !important;
    border-radius: 12px !important;
    background: #fffdf8 !important;
    color: #4b4033 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.035) !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-description > :first-child { margin-top: 0 !important; }
body.bplm-product-tag-ditto .bplm-tag-ditto-description > :last-child { margin-bottom: 0 !important; }
body.bplm-product-tag-ditto .bplm-tag-ditto-description p,
body.bplm-product-tag-ditto .bplm-tag-ditto-description li {
    color: #4b4033 !important;
    font-size: var(--bplm-body-size) !important;
    line-height: 1.72 !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-description h2 {
    margin: 0 0 16px !important;
    color: #191919 !important;
    font-size: 29px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-description h3,
body.bplm-product-tag-ditto .bplm-tag-ditto-description h4 {
    margin: 23px 0 9px !important;
    color: #191919 !important;
    font-size: 21px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-description a,
body.bplm-product-tag-ditto .bplm-tag-ditto-description a:visited {
    color: #b88700 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* FAQ directly below description, white exactly like the approved reference. */
body.bplm-product-tag-ditto .bplm-tag-ditto-faq {
    width: 100% !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
    background: transparent !important;
}
body.bplm-product-tag-ditto .bplm-tag-ditto-faq > h2 {
    margin: 0 0 16px !important;
    color: #424242 !important;
    font-size: 28px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-list {
    display: grid !important;
    gap: 11px !important;
    width: 100% !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-list details {
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-list summary {
    cursor: pointer !important;
    display: block !important;
    position: relative !important;
    padding: 16px 50px 16px 18px !important;
    font-size: var(--bplm-faq-size) !important;
    line-height: 1.48 !important;
    font-weight: 600 !important;
    list-style: none !important;
    background: #fff !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-list summary::-webkit-details-marker { display: none !important; }
body.bplm-product-tag-ditto .bplm-v12-faq-list summary::after {
    content: '+' !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 23px !important;
    line-height: 1 !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-list details[open] summary::after { content: '−' !important; }
body.bplm-product-tag-ditto .bplm-v12-faq-answer {
    padding: 0 18px 18px !important;
    background: #fff !important;
    font-size: 16.5px !important;
    line-height: 1.72 !important;
}
body.bplm-product-tag-ditto .bplm-v12-faq-answer p { margin: 0 !important; }

@media (max-width: 1024px) {
    body.bplm-product-tag-ditto .bplm-tag-ditto-toolbar {
        grid-template-columns: 118px minmax(0, 1fr) !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-sort {
        grid-column: 1 / -1 !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
        padding: 10px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid #eadfb9 !important;
    }
}

@media (max-width: 767px) {
    body.bplm-product-tag-ditto {
        --bplm-master-width: calc(100vw - 24px);
        --bplm-card-title-size: 15px;
        --bplm-body-size: 16px;
        --bplm-faq-size: 16px;
    }
    body.bplm-product-tag-ditto .bplm-tag-ditto-hero {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
        border-radius: 16px !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-hero-copy {
        padding: 26px 22px 24px !important;
        border-right: 0 !important;
        border-bottom: 8px solid var(--bplm-gold) !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-ditto-hero h1 { font-size: 34px !important; }
    body.bplm-product-tag-ditto .bplm-tag-hero-image img { min-height: 220px !important; max-height: 260px !important; }
    body.bplm-product-tag-ditto .bplm-tag-ditto-toolbar {
        display: block !important;
        padding: 12px !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-toolbar-label { margin-bottom: 10px !important; }
    body.bplm-product-tag-ditto .bplm-tag-category-links { margin-bottom: 10px !important; gap: 7px !important; }
    body.bplm-product-tag-ditto .bplm-tag-category-links a.bplm-tag-category-button { min-width: 96px !important; min-height: 56px !important; }
    body.bplm-product-tag-ditto .bplm-tag-category-text { font-size: 12.5px !important; }
    body.bplm-product-tag-ditto .bplm-tag-sort {
        justify-content: space-between !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid #eadfb9 !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-sort select,
    body.bplm-product-tag-ditto .bplm-tag-sort select.orderby { width: min(190px, 70vw) !important; min-width: min(190px, 70vw) !important; }
    body.bplm-product-tag-ditto .bplm-tag-ditto-intro { font-size: 16px !important; padding: 15px 16px !important; }
    body.bplm-product-tag-ditto .products .product .button,
    body.bplm-product-tag-ditto ul.products li.product .button,
    body.bplm-product-tag-ditto .products .product-small .button,
    body.bplm-product-tag-ditto .products .product .bplm-v12-buy-now {
        min-height: 42px !important;
        padding: 10px 12px !important;
        margin-top: 14px !important;
        font-size: 13.5px !important;
    }
    body.bplm-product-tag-ditto .products .product .bplm-v12-buy-now,
    body.bplm-product-tag-ditto ul.products li.product .bplm-v12-buy-now,
    body.bplm-product-tag-ditto .products .product-small a.button {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }
    body.bplm-product-tag-ditto .bplm-tag-ditto-description { padding: 22px 18px 24px !important; }
    body.bplm-product-tag-ditto .bplm-tag-ditto-description h2,
    body.bplm-product-tag-ditto .bplm-tag-ditto-faq > h2 { font-size: 23px !important; }
    body.bplm-product-tag-ditto .bplm-tag-ditto-description h3 { font-size: 19px !important; }
}

/* V3 exact toolbar lock: Product Tag archives only. Desktop geometry mirrors approved Shop/Category toolbar. */
body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 img {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
}
body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 .bplm-tag-category-button.is-active {
    background:#f6c600 !important;
    border-color:#eab900 !important;
    color:#101010 !important;
}
body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 .bplm-tag-ordering,
body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 .bplm-tag-ordering select {
    margin:0 !important;
    float:none !important;
}
@media (max-width: 900px) {
    body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 {
        grid-template-columns: 1fr !important;
        row-gap: 10px !important;
        padding: 12px !important;
    }
    body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 .bplm-tag-category-links-v3 {
        width:100% !important;
        overflow-x:auto !important;
    }
    body.bplm-product-tag-ditto #bplm-tag-ditto-toolbar.bplm-tag-toolbar-v3 .bplm-tag-sort-v3 {
        width:100% !important;
        min-width:0 !important;
        padding-left:0 !important;
        padding-top:10px !important;
        border-left:0 !important;
        border-top:1px solid #eadfb9 !important;
        justify-content:flex-end !important;
    }
}

/* V3.0.3: keep the real select clickable and render a medium-bold visible label matching the approved sample. */
body.bplm-product-tag-ditto .bplm-tag-sort-select-wrap {
    position: relative !important;
    width: 190px !important;
    min-width: 190px !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #dfcd91 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort-visible-label {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 38px 0 13px !important;
    color: #111 !important;
    font-size: 13.5px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    z-index: 1 !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort-chevron {
    position: absolute !important;
    right: 13px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #111 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    pointer-events: none !important;
    z-index: 2 !important;
}
body.bplm-product-tag-ditto .bplm-tag-sort select.bplm-tag-sort-native {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 3 !important;
}

/* ============================================================
   V3.0.8 PRODUCT CARD DITTO LOCK — PRODUCT TAG ARCHIVES ONLY
   Mirrors the approved Shop/Product Category card appearance.
   This section is intentionally scoped to body.bplm-product-tag-ditto.
   ============================================================ */
body.bplm-product-tag-ditto .bplm-tag-grid-v308 {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    align-items: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.bplm-product-tag-ditto .bplm-tag-grid-v308 > .bplm-tag-card-v308 {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    flex-basis: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-shell-v308 {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d4ddcc !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-box-v308 {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 245px !important;
    min-height: 245px !important;
    max-height: 245px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border-bottom: 1px solid #d4ddcc !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-image-v308 {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-text-v308 {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 164px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    text-align: left !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-category-v308,
body.bplm-product-tag-ditto .bplm-tag-card-quick-v308,
body.bplm-product-tag-ditto .bplm-tag-card-price-v308,
body.bplm-product-tag-ditto .bplm-tag-card-rating-v308 {
    display: none !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-title-v308,
body.bplm-product-tag-ditto .bplm-tag-card-title-v308 a {
    box-sizing: border-box !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    color: #111 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    text-align: left !important;
    text-decoration: none !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-title-v308 {
    min-height: 72px !important;
    margin: 0 !important;
    padding: 14px 14px 6px !important;
}

body.bplm-product-tag-ditto .bplm-tag-card-button-wrap-v308 {
    box-sizing: border-box !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
}

body.bplm-product-tag-ditto .bplm-tag-buy-v308 {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    min-height: 48px !important;
    margin: 8px 16px 20px !important;
    padding: 10px 14px 10px 16px !important;
    border: 1px solid #e3ba08 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.bplm-product-tag-ditto .bplm-tag-buy-v308:hover,
body.bplm-product-tag-ditto .bplm-tag-buy-v308:focus {
    background: #fff !important;
    color: #111 !important;
    border-color: #e3ba08 !important;
}

body.bplm-product-tag-ditto .bplm-tag-buy-v308::after {
    content: none !important;
    display: none !important;
}

body.bplm-product-tag-ditto .bplm-tag-buy-arrow-v308 {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin-left: 10px !important;
    border-radius: 999px !important;
    background: #f2c000 !important;
    color: #111 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

@media (max-width: 1100px) {
    body.bplm-product-tag-ditto .bplm-tag-grid-v308 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.bplm-product-tag-ditto .bplm-tag-grid-v308 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 {
        height: 185px !important;
        min-height: 185px !important;
        max-height: 185px !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-card-title-v308,
    body.bplm-product-tag-ditto .bplm-tag-card-title-v308 a {
        font-size: 14px !important;
        line-height: 1.32 !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-card-title-v308 {
        min-height: 64px !important;
        padding: 10px 10px 4px !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-card-text-v308 {
        min-height: 145px !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-buy-v308 {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        min-height: 42px !important;
        margin: 8px 10px 12px !important;
        padding: 8px 10px 8px 12px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    body.bplm-product-tag-ditto .bplm-tag-buy-arrow-v308 {
        width: 20px !important;
        height: 20px !important;
        flex-basis: 20px !important;
        font-size: 12px !important;
    }
}

/* V3.0.9 TAG-ONLY: keep exactly one product image visible.
   Flatsome can output a second gallery/hover image inside .box-image.
   V3.0.8's broad image-visibility rule exposed that hidden image. */
body.bplm-product-tag-ditto .product-small .box-image img.show-on-hover,
body.bplm-product-tag-ditto .product-small .box-image img.back-image,
body.bplm-product-tag-ditto .product-small .box-image img.hover-image,
body.bplm-product-tag-ditto .product-small .box-image .image-fade_in_back img:nth-of-type(n+2),
body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 img:not(.bplm-tag-card-image-v308) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* The selected primary image remains the only visible card image. */
body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 > a,
body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 .image-fade_in_back,
body.bplm-product-tag-ditto .bplm-tag-card-image-wrap-v308 .image-fade_in_back > a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}
body.bplm-product-tag-ditto .bplm-tag-card-image-v308 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}
body.bplm-product-tag-ditto img.bplm-tag-secondary-image-v309 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* V3.1.2 mobile: slightly more breathing room while staying compact. */
@media (max-width: 767px) {
    body.bplm-product-tag-ditto .bplm-tag-ditto-tail {
        margin-top: 28px !important;
    }
}
