/* Rotax Pricing — Frontend Styles */
/* All fonts inherit from theme (BeTheme) */

/* ═══════════════════════════════════════════
   PRICE DISPLAY (ALL USERS)
   ═══════════════════════════════════════════ */

/* Price wrapper - stack lines */
.kkart-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    font-family: inherit;
}

/* Price rows */
.kkart-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Strikethrough original price */
.kkart-price-wrap del {
    opacity: 0.45;
    font-size: 0.85em;
    text-decoration: line-through;
    color: #666;
}

/* Highlighted final price */
.kkart-price-wrap ins {
    text-decoration: none;
    font-weight: 700;
    color: #c41e1e;
    font-size: 1.1em;
}

/* Excl. tax line - smaller, muted */
.kkart-price-excl {
    font-size: 0.82em;
    color: #888;
    justify-content: center;
}

/* Price suffix labels */
.kkart-price-wrap .woocommerce-price-suffix {
    font-size: 0.8em;
    color: #999;
    font-weight: 400;
}

/* ═══════════════════════════════════════════
   "✦ VAŠA CENA" LABEL (subtle, not a button)
   ═══════════════════════════════════════════ */

.kkart-price-badge {
    display: inline-block;
    color: #c41e1e;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 3px;
    align-self: center;
    border: 1px solid rgba(196, 30, 30, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(196, 30, 30, 0.06);
}

/* ═══════════════════════════════════════════
   SALE-STYLE BADGE ON PRODUCT IMAGE (-10%)
   ═══════════════════════════════════════════ */

.kkart-sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #c41e1e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
    pointer-events: none;
}

/* Hide WooCommerce default sale badge when our badge is present */
.kkart-sale-badge+.onsale {
    display: none;
}

/* ═══════════════════════════════════════════
   BANNERS (B2B + WELCOME) — unified dark/red style
   ═══════════════════════════════════════════ */

.kkart-welcome-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a2e 100%);
    border: 2px solid #c41e1e;
    border-left: 4px solid #c41e1e;
    border-radius: 12px;
    padding: 16px 28px;
    margin-top: 20px;
    margin-bottom: 28px;
    box-shadow: 0 0 18px rgba(196, 30, 30, 0.3), 0 4px 12px rgba(196, 30, 30, 0.15);
    overflow: hidden;
}

.kkart-welcome-banner .kkart-b2b-icon {
    font-size: 14px;
    font-style: normal;
    width: 36px;
    height: 36px;
    background: #c41e1e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Shared content layout */
.kkart-b2b-content {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.kkart-b2b-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.kkart-b2b-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.kkart-b2b-text strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.kkart-b2b-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

/* Buttons container */
.kkart-b2b-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Primary button — Registrovať sa */
.kkart-b2b-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c41e1e 0%, #c41e1e 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(196, 30, 30, 0.4);
}

.kkart-b2b-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 30, 0.5);
    color: #fff !important;
}

/* Secondary button — Prihlásiť sa */
.kkart-b2b-btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.kkart-b2b-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 767px) {
    .kkart-b2b-content {
        flex-direction: column;
        text-align: center;
    }

    .kkart-b2b-banner,
    .kkart-welcome-banner {
        padding: 18px 20px;
        margin-top: 24px;
    }

    .kkart-b2b-buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .kkart-b2b-btn,
    .kkart-b2b-btn-secondary {
        justify-content: center;
        padding: 12px 24px;
    }
}

/* ═══════════════════════════════════════════
   REGISTRATION FORM
   ═══════════════════════════════════════════ */

.woocommerce-form-register h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

/* ═══════════════════════════════════════════
   B2B REQUEST FORM (inline in banner)
   ═══════════════════════════════════════════ */

.kkart-request-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 30, 0.4), transparent);
    margin: 18px 0;
}

.kkart-request-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.kkart-request-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0 0 16px;
}

.kkart-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.kkart-form-field label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kkart-form-field input,
.kkart-form-field textarea {
    width: 100% !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.kkart-form-field input:focus,
.kkart-form-field textarea:focus {
    outline: none !important;
    border-color: #c41e1e !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.kkart-form-field input::placeholder,
.kkart-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.kkart-form-full {
    margin-bottom: 16px;
}

.kkart-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kkart-success-msg {
    text-align: center;
    color: #fff;
    font-size: 15px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
}

@media (max-width: 767px) {
    .kkart-form-grid {
        grid-template-columns: 1fr;
    }

    .kkart-form-actions {
        flex-direction: column;
        width: 100%;
    }

    .kkart-form-actions .kkart-b2b-btn,
    .kkart-form-actions .kkart-b2b-btn-secondary {
        justify-content: center;
        width: 100%;
    }
}

/* === Override CarlaX theme hiding shop header === */
.woocommerce .list_products_header,
.woocommerce-page .list_products_header {
    display: block !important;
}

.woocommerce .list_products_header > *:not(.kkart-welcome-banner),
.woocommerce-page .list_products_header > *:not(.kkart-welcome-banner) {
    display: none !important;
}

/* Fix title visibility */
.kkart-welcome-banner .kkart-b2b-content strong,
.kkart-welcome-banner .kkart-b2b-text strong {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: block !important;
    margin-bottom: 4px !important;
}


/* === Fix B2B request form readability === */
.kkart-request-title,
.kkart-welcome-banner h3,
#kkart-request-form h3 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.kkart-request-subtitle,
#kkart-request-form > p,
#kkart-request-form .kkart-request-subtitle {
    color: rgba(255,255,255,0.8) !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.kkart-request-divider {
    border-top: 1px solid rgba(255,255,255,0.15) !important;
    margin: 20px 0 !important;
}

/* Form labels */
#kkart-request-form label,
#kkart-request-form-el label {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
