/*
Theme Name: Makumbex Theme
Theme URI: https://makumbex.com
Author: Arkadiusz Makosz
Description: Jasny, kolorowy motyw Makumbex oparty na układzie strony Thumbrex, ale dopasowany do zwykłych produktów i przyjaznego charakteru marki.
Version: 1.0.0
Text Domain: makumbex
*/

/* =========================================
   1. ZMIENNE
   ========================================= */
:root {
    --bg: #fffaf2;
    --bg-soft: #fff4e6;
    --surface: #ffffff;
    --surface-2: #fffdf9;
    --text: #25211d;
    --muted: #746d66;
    --brand: #ff7a59;
    --brand-2: #2aa89a;
    --brand-3: #f5c451;
    --border: rgba(61, 49, 40, 0.12);
    --shadow: 0 14px 36px rgba(84, 57, 37, 0.10);
    --shadow-hover: 0 18px 42px rgba(84, 57, 37, 0.16);
    --radius: 18px;
    --radius-small: 12px;
}

/* =========================================
   2. RESET I BAZA
   ========================================= */
* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

#page,
.site,
.site-content,
.site-main,
.content-area,
.entry-content,
.entry-wrap,
article,
.post,
.page,
.mkb-product-wrap,
.mkb-listing-wrap {
    background: transparent;
    color: var(--text);
}

main {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-2);
    text-decoration: none;
}

a:hover {
    color: #1c7f75;
}

input,
textarea,
select {
    font: inherit;
}

.mkb-wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =========================================
   3. HEADER
   ========================================= */
.mkb-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 250, 242, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.mkb-header-fluid {
    width: min(1400px, 96%);
    margin: 0 auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 560px) 1fr;
    align-items: center;
    gap: 30px;
}

.mkb-main-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.mkb-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff;
    font-size: 27px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(255, 122, 89, 0.22);
}

.mkb-logo-text {
    color: var(--text);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.mkb-header-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mkb-search-form {
    width: 100%;
    height: 48px;
    display: flex;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 5px 18px rgba(84, 57, 37, 0.06);
}

.mkb-search-input {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.mkb-search-input::placeholder {
    color: #9b938c;
}

.mkb-search-btn {
    border: 0;
    padding: 0 25px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--brand), #ff9a6f);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    transition: filter 0.2s ease;
}

.mkb-search-btn:hover {
    filter: brightness(0.96);
}

/* =========================================
   4. HERO
   ========================================= */
.mkb-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(245, 196, 81, 0.24), transparent 26%),
        radial-gradient(circle at 88% 24%, rgba(42, 168, 154, 0.18), transparent 25%),
        linear-gradient(180deg, #fffaf2 0%, #fff5e9 100%);
    border-bottom: 1px solid var(--border);
}

.mkb-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.20;
    background-image: radial-gradient(rgba(255, 122, 89, 0.30) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    pointer-events: none;
}

.mkb-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 68px 0 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.mkb-hero-text {
    flex: 1;
    max-width: 650px;
}

.mkb-hero-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(42, 168, 154, 0.10);
    border: 1px solid rgba(42, 168, 154, 0.22);
    color: #167f75;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mkb-hero-heading {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.mkb-highlight {
    background: linear-gradient(90deg, var(--brand), #ff9a6f 45%, var(--brand-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mkb-hero-sub {
    max-width: 580px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.mkb-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    background: var(--text);
    color: #fff !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 9px 22px rgba(37, 33, 29, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mkb-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(37, 33, 29, 0.22);
}

.mkb-hero-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.mkb-hero-visual {
    flex: 0 0 320px;
    min-height: 270px;
    position: relative;
    display: grid;
    place-items: center;
}

.mkb-hero-orbit {
    width: 240px;
    height: 240px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255, 122, 89, 0.18);
    box-shadow: var(--shadow);
}

.mkb-hero-orbit::before,
.mkb-hero-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.mkb-hero-orbit::before {
    width: 185px;
    height: 185px;
    border: 2px dashed rgba(42, 168, 154, 0.24);
}

.mkb-hero-orbit::after {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    box-shadow: 0 14px 30px rgba(255, 122, 89, 0.22);
}

.mkb-hero-m {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 54px;
    font-weight: 900;
}

.mkb-float-dot {
    position: absolute;
    border-radius: 50%;
}

.mkb-float-dot.one {
    width: 30px;
    height: 30px;
    top: 26px;
    right: 34px;
    background: var(--brand-2);
}

.mkb-float-dot.two {
    width: 20px;
    height: 20px;
    left: 24px;
    bottom: 46px;
    background: var(--brand-3);
}

.mkb-float-dot.three {
    width: 14px;
    height: 14px;
    right: 22px;
    bottom: 28px;
    background: var(--brand);
}

/* =========================================
   5. MENU KATEGORII
   ========================================= */
.mkb-cat-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.mkb-cat-nav::-webkit-scrollbar {
    display: none;
}

.mkb-cat-item {
    min-width: 96px;
    height: 92px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(84, 57, 37, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mkb-cat-item:nth-child(2) {
    background: #fff0ea;
}

.mkb-cat-item:nth-child(3) {
    background: #eefaf8;
}

.mkb-cat-item:nth-child(4) {
    background: #fff8df;
}

.mkb-cat-item:nth-child(5) {
    background: #f4f1ff;
}

.mkb-cat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 89, 0.35);
    box-shadow: 0 10px 22px rgba(84, 57, 37, 0.10);
}

.mkb-cat-icon {
    width: 31px;
    height: 31px;
    margin-bottom: 8px;
    display: grid;
    place-items: center;
    color: var(--text);
}

.mkb-cat-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.mkb-cat-name {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

/* =========================================
   6. TREŚĆ
   ========================================= */
.mkb-content-wrap {
    width: min(1400px, 96%);
    margin: 0 auto;
    padding: 28px 20px;
}

/* =========================================
   7. PANELE / DETAILS Z WTYCZKI
   ========================================= */
.panel,
.mkb-panel,
.panel.mkb-origin.mkb-panel {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow) !important;
}

.panel h2,
.panel h3,
.panel h4,
.mkb-origin-title {
    color: var(--text) !important;
}

.mkb-panel-body {
    background: #fffaf5 !important;
    color: var(--muted) !important;
}

.mkb-description-panel {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow) !important;
}

.mkb-origin-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 8px !important;
}

.mkb-origin-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 13px !important;
    border-radius: 10px !important;
    background: #fffdf9 !important;
    color: var(--text) !important;
    border-style: solid !important;
    border-left-width: 5px !important;
    border-right-width: 5px !important;
    border-bottom-width: 2px !important;
    border-top-width: 1px !important;
    border-top-color: var(--border) !important;
    border-left-color: #d8d1ca !important;
    border-right-color: #d8d1ca !important;
    border-bottom-color: #d8d1ca !important;
}

.mkb-origin-item.detail-blue { border-left-color:#3b82f6 !important; border-right-color:#3b82f6 !important; border-bottom-color:#3b82f6 !important; }
.mkb-origin-item.detail-green { border-left-color:#22c55e !important; border-right-color:#22c55e !important; border-bottom-color:#22c55e !important; }
.mkb-origin-item.detail-orange { border-left-color:#f97316 !important; border-right-color:#f97316 !important; border-bottom-color:#f97316 !important; }
.mkb-origin-item.detail-purple { border-left-color:#a855f7 !important; border-right-color:#a855f7 !important; border-bottom-color:#a855f7 !important; }
.mkb-origin-item.detail-white { border-left-color:#d7d7d7 !important; border-right-color:#d7d7d7 !important; border-bottom-color:#d7d7d7 !important; }
.mkb-origin-item.detail-red { border-left-color:#ef4444 !important; border-right-color:#ef4444 !important; border-bottom-color:#ef4444 !important; }
.mkb-origin-item.detail-yellow { border-left-color:#eab308 !important; border-right-color:#eab308 !important; border-bottom-color:#eab308 !important; }
.mkb-origin-item.detail-pink { border-left-color:#ec4899 !important; border-right-color:#ec4899 !important; border-bottom-color:#ec4899 !important; }
.mkb-origin-item.detail-cyan { border-left-color:#06b6d4 !important; border-right-color:#06b6d4 !important; border-bottom-color:#06b6d4 !important; }
.mkb-origin-item.detail-lime { border-left-color:#84cc16 !important; border-right-color:#84cc16 !important; border-bottom-color:#84cc16 !important; }

/* =========================================
   8. OFERTY / GRID
   ========================================= */
.mkb-listing-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mkb-listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 36px 0;
    width: 100%;
}

.mkb-listing-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none !important;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mkb-listing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 122, 89, 0.35);
    box-shadow: var(--shadow-hover);
}

.mkb-listing-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f4eee6;
    border-bottom: 1px solid var(--border);
}

.mkb-listing-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.mkb-listing-card:hover .mkb-listing-img-wrap img {
    transform: scale(1.025);
}

.mkb-listing-body {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mkb-listing-title {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.3;
}

.mkb-listing-desc {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.mkb-listing-price {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--brand);
    font-size: 1rem;
    font-weight: 900;
}

.mkb-listing-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 89, 0.28);
    background: #fff5ef;
    color: #c94e32;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.mkb-listing-card:hover .mkb-listing-btn {
    background: linear-gradient(90deg, var(--brand), #ff9a6f);
    color: #fff;
}

/* =========================================
   9. PAGINACJA
   ========================================= */
.mkb-pagination,
.mkb-search-pagination {
    margin: 46px 0 60px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mkb-pagination .page-numbers,
.mkb-search-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-weight: 800;
}

.mkb-pagination .page-numbers.current,
.mkb-pagination .page-numbers:hover,
.mkb-search-pagination .page-numbers.current,
.mkb-search-pagination .page-numbers:hover {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* =========================================
   10. SEARCH
   ========================================= */
.mkb-search-header {
    text-align: center;
    margin: 44px 0 8px;
}

.mkb-search-title {
    margin: 0 0 7px;
    color: var(--text);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 900;
}

.mkb-search-title em {
    color: var(--brand);
    font-style: normal;
}

.mkb-search-count {
    color: var(--muted);
}

.mkb-no-results {
    margin: 80px 0;
    text-align: center;
    color: var(--muted);
}

.mkb-no-results h2 {
    color: var(--text);
}

/* =========================================
   11. STOCK MANAGER
   ========================================= */
.mkb-stock-pill {
    font-family: inherit;
}

/* =========================================
   12. STOPKA
   ========================================= */
.mkb-site-footer {
    margin-top: 60px;
    padding-top: 54px;
    background: #f6eadc;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.mkb-footer-grid {
    width: min(1120px, 92%);
    margin: 0 auto;
    padding-bottom: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
}

.mkb-footer-brand {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 900;
}

.mkb-footer-desc {
    margin: 0;
    line-height: 1.7;
}

.mkb-footer-heading {
    margin: 0 0 18px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.mkb-footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mkb-footer-links li {
    margin-bottom: 9px;
}

.mkb-footer-links a {
    color: var(--muted);
}

.mkb-footer-links a:hover {
    color: var(--brand);
}

.mkb-socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.mkb-socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--border);
    color: var(--text);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mkb-socials a:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--brand);
}

.mkb-socials svg {
    width: 20px;
    height: 20px;
}

.mkb-footer-bottom {
    padding: 18px 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #81776e;
    font-size: 0.9rem;
}

/* =========================================
   13. RESPONSYWNOŚĆ
   ========================================= */
@media (max-width: 1200px) {
    .mkb-listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .mkb-header-fluid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mkb-header-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mkb-header-center {
        width: 100%;
    }

    .mkb-header-right {
        display: none;
    }

    .mkb-search-form {
        max-width: 560px;
    }

    .mkb-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 50px 0 45px;
    }

    .mkb-hero-text {
        max-width: 700px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mkb-hero-visual {
        flex: none;
        min-height: 220px;
    }

    .mkb-hero-orbit {
        width: 190px;
        height: 190px;
    }

    .mkb-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mkb-cat-nav {
        justify-content: flex-start;
        padding: 14px;
    }

    .mkb-cat-item {
        min-width: 82px;
        height: 80px;
    }

    .mkb-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mkb-socials {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .mkb-header-fluid {
        width: 100%;
        padding: 11px 12px;
    }

    .mkb-logo-text {
        font-size: 21px;
    }

    .mkb-mark {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .mkb-search-form {
        width: 94%;
        height: 44px;
    }

    .mkb-search-input {
        padding: 0 14px;
        font-size: 14px;
    }

    .mkb-search-btn {
        padding: 0 16px;
        font-size: 11px;
    }

    .mkb-hero-inner {
        padding: 38px 0 34px;
    }

    .mkb-hero-visual {
        display: none;
    }

    .mkb-listing-wrap {
        padding: 0 10px;
    }

    .mkb-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 20px 0 !important;
    }

    .mkb-listing-body {
        padding: 10px 6px !important;
    }

    .mkb-listing-title {
        max-width: 100%;
        margin-bottom: 5px !important;
        overflow: hidden;
        font-size: 0.84rem !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mkb-listing-desc {
        display: none !important;
    }

    .mkb-listing-price {
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
    }

    .mkb-listing-btn {
        width: 92%;
        padding: 6px 8px !important;
        font-size: 0.68rem !important;
    }
}
