/* ============================================
   ARTWORK SALE PAGE — sale.css
   ============================================ */

/* HOW TO BUY BAR */
.buy-info-bar {
    background: var(--dark3);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.buy-info-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.buy-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 300;
}
.buy-info-item i { color: var(--gold); font-size: 16px; }
.buy-info-arrow { color: rgba(201,168,76,0.3); font-size: 12px; }

/* CONTACT QUICK BAR */
.contact-quick-bar {
    background: rgba(201,168,76,0.06);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.cqb-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.cqb-wa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #25D366;
    color: #fff !important;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}
.cqb-wa:hover { background: #1fb558; }
.cqb-email {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold);
    color: #1a0a00 !important;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}
.cqb-email:hover { background: var(--gold-light); }

/* SALE SECTION */
.sale-section { padding: 70px 0 100px; background: var(--dark); }

/* SALE GRID */
.sale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* SALE CARD */
.sale-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    transition: all 0.4s;
    overflow: hidden;
}
.sale-card:hover {
    border-color: rgba(201,168,76,0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.sale-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.sale-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}
.sale-card:hover .sale-img-wrap img { transform: scale(1.06); }
.sale-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: #1a0a00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
}
.sale-badge-digital { background: #6c63ff; color: #fff; }
.sale-info { padding: 22px; }
.sale-cat {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}
.sale-info h4 {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 8px;
    font-family: 'Cormorant Garamond', serif;
}
.sale-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 16px;
}
.sale-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sale-price {
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-weight: 600;
}
.sale-btns { display: flex; gap: 8px; }
.sale-wa, .sale-mail {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    color: var(--text-muted) !important;
}
.sale-wa:hover { background: #25D366; border-color: #25D366; color: #fff !important; }
.sale-mail:hover { background: var(--gold); border-color: var(--gold); color: #1a0a00 !important; }
.buy-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.buy-btn:hover { background: var(--gold); color: #1a0a00; }

/* BUY MODAL */
.buy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.buy-modal.open { display: flex; }
.buy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}
.buy-modal-box {
    position: relative;
    z-index: 2;
    background: var(--dark2);
    border: 1px solid var(--border);
    padding: 50px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.buy-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.buy-modal-close:hover { background: var(--gold); color: #1a0a00; }
.bm-icon { font-size: 40px; color: var(--gold); margin-bottom: 16px; }
.buy-modal-box h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 8px;
}
.bm-price {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
}
.bm-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 300;
}
.bm-contact-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.bm-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff !important;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
.bm-wa-btn:hover { background: #1fb558; }
.bm-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #1a0a00 !important;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
}
.bm-email-btn:hover { background: var(--gold-light); }
.bm-info {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bm-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bm-info i { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 991px) {
    .sale-grid { grid-template-columns: repeat(2, 1fr); }
    .buy-info-arrow { display: none; }
}
@media (max-width: 576px) {
    .sale-grid { grid-template-columns: 1fr; }
    .buy-modal-box { padding: 35px 20px; }
    .bm-contact-btns { flex-direction: column; }
    .cqb-inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== IMAGE CLICK HINT ===== */
.sale-img-wrap { cursor: pointer; }
.img-click-hint {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 46px; height: 46px;
    background: rgba(201,168,76,0.85);
    color: #1a0a00;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}
.sale-img-wrap:hover .img-click-hint { opacity: 1; }

/* ===== DETAIL MODAL ===== */
.detail-modal {
    position: fixed; inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.detail-modal.open { display: flex; }
.detail-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.9);
    cursor: pointer;
}
.detail-box {
    position: relative; z-index: 2;
    background: var(--dark2);
    border: 1px solid var(--border);
    display: flex;
    gap: 0;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}
.detail-img-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.detail-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 90vh;
}
.detail-info-col {
    width: 320px;
    flex-shrink: 0;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}
.detail-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border: none; color: #fff;
    font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
    z-index: 3;
}
.detail-close:hover { background: var(--gold); color: #1a0a00; }
.detail-info-col .sale-cat { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.detail-info-col h3 { font-size: 1.6rem; font-weight: 300; color: #fff; margin-bottom: 12px; }
.detail-price { font-size: 2rem; font-family: 'Cormorant Garamond', serif; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.detail-info-col p { font-size: 13.5px; color: rgba(255,255,255,0.55); line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.detail-btns { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 768px) {
    .detail-box { flex-direction: column; max-height: 95vh; overflow-y: auto; }
    .detail-img-col img { max-height: 260px; }
    .detail-info-col { width: 100%; padding: 24px 20px; }
}

/* HOME PAGE SALE SECTION */
.home-sale-section {
    padding: 110px 0;
    background: var(--dark2);
}
.home-sale-section .section-head { margin-bottom: 50px; }

/* ============ EXTRA MOBILE FIXES — sale.css ============ */
@media (max-width: 768px) {
    .sale-section { padding: 40px 0 70px; }
    .buy-info-bar { padding: 16px 0; }
    .contact-quick-bar .cqb-inner { flex-direction: column; text-align: center; gap: 10px; }
    .detail-box { flex-direction: column; max-height: 95vh; overflow-y: auto; }
    .detail-img-col img { max-height: 220px; }
    .detail-info-col { width: 100%; padding: 20px 16px; }
    .filter-tabs { gap: 6px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .filter-btn { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 576px) {
    .sale-grid { grid-template-columns: 1fr; }
    .sale-img-wrap { height: 200px; }
    .buy-modal-box { padding: 28px 16px; }
    .bm-contact-btns { flex-direction: column; }
    .bm-wa-btn, .bm-email-btn { justify-content: center; }
}
