/* Card Wrapper */
.product-card-wrapper {
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.product-card-wrapper:hover {
    box-shadow: 0 10px 15px -3px var(--theme-shadow);
    border-color: var(--theme-accent-primary);
}

/* Image Block */
.product-card-image-block {
    position: relative;
    padding: 24px;
    background-color: var(--theme-bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.product-card-image-block .product-image {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.product-card-image-block:hover .product-image {
    filter: blur(3px);
}

/* Badges */
.product-card-badge {
    position: absolute;
    top: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    z-index: 1;
}

.product-card-badge.new {
    left: 16px;
    background-color: var(--theme-success);
    color: #FFFFFF;
}

.product-card-badge.discount {
    left: 16px;
    background-color: var(--theme-danger);
    color: #FFFFFF;
}

.product-card-badge.power-type {
    right: 16px;
    background-color: var(--theme-surface);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
}

/* Star Rating */
.product-card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.star-icon {
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

.star-icon path {
    stroke-width: 0;
}

.star-icon.filled path {
    fill: #FFD700;
}

.star-icon.empty path {
    fill: var(--theme-border);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: var(--theme-surface);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--theme-shadow);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--theme-text-secondary);
    fill: none;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

.favorite-btn:hover {
    transform: translateY(-2px);
}

.favorite-btn:hover svg {
    stroke: var(--theme-danger);
    fill: var(--theme-danger);
}

/* Favorited state */
.favorite-btn.favorited svg,
.favorite-btn.is-favorite svg {
    stroke: var(--theme-danger);
    fill: var(--theme-danger);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--theme-accent-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.product-card-image-block:hover .quick-view-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Information Block */
.product-card-info-block {
    padding: 16px;
    flex-grow: 1;
}

.product-card-brand {
    color: var(--theme-accent-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-card-title {
    color: var(--theme-text-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    min-height: 42px;
}

.product-card-characteristics {
    font-size: 12px;
    color: var(--theme-text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
    min-height: 36px;
}

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

.product-card-rating .stars {
    color: #FFD700;
    font-size: 14px;
    margin-right: 4px;
}

.product-card-rating .reviews {
    font-size: 12px;
    color: var(--theme-text-secondary);
}

/* Price and Buy Block */
.product-card-price-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 16px 16px;
}

.product-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-card-price .old-price-text {
    font-size: 14px;
    color: var(--theme-text-secondary);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.product-card-price .current-price-text {
    color: var(--theme-text-primary);
    font-size: 20px;
    font-weight: 700;
}

.add-to-cart-btn {
    background-color: var(--theme-bg-secondary);
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--theme-shadow);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--theme-text-secondary);
    transition: stroke 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--theme-accent-primary);
    transform: translateY(-2px);
}

.add-to-cart-btn:hover svg {
    stroke: #FFFFFF;
}
