/* --- Modern Alza-style Card (Global) --- */
.product-card-modern {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    /* Ensure text alignment is correct for homepage */
}

.product-card-modern:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--techguru-base);
    transform: translateY(-2px);
    z-index: 2;
}

/* Image Area */
.product-card-modern__image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-card-modern__image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card-modern:hover .product-card-modern__image img {
    transform: scale(1.08);
}

/* Badges */
.product-card-modern__badges {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.product-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

.product-badge.new {
    background-color: var(--techguru-base);
}

.product-badge.used {
    background-color: #ffc107;
    color: #333;
}

/* Content */
.product-card-modern__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-modern__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--thm-black, #333);
    margin-bottom: 10px;
    line-height: 1.4;
    height: 42px;
    /* Limit to 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-modern__title a {
    color: inherit;
    transition: color 0.2s;
    text-decoration: none;
}

.product-card-modern__title a:hover {
    color: var(--techguru-base);
}

/* Description / Specs */
.product-card-modern__description {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price & Actions */
.product-card-modern__footer {
    margin-top: auto;
}

.product-card-modern__price {
    font-size: 20px;
    font-weight: 800;
    color: var(--thm-black, #333);
    margin-bottom: 15px;
    display: block;
}

.product-card-modern__stock {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card-modern__stock.in-stock {
    color: #28a745;
}

.product-card-modern__stock.out-stock {
    color: #dc3545;
}

/* Button */
.product-card-modern__btn {
    width: 100%;
    padding: 10px;
    border: 2px solid rgba(var(--techguru-base-rgb), 0.1);
    background-color: transparent;
    color: var(--techguru-base);
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    cursor: pointer;
}

.product-card-modern__btn:hover {
    background-color: var(--techguru-base);
    color: #fff;
    border-color: var(--techguru-base);
}

/* Fly Animation Image */
.fly-img {
    position: fixed;
    z-index: 99999;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}