
/* Modern Card Layout (User Requested structure) */
:root {
    --primary: #c9a763;
    --text-muted: #888888;
}

/* ── 120fps scroll smoothness ───────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.collections-grid {
    /* GPU-composited stacking context — isolates paint from rest of page */
    will-change: contents;
    contain: layout style;
}

.modern-card {
    background: rgba(9, 19, 32, 0.8) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #eaeaea !important;
    /* Use transform only (GPU composited) — NOT box-shadow in transition */
    transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Promote each card to its own compositor layer */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Contain layout so hover doesn't reflow siblings */
    contain: layout style;
}

.modern-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 14px 32px rgba(0,0,0,0.18) !important;
}


.modern-card .img-container {
    position: relative !important;
    aspect-ratio: 1/1 !important;
    overflow: hidden !important;
    background: #f8f8f8;
}

.modern-card .img-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.modern-card .img-container:hover img {
    transform: scale(1.05) !important;
}

.modern-card .card-overlays {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 2 !important;
}

.modern-card .img-container:hover .card-overlays,
.modern-card .card-overlays:hover {
    opacity: 1 !important;
}

.modern-card .overlay-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)) !important;
    color: #0f172a !important;
    font-size: 1.4rem !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

.modern-card .overlay-btn i {
    color: #0f172a !important;
    transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease !important;
}

.modern-card .overlay-btn.like-btn:hover {
    transform: scale(1.25) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modern-card .overlay-btn.like-btn:hover i {
    color: #ef4444 !important;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.65)) !important;
    transform: scale(1.15) !important;
}

.modern-card .overlay-btn.eye-btn:hover {
    transform: scale(1.25) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modern-card .overlay-btn.eye-btn:hover i {
    color: #2563eb !important;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.65)) !important;
    transform: scale(1.15) !important;
}

.modern-card .card-details {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-grow: 1;
}

.modern-card .card-cat {
    font-size: 0.75rem !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.modern-card .like-count-val {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff !important;
}

.modern-card .card-name {
    font-size: 1rem !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1.3;
}

.modern-card .card-price-row {
    margin-bottom: 5px;
}

.modern-card .curr-price {
    font-size: 1.1rem !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.modern-card .view-btn {
    margin-top: auto !important;
    width: 100% !important;
    padding: 12px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: background 0.2s, box-shadow 0.2s !important;
    text-decoration: none !important;
}

.modern-card .view-btn:hover {
    background: #b59556 !important;
    box-shadow: 0 4px 15px rgba(201, 167, 99, 0.4) !important;
}

/* Make sure grid aligns them properly */
.collections-grid {
    align-items: stretch;
}
