/* General structural card layout */
.skd-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s cubic-bezier(.16,1,.3,1), background-color .3s ease, border-color .3s ease;
    box-sizing: border-box;
}

/* absolute clickable link overlay for the entire card */
.skd-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits above everything except actions */
}

/* Ensure actions and inner items with explicit actions stay clickable above card link */
.skd-product-actions,
.skd-product-badge {
    position: relative;
    z-index: 3;
}

.skd-product-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 4;
}

.skd-product-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f7f7f7;
}

.skd-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.skd-product-info {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    flex-grow: 1;
}

.skd-product-info h3 {
    line-height: 1.4;
    font-weight: 600;
}

.skd-product-complementary {
    line-height: 1.3;
}

.skd-product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.skd-product-original-price {
    font-weight: 500;
    text-decoration: line-through;
}

.skd-product-price {
    font-weight: 700;
}

.skd-product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.skd-product-button {
    display: inline-block;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.skd-product-button.skd-loading {
    opacity: 0.6;
    pointer-events: none;
}

.skd-more-info-button {
    display: inline-block;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #2b2a26;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Hover lift effect only if card is linked */
.skd-has-card-link {
    cursor: pointer;
}
.skd-product-card:hover {
    transform: translateY(-5px);
}
