/* =========================================
   OAKLORES ART ORDER
   ========================================= */
.art-selection-login-button {
    display: block;
    margin: 20px auto;
    padding: 9px 18px;
    border: 1px solid #B85C3A;
    border-radius: 5px;
    background: #B85C3A;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.art-selection-login-button:hover {
    background: #a94f31;
}
.oaklores-collection__message {
    padding: 40px 24px;
    text-align: center;
    color: #6f6a64;
    font-size: 15px;
    line-height: 1.6;
    background: #fbfaf8;
    border: 1px solid #e8e3dd;
    border-radius: 6px;
    margin: 20px 0;
}


.oaklores-art-order {
    --oaklores-bg: #fbfaf8;
    --oaklores-text: #292522;
    --oaklores-muted: #817a73;
    --oaklores-border: #ded9d2;
    --oaklores-accent: #b85c3a;

    min-height: 100vh;
    background: var(--oaklores-bg);
    color: var(--oaklores-text);

    display: flex;
    flex-direction: column;
}


/* =========================================
   1. MAIN AREA
   ========================================= */

.oaklores-art-order__main {
    flex: 1;
    padding: 20px 5vw 140px;
}

.oaklores-art-order__header {
    max-width: 800px;
    margin: 0 auto 15px;
    text-align: center;
}

.oaklores-art-order__eyebrow {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--oaklores-muted);
}

.oaklores-art-order__header h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(15px, 2.5vw, 38px);
    font-weight: 500;
    line-height: 1;
}

.oaklores-art-order__instruction {
    margin: 15px 0 0;
    color: var(--oaklores-muted);
    font-size: 15px;
}


/* =========================================
   MASONRY GRID
   ========================================= */

.oaklores-art-grid {
    max-width: 1400px;
    margin: 0 auto;

    columns: 4 220px;
    column-gap: 18px;
}

.oaklores-art-card {
    break-inside: avoid;
    margin-bottom: 18px;

    cursor: pointer;
}

.oaklores-art-card__image {
    position: relative;
    overflow: hidden;
    background: #eee9e3;
}

.oaklores-art-card__image img {
    display: block;
    width: 100%;
    height: auto;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.oaklores-art-card:hover img {
    transform: scale(1.025);
}

.oaklores-art-card__title {
    padding: 9px 2px 0;

    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
}


/* Selection check */




/* =========================================
   2. SELECTION TRAY
   ========================================= */

.oaklores-selection {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    z-index: 20;

    min-height: 75px;

    display: flex;
    align-items: center;

    padding: 5px 20px;

    background: rgba(251, 250, 248, 0.96);
    border-top: 1px solid var(--oaklores-border);

    backdrop-filter: blur(12px);
}

.oaklores-selection__label {
    flex: 0 0 auto;

    min-width: 90px;

    display: flex;
    flex-direction: column;

    margin-right: 20px;
}

.oaklores-selection__label span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--oaklores-muted);
}

.oaklores-selection__label strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    font-weight: 500;
}

.oaklores-selection__scroll {
    display: flex;
    gap: 10px;

    overflow-x: auto;
    overscroll-behavior-inline: contain;

    scrollbar-width: none;
}

.oaklores-selection__scroll::-webkit-scrollbar {
    display: none;
}

.oaklores-selection__item {
    position: relative;
    flex: 0 0 auto;

    width: 70px;
    height: 70px;
}

.oaklores-selection__item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.oaklores-selection__item button {
    position: absolute;
    top: -7px;
    right: -7px;

    width: 22px;
    height: 22px;

    border: 0;
    border-radius: 50%;

    background: var(--oaklores-text);
    color: white;

    cursor: pointer;

    line-height: 1;
}


/* =========================================
   3. CONTROLS
   ========================================= */

.oaklores-art-order__controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 21;

    height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: white;
    border-top: 1px solid var(--oaklores-border);
}

.oaklores-art-order__selection-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;

    font-size: 13px;
}

.oaklores-art-order__selection-summary strong {
    font-weight: 600;
}

.oaklores-art-order__selection-summary span {
    color: var(--oaklores-muted);
}

.oaklores-art-order__next, .oaklores-art-order__back {
    border: 0;

    padding: 10px 22px;

    background: black;
    color: white;

    font-size: 13px;

    cursor: pointer;

    transition: opacity 0.2s ease;
}

.oaklores-art-order__next:hover {
    opacity: 0.85;
}

.oaklores-art-order__next span {
    margin-left: 8px;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .oaklores-art-order__main {
        padding: 35px 15px 155px;
    }

    .oaklores-art-grid {
        columns: 2;
        column-gap: 10px;
    }

    .oaklores-art-card {
        margin-bottom: 10px;
    }

    .oaklores-selection {
        bottom: 58px;
        min-height: 82px;
        padding: 8px 15px;
    }

    .oaklores-selection__item {
        width: 60px;
        height: 60px;
    }

    .oaklores-art-order__controls {
        height: 58px;
        padding: 0 15px;
    }

    .oaklores-art-order__selection-summary span {
        display: none;
    }
}

/* =========================================================
   Oak Lores Collection
   ========================================================= */

.oaklores-collection {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 24px 60px;
    box-sizing: border-box;
}


/* =========================================================
   Header
   ========================================================= */

.oaklores-collection__header {
    margin-bottom: 28px;
}

.oaklores-collection__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: #27231f;
    margin-bottom: 7px;
}

.oaklores-collection__status {
    display: flex;
    align-items: center;
    gap: 5px;

    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 17px;
    color: #8a8179;
}


/* =========================================================
   Animated dots
   ========================================================= */

.oaklores-collection__dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 2px;
}

.oaklores-collection__dots span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;

    animation: oaklores-dot-pulse 1.4s infinite ease-in-out;
}

.oaklores-collection__dots span:nth-child(1) {
    animation-delay: 0s;
}

.oaklores-collection__dots span:nth-child(2) {
    animation-delay: 0.18s;
}

.oaklores-collection__dots span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes oaklores-dot-pulse {
    0%,
    60%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}


/* =========================================================
   Masonry layout
   ========================================================= */

.oaklores-collection__grid {
    columns: 4 240px;
    column-gap: 18px;
}


/* =========================================================
   Skeleton cards
   ========================================================= */

.oaklores-skeleton-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;

    margin-bottom: 18px;
}

.oaklores-skeleton-card > .oaklores-skeleton:first-child {
    width: 100%;
    border-radius: 5px;
}


/*
 * Different image heights create the Pinterest effect.
 */

.oaklores-skeleton-card--1 .oaklores-skeleton:first-child {
    height: 330px;
}

.oaklores-skeleton-card--2 .oaklores-skeleton:first-child {
    height: 430px;
}

.oaklores-skeleton-card--3 .oaklores-skeleton:first-child {
    height: 285px;
}

.oaklores-skeleton-card--4 .oaklores-skeleton:first-child {
    height: 390px;
}

.oaklores-skeleton-card--5 .oaklores-skeleton:first-child {
    height: 470px;
}

.oaklores-skeleton-card--6 .oaklores-skeleton:first-child {
    height: 315px;
}


/* =========================================================
   Shimmer
   ========================================================= */

.oaklores-skeleton {
    position: relative;
    overflow: hidden;

    background: #eeeae5;

    border-radius: 4px;
}


/*
 * The moving highlight.
 */

.oaklores-skeleton::after {
    content: "";

    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 35%,
        rgba(255, 255, 255, 0.55) 50%,
        rgba(255, 255, 255, 0.18) 65%,
        transparent 100%
    );

    animation: oaklores-shimmer 1.8s infinite;
}


@keyframes oaklores-shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   Text skeletons
   ========================================================= */

.oaklores-skeleton--title {
    width: 72%;
    height: 13px;

    margin-top: 12px;

    border-radius: 3px;
}

.oaklores-skeleton--text {
    width: 45%;
    height: 9px;

    margin-top: 8px;

    border-radius: 3px;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {

    .oaklores-collection__grid {
        columns: 3 220px;
    }

}


@media (max-width: 760px) {

    .oaklores-collection {
        padding: 24px 16px 50px;
    }

    .oaklores-collection__title {
        font-size: 30px;
    }

    .oaklores-collection__grid {
        columns: 2 160px;
        column-gap: 12px;
    }

    .oaklores-skeleton-card {
        margin-bottom: 12px;
    }

    .oaklores-skeleton-card--1 .oaklores-skeleton:first-child {
        height: 250px;
    }

    .oaklores-skeleton-card--2 .oaklores-skeleton:first-child {
        height: 330px;
    }

    .oaklores-skeleton-card--3 .oaklores-skeleton:first-child {
        height: 215px;
    }

    .oaklores-skeleton-card--4 .oaklores-skeleton:first-child {
        height: 300px;
    }

    .oaklores-skeleton-card--5 .oaklores-skeleton:first-child {
        height: 350px;
    }

    .oaklores-skeleton-card--6 .oaklores-skeleton:first-child {
        height: 240px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .oaklores-skeleton::after,
    .oaklores-collection__dots span {
        animation: none;
    }

}
/*Selected card style*/
.oaklores-art-card {
    cursor: pointer;
    position: relative;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Selected card */
.oaklores-art-card.is-selected {
    outline: 2px dashed #000;
    outline-offset: 3px;
    box-shadow: 0 4px 18px rgba(184, 92, 58, 0.14);
}

/* Selected image */
.oaklores-art-card.is-selected
.oaklores-art-card__image {
    outline: none;
    outline-offset: -3px;
}

/* Check */
.oaklores-art-card.is-selected
.oaklores-art-card__check {
    opacity: 1;
    transform: scale(1);
}
.oaklores-art-card__check {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: black;

    color: white;
    font-size: 17px;

    opacity: 0;
    transform: scale(0.7);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/*select all btn*/
.oaklores-collection__toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.oaklores-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border: 1px solid rgba(184, 92, 58, 0.25);
    border-radius: 20px;

    background: transparent;
    color: #555;

    font-size: 14px;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.oaklores-select-all:hover {
    background: rgba(184, 92, 58, 0.06);
    border-color: rgba(184, 92, 58, 0.45);
    color: #B85C3A;
}

.oaklores-select-all__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;

    font-size: 12px;
    line-height: 1;

    color: transparent;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.oaklores-select-all.is-selected {
    color: #B85C3A;
    border-color: rgba(184, 92, 58, 0.45);
}

.oaklores-select-all.is-selected
.oaklores-select-all__check {
    background: #B85C3A;
    border-color: #B85C3A;
    color: white;
}
#oaklores-artselection-next-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
