/* Ultimate Card Grid Styles */
.product-card-grid {
    display: grid;
    width: 100%;
}

.product-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card *,
.product-card *::before,
.product-card *::after {
    box-sizing: border-box;
}

/* Active Border Styles */
.product-card::after {
    content: '';
    position: absolute;
    z-index: 4;
    pointer-events: none;
    border: 0 solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
}

[data-active-border="yes"] .product-card.is-active::after {
    opacity: 1;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.product-card:hover .product-card-inner {
    transform: scale(1.05);
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card-title {
    margin: 0;
}

.product-card-description {
    margin: 0;
}

.product-card:hover .product-card-content {
    opacity: 0;
    transform: translateY(-20px);
}

.card-buttons-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    padding: 25px;
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover .card-buttons-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.card-button {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .card-buttons-wrapper {
        padding: 15px;
    }
}