/**
 * DreamDrive Kosár Stílusok
 */

/* Oldal cím stílusa */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
    text-align: center;
    position: relative;
}

/* Kosár oldal alapvető stílusai */
.cart-page {
    position: relative;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* Verseny háttér effektus */
.racing-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/img/heroes/hero_car_1748511093_683829755104c.jpg') center/cover no-repeat fixed;
    z-index: -2;
}

.racing-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.8); /* Világos átlátszó háttér */
    z-index: -1;
}

/* Kosár tartalom */
.cart-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 992px) {
    .cart-content {
        flex-direction: row;
    }
}

/* Kosár elemek konténer */
.cart-items-container {
    flex: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #333;
}

/* Kosár összegző konténer */
.cart-summary {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    height: fit-content;
    color: #333;
}

/* Betöltő animáció */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Üres kosár üzenet */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #333;
}

.empty-cart-icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 25px;
}

/* Kosár elem */
.cart-item {
    position: relative;
    display: flex;
    background: rgba(50, 50, 50, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(60, 60, 60, 0.7);
    transform: translateY(-2px);
}

.item-image-container {
    width: 120px;
    min-width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 20px;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
}

.item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.spec-row {
    display: flex;
    align-items: center;
}

.spec-icon {
    color: var(--primary-color);
    margin-right: 6px;
    font-size: 14px;
}

.spec-label {
    color: #aaa;
    margin-right: 5px;
}

.spec-value {
    color: #fff;
    font-weight: 500;
}

.item-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 100px;
}

.btn-remove {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
}

.btn-remove:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Extrák listája */
.extras-section {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
}

.extras-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #bbb;
}

.extras-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.extra-name {
    color: #ddd;
}

.extra-price {
    color: var(--accent-color);
}

/* Kosár összegzés */
.summary-rows {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    color: #aaa;
}

.summary-value {
    font-weight: 500;
    color: #fff;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.total-label {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Akciógombok */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .summary-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    gap: 8px;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(var(--primary-color-rgb), 0.3);
}

.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.disabled:hover {
    transform: none;
    box-shadow: none;
}
