/**
 * Advanced Cross Selling - Frontend CSS
 * Modern, temiz ve responsive tasarım
 */

 .acs-cross-selling {
    padding: 60px 0;
    margin-top: 40px;
}

.acs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Başlık */
.acs-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #004750;
    margin-bottom: 40px;
    position: relative;
}

.acs-title span {
    background: #ffffff;
    padding: 0 30px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.acs-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #004750, transparent);
}

/* Ürün Grid - Varsayılan 4 sütun, data-columns attribute ile override edilir */
.acs-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Dinamik sütun sayısı desteği */
.acs-cross-selling[data-columns="2"] .acs-products-grid { grid-template-columns: repeat(2, 1fr); }
.acs-cross-selling[data-columns="3"] .acs-products-grid { grid-template-columns: repeat(3, 1fr); }
.acs-cross-selling[data-columns="4"] .acs-products-grid { grid-template-columns: repeat(4, 1fr); }
.acs-cross-selling[data-columns="5"] .acs-products-grid { grid-template-columns: repeat(5, 1fr); }
.acs-cross-selling[data-columns="6"] .acs-products-grid { grid-template-columns: repeat(6, 1fr); }

/* Ürün Kartı */
.acs-product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.acs-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 71, 80, 0.15);
}

.acs-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Ürün Görseli */
.acs-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.image-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acs-product-card:hover .acs-product-image img {
    transform: scale(1.08);
}

/* Rozetler */
.acs-badge {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    z-index: 2;
}

.acs-badge-sale {
    left: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
}

.acs-badge-new {
    right: 12px;
    background: linear-gradient(135deg, #00d2d3, #00b894);
    color: white;
}

/* Ürün Bilgileri */
.acs-product-info {
    padding: 20px;
}

.acs-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.acs-product-card:hover .acs-product-name {
    color: #004750;
}

/* Fiyat */
.acs-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.acs-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.acs-price-old {
    font-size: 14px;
    color: #b2bec3;
    text-decoration: line-through;
}

/* Sepete Ekle Butonu */
.acs-add-to-cart-form {
    padding: 0 20px 20px;
}

.acs-btn-add-to-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    background: #fff;
    color: #006d7a;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.acs-btn-add-to-cart:hover {
    background: linear-gradient(135deg, #004750, #006d7a);
    border-color: transparent;
    color: #ffffff;
    padding: 5px;
}

.acs-btn-add-to-cart:hover .price {
    color:#ffffff;
}

.acs-btn-add-to-cart svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: 2px solid;
    padding: 3px;
    border-radius: 5px;
}

.acs-btn-add-to-cart .price-block {
    display: flex;
    flex-direction: column;
}

.acs-btn-add-to-cart .price-block .price {
    font-size: 1.6rem;
    font-weight: 700;
}

.acs-btn-add-to-cart .price-block .regular-price {
    font-size: 1.4rem;
}

/* Stokta Yok */
.acs-out-of-stock {
    padding: 0 20px 20px;
}

.acs-out-of-stock span {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #b2bec3;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .acs-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .acs-cross-selling {
        padding: 40px 0;
    }
    
    .acs-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .acs-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .acs-btn-add-to-cart .price-block .price {
        font-size: 1.3rem;
    }
    
    .acs-btn-add-to-cart .price-block .regular-price {
        font-size: 1.1rem;
    }
    
    .acs-products-grid { grid-template-columns: repeat(2, 1fr)!important; }
    
    .acs-cross-selling {
        padding: 30px 0;
    }
    
    .acs-container {
        padding: 0 15px;
    }
    
    .acs-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .acs-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .acs-product-info {
        padding: 12px;
            display: flex;
        flex-direction: column;
        flex: 1;
    }
    
    .acs-product-name {
        font-size: 13px;
        min-height: auto;
        margin-bottom: 8px;
    }
    
    .acs-price {
        font-size: 15px;
    }
    
    .acs-add-to-cart-form {
        padding: 0 12px 12px;
    }
    
    .acs-btn-add-to-cart {
        font-size: 12px;
    }
    
    .acs-btn-add-to-cart svg {
        width: 30px;
        height: 30px;
    }

}

