/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: block;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f3f3;
    overflow: hidden;
}

.product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__img-wrap img {
    transform: scale(1.04);
}

.product-card__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background var(--transition);
    z-index: 1;
}

.product-card__fav:hover { background: #fff0f2; }
.product-card__fav img { width: 14px; height: 14px; }

.product-card__body { padding: 14px; }

.product-card__brand {
    font-size: 10px;
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
}

.product-card__name {
    font-size: 13px;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: var(--color-accent);
}

.product-card__old-price {
    font-size: 12px;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-left: 5px;
}

.product-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.product-card__category {
    display: inline-block;
    font-size: 10px;
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.product-card__category:hover {
    color: var(--color-accent);
}

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 11px;
    font-weight: var(--fw-bold);
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 1;
    letter-spacing: 0.03em;
}

/* ===== CATEGORY CARD ===== */
.category-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}

.category-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card__img { transform: scale(1.06); }

.category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}

.category-card__name {
    position: relative;
    z-index: 1;
    color: var(--color-white);
    font-size: 16px;
    font-weight: var(--fw-semibold);
    padding: 16px;
}

/* ===== BRAND CARD ===== */
.brand-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.brand-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-card__logo {
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(1);
    transition: opacity var(--transition), filter var(--transition);
}

.brand-card:hover .brand-card__logo {
    opacity: 1;
    filter: grayscale(0);
}

.brand-card__name {
    font-size: 15px;
    font-weight: var(--fw-bold);
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.brand-card__country {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ===== FAVORITES CARD ACTIONS ===== */
.favorites-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.favorites-card__actions .btn {
    flex: 1;
    justify-content: center;
}

.btn-remove-fav {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-btn);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: var(--fw-semibold);
    padding: 7px 12px;
    background: transparent;
    transition: border-color var(--transition), color var(--transition);
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-remove-fav:hover {
    border-color: #c0392b;
    color: #c0392b;
}
