/* ==============================================
   Stitch Hybrid Product Card — Global Styles
   Applied across homepage, archive, and related products
   ============================================== */

.stitch-product-card {
    position: relative;
    cursor: pointer;
}

.stitch-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

.stitch-card-link:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* Image Container */
.stitch-card-image {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f0eded;
    margin-bottom: 12px;
}

.stitch-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.stitch-product-card:hover .stitch-card-image img {
    transform: scale(1.1);
}

/* Discount Badge */
.stitch-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    z-index: 2;
}

/* Wishlist Heart */
.stitch-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.stitch-product-card:hover .stitch-wishlist-btn {
    opacity: 1;
}

.stitch-wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.stitch-wishlist-btn.active {
    opacity: 1;
    background: var(--primary);
    color: #fff;
}

.stitch-wishlist-btn.active svg {
    fill: var(--primary);
    stroke: #fff;
}

/* Card Info */
.stitch-card-info {
    padding: 0 2px;
}

.stitch-card-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
}

.stitch-card-link:hover .stitch-card-title {
    color: var(--primary) !important;
}

/* Rating — 5 Gold Stars (pawfecthouse style) */
.stitch-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
}

.stitch-card-rating .stitch-stars {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1px;
}

.stitch-card-rating .stitch-stars svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    flex-shrink: 0;
    display: inline-block !important;
}

.stitch-card-rating .stitch-rating-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-left: 4px;
    white-space: nowrap;
}

.stitch-card-rating .stitch-review-count {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
    white-space: nowrap;
}

/* Price */
.stitch-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stitch-price-current {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
}

.stitch-price-original {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #999 !important;
    text-decoration: line-through !important;
}

/* Responsive */
@media (max-width: 575.98px) {
    .stitch-card-title {
        font-size: 13px !important;
    }

    .stitch-price-current {
        font-size: 14px !important;
    }
}