/* Reusable Product Card Component */

.product-card {
    flex: 0 0 250px;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    border: 1px solid #F1F5F9;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.product-card .product-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card .product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #13618C 0%, #297B35 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    letter-spacing: 0.02em;
}

.product-card .product-slider {
    position: relative;
}

.product-card .slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card .slider-image.active {
    opacity: 1;
    z-index: 5;
}

.product-card .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 30px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.product-card .slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.product-card .slider-dots .dot.active {
    background-color: #13618C;
}

.product-card .product-info {
    padding: 14px 16px;
    position: relative;
    border-top: 1px solid #F1F5F9;
}

.product-card .product-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 5px;
    line-height: 1.4;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Default variant indicator */
.pc-variant-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.pc-color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.pc-variant-tag {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2px 8px;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.pc-brand-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px;
    flex-shrink: 0;
    display: block;
}
.pc-brand-wrap {
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}
.pc-brand-wrap::after {
    content: attr(data-brand);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #1e293b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 10;
}
.pc-brand-wrap:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-card .stars {
    display: flex;
    gap: 2px;
}

.product-card .star {
    font-size: 2vh;
    color: #F59E0B;
}

.product-card .star.empty {
    color: #E5E7EB;
}

.product-card .review-count {
    font-size: 11px;
    color: #94A3B8;
}

.product-card .product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 5px;
}

.product-card .original-price {
    font-size: 14px;
    font-weight: 500;
    color: #667085;
    text-decoration: line-through;
}

.product-card .sale-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    color: #13618C;
}

.product-card .sale-price .currency {
    font-size: 20px;
    font-weight: 500;
}

.product-card .sale-price .price-amount {
    font-size: 25px;
    font-weight: 700;
}

.product-card .add-to-cart {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #13618C 0%, #297B35 100%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(19, 97, 140, 0.25);
}

.product-card .add-to-cart:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(19, 97, 140, 0.35);
}

.product-card .add-to-cart img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.product-card .add-to-cart:hover img {
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card .product-image {
        height: 200px;
    }

    .product-card .product-info {
        padding: 12px;
    }

    .product-card .product-info h3 {
        font-size: 12px;
        min-height: 24px;
    }

    .product-card .sale-price .currency {
        font-size: 14px;
    }

    .product-card .sale-price .price-amount {
        font-size: 18px;
    }

    .product-card .original-price {
        font-size: 12px;
    }

    .product-card .add-to-cart {
        width: 34px;
        height: 34px;
        bottom: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .product-card .product-image {
        height: 200px;
    }

    .product-card .product-info {
        padding: 10px;
    }

    .product-card .product-info h3 {
        font-size: 11px;
        min-height: 20px;
    }

    .product-card .sale-price .currency {
        font-size: 13px;
    }

    .product-card .sale-price .price-amount {
        font-size: 16px;
    }

    .product-card .add-to-cart {
        width: 30px;
        height: 30px;
        bottom: 10px;
        right: 10px;
    }

    .product-card .add-to-cart img {
        width: 16px;
        height: 16px;
    }
}
