/**
 * Takım Parçaları - Frontend CSS
 * OpenCart 3.x + Journal 3 Tema Uyumlu
 * Bellona/Doğtaş İlhamlı Tasarım
 */

/* ===== Set Customizer Container ===== */
.set-customizer {
    background: #ffffff;
    border: 2px solid #1a5f5c;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Header ===== */
.set-customizer .customizer-header {
    background: linear-gradient(135deg, #1a5f5c, #2a7f7b);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.set-customizer .customizer-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.set-customizer .customizer-header h3 i {
    margin-right: 8px;
}

.set-customizer .customizer-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ===== Set Items Container ===== */
.set-customizer .set-items {
    padding: 15px;
}

/* ===== Individual Set Item ===== */
.set-customizer .set-item {
    display: grid;
    grid-template-columns: 45px 80px 1fr auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.set-customizer .set-item:hover {
    border-color: #1a5f5c;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.set-customizer .set-item.selected {
    background: #e8f5e9;
    border-color: #4caf50;
}

.set-customizer .set-item:last-child {
    margin-bottom: 0;
}

/* ===== Checkbox Styling ===== */
.set-customizer .item-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-customizer .item-checkbox input[type="checkbox"] {
    display: none;
}

.set-customizer .item-checkbox label {
    width: 28px;
    height: 28px;
    border: 2px solid #1a5f5c;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.2s ease;
}

.set-customizer .item-checkbox label:hover {
    background: #e0f2f1;
}

.set-customizer .item-checkbox input:checked+label {
    background: #1a5f5c;
    border-color: #1a5f5c;
}

.set-customizer .item-checkbox input:checked+label::after {
    content: '✓';
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
}

/* ===== Item Image ===== */
.set-customizer .item-image {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.set-customizer .item-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* ===== Item Details ===== */
.set-customizer .item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.set-customizer .item-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.set-customizer .item-details .item-desc {
    font-size: 0.85rem;
    color: #777777;
}

/* ===== Item Price ===== */
.set-customizer .item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5f5c;
    min-width: 90px;
    text-align: right;
}

/* ===== Quantity Controls ===== */
.set-customizer .item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px;
}

.set-customizer .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.set-customizer .qty-btn:hover {
    background: #1a5f5c;
    color: #ffffff;
}

.set-customizer .qty-value {
    width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #333333;
}

/* ===== Set Summary ===== */
.set-customizer .set-summary {
    background: #1a1a1a;
    padding: 20px;
}

.set-customizer .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.set-customizer .summary-row:last-child {
    border-bottom: none;
}

.set-customizer .summary-row strong {
    color: #ffffff;
    font-size: 1rem;
}

.set-customizer .summary-row.total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #1a5f5c;
    border-bottom: none;
}

.set-customizer .summary-row.total span,
.set-customizer .summary-row.total strong {
    font-size: 1.2rem;
    color: #ffffff;
}

.set-customizer .summary-row.total strong {
    font-size: 1.5rem;
    color: #c4a35a;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .set-customizer .set-item {
        grid-template-columns: 40px 60px 1fr;
        gap: 10px;
    }

    .set-customizer .item-price {
        grid-column: 2 / 4;
        text-align: left;
        margin-top: -5px;
    }

    .set-customizer .item-quantity {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .set-customizer .item-details h4 {
        font-size: 0.9rem;
    }

    .set-customizer .item-image img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .set-customizer .customizer-header {
        padding: 15px;
    }

    .set-customizer .customizer-header h3 {
        font-size: 1.2rem;
    }

    .set-customizer .set-items {
        padding: 10px;
    }

    .set-customizer .set-item {
        padding: 12px;
    }

    .set-customizer .set-summary {
        padding: 15px;
    }
}

/* ===== Journal 3 Theme Compatibility ===== */
.journal-product .set-customizer {
    font-family: inherit;
}

.journal-product .set-customizer h3,
.journal-product .set-customizer h4 {
    font-family: inherit;
}

/* ===== Animation ===== */
@keyframes pulse-price {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.set-customizer .summary-row.total strong.updating {
    animation: pulse-price 0.3s ease;
}