/* =============================================================== */
/* KAMPANYA BAŞLIĞI STİLLERİ (YENİ) */
/* =============================================================== */
.webreta-campaign-title {
    /* Sağdaki 'Bilgi' başlığı ile aynı stili paylaşıyor */
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 700;
    color: #333;
}

/* Ana Konteyner ve Sütun Yapısı */
.webreta-campaign-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    font-family: sans-serif;
    align-items: stretch; /* Sütunları yukarıdan hizala */
}
/* === DEĞİŞİKLİK: Genişlik kuralı yeni sarmalayıcıya atandı === */
.webreta-products-column {
    width: calc(50% - 15px); 
    box-sizing: border-box;
	padding: 20px;
}
.webreta-sidebar {
    width: calc(50% - 15px);
    box-sizing: border-box;
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Grid Sütunları (Responsive) */
.webreta-products-grid.grid-cols-2 { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px !important;
}
.webreta-products-grid.grid-cols-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px !important;
}


@media (max-width: 992px) {
    .webreta-products-grid.grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .webreta-campaign-container { 
        flex-direction: column; 
    }
    .webreta-products-column, /* Genişlik kuralı güncellendi */
    .webreta-sidebar {
        width: 100%;
    }
    .webreta-products-grid.grid-cols-2,
    .webreta-products-grid.grid-cols-3 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .webreta-product-item .product-name { 
        font-size: 0.85rem !important;
        line-height: 1.2;
    }
    .webreta-product-item .product-price {
        font-size: 1.1em !important;
    }
	
	.webreta-campaign-container {
		gap: 30px;
	}
	
	.webreta-products-column {
		padding: 0;
	}
}

/* =============================================================== */
/* KARE ÜRÜN KUTUSU TASARIMI */
/* =============================================================== */

.webreta-product-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #1c1c1c;
    border: 2px solid #e0e0e0;
    aspect-ratio: 1 / 1; 
    margin: 0; 
}
.webreta-product-item .product-item-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.webreta-product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.webreta-product-item .product-item-inner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 70%);
    z-index: 1;
    transition: background 0.4s ease;
}
.webreta-product-item:hover img {
    transform: scale(1.05);
}
.webreta-product-item .product-name {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    box-sizing: border-box;
    z-index: 2;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-align: left;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    line-height: 1.3;
}
.webreta-product-item .product-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 2;
    color: #fff;
    font-weight: bold;
    font-size: 1.4em;
    margin: 0;
    line-height: 1;
    background-color: #efbdbc;
    padding: 5px;
    border-radius: 5px;
}
.webreta-product-item .product-selected-tick {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: #28a745;
    border: 2px solid #ecbbbe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
}
.webreta-product-item.selected {
    border-color: #efbdbc;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.webreta-product-item.selected .product-selected-tick {
    opacity: 1;
    transform: scale(1);
}
.webreta-product-item.selected .product-item-inner::after {
    background: rgba(153, 41, 61, 0.5);
}

/* =============================================================== */
/* BİLGİ ALANI İÇ STİLLERİ */
/* =============================================================== */
.webreta-sidebar h2, .webreta-sidebar h3 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.webreta-sidebar .sidebar-selected,
.webreta-sidebar .sidebar-total {
    margin-top: 20px;
}
#selected-products-list { list-style: none; padding-left: 0; }
#selected-products-list li { padding: 5px 0; border-bottom: 1px dashed #ddd; }
#selected-products-list li:last-child { border-bottom: none; }
.sidebar-total h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 5px;
}
#webreta-running-total {
    font-size: 1.4em;
    font-weight: bold;
    color: black;
    display: block;
}
.sidebar-action { margin-top: 25px; }
#webreta-add-to-cart-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #8aaab4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0px;
}
#webreta-add-to-cart-btn:hover:not(:disabled) { background-color: #7697a2; }
#webreta-add-to-cart-btn:disabled { background-color: #cccccc; color: #666666; cursor: not-allowed; }
.webreta-message { margin-top: 10px; font-weight: bold; color: #dc3545; min-height: 1.2em; }
.webreta-remove-bundle-link { color: #007bff; text-decoration: none; }


/* =============================================================== */
/* SEPET SAYFASI PAKET GRUPLAMA STİLLERİ */
/* =============================================================== */
.woocommerce-cart-form tr.webreta-bundle-item td.product-remove {
    border-left: 4px solid #007bff !important;
}
.webreta-bundle-info {
    margin-top: 8px;
    font-size: 0.9em;
}
.webreta-bundle-info .bundle-text {
    display: block;
    color: #555;
    margin-bottom: 4px;
}
.webreta-remove-bundle-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.webreta-remove-bundle-link:hover {
    color: #a01c28;
    text-decoration: underline;
}


/* =============================================================== */
/* SAĞDAKİ SEÇİLİ ÜRÜNLER LİSTESİ STİLLERİ */
/* =============================================================== */
#webreta-selected-products-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
#webreta-selected-products-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}
#webreta-selected-products-list li:last-child {
    border-bottom: none;
}
#webreta-selected-products-list .selected-attributes {
    display: block;
    font-size: 0.85em;
    color: #555;
}
.remove-selected-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 22px;
    text-align: center;
    padding: 0;
}
.remove-selected-item:hover {
    background: #c82333;
}

/* =============================================================== */
/* VARYASYON SEÇİM MODALI (POPUP) STİLLERİ */
/* =============================================================== */
.webreta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.webreta-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
}
.webreta-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
}
#webreta-modal-product-image img {
    max-width: 150px;
    height: auto;
    margin: 15px auto;
}
#webreta-modal-form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.webreta-attribute-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.webreta-attribute-selector label {
    font-weight: bold;
}
.webreta-attribute-selector select {
    padding: 8px;
    min-width: 150px;
}
#webreta-modal-price {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0;
}
#webreta-modal-confirm-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#webreta-modal-confirm-btn:disabled {
    background-color: #cccccc;
}