.home-products {
    padding: var(--spacing-lg) 0;
    background-color: var(--background-light);
}

.section-title {
    text-align: left;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.section-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
    padding-left: 1px;
}

.home-products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: var(--spacing-lg);
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    z-index: 1;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-content {
    padding: 15px;
    background: var(--white);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.info-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-right {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 100%;
    min-height: 52px;
    padding: 0 12px;
}

.product-title,
.woocommerce .product-title,
.products .product .product-title {
    margin: 0;
    width: 100%;
}

.product-title a,
.woocommerce .product-title a,
.products .product .product-title a,
.woocommerce-page .products .product .product-title a {
    display: block;
    color: var(--text-color, #202020);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700 !important;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;
    font-family: var(--primary-font);
}

.product-title a:hover,
.woocommerce .product-title a:hover,
.products .product .product-title a:hover {
    color: var(--primary-accent, #FF3B30);
}

.product-price {
    font-family: var(--primary-font);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    font-size: 17px;
    margin: auto 0;
}

.product-price ins {
    font-size: var(--text-sm);
    font-weight: 600;
    font-size: 17px;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1;
}

.product-price del {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
}

.badge-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.favorite-badge,
.rating-badge {
    font-family: var(--primary-font);
    font-size: var(--text-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    width: fit-content;
    white-space: nowrap;
}

.favorite-badge {
    background-color: #FEE2E2;
    color: #EF4444;
}

.rating-badge {
    background-color: #FEF3C7;
    color: #D97706;
}

.color-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.color-dot:hover {
    opacity: 0.7;
}

.color-dot.active {
    opacity: 1;
}

.color-dot[style*="background-color: #ffffff"],
.color-dot[style*="background-color: #FFFFFF"],
.color-dot[style*="background-color: rgb(255, 255, 255)"] {
    border: 1px solid rgba(0,0,0,0.1);
}

/* Animasyon için */
@keyframes dotPulse {
    0% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
    100% { transform: scaleY(1); }
}

/* Seçili rengin yanındaki renkler için hafif animasyon */
.color-dot.active + .color-dot,
.color-dot.active:previous-sibling {
    animation: dotPulse 2s ease-in-out infinite;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .home-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media screen and (max-width: 768px) {
    .home-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 590px) {
    .home-products .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
    }
}

/* Hover Effect */
.product-card::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -50%;
    width: 100%;
    height: 250%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(45deg);
    z-index: 5;
    opacity: 0;
    transition: none;
    pointer-events: none;
    will-change: transform, opacity;
}

.product-card:hover::after {
    opacity: 1;
    animation: shine-diagonal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes shine-diagonal {
    0% {
        top: -150%;
        left: -50%;
        opacity: 0.8;
    }
    100% {
        top: 150%;
        left: 150%;
        opacity: 0;
    }
}

/* Bilgi alanı hover efekti */
.product-content {
    padding: 20px;
    background: var(--white);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Hover overlay - Tam siyah arkaplan */
.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 0, 0);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* Buton container */
.hover-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

/* Genel hover buton stili */
.hover-button {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-family: var(--primary-font);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Favori butonu özel stilleri */
.hover-button.wishlist-button {
    color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Favorilere eklenmiş durumu */
.hover-button.wishlist-button.in-wishlist {
    background: transparent;
    color: #ffffff;
    animation: likeAnimation 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover durumları */
.hover-button.wishlist-button:hover {
    color: #FF3B30;
    background: rgba(255, 255, 255, 0.1);
}

/* Favorilere eklenmiş durumda hover */
.hover-button.wishlist-button.in-wishlist:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FF3B30;
}

/* Favori butonu ikonu */
.hover-button.wishlist-button svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover durumunda ikon */
.hover-button.wishlist-button:hover svg {
    fill: #FF3B30;
}

/* Favorilere eklenmiş durumda ikon */
.hover-button.wishlist-button.in-wishlist svg {
    fill: #ffffff;
    animation: iconPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-button.wishlist-button.in-wishlist:hover svg {
    fill: #FF3B30;
}

/* Loading durumu */
.hover-button.wishlist-button.loading {
    opacity: 1;
    pointer-events: none;
}

/* Processing durumu */
.hover-button.wishlist-button.processing {
    pointer-events: none;
}

/* Rozet Container */
.product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Ortak Rozet Stilleri */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    width: auto;
    white-space: nowrap;
}

/* Favori Rozet Stilleri */
.wishlist-count-badge {
    composes: badge;
    background: #FFE8E8;
    color: #FF3B30;
}

/* Değerlendirme Rozet Stilleri */
.rating-badge {
    composes: badge;
    background: #FFF8E8;
    color: #FFB800;
    font-size: 12px;
    padding: 4px 6px;
    gap: 2px;
}

/* Rozet İkonları */
.badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.badge svg path {
    fill: currentColor;
}

/* Ürün başlığı stilleri */
.product-title {
    margin: 0;
    width: 100%;
}

.product-title a {
    display: block;
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 16px;
}

/* Info container'ı için düzenleme */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.info-left {
    flex: 1;
    min-width: 0; /* Flex-basis'in 0'dan küçük olmasına izin ver */
    overflow: hidden; /* Taşan içeriği gizle */
}

.info-right {
    flex-shrink: 0; /* Sağ tarafın küçülmesini engelle */
}

/* Yıldız stilleri */
.star {
    display: flex;
    align-items: center;
}

.star svg {
    width: 12px;
    height: 12px;
}

.star-filled svg {
    fill: #FFB800; /* Dolu yıldız rengi */
}

.star-empty svg {
    fill: #202020; /* Boş yıldız rengi */
}

/* Hover butonları için ortak stiller */
.hover-button {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgb(255, 255, 255) !important;
    font-family: var(--primary-font);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

/* Hover durumu */
.hover-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255) !important;
}

/* İkonlar için stil */
.hover-button svg {
    fill: rgb(255, 255, 255);
    width: 20px;
    height: 20px;
}

/* Divider */
.hover-buttons::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hover durumları */
.product-content:hover::before,
.product-content:hover .hover-buttons {
    opacity: 1;
    pointer-events: auto;
}

/* Hover butonları için ortak stiller */
.product-content .hover-buttons .hover-button,
.woocommerce .product-content .hover-buttons .hover-button {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgb(255, 255, 255) !important;
    font-family: var(--primary-font);
    font-size: var(--text-base);
    font-weight: 500;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
}

/* Hover durumu */
.product-content .hover-buttons .hover-button:hover,
.woocommerce .product-content .hover-buttons .hover-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgb(255, 255, 255) !important;
}

/* İkonlar için stil */
.product-content .hover-buttons .hover-button svg,
.woocommerce .product-content .hover-buttons .hover-button svg {
    fill: rgb(255, 255, 255) !important;
    width: 20px;
    height: 20px;
}

/* Hover overlay - Tam siyah arkaplan */
.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0, 0, 0) !important;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

/* Buton container */
.product-content .hover-buttons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

/* Hover durumları */
.product-content:hover::before {
    opacity: 1;
}

.product-content:hover .hover-buttons {
    opacity: 1;
    pointer-events: auto;
}

/* Favorilerden çıkar butonu için özel stil */
.hover-button.in-wishlist,
.woocommerce .hover-button.in-wishlist,
.product-content .hover-buttons .hover-button.in-wishlist {
    color: #FF3B30 !important;
}

/* Favorilerden çıkar butonunun hover durumu */
.hover-button.in-wishlist:hover,
.woocommerce .hover-button.in-wishlist:hover,
.product-content .hover-buttons .hover-button.in-wishlist:hover {
    background: rgba(255, 59, 48, 0.1) !important;
    color: #FF3B30 !important;
}

/* Favorilerden çıkar butonunun ikonu */
.hover-button.in-wishlist svg,
.woocommerce .hover-button.in-wishlist svg,
.product-content .hover-buttons .hover-button.in-wishlist svg {
    fill: #FF3B30 !important;
}

/* Loading durumu */
.hover-button.wishlist-button.loading {
    opacity: 1;
    pointer-events: none;
}

/* Processing durumu */
.hover-button.wishlist-button.processing {
    pointer-events: none;
}

/* Favori animasyonları */
@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.product-images {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.variation-image {
    opacity: 0;
}

.variation-image.active {
    opacity: 1;
}

.color-dot.active {
    border: 2px solid var(--primary-accent);
    transform: scale(1.1);
}

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

.product-card .discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #E31837; /* Net ve klasik bir kırmızı */
    color: #fff;
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.15);
    animation: badgePulse 3s ease-in-out infinite;
    min-width: 120px;
}

/* İndirim yazısı ve ikon container'ı */
.product-card .discount-badge .discount-text {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    white-space: nowrap;
}

.product-card .discount-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    order: -1;
}

/* Sayaç stili */
.product-card .countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.product-card .countdown-icon {
    opacity: 0.9;
    width: 14px;
    height: 14px;
}

/* Animasyonlar */
@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.02);
    }
}

/* Mobil için daha küçük badge */
@media (max-width: 768px) {
    .product-card .discount-badge {
        font-size: 11px;
        padding: 8px;
        top: 8px;
        left: 8px;
        min-width: 100px;
    }
    
    .product-card .countdown {
        font-size: 10px;
        padding-top: 6px;
    }
}

/* z-index kontrolü */
.product-card:hover .discount-badge {
    z-index: 3;
}

/* Ürün sayfası için badge stili */
.woocommerce .product-single .product-discount-badge,
.product-single .product-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #E31837;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.15);
    animation: badgePulse 3s ease-in-out infinite;
}

.woocommerce .product-single .product-discount-badge .discount-text,
.product-single .product-discount-badge .discount-text {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.woocommerce .product-single .product-discount-badge svg,
.product-single .product-discount-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    order: -1;
}

.woocommerce .product-single .product-discount-badge .countdown,
.product-single .product-discount-badge .countdown {
    font-size: 14px;
    font-weight: 500;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobil için ürün sayfası badge stili */
@media (max-width: 768px) {
    .woocommerce .product-single .product-discount-badge,
    .product-single .product-discount-badge {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .woocommerce .product-single .product-discount-badge .countdown,
    .product-single .product-discount-badge .countdown {
        font-size: 13px;
    }
}

/* Rating badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    background: #FFF8E8;
    color: #FFB800;
}

/* WooCommerce yıldız stilleri */
.star-rating {
    float: none !important;
    margin: 0 !important;
    font-family: star !important;
    font-size: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    width: 5.4em !important;
    color: #FFB800 !important;
}

.star-rating::before {
    content: "\53\53\53\53\53" !important;
    color: #FFB800 !important;
    opacity: 0.3 !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
}

.star-rating span {
    overflow: hidden !important;
    float: left !important;
    top: 0 !important;
    left: 0 !important;
    position: absolute !important;
    padding-top: 1.5em !important;
}

.star-rating span::before {
    content: "\53\53\53\53\53" !important;
    top: 0 !important;
    position: absolute !important;
    left: 0 !important;
    color: #FFB800 !important;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.section-header-left {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--heading-color);
}

.section-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
}

.section-header-right {
    display: flex;
    align-items: center;
}

.view-all-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--header-button-color);
    color: var(--primary-accent);
    border: 1px solid var(--header-button-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-all-button:hover {
    background: transparent;
    color: var(--primary-accent);
}

.view-all-button svg {
    width: 16px;
    height: 16px;
    color: var(--primary-accent);
}

.view-all-button:hover svg {
    color: var(--primary-accent);
}

/* Mobil için düzenleme */
@media (max-width: 768px) {
    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .section-header-left {
        flex: 1;
    }

    .section-header-right {
        flex-shrink: 0;
        margin-top: 4px;
    }

    .section-title,
    .section-header .section-title {
        font-size: 1.55rem;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .section-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .view-all-button {
        width: auto;
        justify-content: center;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Daha küçük ekranlar için ek düzenleme */
@media (max-width: 480px) {
    .view-all-button span {
        display: none;
    }
    
    .view-all-button {
        padding: 0.4rem;
    }
    
    .view-all-button svg {
        margin: 0;
    }
}

/* Yıldız stilleri */
.star-rating {
    float: none;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5em;
    font-family: star !important;
    overflow: hidden;
}

.star-rating::before {
    content: "\73\73\73\73\73";
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: #FFB800;
    opacity: 0.3;
}

.star-rating span {
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    overflow: hidden;
    padding-top: 1.5em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    top: 0;
    position: absolute;
    left: 0;
    color: #FFB800;
}

/* Yıldız metnini gizle */
.star-rating strong.rating,
.woocommerce-product-rating strong.rating {
    display: none !important;
}
