.tiles1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.0em, 1fr));
    gap: 1.5em;
}

.tile1 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 5px 0 5px;
    border-radius: 12px;
    border: 2px solid #f4f5f7;
    box-sizing: border-box;
    max-width: 320px;
    max-height: 185px;
    min-width: 160px;
    min-height: 160px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: top;
    text-align: center;
    overflow: hidden;
}

.tile1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
}

.tile1 > * {
    position: relative;
    z-index: 2;
}

.tile-overlay-0 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tile-overlay-1 {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e0f0 100%);
}

.tile-overlay-2 {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

.tile-overlay-3 {
    background: linear-gradient(135deg, #fef9f3 0%, #f2e8d5 100%);
}

.tile-overlay-4 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.tile-overlay-5 {
    background: linear-gradient(135deg, #fdf4f0 0%, #fce7dc 100%);
}

.tile-overlay-6 {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.tile-overlay-7 {
    background: linear-gradient(135deg, #f5f3ff 0%, #ddd6fe 100%);
}

.tile1 img {
    width: auto;
    height: 105px;
    flex-shrink: 0;
    opacity: 1;
    position: absolute;
    bottom: 0;
}

.tile1-title {
    font-size: 15px;
    font-weight: 600;
    color: #0C0F13;
    line-height: 1.1em;
    width: 100%;
    text-align: left;
}

.tile1-count {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #ed1c24;
    opacity: 0.7;
}

.tile1:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ed1c24;
}

.tile1:hover .tile1-title {
    color: #ed1c24;
}

.hvr-grow-shadow2 {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-property: box-shadow, transform;
    transition-property: box-shadow, transform;
    margin: 3px 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.3em;
}

.hvr-grow-shadow2 .tile-brand-title {
    transition: opacity 0.3s ease;
    padding: 3px 10px;
    display: block;
    text-align: center;
}

.hvr-grow-shadow2:hover,
.hvr-grow-shadow2:focus,
.hvr-grow-shadow2:active {
    color: #515151;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    background-color: white;
    opacity: 1;
    z-index: 9;
}

.hvr-grow-shadow2 .tile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.hvr-grow-shadow2 img {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    object-fit: contain;
}

.hvr-grow-shadow2:hover img {
    animation: showImage 0.5s forwards;
}

.hvr-grow-shadow2:hover .tile-brand-title {
    animation: hideText 0.5s forwards;
}

.hvr-grow-shadow2:not(:has(img)):hover .tile-brand-title {
    animation: none;
    opacity: 1;
}

.hvr-grow-shadow2 img[src=""]:hover ~ .tile-brand-title,
.hvr-grow-shadow2 img:not([src]):hover ~ .tile-brand-title {
    opacity: 1 !important;
    animation: none !important;
}

@keyframes hideText {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes showImage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
