.product-card {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}
.product-card:hover {
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}
.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.product-category {
    font-size: 13px;
    color: gray;
}
.product-title {
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
}
.product-rating {
    font-size: 14px;
    color: #aaa;
}
.product-rating i {
    color: #ccc;
}
.product-price {
    color: #00a651;
    font-weight: bold;
    font-size: 20px;
    margin: 8px 0;
}
.product-button {
    background-color: #2fb57e;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}
.product-button:hover {
    background-color: #218838;
    color: #fff;
}
.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.favorite-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}
.product-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.product-main-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.product-hover-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-hover-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.product-hover-image.active {
    opacity: 1;
}

.product-card:hover .product-main-image {
    opacity: 0;
}

.product-card:hover .product-hover-image {
    opacity: 0;
}

.product-card:hover .product-hover-image.active {
    opacity: 1 !important;
}

.product-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.product-thumbnails::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.product-card:hover .product-thumbnails {
    opacity: 1;
}

.thumbnail-item {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    flex-shrink: 0; /* Küçülmesin */
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #28a745;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 250px;
}
.product-rating {
    font-size: 14px;
    color: #aaa;
}
.product-rating i {
    color: #ccc;
}