/* ==================================================
   BARF-MASO.CZ – VLASTNI VZHLED
   ================================================== */

/* Bílé písmo v tlačítkách Do košíku */
.add-to-cart-button,
.add-to-cart-button:hover,
.add-to-cart-button:focus,
.add-to-cart-button:active {
    color: #ffffff !important;
}

/* Větší logo na počítači */
@media (min-width: 768px) {
    #header .site-name {
        overflow: visible;
    }

    #header .site-name img {
        transform: scale(1.55);
        transform-origin: left center;
    }
}

/* ==================================================
   HLAVNÍ MENU NA POČÍTAČI
   ================================================== */

@media (min-width: 768px) {
    #header .header-bottom {
        background: #f8f1e8;
        border-bottom: 1px solid #e8d9ca;
        box-shadow: 0 3px 10px rgba(88, 20, 21, 0.06);
    }

    #navigation .menu-level-1 > li > a {
        position: relative;
        color: #241c1a;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: color 0.2s ease;
    }

    #navigation .menu-level-1 > li > a:hover,
    #navigation .menu-level-1 > li > a:focus,
    #navigation .menu-level-1 > li > a:active {
        color: #7a1c20;
        text-decoration: none !important;
        border-bottom: none !important;
    }

    /* Shoptet podtrhává také vnitřní text položky. */
    #navigation .menu-level-1 > li > a b,
    #navigation .menu-level-1 > li > a:hover b,
    #navigation .menu-level-1 > li > a:focus b,
    #navigation .menu-level-1 > li > a:active b {
        text-decoration: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #navigation .menu-level-1 > li > a b::before,
    #navigation .menu-level-1 > li > a b::after {
        content: none !important;
        display: none !important;
    }

    #navigation .menu-level-1 > li > a::after {
        content: "";
        position: absolute;
        right: 20px;
        bottom: 10px;
        left: 20px;
        height: 2px;
        background: #7a1c20;
        transform: scaleX(0);
        transition: transform 0.2s ease;
    }

    #navigation .menu-level-1 > li > a:hover::after,
    #navigation .menu-level-1 > li > a:focus::after {
        transform: scaleX(1);
    }
}

/* ==================================================
   MOBILNÍ ROZBALOVACÍ MENU
   ================================================== */

@media (max-width: 767px) {
    #navigation {
        background: #f8f1e8 !important;
        border-right: 1px solid #e2d2c3;
        box-shadow: 6px 0 20px rgba(88, 20, 21, 0.12);
    }

    /* Otevřený mobilní panel */
    body.navigation-window-visible #navigation {
        background: #f8f1e8 !important;
    }

    /* Oblast s tlačítkem pro zavření menu */
    body.navigation-window-visible .navigation-buttons {
        background: #581415;
    }

    #navigation .menu-level-1 > li > a {
        padding: 17px 25px !important;
        color: #2a201d !important;
        text-decoration: none !important;
        border-bottom: 1px solid #e5d7ca !important;
    }

    #navigation .menu-level-1 > li > a b {
        color: #2a201d !important;
        text-decoration: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    #navigation .menu-level-1 > li > a b::before,
    #navigation .menu-level-1 > li > a b::after {
        content: none !important;
        display: none !important;
    }

    #navigation .menu-level-1 > li > a:hover,
    #navigation .menu-level-1 > li > a:focus {
        background: #f1e4d7 !important;
        color: #7a1c20 !important;
        text-decoration: none !important;
    }

    #navigation .menu-level-1 > li > a:hover b,
    #navigation .menu-level-1 > li > a:focus b {
        color: #7a1c20 !important;
    }

    #navigation .menu-level-2 {
        background: #fffaf5 !important;
    }

    #navigation .menu-level-2 a {
        color: #581415 !important;
        text-decoration: none !important;
    }

    /* Přihlášení pod hlavním menu */
    #navigation .navigationActions {
        margin: 0 25px;
        padding-top: 18px;
        border-top: 1px solid #dbc9b8;
    }
}

/* ==================================================
   ÚVODNÍ STRÁNKA
   Pořadí: bannery/carousel → akční zboží → úvodní text
   ================================================== */

.in-index #content {
    display: flex;
    flex-direction: column;
}

.in-index #content > .welcome-wrapper {
    order: 4;
    width: 100%;
    max-width: 980px;
    margin: 35px auto 45px !important;
}

.in-index .welcome {
    padding: 36px 45px;
    background: #fbf6ef;
    border-left: 4px solid #7a1c20;
}

.in-index .welcome .h1 {
    margin: 0 0 20px;
    font-size: 29px;
    color: #581415;
}

.in-index .welcome p {
    margin: 0 0 15px;
    line-height: 1.65;
}

.in-index .welcome p:last-child {
    margin-bottom: 0;
    color: #581415;
}

/* Video vložené pod úvodním textem */
.in-index .welcome video {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 30px auto 0;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #1a1210;
    border: 1px solid #e5d7ca;
    box-shadow: 0 8px 24px rgba(88, 20, 21, 0.12);
}

.in-index #content > .homepage-products-heading-1 {
    order: 2;
    margin: 0 auto 25px !important;
    text-align: center;
    font-size: 30px;
    color: #181818;
}

.in-index .homepage-products-heading-1::after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin: 12px auto 0;
    background: #7a1c20;
    border-radius: 3px;
}

.in-index #content > .products-wrapper {
    order: 3;
    width: 100%;
    margin: 0 auto 35px !important;
}

.in-index #content > .banners-row {
    display: block !important;
    order: 1;
    width: 100%;
    margin-top: 20px !important;
    margin-bottom: 40px !important;
}

.in-index #content > .products-wrapper .p-desc {
    display: none !important;
}

.in-index #content > .products-wrapper .product {
    padding-bottom: 24px;
    background: #ffffff;
    border: 1px solid #eee3d8;
    box-shadow: 0 7px 22px rgba(88, 20, 21, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .in-index #content > .products-wrapper .products-block {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 26px;
    }

    .in-index #content > .products-wrapper .products-block > .product {
        flex: 0 0 calc(50% - 13px) !important;
        width: calc(50% - 13px) !important;
        max-width: 500px;
    }

    .in-index #content > .products-wrapper .product:hover {
        transform: translateY(-3px);
        box-shadow: 0 11px 28px rgba(88, 20, 21, 0.11);
    }
}

/* ==================================================
   ÚVODNÍ STRÁNKA NA MOBILU
   ================================================== */

@media (max-width: 767px) {
    .in-index #content > .banners-row {
        margin-top: 15px !important;
        margin-bottom: 28px !important;
    }

    .in-index #content > .welcome-wrapper {
        margin: 25px auto 35px !important;
    }

    .in-index .welcome {
        padding: 25px 22px;
        border-left-width: 3px;
    }

    .in-index .welcome .h1 {
        font-size: 24px;
    }

    .in-index .welcome video {
        margin-top: 22px;
        box-shadow: 0 4px 15px rgba(88, 20, 21, 0.10);
    }

    .in-index #content > .homepage-products-heading-1 {
        margin: 0 auto 18px !important;
        font-size: 26px;
    }

    .in-index #content > .products-wrapper {
        margin-bottom: 25px !important;
    }

    .in-index #content > .products-wrapper .products-block > .product {
        width: 100% !important;
        max-width: none;
    }

    .in-index #content > .products-wrapper .product {
        box-shadow: 0 4px 15px rgba(88, 20, 21, 0.06);
    }
}

/* ==================================================
   VÝPISY KATEGORIÍ
   ================================================== */

.type-category .products-block .product .p-desc {
    display: none !important;
}

/* ==================================================
   ZÁPATÍ
   ================================================== */

#footer {
    background: #f8f1e8;
    border-top: 1px solid #e8d9ca;
}
