
/* Core layout for auction cards */
.bau-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.bau-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bau-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.bau-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.bau-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.bau-card-image--placeholder {
    background: #f5f5f5;
}

/* Status pill now shows time or ENDED */
.bau-status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-radius: 999px;
    background: #000;
    color: #fff;
    z-index: 2;
    min-width: 110px;
    text-align: center;
    display: inline-flex;
}

.bau-time-row { display: inline-flex; gap: 12px; align-items: center; }
.bau-time-block { display: flex; flex-direction: column; align-items: center; min-width: 44px; }
.bau-time-num { font-size: 14px; font-weight: 700; line-height: 1.1; }
.bau-time-label { font-size: 10px; line-height: 1; opacity: .9; }

/* Card body */
.bau-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bau-type-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .08em;
    color: #888;
}

.bau-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 2px 0 4px;
}

.bau-card-title a {
    color: #111;
    text-decoration: none;
}

.bau-card-title a:hover {
    text-decoration: underline;
}

.bau-card-hours {
    font-size: 13px;
    color: #444;
}

.bau-card-hours span {
    font-weight: 600;
}

/* Price button */
.bau-price-btn {
    margin-top: 10px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid #ff4b7b;
    background: #ffeef3;
    color: #e3004f;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 14px;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.bau-price-btn:hover {
    background: #ffdae6;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

/* Hover "Bid or Buy" button over image */
.bau-bid-hover-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -50px;
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all .25s ease;
    z-index: 2;
}

.bau-card:hover .bau-bid-hover-btn {
    bottom: 16px;
    opacity: 1;
}

/* When card ended, dim image */
.bau-card-ended .bau-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.bau-slider {
    position: relative;
}

.bau-slider-track {
    display: flex;
    gap: 1.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 1.75rem 10px;
    scroll-padding-left: 1.75rem;
    scroll-padding-right: 1.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bau-slide {
    scroll-snap-align: start;
    flex: 0 0 25%;
}

@media (max-width: 1024px) {
    .bau-slide { flex-basis: 50%; }
}

@media (max-width: 640px) {
    .bau-slide { flex-basis: 50%; }
}

.bau-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #111;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.bau-slider-arrow.bau-prev { left: -10px; }
.bau-slider-arrow.bau-next { right: -10px; }

.bau-slider-arrow.is-disabled { opacity: .35; pointer-events: none; }
.bau-slider-track::-webkit-scrollbar { width: 0; height: 0; }

.bau-slider-scrollbar {
    position: relative;
    height: 6px;
    background: #f2f2f2;
    border-radius: 999px;
    margin-top: 8px;
}

.bau-slider-scrollbar-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #111;
    border-radius: 999px;
}

/* ============ MODALS (same as before, stylised) ============ */

.bau-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.bau-modal.is-open {
    display: block;
}

.bau-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.40);
    opacity: 0;
    transition: opacity .2s ease;
}

.bau-modal.is-open .bau-modal-overlay {
    opacity: 1;
}

.bau-modal-dialog {
    position: relative;
    max-width: 858px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 26px;
    padding: 28px 28px 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.22);
    transform: translateY(30px) scale(.96);
    opacity: 0;
    transition: all .25s ease-out;
}

.bau-modal.is-open .bau-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Auth dialog specific */
.bau-auth-header {
    text-align: center;
    margin-bottom: 18px;
}

.bau-auth-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
}

.bau-auth-subtitle {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* Tabs */
.bau-auth-tabs {
    display: inline-flex;
    border-radius: 999px;
    background: #eef3fb;
    border: 1px solid #e3e9f6;
    padding: 6px;
    gap: 6px;
    margin: 0 auto 18px;
}

.bau-auth-tab {
    border: none;
    background: transparent;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #09347a;
    transition: background .2s ease, color .2s ease;
}

.bau-auth-tab.is-active {
    background: #09347a;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(9,52,122,0.25);
}

.bau-auth-tab:hover { background: #c41230; color: #ffffff; }

.bau-auth-dialog .bau-auth-tab { border: none !important; box-shadow: none !important; color: #09347a !important; }
.bau-auth-dialog .bau-auth-tab.is-active { background: #09347a !important; color: #ffffff !important; }
.bau-auth-dialog .bau-auth-tab:hover { background: #c41230 !important; color: #ffffff !important; }

/* Panels */
.bau-auth-panels {
    position: relative;
}

.bau-auth-panel {
    display: none;
    position: relative;
}

.bau-auth-panel.is-active {
    display: block;
}

.bau-field {
    margin-bottom: 10px;
}

.bau-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bau-field input,
.bau-field select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bau-field input:hover,
.bau-field select:hover { border-color: #c41230; }

.bau-field input:focus,
.bau-field select:focus { border-color: #09347a; box-shadow: 0 0 0 2px rgba(9,52,122,0.15); outline: none; background: #ffffff; }

.bau-auth-dialog .bau-field input,
.bau-auth-dialog .bau-field select { border: 1px solid #ddd !important; background: #ffffff !important; }
.bau-auth-dialog .bau-field input:hover,
.bau-auth-dialog .bau-field select:hover { border-color: #c41230 !important; }
.bau-auth-dialog .bau-field input:focus,
.bau-auth-dialog .bau-field select:focus { border-color: #09347a !important; box-shadow: 0 0 0 2px rgba(9,52,122,0.15) !important; outline: none !important; background: #ffffff !important; }

.bau-two-col {
    display: flex;
    gap: 12px;
}

.bau-two-col .bau-field {
    flex: 1;
}

.bau-auth-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 14px;
    font-size: 12px;
}

.bau-remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bau-remember input[type="checkbox"] {
    margin: 0;
}

.bau-forgot-link {
    color: #777;
    text-decoration: none;
    font-size: 12px;
}

.bau-forgot-link:hover {
    text-decoration: underline;
}

.bau-primary-btn {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: #09347a;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 8px 18px rgba(9,52,122,0.20);
}

.bau-primary-btn:hover {
    background: #c41230;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(196,18,48,0.20);
}

.bau-auth-dialog .bau-primary-btn { background: #09347a !important; color: #ffffff !important; border: none !important; box-shadow: none !important; }
.bau-auth-dialog .bau-primary-btn:hover { background: #c41230 !important; color: #ffffff !important; }

.bau-submit-btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: .9;
}

.bau-submit-btn.is-loading::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.7);
    border-top-color: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: bauSpin .8s linear infinite;
}

.button.bid.is-loading {
    position: relative;
    pointer-events: none;
    opacity: .9;
}
.button.bid.is-loading::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.7);
    border-top-color: #ffffff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: bauSpin .8s linear infinite;
}

.bau-auth-panel.is-busy::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(255,255,255,0.6);
}

@keyframes bauSpin { to { transform: translateY(-50%) rotate(360deg); } }

.bau-auth-error {
    background: #ffe2e2;
    color: #9b1c1c;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Terms & switch text */
.bau-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    margin: 10px 0 6px;
}

.bau-terms input[type="checkbox"] {
    margin-top: 3px;
}

.bau-terms a {
    color: #000;
    text-decoration: underline;
}

.bau-switch-text {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #555;
}

.bau-link-btn {
    border: none;
    padding: 0;
    background: none;
    color: #09347a;
    font-weight: 700;
    cursor: pointer;
}
.bau-link-btn:hover { text-decoration: underline; color: #c41230; }

/* Close button */
.bau-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.bau-auth-dialog .bau-modal-close { border: none !important; background: none !important; box-shadow: none !important; color: #09347a !important; }
.bau-auth-dialog .bau-modal-close:hover { color: #c41230 !important; }

/* History modal */
.bau-history-dialog {
    max-width: 640px;
}

.bau-history-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.bau-history-content {
    max-height: 380px;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid #eee;
    padding: 12px;
}

.bau-history-content table {
    width: 100%;
    border-collapse: collapse;
}

.bau-history-content th,
.bau-history-content td {
    padding: 6px 8px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 600px) {
    .bau-modal-dialog {
        margin: 40px 16px;
        padding: 22px 18px 20px;
    }

    .bau-two-col {
        flex-direction: column;
    }

    .bau-card-image {
        height: 190px;
    }

    video.bau-video { max-height: 60vh; }
}
.bau-shop {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.bau-shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bau-filter-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.bau-filter-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.bau-filter-list {
    max-height: 240px;
    overflow: auto;
    display: grid;
    gap: 8px;
}

.bau-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bau-two-col select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
}

.bau-year-row {
    display: flex;
    gap: 10px;
}

.bau-year-row input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 10px;
}

.bau-filter-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.bau-filter-actions .bau-clear-all {
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
}

.bau-shop-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bau-shop-top { display:flex; justify-content:space-between; align-items:center; margin: 18px 0; }
.bau-shop-top .bau-dyn-title { font-size: 28px; font-weight: 800; }
.bau-shop-top .bau-breadcrumb { color:#666; font-size: 14px; }
.bau-shop-top .bau-breadcrumb a { color:#666; }

.bau-product-gallery { display: flex; gap: 16px; align-items: center; flex-direction: column; }
.bau-pg-main { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.bau-pg-current { width: 100%; height: 460px; object-fit: cover; display:block; }
.bau-video-btn { position:absolute; left:14px; bottom:14px; background:#fff; color:#000; border:none; border-radius:999px; padding:8px 14px; font-weight:600; cursor:pointer; }
.bau-pg-arrow { position:absolute; top:50%; transform: translateY(-50%); width:36px; height:36px; border-radius:999px; border:none; background: rgba(17,17,17,0.6); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.bau-pg-arrow { z-index: 2; }
.bau-pg-prev { left:10px; }
.bau-pg-next { right:10px; }
.bau-pg-thumbs { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bau-pg-thumb { border:none; padding:0; background:transparent; border-radius:12px; overflow:hidden; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.bau-pg-thumb img { width:100%; height:140px; object-fit:cover; display:block; }
.bau-pg-more img { width:100%; height:140px; object-fit:cover; display:block; }
.bau-pg-thumb.is-active { outline: 2px solid #111; }
.bau-pg-more { position: relative; border:none; padding:0; background:transparent; border-radius:12px; overflow:hidden; cursor:pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.06); display:flex; align-items:flex-end; justify-content:center; }
.bau-pg-more::before { content:''; position:absolute; inset:0; background: linear-gradient( to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4)); }
.bau-pg-more .bau-plus { position:absolute; left:10px; top:10px; width:24px; height:24px; border-radius:999px; background:#fff; color:#000; display:flex; align-items:center; justify-content:center; font-weight:700; }
.bau-pg-more { color:#fff; font-weight:700; }
.bau-video-btn { backdrop-filter: blur(3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.bau-video-btn::before { content:'\25CF'; display:inline-block; width:12px; height:12px; margin-right:6px; border-radius:999px; background:#000; color:transparent; box-shadow: 0 0 0 2px #000 inset; }
.bau-gallery-dialog { position:relative; }
.bau-gallery-content { position:relative; padding: 0; background: transparent; border-radius: 12px; }
.bau-gallery-current { max-width:90vw; max-height:80vh; display:block; margin:auto; border-radius:12px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.bau-gallery-arrow { position:absolute; top:50%; transform: translateY(-50%); width:36px; height:36px; border:none; border-radius:999px; background: rgba(0,0,0,0.7); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.bau-gallery-arrow:hover { background: #000; }
.bau-gallery-overlay { background: rgba(0,0,0,0.8); }
.bau-gallery-close { background: #fff; width: 28px; height: 28px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.bau-gallery-prev { left:20px; }
.bau-gallery-next { right:20px; }

.bau-pp-bar { position: static; display:flex; align-items:center; justify-content:center; gap: 12px; padding: 8px 12px; background: rgba(20,20,20,0.65); color:#fff; border-radius: 8px; margin-top: 8px; }
.bau-pp-left { display:inline-flex; align-items:center; gap: 8px; }
.bau-pp-center { order: 2; text-align: center; font-size: 12px; opacity: 0.95; }
.bau-pp-btn { border: 1px solid rgba(255,255,255,0.35); width:34px; height:34px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background: rgba(255,255,255,0.10); color:#fff; cursor:pointer; font-size: 14px; line-height: 1; }
.bau-pp-btn:hover { background: rgba(255,255,255,0.22); }
.bau-pp-counter { color:#fff; }
.bau-pp-close { display: inline-flex; }
.bau-gallery-close { display: none; }

@media (max-width: 600px) { .bau-pp-bar { padding: 6px 8px; margin-top: 6px; gap: 10px; } .bau-pp-btn { width:30px; height:30px; font-size: 13px; } .bau-pp-center { font-size: 11px; } }

video.bau-video { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 12px; object-fit: contain; }

@media (max-width: 900px) { .bau-pg-current { height: 340px; } .bau-pg-thumbs { grid-template-columns: repeat(3, 1fr); } .bau-pg-thumbs .bau-pg-thumb:nth-child(n+3) { display: none; } }

.bau-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

@media (min-width: 520px) and (max-width: 739px) {
    .bau-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 740px) and (max-width: 1119px) {
    .bau-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1120px) {
    .bau-shop-grid { grid-template-columns: repeat(4, 1fr); }
}


.bau-load-more {
    align-self: center;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .bau-shop { grid-template-columns: 1fr; }
}
.bau-shop-grid .bau-card { opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.bau-shop-grid .bau-card.is-visible { opacity: 1; transform: translateY(0); }

.bau-year-row .bau-year-range { width: 100%; }

/* Skeleton cards */
.bau-card.bau-skeleton { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.bau-skel-img, .bau-skel-line, .bau-skel-pill { position: relative; overflow: hidden; background: #f2f2f2; border-radius: 8px; }
.bau-skel-img { height: 220px; border-radius: 18px 18px 0 0; }
.bau-skel-pill { position: absolute; top: 14px; left: 14px; width: 110px; height: 18px; border-radius: 999px; }
.bau-skel-line { height: 14px; margin: 8px 0; }
.bau-skel-anim::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%); animation: bau-skel 1.2s infinite; }
@keyframes bau-skel { 0% { transform: translateX(-100%);} 100% { transform: translateX(100%);} }
.Toastify__toast .toast-close { position: absolute; right: 8px; top: 6px; background: transparent; border: none; width: 24px; height: 24px; border-radius: 6px; color: #fff; font-weight: 700; opacity: 0.85; }
.Toastify__toast .toast-close:hover { opacity: 1; background: transparent !important; box-shadow: none !important; }
.Toastify__toast .toast-close:focus { background: transparent !important; outline: none; box-shadow: none !important; }
.toastify.toastify-right { right: 10px !important; }
.Toastify__toast { position: relative; padding: 10px 40px 12px 44px; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.toastify { z-index: 10000 !important; position: fixed !important; }
.toastify.toastify-right { right: 12px !important; }
.toastify.toastify-top { top: 12px !important; }
.Toastify__toast.success::before { content: '\2713'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 999px; background: #fff; color: #00d264; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.Toastify__toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.85); width: 0; animation: toastProgress var(--toast-dur, 3000ms) linear forwards; }
@keyframes toastProgress { from { width: 0; } to { width: 100%; } }
