/* Dashboard detail-hero parity: tuned by owner on iPhone.
   opacity 100, brightness 130, contrast 118, saturation 132,
   darkness 70, zoom 100, X 70, Y 50.
   Existing family WebP only; no additional assets or animations. */
#collectionSection #grid {
    background: #090a0d !important;
}
#collectionSection #grid .card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0a0c0e !important;
    border-color: rgba(217, 173, 82, .16) !important;
}
#collectionSection #grid .card .collection-card-hero-family {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50% !important;
    opacity: 1 !important;
    filter: brightness(1.3) contrast(1.18) saturate(1.22) sepia(.10) !important;
}
#collectionSection #grid .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(7, 8, 10, .70) !important;
}
#collectionSection #grid .card .card-visual {
    background: rgba(7, 8, 10, 0) !important;
}
/* Keep labels, perfume names and ratings readable without obscuring
   the full family photo. All adjustments are local to each card. */
#collectionSection #grid .card .card-body {
    position: relative;
    z-index: 1;
    isolation: isolate;
}
/* No localized backdrop: keep the family photograph unobstructed. */
#collectionSection #grid .card .card-body::before {
    content: none !important;
}
#collectionSection #grid .card .card-category {
    background: transparent !important;
    color: #e9c681 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .98), 0 0 10px rgba(0, 0, 0, .88);
}
#collectionSection #grid .card .card-name {
    color: #fffaf0 !important;
    font-size: calc(1em + 2px) !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, .78);
}
#collectionSection #grid .card .card-rating {
    color: #e8c17a !important;
    opacity: 1 !important;
    -webkit-text-stroke: .65px #e8c17a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
}
#collectionSection #grid .card .use-btn-card,
#collectionSection #grid .card .stock-bottle-indicator {
    position: relative;
    z-index: 1;
}

/* Four focused refinements: stronger type contrast, unified photo grade,
   modest bottle emphasis and tighter card spacing. */
#collectionSection #grid {
    row-gap: 12px !important;
}
#collectionSection #grid .card .card-img {
    transform: scale(1.12);
    transform-origin: center;
}

/* List-only bottle size approved on iPhone: 75px square. Card view unchanged. */
#collectionSection #grid.lista .card .card-visual {
    width: 75px !important;
    height: 75px !important;
    min-width: 75px !important;
    flex: 0 0 75px !important;
    background: transparent !important;
}
#collectionSection #grid.lista .card .card-img {
    width: 90% !important;
    height: 90% !important;
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
    transform: none !important;
}
