/* =========================================================
   Cafepoint – SPOLOČNÉ úpravy (mobil aj desktop)
   karty produktov · doprava zadarmo · chat bublina ·
   body z Cafepoint klubu · košík
   Patrí k cafepoint-common.js. Nahrať ako posledné CSS.
   ========================================================= */

:root {
    --cp-ink: #0f0f0f;
    --cp-text: #2f2f2f;
    --cp-dark: #1e2a1e;
    --cp-muted: #5f6170;
    --cp-line: #e0e5ee;
    --cp-header-bg: #f6f6f3;
    --cp-bonus-bg: #ececf0;
    --cp-bonus-text: #41416e;
}

/* ---------------------------------------------------------
   KARTY PRODUKTOV: fotka na béžovom podklade, ľahšie tlačidlo
   --------------------------------------------------------- */
html body .products .product a.image {
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    margin: 0 0 14px !important;
    padding: 10% !important;
    background: var(--cp-header-bg) !important;
    overflow: hidden;
}
html body .products .product a.image img {
    position: static !important;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
    html body .products .product:hover a.image img {
        transform: scale(1.04);
    }
}
/* štítky vo vnútri béžového políčka */
html body .products .product a.image .flags-default {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    z-index: 2;
}
html body .products .product a.image .flag.flag-discount,
html body .products .product a.image span.flag.flag-discount.flag-discount {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 2;
}


/* vodorovné zoznamy (napr. „Najpredávanejšie" v kategórii):
   malá béžová fotka vľavo, text vpravo – nie veľké štvorce */
html body .products.products-inline .product {
    display: block !important;
}
html body .products.products-inline .product .p {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px;
    height: auto !important;
    padding: 12px 0 !important;
}
html body .products.products-inline .product a.image {
    flex: 0 0 88px !important;
    width: 88px !important;
    height: 88px !important;
    aspect-ratio: 1 / 1;
    margin: 0 !important;
    padding: 8px !important;
}
html body .products.products-inline .product a.image .flags-default,
html body .products.products-inline .product a.image .flag.flag-discount {
    display: none !important;
}
html body .products.products-inline .product .p-in {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body .products.products-inline .product .p-in-in,
html body .products.products-inline .product .p-bottom {
    width: auto !important;
    padding: 0 !important;
}
html body .products.products-inline .product .name,
html body .products.products-inline .product .name span {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}
html body .products.products-inline .product .availability,
html body .products.products-inline .product .availability span {
    font-size: 11px !important;
}
html body .products.products-inline .product .price-final,
html body .products.products-inline .product .price-final strong {
    font-size: 15px !important;
}

/* tlačidlo na karte – obrysové, plné až pri prechode myšou, na celú šírku karty */
html body .products .product .product-btn,
html body .products .product .product-btn form {
    display: block !important;
    width: 100% !important;
}
html body .products .product .btn-cart,
html body .products .product .add-to-cart-button {
    width: 100% !important;
}
html body .products .product .btn-cart,
html body .products .product .add-to-cart-button,
html body .products .product .product-btn .btn {
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 1px solid var(--cp-dark) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--cp-dark) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
html body .products .product .btn-cart *,
html body .products .product .add-to-cart-button * {
    color: inherit !important;
}
html body .products .product .btn-cart::before,
html body .products .product .add-to-cart-button::before {
    display: none !important;
}
html body .products .product .btn-cart:hover,
html body .products .product .add-to-cart-button:hover,
html body .products .product .btn-cart:focus-visible,
html body .products .product .add-to-cart-button:focus-visible {
    background: var(--cp-dark) !important;
    color: #fff !important;
}
html body .products .product .btn-cart:focus-visible,
html body .products .product .add-to-cart-button:focus-visible {
    outline: 2px solid var(--cp-dark);
    outline-offset: 2px;
}

/* ---------------------------------------------------------
   DOPRAVA ZADARMO v košíku
   --------------------------------------------------------- */
.cp-ship {
    margin: 0 0 20px;
    padding: 14px 16px 16px;
    background: var(--cp-header-bg);
    color: var(--cp-text);
    font-size: 14px;
    line-height: 1.4;
}
.cp-ship strong {
    color: var(--cp-ink);
    font-weight: 600;
}
.cp-ship__msg {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cp-ship__msg svg {
    flex: 0 0 auto;
}
.cp-ship__bar {
    height: 4px;
    margin-top: 10px;
    background: var(--cp-line);
    overflow: hidden;
}
.cp-ship__fill {
    height: 100%;
    background: var(--cp-dark);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-ship.is-free .cp-ship__bar {
    display: none;
}

/* ---------------------------------------------------------
   CHAT: malá bublina namiesto širokej lišty LiveChatu
   --------------------------------------------------------- */
.cp-chat {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cp-dark);
    color: #fff;
    box-shadow: 0 6px 18px rgba(15, 15, 15, 0.18);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), bottom 0.25s ease-out;
}
.cp-chat:hover {
    transform: scale(1.06);
}
.cp-chat:focus-visible {
    outline: 2px solid var(--cp-dark);
    outline-offset: 3px;
}
body.cp-sticky-on .cp-chat {
    bottom: 84px;
}
body.cp-has-gbadge .cp-chat {
    bottom: 88px;
}

/* ---------------------------------------------------------
   BODY Z CAFEPOINT KLUBU (prihlásený zákazník)
   doplnok mehub vkladá prvok do hlavičky – presunieme a zladíme
   --------------------------------------------------------- */
.cp-points {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.cp-points,
.cp-points * {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--cp-bonus-text) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.cp-points .card,
.cp-points .card-text {
    margin: 0 !important;
    padding: 0 !important;
}
.cp-points b,
.cp-points strong {
    font-weight: 600 !important;
    color: var(--cp-ink) !important;
}
/* desktop: štítok vedľa Prihlásenia */
@media (min-width: 768px) {
    #header .navigation-buttons .cp-points {
        height: 36px;
        margin-right: 8px !important;
        padding: 0 12px !important;
        background: var(--cp-bonus-bg) !important;
    }
}
/* mobil: prvý riadok v menu */
@media (max-width: 767px) {
    #navigation .cp-points {
        display: flex !important;
        width: 100%;
        margin: 0 !important;
        padding: 14px 15px !important;
        background: var(--cp-bonus-bg) !important;
    }
}


/* ---------------------------------------------------------
   KOŠÍK – v štýle zvyšku webu (hranaté, bez tieňov,
   malé nadpisy veľkými písmenami, béžové plochy)
   --------------------------------------------------------- */
/* kroky objednávky */
html body .cart-header {
    margin: 0 0 24px !important;
    border-bottom: 1px solid var(--cp-line) !important;
    background: transparent !important;
}
html body .cart-header .step,
html body .cart-header .step > strong,
html body .cart-header .step > a {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
html body .cart-header .step > strong,
html body .cart-header .step > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: -1px !important;
    padding: 16px 8px !important;
    border-bottom: 2px solid transparent !important;
    color: var(--cp-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}
html body .cart-header .step > strong span,
html body .cart-header .step > a span {
    font-size: inherit !important;
    font-weight: inherit !important;
}
html body .cart-header .step.active > strong,
html body .cart-header .step.active > a {
    color: var(--cp-ink) !important;
    border-bottom-color: var(--cp-dark) !important;
}
html body .cart-header .step::before,
html body .cart-header .step > strong::before,
html body .cart-header .step > a::before {
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 11px !important;
    background: var(--cp-line) !important;
    color: var(--cp-ink) !important;
}
html body .cart-header .step.active::before,
html body .cart-header .step.active > strong::before {
    background: var(--cp-dark) !important;
    color: #fff !important;
}
html body .cart-inner {
    padding-top: 8px !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* položky */
html body .cart-table td {
    border-color: var(--cp-line) !important;
    background: transparent !important;
}
html body .cart-table .cart-p-image img {
    width: 64px !important;
    height: 64px !important;
    padding: 6px;
    background: var(--cp-header-bg);
    object-fit: contain;
    mix-blend-mode: multiply;
}
html body .cart-table .p-name .main-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--cp-ink) !important;
}
html body .cart-table .p-price .price-final,
html body .cart-table .p-price .unit-value {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--cp-muted) !important;
}
html body .cart-table .p-total .price-final {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--cp-ink) !important;
}
html body .cart-table .quantity {
    border: 1px solid var(--cp-dark) !important;
    border-radius: 0 !important;
    background: #fff !important;
}

/* bonusový program – svetlý pás namiesto tmavej karty */
html body .mehub-bonus-cart-container {
    margin: 24px 0 0 !important;
}
html body .mehub-bonus-cart-container h4 {
    margin: 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--cp-ink) !important;
}
html body .mehub-bonus-cart-container .card,
html body .mehub-bonus-cart-container .card.blue {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: var(--cp-bonus-bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
html body .mehub-bonus-cart-container .card *,
html body .mehub-bonus-cart-container .card .card-title,
html body .mehub-bonus-cart-container .card .card-text {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--cp-bonus-text) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}
html body .mehub-bonus-cart-container .card .card-text,
html body .mehub-bonus-cart-container .card .card-text * {
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
html body .mehub-bonus-cart-container .card b {
    font-weight: 600 !important;
    color: var(--cp-ink) !important;
}
html body .mehub-bonus-cart-container .card a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* odporúčané produkty v košíku */
html body .up-after-cart-container {
    margin: 32px 0 0 !important;
}
html body .up-after-cart-container > h4 {
    margin: 0 0 16px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: var(--cp-ink) !important;
}
html body .up-after-cart-container .up-product {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
html body .up-after-cart-container .product-url-image-full-size {
    display: block !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    padding: 10%;
    background: var(--cp-header-bg) !important;
}
html body .up-after-cart-container img.up-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    mix-blend-mode: multiply;
    border-radius: 0 !important;
}
html body .up-after-cart-container .up-product-content {
    padding: 12px 0 0 !important;
}
html body .up-after-cart-container .up-product-description-container,
html body .up-after-cart-container .up-product-description-container a {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: var(--cp-ink) !important;
    hyphens: manual !important;
    -webkit-hyphens: manual !important;
    text-decoration: none !important;
}
html body .up-after-cart-container .up-in-stock-label {
    font-size: 12px !important;
}
html body .up-after-cart-container .up-price-value {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--cp-ink) !important;
}
html body .up-after-cart-container .up-product-add-to-cart a,
html body .up-after-cart-container .up-product-add-to-cart button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 36px !important;
    min-height: 0 !important;
    padding: 0 14px !important;
    background: transparent !important;
    border: 1px solid var(--cp-dark) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--cp-dark) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
html body .up-after-cart-container .up-product-add-to-cart a:hover,
html body .up-after-cart-container .up-product-add-to-cart button:hover {
    background: var(--cp-dark) !important;
    color: #fff !important;
}

/* súhrn: kupón a medzisúčet bez ružovej a zelenej plochy */
html body .cart-summary {
    margin-top: 32px !important;
}
html body .cart-summary .discount-coupon,
html body .cart-summary .summary-wrapper,
html body .cart-summary .checkout-box-wrapper {
    background: var(--cp-header-bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
html body .cart-summary .summary-wrapper {
    padding: 24px !important;
}
html body .cart-summary .discount-coupon .h4,
html body .cart-summary .h4 {
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--cp-ink) !important;
}
html body .cart-summary .discount-coupon input {
    border: 1px solid var(--cp-line) !important;
    border-radius: 0 !important;
    background: #fff !important;
}
html body .cart-summary .btn {
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}
html body .cart-summary .btn:not(.btn-conversion):not([class*="primary"]) {
    background: transparent !important;
    border: 1px solid var(--cp-dark) !important;
    color: var(--cp-dark) !important;
}
html body .cart-summary .discount-coupon .h4,
html body .cart-summary .discount-coupon .h4 * {
    color: var(--cp-ink) !important;
    text-align: left !important;
}
html body .cart-summary .summary-wrapper .price-final,
html body .cart-summary .summary-wrapper strong,
html body .cart-summary .summary-wrapper .price {
    color: var(--cp-ink) !important;
}
html body .cart-summary .extra-item.cp-dup {
    display: none !important;
}
@media (max-width: 767px) {
    html body .cart-header .step > strong,
    html body .cart-header .step > a {
        flex-direction: column;
        gap: 6px;
        padding: 12px 4px !important;
        font-size: 11px !important;
        letter-spacing: 0.04em !important;
        text-align: center;
    }
    html body .up-after-cart-container > h4 {
        font-size: 17px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body .products .product a.image img,
    html body .products .product .btn-cart,
    html body .products .product .add-to-cart-button,
    .cp-ship__fill,
    .cp-chat,
    html body .up-after-cart-container .up-product-add-to-cart a {
        transition: none !important;
    }
}
