:root {
    --td-radius: 16px;
}
main section{
}
section#main-category {
    background-color: #e2e2e2 !important;
    * {}
    h1, h2 {
        color: var(--avs-color-02);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 90%;
        font-size: 1.5rem;
    }
    .card.card-preview {
    }
    .card {
        background-color: transparent;
        border-width: 0;
        cursor: pointer;
        transition: 0.3s ease-in-out all;
        * {transition: 0.3s ease-in-out all;}
        .card-body {
            background-color: darkgrey;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            aspect-ratio: 3/4;
            border-radius: inherit;
            box-shadow: rgba(0, 0, 0, 0.50) 0px -60px 36px -28px inset;
            * {}
            .text-title {
                height: 100%;
                display: flex;
                justify-content: center;
            }
        }
        &:hover * {
            text-decoration: 1px solid white underline;
        }
        &:hover .card-body {
            box-shadow: rgba(0, 0, 0, 0.75) 0px -80px 36px -36px inset;
        }
    }
}
section#sub-category {
    * {}
    h1,h2,h3,h4,h5 {
        color: var(--avs-color-02);
    }
    #div-product-list {
        background-color: whitesmoke;
        min-height: 25vh;
        * {}
        .product-image {
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            max-height: 5rem;
            max-width: 5rem;
            width: 100%;
            aspect-ratio: 1/1;
            /* background-color: #74d571; */
        }
        .card-product-list {
            border-radius: 12px !important;
            box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
            transition: 0.1s ease-in-out all;
            border: 1px solid white;
            display: flex;
            flex-direction: column;
            * {}
            &:has(.btn-compare:hover) {
                border-color: #8fca91;
            }
            /* Card body fills the equal-height card (Bootstrap .row is flex, so every card in a
               row already matches the tallest one) and stacks its own content in a column so the
               button can be pinned to the bottom regardless of how many lines the title wraps to. */
            .card-body {
                display: flex;
                flex-direction: column;
                flex: 1;
            }
            .content-title {
                h1, h2, h3, h4, h5, h6, .pd-card-title {
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    margin: 0;
                    font-size: 1rem;
                    line-height: 1.3;
                    /* Reserve space for 2 lines even when the title only needs 1, so every card's
                       spec table/button starts at the same y-position within its row. */
                    min-height: 2.6em;
                }
            }
            .content-button {
                margin-top: auto;
                padding-top: 0.375rem;
            }
        }
    }
    #div-product {
        * {}
        .product-image {
            background-position: center !important;
            background-size: cover !important;
            background-repeat: no-repeat !important;
            aspect-ratio: 1/1;
            /* border: 2px solid var(--avs-color-03); */
        }
        .this-product-image {
            position: relative;
            transition: 0.1s ease-in-out all;
            cursor: pointer;
            border-width: 2px;
            z-index: 1;
            box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
        }
        .this-product-image:hover {
            /* rotate: 2deg; */
            /* scale: 1.02; */
            cursor: zoom-in;
        }
        >div:has(.this-product-image:hover) .this-product-image:not(:hover) {
            /* rotate: -2deg;
            scale: 0.98;
            border-width: 1px; */
            border-color: var(--avs-color-02);
            /* filter: grayscale(0.25) contrast(0.95) !important; */
        }
        .this-product-image::before {
            position: absolute;
            color: #fff;
            top: 0;
            left: 0;
            z-index: -1;
            border-radius: inherit;
            background: linear-gradient(to right, var(--avs-color-02), orange);
            transition: 0.4s ease-in all;
            height: 100%;
            width: 100%;
        }
        .this-product-image:hover::before {
            height: 100%;
            width: 100%;
            background-color: #0d833438;
            rotate: 270deg;
        }
        #div-product-detail {
            background-color: #f5f5f5;
            background: linear-gradient(0deg, #f5f5f5 0%, #eff7ef 100%);
            * {}
            .table-product-info {
                font-size: 0.75rem !important;
                * {}
                thead {
                    background-color: var(--avs-color-01);
                    color: white;
                    border-radius: 8px 0 0 8px;
                    * {
                        background-color: var(--avs-color-01);
                        color: white;
                        border-radius: 8px 8px 0 0;
                    }
                    tr {
                        border-radius: 8px 8px 0 0;
                        text-align: center;
                        * {}
                        th {
                            /* border-bottom: 4px solid gray; */
                        }
                    }
                }
                tbody {
                    background-color: whitesmoke;
                    *::not(button) {
                        background-color: whitesmoke;
                        color: #333;
                    }
                    tr {
                        border: 2px solid whitesmoke;
                        border-top: 0px solid whitesmoke;
                        * {}
                        td {
                            padding: 0.25rem 0.25rem;
                        }
                        td:first-child {
                            text-align: center;
                        }
                        td:last-child {
                            text-align: start;
                        }
                    }
                }
            }
            .table-product-detail {
                font-size: 0.875rem !important;
                * {}
                tbody {
                    background-color: white;
                    *::not(button) {
                        background-color: white;
                        color: #333;
                    }
                    tr {
                        border-color: whitesmoke;
                        * {}
                        td {
                            * {}
                            a.a-share {
                                color: #fff;
                                text-decoration: none;
                                display: inline-block;
                                width: fit-content;
                                * {}
                                .logos {
                                    border-radius: 4px;
                                    background-color: #555;
                                    width: 1.875rem;
                                    height: 1.875rem;
                                    background-position: center;
                                    background-size: cover;
                                    background-repeat: no-repeat;
                                    aspect-ratio: 1/1;
                                }
                            }
                        }
                        td:first-child {
                            font-weight: 700;
                            text-align: start;
                            width: 7.5rem;
                        }
                        td:last-child {
                            text-align: start;
                        }
                    }
                }
            }
            #div-shop-nearby {
                * {}
                i {
                    font-size: 1.75rem;
                }
                .table-shop-nearby {
                    border-collapse: separate !important;
                    border-spacing: 0;
                    * {border-width: 0px;}
                    tbody {
                        * {}
                        tr {
                            * {}
                            td {
                                background: transparent;
                                padding: 0.5rem 0;
                                font-size: 0.875rem;
                                * {
                                    color: #333 !important;
                                }
                                & > div.card {
                                    * {}
                                    b {}
                                    h3, h4 {
                                        width: fit-content;
                                        margin: 0 !important;
                                        vertical-align: bottom;
                                        font-size: 0.875rem;
                                    }
                                    span { font-size: 0.875rem;}
                                    a { 
                                        text-decoration: none;
                                        border-radius: 0;
                                        display: inline-block;
                                        font-size: 0.875rem;
                                        * {}
                                        i { 
                                            font-size: 0.875rem;
                                        }
                                    }
                                    a {
                                        border-radius: 4px;
                                        padding: 0.375rem 0.5rem 0.125rem 0.375rem;
                                        display: inline-block;
                                        margin: 0;
                                        margin-top: auto;
                                        width: fit-content !important;
                                        * {}
                                        i { 
                                            font-size: 0.875rem;
                                            color: #fff !important;
                                            padding-right: 0.25rem;
                                        }
                                    }
                                    a:first-child { 
                                        background-color: #fff;
                                        color: #fff !important;
                                    }
                                    a:nth-child(2) { 
                                        background-color: #5b9d81;
                                        color: #fff !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            #div-similar-product {
                * { border-width: 0 !important; }
                i {
                    font-size: 1.75rem;
                }
                .card {
                    cursor: pointer;
                    background-color: transparent;
                    padding: 8px;
                    background-color: white;
                    transition: 0.3s ease-in-out all;
                    border: 1px solid #fff !important;
                    * {background-color: transparent;}
                }
                .card-body {
                    font-size: 0.75rem !important;
                }
                .product-image {
                    position: relative;
                    /* border-width: 2px !important;  */
                    background: linear-gradient(#fff,#c3c3c3);
                    transition: all ease-in-out 0.15s;
                    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px; */
                    
                    background-size: contain !important;
                    border-radius: 0px !important;
                }
                .card:hover .product-image {
                    border-width: 4px !important; 
                }
                .card:hover {
                    /* background-color: #14331010 !important; */
                    border: 1px solid #c7d4c7 !important;
                }
                .product-image::after {
                    content: '';
                    position: absolute;
                    top: 25%;
                    left: 25%;
                    height: 0;
                    width: 0;
                    transition: all ease-in-out 0.15s;
                    border-radius: 50%;
                    background-color: whitesmoke;
                    opacity: 0.6;
                }
                .card:hover .product-image::after {
                }
                .product-image.tile-see-more {
                    transition: ease-in-out all 0.3s;
                    /* background: linear-gradient(135deg, var(--avs-color-02), var(--avs-color-04)); */
                    background: linear-gradient(135deg, #e9ffe9, #73b175);
                    color: #fff;
                }
                .card:hover .product-image.tile-see-more {
                    /* background: linear-gradient(135deg, var(--avs-color-04), var(--avs-color-02)); */
                    background: linear-gradient(135deg, #ddffdd, #5b965d);
                    /* background: linear-gradient(135deg, #e9ffe9, #73b175, #73b175); */
                }
            }
        }
        .table-viewed {
            font-size: 0.875rem !important;
            *:not(a) {color: #444;}
            tbody {
                background-color: white;
                *::not(button) {
                    background-color: white;
                    color: #444;
                }
                tr {
                    cursor: pointer;
                    border-color: whitesmoke;
                    transition: all ease-in 0.15s;
                    * {}
                    td {
                        transition: all ease-in 0.15s;
                        * {}
                        span {
                            /* text-align: start !important; */
                        }
                        a {
                            text-decoration: none;
                            transition: all ease-in-out 0.3s;
                        }
                    }
                    td:first-child {
                        font-weight: 700;
                        text-align: start;
                    }
                    td:last-child {
                        text-align: start;
                    }
                }
                tr:hover {
                    background-color: #b4ff8d42 !important;
                    *:not(a, .viewed-index-badge) {color: var(--avs-color-02) !important;}
                    td {
                        background-color: whitesmoke !important;
                        * {}
                        a {
                            /* letter-spacing: 1px; */
                        }
                    }
                }
            }
        }
        .table-categories {
            * {}
            tr {
                cursor: pointer;
                transition: all ease-in 0.15s;
                * {}
                td {
                    transition: all ease-in 0.15s;
                    background-color: transparent !important;
                    h1, h2, h3, h4, h5, h6 {
                        margin: 0;
                        font-size: 0.9rem;
                    }
                }
            }
            tr:hover {
                background-color: #b4ff8d42 !important;
                * {color: var(--avs-color-02) !important;}
                td {
                    background-color: #f5f5f580 !important;
                }
                td:first-child {
                    letter-spacing: 1px;
                }
            }
        }
    }
}
.title-line {
    position: relative;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin: 0;
    font-size: 1rem;
    * {}
    span {
        border-radius: 4px;
        z-index: 1;
        max-width: 60%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    i {
        font-size: 1.5rem;
    }
}
.title-line::after {
    position: absolute;
    top: calc(50% - 0.0625rem);
    width: 100%;
    height: 0.125rem;
    background-color: var(--avs-color-03);
    filter: opacity(0.3);
    z-index: 0;
    left: 0;
}
.title-line span::before {
    position: absolute;
    content: '';
    top: calc(50% - 0);
    width: 20%;
    height: 0.1875rem;
    background-color: var(--avs-color-03);
    z-index: 1;
    left: 0;
}
.title-line span::after {
    position: absolute;
    content: '';
    top: calc(50% - 0);
    width: 20%;
    height: 0.1875rem;
    background-color: var(--avs-color-03);
    z-index: 1;
    right: 0;
}
@keyframes correct_animation {
    0% {
        transform: scale(0.5) rotate(-5deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
        transform: scale(1);
    }
}
span.text-loading {
    letter-spacing: 1px;
}
span.text-loading::after {
    content:'.';
    letter-spacing: 2px;
    animation: dot_loading 2.4s infinite linear;
}
@keyframes dot_loading {
    0%{ content:'.';}
    33%{ content:'..';}
    66%{ content:'...';}
    100%{ content:'.';}
}
@media only screen and (max-width: 767px){
    #div-product-list {
        * {}
        .product-image {
            max-width: 100% !important;
            max-height: 100% !important;
        }
    }
    .table-shop-nearby {
        * {}
        a {
            margin-bottom: 0.25rem;
            width: 100% !important;
        }
    }
    #div-product-info {
        flex-direction: column-reverse;
    }
}
#fullscreen {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    overflow: auto;
    background-size: contain;
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-color: #000000d9;
    text-align: center;
    * {}
    img {
        width: 80%;
        margin-top: 2.25rem;
        object-fit: contain;
        max-height: 90dvh;
    }
}
:root {
    --compare_cell: 8.75rem;
    --compare-label-w: 12.5rem;
    --compare-label-w-sm: 6.875rem;
    --compare-col-w-sm: 46vw;
}
#comparingModal {
    height: 100dvh;
    * {}
    .modal-header {
        background: linear-gradient(90deg, var(--avs-color-04, #0b500e), var(--avs-color-02));
        color: white;
        * {}
        button {
            filter: invert(1);
        }
    }
    .modal-body {
        background-color: #f6f8f6;
        * {}
        #compare-filter {
            background-color: #eef4ee !important;
            border-radius: 10px;
            padding-top: 1rem !important;
            * {}
            .form-check {
                display: inline-flex;
                cursor: pointer;
                user-select: none;
                background-color: white;
                border-radius: 20px;
                padding: 0.25rem 0.75rem;
                margin: 0 0.375rem 0.375rem 0;
                transition: box-shadow .15s ease, transform .1s ease;
                box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
                * {
                    cursor: pointer;
                    user-select: none;
                }
                &:hover {
                    box-shadow: 0 2px 8px rgba(0, 128, 0, .18);
                }
                .form-check-input {
                    margin: auto 0.25rem !important;
                }
                .form-check-input:checked {
                    background-color: var(--avs-color-02);
                    border-color: var(--avs-color-02);
                }
            }
        }
        #inp-compare_id + .btn {
            border-radius: 20px;
            box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 4px, rgba(0, 0, 0, 0.1) 0px 7px 13px -3px;
        }
    }
    #compare-table {
        display: flex;
        overflow: hidden;
        border-radius: 14px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
        * {}
        div.div-row {
            display: flex;
            flex-direction: column;
            * {}
            div.div-col {
                position: relative;
                display: flex;
                align-items: center !important;
                justify-content: center !important;
                text-align: center !important;
                width: var(--compare-label-w);
                height: 2.5625rem;
                padding: 0.25rem 1rem;
                font-size: 0.875rem;
                border-bottom: 1px solid #eef1ee;
                border-right: 1px solid #eef1ee;
                cursor: pointer;
                transition: background-color 0.15s ease, color 0.15s ease;
            }
            div.div-col:first-child {
                background-color: #fff !important;
            }
            div.div-col:nth-child(n+7):nth-child(-n+10) {
                height: 4.125rem;
            }
            div.div-col:nth-child(11) {
                height: 7.5rem;
            }
        }
        #compare-title,
        #compare-body {
            display: flex;
            * {}
            .div-col.data-filter-0 {
                flex-direction: column-reverse !important;
                height: 7.5rem !important;
                * {}
                span {
                    text-align: center !important;
                    font-size: 0.9375rem;
                    font-weight: 700;
                }
                button {
                    position: absolute;
                    width: 1.5rem;
                    top: -0.375rem;
                    right: -0.375rem;
                    border-radius: 50%;
                }
            }
        }
        #compare-title {
            position: relative;
            z-index: 2;
            box-shadow: 3px 0 8px rgba(0, 0, 0, .05);
            * {}
            div.div-row {
                border-radius: 14px 0 0 14px;
                overflow: hidden;
            }
            div.div-col {
                text-align: left !important;
                justify-content: start !important;
                width: var(--compare-label-w) !important;
                width: 7.5rem !important;
                background-color: #fff !important;
                color: #333 !important;
                font-size: 0.9375rem;
                font-weight: 600;
            }
            div.div-col.highlighted {
                background-color: var(--avs-color-02) !important;
                color: #fff !important;
            }
        }
        #compare-body {
            overflow-x: auto;
            * {}
            &::-webkit-scrollbar {
                width: 0.625rem;
                height: 0.625rem;
                border-radius: 8px;
            }
            &::-webkit-scrollbar-thumb {
                background-color: var(--avs-color-02);
                border-radius: 8px;
                cursor: pointer;
            }
            div.div-row:last-child div.div-col {
                border-radius: 0 0 14px 0;
            }
            .div-row:nth-child(even) .div-col {
                background-color: #f4f9f4 !important;
                color: #222 !important;
            }
            .div-row:nth-child(odd) .div-col {
                background-color: #ffffff !important;
                color: #222 !important;
            }
            .div-row .div-col.highlighted {
                background-color: #dcefe0 !important;
                color: #0b500e !important;
                font-weight: 600;
            }
            .div-col {
                text-align: center !important;
                justify-content: center !important;
            }
        }
        .product-image {
            position: relative;
            background-color: #eef4ee;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            height: 5rem;
            width: 5rem;
            aspect-ratio: 1/1;
            border-radius: 8px;
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
            transition: transform .15s ease;
        }
        .div-col:hover .product-image {
            transform: scale(1.06);
        }
    }
}
#productModal {
    * {}
    ::-webkit-scrollbar-thumb {
        background-color: var(--avs-color-01);
    }
    .modal-header {
        
    }
    .modal-body {
        background-color: whitesmoke;
        * {}
        input[type=checkbox]:checked + label{
            * {}
            .card {
                background-color: var(--avs-color-04) !important;
                border: 2px solid #fff !important;
                color: white;
            }
        }
        .product-image {
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            max-height: 5rem;
            max-width: 5rem;
            width: 100%;
            aspect-ratio: 1/1;
            /* background-color: #74d571; */
        }
        .card-product-list {
            border: 2px solid #fff;
            transition: all ease-in-out 0.1s;
            cursor: pointer;
            box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
            box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
            * {}
            .content-detail table {
                max-width: 80%;
            }
        }
    }
    #preview-compare {
        background-color: whitesmoke;
        min-height: 3.25rem;
    }
}
@media only screen and (max-width: 767px) {
    #compare-table {
        * {}
        div.div-row {
            * {}
            div.div-col {
                width: var(--compare-col-w-sm) !important;
            }
        }
        /* Label column stays narrow so it + one product column both fit on a phone screen,
           instead of the labels being hidden entirely (see compare-title.html() in index.blade.php). */
        #compare-title div.div-col {
            width: var(--compare-label-w-sm) !important;
        }
    }
    #div-product-list {
        * {}
        .product-image {
            margin-top: 1.125rem !important;
            max-width: 5rem !important;
            max-height: 100% !important;
        }
    }
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.radio-tile-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.radio-tile-group .input-container {
    position: relative;
}
.radio-tile-group .input-container .radio-button {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
}
.radio-tile-group .input-container .radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px solid #f1f1f1;
    color: #555;
    border-radius: 0;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.radio-tile-group .input-container .icon svg {
    fill: #079ad9;
    width: 2rem;
    height: 2rem;
}
.radio-tile-group .input-container .radio-tile-label {
    text-align: start;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    width: 100%;
    justify-content: space-between;
    display: flex;
    cursor: pointer;
    * {}
    span > span {
        color: #555;
        font-size: 0.625rem;
        padding-left: 0.375rem;
    }
}
.radio-tile-group .input-container .radio-button:checked + .radio-tile {
    background-color: var(--avs-color-01);
    color: white;
}
.radio-tile-group .input-container .radio-button:checked + .radio-tile .icon svg {
    fill: white;
    background-color: var(--avs-color-01);
}
.radio-tile-group .input-container .radio-button:checked + .radio-tile .radio-tile-label {
    color: white;
    background-color: var(--avs-color-01);
    letter-spacing: 1px;
    * {}
    span > span {
        color: white;
    }
}
.rdo-icon-image {
    width: 4rem;
    height: 4rem;
    background-position: center;
    background-size: cover;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 6px;
}
.loader {
    width: 3rem;
    height: 3rem;
    display: inline-block;
    position: relative;
}
.loader::after,
.loader::before {
    content: '';
    box-sizing: border-box;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #16ca15;
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}
.loader::after {
    animation-delay: 1s;
}
@keyframes animloader {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}
.active-filter {
    border: 2px dashed #eb0b6e !important;
}
.btn-compare {
    background-color: var(--avs-color-02) !important;
    border: 2px solid var(--avs-color-02);
    border-radius: 30px;
    /* box-shadow: #c7df34 4px 4px 0 0; */
    box-shadow: var(--avs-color-04) 4px 4px 0 0;
    color: #fff !important;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin-bottom: 0.5rem;
    transition: ease-in-out all 0.1s;
    * {}
    &:hover {
        /* border-color: #c7df34 !important; */
        border-color: var(--avs-color-04) !important;
    }
}
.row:has(>div>.bg-custom) {
    background: white;
    border-radius: 8px;
    /* border: 1px solid green; */
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
}
div:has(>.bg-custom) {
    position: relative;
    * {}
    .bg-custom {
        display: flex;
        border-radius: 8px 0 0 8px;
        width: 100%;
        /* aspect-ratio: 1 / 1; */
        height: 100%;
        /* box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset; */
        * {}
        &.bg-success {
            background-color: #4CAF50 !important;
            border-color: #4CAF50 !important;
        }
        &.bg-warning {
            background-color: #8bc34a !important;
            border-color: #8bc34a !important;
        }
    }
    /* &::after {
        content: '';
        position: absolute;
        width: 50%;
        height: 100%;
        background: white;
        z-index: -1;
        left: 50%;
        top: 0;
        border: 1px solid green;
        border-radius: 8px 0 0 8px;
        border-right-width: 0px;
    } */
    & + div {
        /* background: white;
        border-radius: 8px;;
        border: 1px solid green; */
        display: flex;
        flex-direction: column;
        font-size: 0.75rem;
        * {}
        &>span:first-child {
            font-weight: 700;
        }
    }
}
.btn-secondary-tag {
    color: #009879;
    background-color: #e9f8ec;
    border-radius: 14px;
    padding: 0.25rem 0.75rem;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
    margin-bottom: 0.5rem !important;
}
#btn-load-more { color: #155c38 !important; border-color: #155c38 !important; }
#btn-load-more:hover { background-color: #155c38 !important; color: #fff !important; }

/* ── Related content (articles/activities/CSR) — product detail page ──
   Own namespace, freshly designed (not reusing homepage's .article__/.activity__, which are
   scoped under section#article/section#activity and not safely reusable elsewhere). */
#div-related-content .related-content__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
    width: 100%;
    padding: 0 0.75rem;
}
@media (min-width: 768px) {
    #div-related-content .related-content__grid {
        grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
        gap: 1.25rem;
    }
}
#div-related-content .related-content__item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: rgba(50, 50, 93, 0.1) 0px 4px 10px -2px, rgba(0, 0, 0, 0.08) 0px 2px 5px -2px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
#div-related-content .related-content__item:hover {
    transform: translateY(-4px);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 12px 22px -6px, rgba(0, 0, 0, 0.3) 0px 6px 10px -4px;
    text-decoration: none;
    color: inherit;
    border-color: #8fca91;
}
#div-related-content .related-content__image {
    position: relative;
    aspect-ratio: 4/3;
    background-color: #eef4ee;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
#div-related-content .related-content__badge {
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    font-size: 0.65625rem;
    font-weight: 700;
    padding: 0.1875rem 0.625rem;
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
#div-related-content .related-content__badge--article  { background: var(--avs-color-02, #008000); }
#div-related-content .related-content__badge--activity { background: #1565c0; }
#div-related-content .related-content__badge--csr       { background: #ef6c00; }
#div-related-content .related-content__body {
    padding: 0.75rem 0.875rem 1rem;
    text-align: left;
}
#div-related-content .related-content__date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.71875rem;
    color: #888;
    margin-bottom: 0.25rem;
}
#div-related-content .related-content__date .material-icons {
    font-size: 0.8125rem;
}
#div-related-content .related-content__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 2.8em;
    color: #222;
}
@media (max-width: 767px) {
    #div-related-content .related-content__grid {
        grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
        gap: 0.625rem;
        padding: 0 0.25rem;
    }
    #div-related-content .related-content__body {
        padding: 0.5rem 0.625rem 0.75rem;
    }
    #div-related-content .related-content__title {
        font-size: 0.78125rem;
    }
}

/* ── Farmer harvest photo reviews (UGC gallery) — product detail page ──
   Own namespace, mirrors #div-related-content's grid approach. */
#div-review-photos .review-photos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
    gap: 0.75rem;
    width: 100%;
    padding: 0 0.75rem;
}
@media (min-width: 768px) {
    #div-review-photos .review-photos__grid {
        grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
        gap: 1rem;
    }
}
.review-photos__item {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    padding: 0;
    background: #eef4ee;
    cursor: pointer;
    box-shadow: rgba(50, 50, 93, 0.1) 0px 4px 10px -2px, rgba(0, 0, 0, 0.08) 0px 2px 5px -2px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.review-photos__item:hover {
    transform: translateY(-4px);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 12px 22px -6px, rgba(0, 0, 0, 0.3) 0px 6px 10px -4px;
}
.review-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 767px) {
    #div-review-photos .review-photos__grid {
        grid-template-columns: repeat(auto-fill, minmax(6.875rem, 1fr));
        gap: 0.625rem;
        padding: 0 0.25rem;
    }
}

/* ── Lightbox ── */
.review-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.review-lightbox.show { display: flex; }
body.review-lightbox-open { overflow: hidden; }
.review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .88);
}
.review-lightbox__img {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    z-index: 1;
    border-radius: 6px;
    touch-action: pinch-zoom;
}
.review-lightbox__close,
.review-lightbox__nav {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.review-lightbox__close:hover,
.review-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.review-lightbox__close { top: 1rem; right: 1rem; }
.review-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.review-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.review-lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 0.8125rem;
    background: rgba(0, 0, 0, .5);
    padding: 0.25rem 0.875rem;
    border-radius: 20px;
}
@media (max-width: 767px) {
    .review-lightbox__close, .review-lightbox__nav { width: 2.375rem; height: 2.375rem; }
    .review-lightbox__prev { left: 0.375rem; }
    .review-lightbox__next { right: 0.375rem; }
}

/* ── "สนใจสินค้าติดต่อ" contact CTA — ported from pages/product/super-save.blade.php's
   #super-save-page .ss-section-label / .ss-contact-icon (scoped there to a page-only inline
   <style> block, so it never reached this page). Same look, unprefixed since product.css is
   already page-specific to the product detail template. */
.ss-section-label {
    color: #999;
    font-size: 0.71875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ss-contact-icon {
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--ss-contact-color, var(--avs-color-01));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    color: var(--ss-contact-color, var(--avs-color-01));
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: 0.15s ease-in-out all;
}
.ss-contact-icon i {
    color: inherit;
}
.ss-contact-icon:hover {
    background-color: var(--ss-contact-color, var(--avs-color-01));
    color: #fff;
}
