/* ==================================================================
 * Mobell brand
 *   A = #3f656c  (CTA / badge / kódkártya keret)
 *   B = #535555  (Modal jobb panel — szöveges oldal)
 *   C = #191919  (Modal bal panel + 24h sarki popup háttere)
 * Hover sötétebb CTA: #2e4d52
 * ================================================================== */

/* ============ Regisztrációs popup ============ */
.pd-modal {
    position: fixed;
    z-index: 100050;
    inset: 0;
    overflow-y: auto;
}
.pd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}
.pd-modal-dialog {
    position: relative;
    z-index: 2;
    margin: 30px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    max-width: 720px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
}
.pd-close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 5;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.92);
    border: 0;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.pd-close:hover { color: #3f656c; }

body.pd-modal-open { overflow: hidden; }

.pd-reg-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 360px;
    flex: 1 1 auto;
    overflow-y: auto;
    max-width: 100%;
}
.pd-reg-body.pd-no-img .pd-reg-content { flex: 1 1 100%; }
.pd-reg-img {
    flex: 1 1 50%;
    background: #191919;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-reg-img img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.pd-reg-content {
    flex: 1 1 50%;
    background: #535555;
    color: #fff;
    padding: 30px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pd-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.15;
    color: #fff;
}
.pd-discount-badge {
    display: inline-block;
    background: #3f656c;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    margin: 6px auto 18px;
    line-height: 1.1;
}
.pd-discount-amount {
    display: block;
    font-size: 38px;
    font-weight: 800;
}
.pd-discount-text {
    display: block;
    font-size: 13px;
    letter-spacing: 1px;
}
.pd-description {
    font-size: 14px;
    margin: 0 0 22px 0;
    color: #e8e8e8;
    line-height: 1.4;
}
.pd-cta-button {
    display: inline-block;
    background: #3f656c;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 36px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.pd-cta-button:hover { background: #2e4d52; color: #fff !important; }
.pd-subnote {
    margin-top: 10px;
    font-size: 12px;
    font-style: italic;
    color: #cccccc;
}
.pd-promo-code-label {
    font-size: 12px;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0 6px;
}
.pd-promo-code {
    display: block;
    margin: 0 auto 14px;
    padding: 12px 16px;
    background: #fff;
    color: #3f656c;
    border: 2px dashed #3f656c;
    border-radius: 6px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    user-select: all;
    max-width: 280px;
    word-break: break-all;
}

/* mobile */
@media (max-width: 640px) {
    .pd-modal-dialog {
        margin: 15px auto;
        max-height: calc(100vh - 30px);
    }
    .pd-reg-body {
        flex-direction: column;
        min-height: 0;
    }
    .pd-reg-img {
        flex: 0 0 auto;
        width: 100%;
        max-height: 220px;
    }
    .pd-reg-img img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
    }
    .pd-reg-content { padding: 22px 18px; }
    .pd-title { font-size: 20px; }
    .pd-discount-amount { font-size: 30px; }
}

/* ============ 24h sarokban felugró kupon ============ */
.pd-corner-popup {
    position: fixed;
    z-index: 100040;
    left: 16px;
    bottom: 16px;
    width: 200px;
    background: #191919;
    color: #fff;
    border-radius: 6px;
    padding: 14px 12px 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);
    text-align: center;
    border: 2px solid #3f656c;
}
.pd-corner-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.pd-corner-label {
    font-size: 12px;
    color: #ddd;
    margin-bottom: 4px;
}
.pd-corner-amount {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pd-corner-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
    letter-spacing: 0.5px;
}
.pd-corner-min {
    font-size: 11px;
    color: #ffce6c;
    margin-top: 6px;
}
.pd-corner-code-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
}
.pd-corner-code {
    font-family: Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #3f656c;
    background: #fff;
    border-radius: 4px;
    padding: 6px 8px;
    margin: 4px 0 6px;
    letter-spacing: 1px;
}
.pd-corner-validity {
    font-size: 10px;
    color: #ddd;
    margin-top: 8px;
    font-weight: 700;
}
.pd-corner-auto-note {
    font-size: 9px;
    color: #aaa;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .pd-corner-popup {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-width: 220px;
        padding: 10px 10px 8px;
    }
    .pd-corner-amount { font-size: 22px; }
}

/* ============ Kosár kedvezmény tételek ============ */
.cart-discount-row {
    position: relative;
}
.cart-discount-row .cart-main-img {
    box-sizing: border-box;
    width: 115px;
    min-width: 115px;
    max-width: 115px;
    height: 80px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    overflow: hidden;
}
.cart-discount-row .cart-discount-icon {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.cart-discount-row .cart-name {
    font-weight: 600;
    padding-left: 8px;
}
.cart-discount-row .cart-prod-info-price.cartproductinfoprice,
.cart-discount-row .cart-prod-info-price.cartproductinfooneprice {
    color: #444;
}
.cart-discount-countdown {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #3f656c;
    border-radius: 3px;
    font-family: Consolas, "Courier New", monospace;
    letter-spacing: 0.5px;
}

/* ============ Kupon-kód beíró mező (kosár összegző blokkban) ============ */
.cart-coupon-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #c3c3c3;
}
.cart-coupon-row #addcoupon {
    float: none;
    width: 100%;
    text-align: left;
    font-size: 13px;
    color: #444;
}
.cart-coupon-row #addcoupon label,
.cart-coupon-row #addcoupon > :first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}
.cart-coupon-row #couponcode {
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    line-height: 28px;
    padding: 0 8px;
    font-size: 14px;
    background: #fff;
    border: 2px solid #444;
    border-radius: 3px;
    margin: 2px 0 6px;
}
.cart-coupon-row #sendcoupon {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 32px;
    line-height: 30px;
    background-color: #3f656c;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    border: 0;
    text-transform: uppercase;
}
.cart-coupon-row #sendcoupon:hover {
    background-color: #2e4d52;
    color: #fff !important;
}
.cart-coupon-row #active-coupon {
    font-size: 13px;
    color: #444;
    word-break: break-word;
}
.cart-coupon-row #coupon-error {
    display: block;
    color: #d00;
    font-size: 12px;
    margin-top: 4px;
}

/* ============ Header utility sáv (Belépés / Regisztráció / Fiókom) ============ */
.header-topbar {
    background: #f1f1f1;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    line-height: 1;
}
.header-topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 8px 15px;
}
.header-topbar .header-user-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3f656c;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.header-topbar .header-user-link:hover,
.header-topbar .header-user-link:focus {
    color: #2e4d52;
    text-decoration: underline;
}
.header-topbar .header-user-link i {
    font-size: 14px;
}

@media (max-width: 480px) {
    .header-topbar-inner { gap: 12px; padding: 7px 10px; }
    .header-topbar .header-user-link { font-size: 12px; }
}
