/* --------------- checkout --------------- */

.checkout {
    margin-bottom: 40px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    /* align-items: start; */
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

}

/* --------------- error --------------- */

.error {
    border-color: var(--action-color) !important;
}

.error-msg {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    background: var(--action-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}

.error-msg::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--action-color);
}

.error-accept {
    display: none;
    position: absolute;
    left: 0;
    top: -30px;
    background: var(--action-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}

.error-accept::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 12px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--action-color);
}

input.error+.error-msg,
select.error+.error-msg {
    display: block;
}

/* -----Shake effect----- */
.shake-btn {
    animation: shake-anim 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake-anim {

    10%,
    90% {
        transform: translate3d(-2px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(3px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-5px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(5px, 0, 0);
    }
}


input.error,
select.error,
textarea.error {
    /* border: 2px solid #e74c3c !important; */
    /* background-color: #fff5f5 !important; */
    /* border-color: var(--action-color) !important; */

}

/* --------------- cart-empty --------------- */

.cart-empty {
    /* Tegyük fel, hogy a header+footer összesen kb. 400px */
    min-height: calc(100vh - 400px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.cart-empty-content {
    text-align: center;
}

.cart-empty-icon {
    position: relative;
    width: 100px;
    height: 100px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: var(--shadow);
}

.cart-empty-icon i {
    font-size: 35px;
    color: #ccc;
}

.cart-empty-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--brand);
    color: var(--brand-on);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    border: 3px solid #fff;
}

.cart-empty-content h1 {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cart-empty-content p {
    color: #888;
    margin-bottom: 40px;
}

.cart-empty-btn {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-on);
    padding: 18px 45px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.3s;
}

/* --------------- no-results --------------- */

.no-results {
    /* min-height: auto !important; */
    /* padding: 100px 0; */
    width: 100%;
    grid-column: 1 / -1;
}

.no-results .cart-empty-badge {
    display: none;
}


/* --------------- cart --------------- */

.cart {}

.cart-table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-table thead th {
    padding: 18px 20px;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-item td {
    padding: 25px 20px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-text {
    flex: 1;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-model {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.cart-sku {
    font-size: 11px;
    color: #999;
}

.cart-stock {
    font-size: 11px;
}

.stock-ok {
    color: var(--stock-on-color);
    font-weight: 700;
}

.cart-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
}

/* Mennyiség választó */
.cart-selector {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    height: 40px;
    background: #fff;
    overflow: hidden;
}

.cart-selector button {
    width: 35px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    background: #fff;
    font-weight: 700;
}

.cart-selector input {
    width: 45px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 700;
    background: var(--bg-color);
    border-radius: 0;
}

.cart-selector input:focus {
    border-color: var(--border-color);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

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

/* --- cart mobil nézet --- */
@media (max-width: 992px) {

    .cart-table thead {
        display: none;
    }

    .cart-item {
        display: block;
        position: relative;
        /* Fontos az absolute kuka miatt */
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 5px;
    }

    .cart-item:last-child {
        border: none;
    }

    .cart-item td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border: none;
    }

    .cart-item td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #999;
        font-size: 11px;
        text-transform: uppercase;
    }

    .cart-product::before,
    .cart-remove::before {
        display: none;
    }

    .cart-product {
        display: block !important;
        padding: 15px 15px 0 !important;
    }

    .cart-details {
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .cart-img {
        width: 60px;
        height: 60px;
    }

    .cart-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        width: auto;
        padding: 0 !important;
        z-index: 10;
    }

    .cart-remove-btn {
        background: #fff;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow);
    }
}




/* --------------- summary --------------- */

.summary {}

.summary-card {
    padding: 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 40px;
}

/* .sticky-sidebar {
    position: sticky;
    top: 100px;
} */

.summary-title {
    font-size: 18px;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.summary-product {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px 0 10px;
    border-top: 1px solid var(--border-color);
}

.summary-product-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.summary-product-details {
    flex: 1;
}

.summary-product-model {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.summary-product-price {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.summary-row-price {
    font-weight: 700;
    white-space: nowrap;
}

.summary-total {
    border-top: 2px solid var(--brand);
    margin-top: 10px;
    padding-top: 20px;
}

.summary-group {
    text-align: right;
}

.summary-total-big {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #333;
    line-height: 1;
    white-space: nowrap;
}

.summary-total-net {
    display: block;
    font-size: 12px;
    color: #aaa;
    font-style: italic;
    margin-top: 5px;
}

.summary-btn {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-check {
    position: relative;
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

.summary-accept {
    font-size: 12px;
    color: #888;
}

.summary-accept a {
    text-decoration: underline;
}

.summary-back-btn {
    background: #ddd;
    color: #666;
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
}

.summary-next-btn {
    background: var(--brand);
    color: var(--brand-on);
    border: none;
    padding: 18px;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
}


@media (max-width: 992px) {
    .summary-card {
        position: relative;
        top: 0;
    }
}


/* --------------- method --------------- */

.method-card {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
}

.method-card:last-child {
    margin-bottom: 0;
}

.method-card:hover,
.method-card.active {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.method-shipping input[type="radio"],
.method-payment input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* ----shipping---- */

.method-shipping {
    display: block;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    gap: 20px;
}

/* 
.method-shipping-logo {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
}

.method-shipping-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
} */
.method-shipping-icon i {
    font-size: 20px;
    color: var(--brand);
    /* transition: var(--transition); */
}

.method-shipping-name {
    font-weight: 700;
    font-size: 16px;
    margin-right: auto;
}

.method-shipping-price {
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.method-card.active .method-shipping-icon i {
    /* color: var(--brand); */
}

/* ----payment---- */

.method-payment {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.method-payment-info {
    padding: 15px 25px;
    font-size: 12px;
    color: #999;
    /* margin-bottom: 15px; */
    border-top: 1px solid var(--border-color);
}

.method-payment-buttons {
    padding: 5px 25px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.method-payment-btn-text {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    /* align-items: center; */
    white-space: nowrap;
    gap: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.method-payment-btn-text i {
    font-size: 16px;
    color: #555;
    transition: all 0.2s ease;
}

.method-payment-fee {
    margin-left: 8px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.method-payment-btn input:checked+.method-payment-btn-text {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--brand-on);
}

.method-payment-btn input:checked+.method-payment-btn-text .method-payment-fee {
    background: rgba(255, 255, 255, 0.2);
}

.method-payment-btn input:checked+.method-payment-btn-text i {
    color: var(--brand-on);
}




/* --- MOBIL NÉZET --- */
@media (max-width: 768px) {

    /* 1. SZÁLLÍTÁSI RÉSZ: Logó mellett név, alattuk az ár */
    .method-shipping {
        /* display: grid; */
        /* grid-template-columns: 80px 1fr; */
        /* Logó fix szélesség, név a maradék */
        /* grid-template-areas:
            "logo name"
            "logo price";
        gap: 10px 20px;
        padding: 15px; */
    }

    .method-shipping-logo {
        /* grid-area: logo; */
        /* width: 70px; */
    }

    .method-shipping-name {
        /* grid-area: name;
        font-size: 14px;
        margin-right: 0;
        align-self: end; */
    }

    .method-shipping-price {
        /* grid-area: price;
        font-size: 15px;
        text-align: left;
        align-self: start; */
    }

    .method-shipping {
        gap: 10px;
    }

    .method-shipping-icon {
        /* display: none; */
    }

    .method-payment-info {
        padding: 15px;
        line-height: 1.4;
    }

    .method-payment-buttons {
        padding: 0 15px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .method-payment-btn {
        width: 100%;
    }

    .method-payment-btn-text {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .method-payment-fee {
        display: inline-block;
        margin-top: 0;
    }
}







/*  --------------------------------------------- Pénztár ---------------------------------------------  */

.co-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.co-card:last-child {
    margin-bottom: 0;
}

.co-card h2 {
    font-size: 18px;
    padding-bottom: 20px;
    text-transform: uppercase;
}

.co-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.co-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-multi {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.co-full-width {
    grid-column: span 2;
}

/* --- TELEFONSZÁM PREFIX --- */
.co-phone {
    display: flex;
    align-items: center;
}

.co-phone-prefix {
    font-weight: 700;
    padding-right: 8px;
    pointer-events: none;
    user-select: none;
}

.co-phone input {
    padding-left: 8px;
}

/* --- CHECKBOX STÍLUS --- */
.co-shipping-toggle {
    margin-top: 10px;
}

.co-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.co-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.co-check-label {
    font-weight: 700;
    font-size: 14px;
}

/* --- LENYÍLÓ SZEKCIÓ ANIMÁCIÓ --- */
.co-shipping-address {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.co-shipping-address.show {
    margin-bottom: 20px;
}

/* --- MOBIL NÉZET --- */
@media (max-width: 768px) {
    .co-grid {
        grid-template-columns: 1fr;
    }

    .co-full-width,
    .co-multi {
        grid-column: span 1;
    }

    .co-multi {
        grid-template-columns: 1fr 1fr;
    }

    .co-card {
        padding: 15px;
    }
}


/*  --------------------------------------------- Köszönjük ---------------------------------------------  */

/* ALAP ELRENDEZÉS */
.os-container {
    min-height: calc(100vh - 400px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.os-card {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* IKON DOBOZ */
.os-icon {
    width: 80px;
    height: 80px;
    background: var(--brand);
    /* Alap BumbleB sárga */
    color: var(--brand-on);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 35px;
    box-shadow: var(--shadow);
}

/* SZÖVEGEK */
.os-card h1 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.os-lead {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.os-info {
    margin-bottom: 35px;
    color: #777;
    line-height: 1.8;
}

.os-info strong {
    color: #000;
}

/* TÁBLÁZAT (Bizonylat) */
.os-table {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 35px;
    text-align: left;
}

.os-table h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #bbb;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.os-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

/* GOMB */
.os-btn {
    display: inline-block;
    background: var(--brand);
    color: var(--brand-on);
    padding: 18px 45px;
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
}

/* --- HIBA MODOSÍTÓ (The Magic) --- */
.os-error .os-icon {
    background: #fdf2f2;
    color: var(--action-color);
    box-shadow: var(--shadow);
}

.os-error h1 {
    color: var(--action-color);
}

.os-error .os-lead {
    font-weight: 700;
    color: var(--action-color);
}

/* 404 specifikus finomítások */
.display-404 {
    font-size: 60px !important;
    /* Nagyobb méret a 404 számnak */
    color: var(--brand);
    margin-bottom: 0 !important;
    line-height: 1;
}

.os-icon.404-icon {
    background: #f9f9f9;
    color: #ddd;
    box-shadow: none;
    border: 1px solid #eee;
}

/* Egy kis animáció, hogy ne legyen olyan "halott" az oldal */
.404-icon i {
    animation: rotateCompass 4s linear infinite;
}

@keyframes rotateCompass {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}