/*
 Theme Name:   Kiosko - IKO B2B
 Theme URI:    https://iko-b2b.pl/
 Description:  Motyw potomny Kiosko dla hurtowni B2B AGD IKO. Uklad i funkcjonalnosc jak Kiosko, przerobione kolorystycznie na IKO (granat #0b1220, niebieski #2e6bc6, font Outfit) + logika B2B (ceny tylko dla zalogowanych, NIP, B2BKing).
 Author:       IKO
 Author URI:   https://iko-b2b.pl/
 Template:     kiosko
 Version:      1.1.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  kiosko-child
 Tags:         e-commerce, full-site-editing, block-patterns
*/

/* ==========================================================================
   Branding IKO - zmienne
   ========================================================================== */
:root {
    --iko-ink: #0b1220;
    --iko-accent: #2e6bc6;
    --iko-accent-dark: #1d4ed8;
    --iko-accent-pale: #e8f0fb;
    --iko-border: #e5e7eb;
}

/* Outfit jako font UI sklepu (storefront blokowy) */
.wp-block-group,
.woocommerce,
.wc-block-components-product-name,
.wp-block-post-title {
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Lista kategorii (kolumna filtrow) - shortcode [iko_category_tree]
   Styl minimalny, dopasowany do filtrow Kiosko.
   ========================================================================== */
.iko-cat-list {
    margin-bottom: 1.75rem;
}
.iko-cat-list-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--iko-ink);
    margin: 0 0 0.75rem;
}
.iko-cat-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.iko-cat-tree li {
    margin: 0;
}
.iko-cat-tree li a {
    display: block;
    padding: 0.4rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--iko-ink);
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
}
.iko-cat-tree li a:hover,
.iko-cat-tree li.active > a {
    color: var(--iko-accent);
    padding-left: 0.35rem;
}

/* ==========================================================================
   Status magazynowy (single product) - kropki
   ========================================================================== */
.iko-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    padding: 10px 16px 10px 10px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid;
    max-width: 100%;
}
.iko-stock-green  { background: #f0fdf4; border-color: #bbf7d0; }
.iko-stock-orange { background: #fffbeb; border-color: #fde68a; }
.iko-stock-red    { background: #fef2f2; border-color: #fecaca; }
.iko-stock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}
.iko-stock-green  .iko-stock-icon { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.iko-stock-orange .iko-stock-icon { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.12); }
.iko-stock-red    .iko-stock-icon { background: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.12); }
.iko-stock-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.iko-stock-label {
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}
.iko-stock-green  .iko-stock-label { color: #15803d; }
.iko-stock-orange .iko-stock-label { color: #b45309; }
.iko-stock-red    .iko-stock-label { color: #b91c1c; }
.iko-stock-sub {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 1px;
}
.woocommerce ul.products li.product { position: relative; }

/* ==========================================================================
   WooCommerce - klasyczne strony (koszyk, checkout, konto, formularze,
   related/upsell). Kolory IKO. Niezalezne od motywu.
   ========================================================================== */
.woocommerce .price,
.woocommerce .amount {
    color: var(--iko-accent);
    font-weight: 600;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--iko-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--iko-accent-dark) !important;
    transform: translateY(-1px) !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .input-text,
.woocommerce input[type='text'],
.woocommerce input[type='email'],
.woocommerce input[type='password'],
.woocommerce input[type='tel'],
.woocommerce input[type='number'],
.woocommerce select,
.woocommerce textarea {
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.woocommerce .input-text:focus,
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
    border-color: var(--iko-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,107,198,0.15);
}

.woocommerce-breadcrumb a { color: var(--iko-accent); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--iko-accent-dark); }

.woocommerce-message { border-top-color: var(--iko-accent); }
.woocommerce-info { border-top-color: var(--iko-accent); }

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--iko-accent) !important;
    color: #fff !important;
    border-color: var(--iko-accent) !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--iko-accent); }

/* ==========================================================================
   B2BKing - ukrycie dropdowna "User Type" na rejestracji
   ========================================================================== */
.b2bking-registration-role-field,
.b2bking_register_field_role,
#b2bking_registration_role_field,
p.b2bking-registration-role-field {
    display: none !important;
}
