/* ========================================
   QUICK BROWSE PRODUCTS CARDS
   ======================================== */

/* .qbp-card, .qbp-card-content {
    border: solid 1px var(--light-grey);
    box-sizing: border-box;
} */

.qbp-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: solid 1px var(--light-grey);
    overflow: visible;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* background: linear-gradient(180deg, #EBEBEB 0%, #F0EEEE 100%); */
    background: linear-gradient(180deg, #ffffff 0%, #dddddd 100%);
    cursor: grab;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.quick-browse-products-wrapper.dragging .qbp-card {
    transition: none;
    pointer-events: none;
}

.qbp-card.dragging {
    cursor: grabbing;
    pointer-events: none;
}

.qbp-card-image {
    background-image: url("../assets/images/general-site/pallet template.png");
    background-repeat: no-repeat;
    background-size: 110%;
    background-position: center;
    width: 290px;
    height: 169px;
    margin: 45px 20px 0 20px;
    transition: filter 0.2s ease-in-out;
    cursor: grab;
    will-change: filter, transform;
    user-select: none;
    -webkit-user-select: none;
}

.qbp-card-content {
    position: absolute;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: left;
    height: 128px;
    bottom: -1px;
    user-select: none;
    -webkit-user-select: none;
    left: -1px;
    right: -1px;
    width: calc(100% + 2px);
    padding: 20px;
    padding-top: 15px;
    border-radius: 20px;
    border: 1px solid #D2D2D2;
    background: #FFFFFF;
    z-index: 2;
    transition: height 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    cursor: grab;
    will-change: height, box-shadow;
    transform: translateZ(0);
}

.qbp-card-content p {
    font-size: 18px;
    color: #434242;
    margin: 0;
    text-align: left;
}

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 7px;
}

.qbp-card-content p.weight-type {
    font-weight: 400;
}

.qbp-card-content p.weight-type .weight-type-bold {
    font-weight: 600;
}

.qbp-card-content h3 {
    font-weight: 500;
    font-size: 22.5px;
    color: var(--black);
    margin: 0;
    text-align: left;
}

.qbp-card-content .p2 {
    margin-top: 20px;
    text-align: left;
}

.qbp-button {
    width: 129px;
    height: 34px;
    border: 1px solid #808080;
    background: transparent;
    border-radius: 50px;
    color: #808080;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    cursor: pointer;
    align-self: center;
    margin-top: 12px;
    transition: all 0.2s ease-in-out;
}

.qbp-button:hover {
    background-color: #ffdc1c;
    color: var(--black);
    border: solid 1px rgb(74, 74, 74);
    box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
}

.qbp-card:hover .qbp-card-image,
.qbp-card.is-expanded .qbp-card-image {
    filter: blur(30px);
}

.qbp-card:hover .qbp-card-content,
.qbp-card.is-expanded .qbp-card-content {
    height: 220px;
    box-shadow: 0 -6px 20px -1px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

@media screen and (max-width: 1024px) {
    .qbp-card-image {
        width: calc(100% - 40px);
        height: auto;
        aspect-ratio: 290 / 169;
        margin: 30px 20px 0 20px;
    }
}

@media (hover: none), (pointer: coarse) {
    .qbp-card {
        cursor: default;
    }

    .qbp-card:hover .qbp-card-image,
    .qbp-card:active .qbp-card-image {
        filter: none;
    }

    .qbp-card:hover .qbp-card-content,
    .qbp-card:active .qbp-card-content {
        height: 128px;
        box-shadow: none;
    }

    .qbp-card.is-expanded .qbp-card-image {
        filter: blur(30px);
    }

    .qbp-card.is-expanded .qbp-card-content {
        height: 310px;
        box-shadow: 0 -6px 20px -1px rgba(0, 0, 0, 0.1);
    }

    .qbp-card.is-expanded .chevron-up {
        transform: rotate(180deg);
    }

    .qbp-button {
        cursor: pointer;
    }
}

/* Chevron animation on hover for expanded cards */
.qbp-card:hover .chevron-up,
.qbp-card.is-expanded .chevron-up {
    transform: rotate(180deg);
}

/* ========================================
   QUICK QUOTE FORMS
   ======================================== */

/* Chevron up icon for expandable cards */
.chevron-up {
    position: absolute;
    width: 26px;
    height: 26px;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #808080;
    cursor: pointer;
    transition: transform 0.5s ease;
}

/* Expanded card states */
.qbp-card.expanded .qbp-card-image.blurred {
    filter: blur(15px);
}

.qbp-card.expanded .qbp-card-content.expanded {
    height: 303px;
    top: 74px;
}

/* Additional text styling for expanded cards */
.qbp-card-content .p2 {
    margin-top: 20px;
    font-size: 18px;
    line-height: 22px;
    color: #808080;
}

/* Button Styling */

/* Form submitted state - green button with smooth animation */
button[type="submit"].form-submitted {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transition: all 0.4s ease;
    transform: scale(1.02);
}

/* Hide honeypot field from view */
.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ========================================
   SKELETON LOADER
   ======================================== */

.skeleton-loader {
    pointer-events: none;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-title {
    height: 22px;
    width: 80%;
}

.skeleton-text {
    width: 90%;
}

.skeleton-button {
    height: 40px;
    background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-top: 12px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
