/* ===== maki-custom.css ===== */
:root {
    --bg-main: #F6FAF7;
    --bg-card: #FFFFFF;
    --bg-muted: #ECF4EF;
    --green-primary: #55A888;
    --green-hover: #61B08F;
    --green-soft: #DCEFE6;
    --green-accent: #7BCFA6;
    --lime-touch: #B6E388;
    --text-main: #1F2D27;
    --text-muted: #5F6F68;
    --text-light: #8A9C93;
    --text-on-green: #FFFFFF;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(31, 122, 90, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Глобальні стилі */
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
/* ===== HOME: mobile-first ===== */

.home-section {
    padding: 3rem 0;
}

.home-categories {
    background: var(--bg-muted);
}

.home-popular {
    background: var(--bg-card);
}

.home-section-head {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.home-section-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-section-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--green-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-section-title {
    margin: 0 0 0.75rem;
    color: var(--text-main);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-section-title-left {
    margin-bottom: 0.4rem;
}

.home-section-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.home-section-subtitle-left {
    max-width: 520px;
}

.home-section-link {
    align-self: flex-start;
}

/* ===== Hero carousel ===== */



#bannerCarousel {
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(31, 45, 39, 0.08);
    background: #dfe9e4;
}

.hero-banner-slide {
    position: relative;
    min-height: 420px;
}

.hero-banner-image,
.hero-banner-fallback {
    display: block;
    width: 100%;
    min-height: 420px;
    height: 420px;
    object-fit: cover;
}

.hero-banner-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: #fff;
    font-weight: 700;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 24, 20, 0.10) 0%, rgba(16, 24, 20, 0.55) 100%),
        linear-gradient(90deg, rgba(16, 24, 20, 0.55) 0%, rgba(16, 24, 20, 0.10) 55%, rgba(16, 24, 20, 0.30) 100%);
}

.hero-banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    z-index: 2;
    padding-bottom: 3rem;
}

.hero-banner-content-inner {
    max-width: 620px;
    color: #fff;
}

.hero-banner-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.95;
}

.hero-banner-title {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-banner-text {
    margin: 0 0 1.25rem;
    max-width: 520px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}

.hero-banner-actions .btn {
    min-height: 48px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(25, 135, 84, 0.26);
}

#bannerCarousel .carousel-indicators {
    bottom: 1rem;
    margin-bottom: 0;
    gap: 0.55rem;
}

#bannerCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    transition: var(--transition);
}

#bannerCarousel .carousel-indicators button.active {
    width: 28px;
    background: #fff;
}

#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    width: 48px;
    top: auto;
    bottom: 1rem;
    height: 48px;
    opacity: 1;
}

#bannerCarousel .carousel-control-prev {
    left: auto;
    right: 4.5rem;
}

#bannerCarousel .carousel-control-next {
    right: 1rem;
}

#bannerCarousel .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    background-size: 42%;
    transition: var(--transition);
}

#bannerCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#bannerCarousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.32);
}

/* ===== Category cards ===== */

.category-card {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--green-soft);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green-accent);
}

.category-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-muted), var(--green-soft));
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover .category-img {
    transform: scale(1.06);
}

.category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
}

.category-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(31, 45, 39, 0.08);
}

.category-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.category-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-main);
}

.category-card-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.category-card-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--green-primary);
    font-size: 0.95rem;
    font-weight: 700;
}

/* ===== Product cards ===== */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(85, 168, 136, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card-image-link {
    color: inherit;
    text-decoration: none;
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-muted), var(--green-soft));
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--green-primary);
    font-size: 1.9rem;
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge-new,
.badge-hit,
.badge-sale,
.badge-discount {
    border-radius: 999px;
    padding: 0.38rem 0.7rem;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.badge-new {
    background: rgba(123, 207, 166, 0.18);
    color: #207053;
}

.badge-hit {
    background: rgba(255, 113, 67, 0.15);
    color: #d9481c;
}

.badge-sale {
    background: rgba(182, 227, 136, 0.25);
    color: #3f6e17;
}

.badge-discount {
    background: var(--green-primary);
    color: #fff;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    padding: 1rem;
}

.product-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.product-card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.product-card-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    min-height: 2.7em;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-tag-vegan {
    background: rgba(85, 168, 136, 0.12);
    color: #207053;
}

.product-tag-spicy {
    background: rgba(220, 53, 69, 0.12);
    color: #b42318;
}

.product-weight {
    color: var(--text-light);
    font-size: 0.86rem;
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.product-old-price {
    color: var(--text-light);
    font-size: 0.83rem;
}

.product-current-price {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 800;
}

.add-to-cart-btn {
    flex-shrink: 0;
    min-height: 40px;
    padding-inline: 0.9rem;
}

/* ===== Responsive ===== */

@media (min-width: 768px) {
    .home-section {
        padding: 4rem 0;
    }

    .home-section-row {
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .category-card-body,
    .product-card-body {
        padding: 1.25rem;
    }

    .hero-banner-slide,
    .hero-banner-image,
    .hero-banner-fallback {
        min-height: 560px;
        height: 560px;
    }

    .hero-banner-content {
        align-items: center;
        padding-bottom: 0;
    }

    #bannerCarousel {
        border-radius: 0 0 32px 32px;
    }

    #bannerCarousel .carousel-control-prev,
    #bannerCarousel .carousel-control-next {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    #bannerCarousel .carousel-control-prev {
        left: 1rem;
        right: auto;
    }

    #bannerCarousel .carousel-control-next {
        right: 1rem;
    }

    #bannerCarousel .carousel-indicators {
        bottom: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-banner-title {
        max-width: 10ch;
    }
}
/* ===== Інфо-бар ===== */
.top-info-bar {
    font-size: 0.85rem;
    background-color: var(--bg-card);
    color: var(--text-muted);
    border-bottom: 1px solid rgba(85, 168, 136, 0.1);
    padding: 0.5rem 0;
}

.top-info-bar i {
    color: var(--green-primary);
    transition: var(--transition);
}

.top-info-bar a:hover i {
    transform: scale(1.1);
}

.social-icons a {
    transition: var(--transition);
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ===== Навігація ===== */
.navbar {
    background-color: var(--bg-card) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand small {
    font-size: 0.7rem;
    font-weight: 400;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--green-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link.active {
    font-weight: 600;
    color: var(--green-primary) !important;
}

/* Кнопка кошика */
.btn-cart {
    background: var(--green-soft);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    transition: var(--transition);
    border: none;
}

.btn-cart:hover {
    background: var(--green-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(85, 168, 136, 0.2);
}

.btn-cart i {
    font-size: 1.2rem;
    color: var(--green-primary);
    transition: var(--transition);
}

.btn-cart:hover i {
    color: white;
}

.cart-amount {
    background: var(--green-accent) !important;
    color: var(--text-main);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

/* ===== Слайдер ===== */
.carousel {
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.carousel-item img {
    height: 550px;
    object-fit: cover;
    filter: brightness(0.85);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green-primary);
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(85, 168, 136, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
    transition: var(--transition);
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--green-primary);
}

/* ===== Заголовки секцій ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--green-primary), var(--green-accent));
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* ===== Картки категорій ===== */
.category-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--green-soft);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green-accent);
}

.category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(85, 168, 136, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay .btn {
    border: 2px solid white;
    color: white;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.category-overlay .btn:hover {
    background: white;
    color: var(--green-primary);
    transform: scale(1.05);
}

.category-badge .badge {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(123, 207, 166, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== Картки товарів ===== */
.hover-lift {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--green-soft);
    height: 100%;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green-accent);
}

.product-image {
    width: 100%;
    /*height: 220px;*/
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hover-lift:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(85, 168, 136, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hover-lift:hover .product-overlay {
    opacity: 1;
}

.product-overlay button {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.hover-lift:hover .product-overlay button {
    transform: translateY(0);
    opacity: 1;
}

.hover-lift:hover .product-overlay button:nth-child(1) { transition-delay: 0.05s; }
.hover-lift:hover .product-overlay button:nth-child(2) { transition-delay: 0.1s; }

.quick-view-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quick-view-btn:hover {
    background: var(--green-primary);
    color: white;
    transform: scale(1.1);
}

.quick-view-btn i {
    color: var(--green-primary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.quick-view-btn:hover i {
    color: white;
}

/* Бейджі */
.badge {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.badge-hit {
    background: #FF6B81;
    color: white;
}

.badge-new {
    background: var(--lime-touch);
    color: var(--text-main);
}

/* Ціна */
.card-price {
    color: var(--green-primary);
    font-weight: 700;
    font-size: 1.4rem;
}
.card-title a{
    color: var(--text-main);
}

.product-price s {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Кнопки ===== */
.btn-hover-effect {
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: var(--text-on-green);
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 6px 15px rgba(85, 168, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(85, 168, 136, 0.3);
    background: linear-gradient(135deg, var(--green-hover), var(--green-primary));
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hover-effect:hover::after {
    width: 300px;
    height: 300px;
}


/* ===== Side cart ===== */

.side-cart {
    width: min(100vw, 420px) !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.side-cart-header {
    padding: 1rem 1rem 0.9rem;
    border-bottom: 1px solid rgba(85, 168, 136, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.side-cart-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.side-cart-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.side-cart-items {
    padding: 0.5rem 0;
    overflow-y: auto;
}

.side-cart-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
}

.side-cart-item + .side-cart-item {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.side-cart-item-media {
    width: 76px;
    height: 95px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-muted), var(--green-soft));
    flex-shrink: 0;
}

.side-cart-item-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.side-cart-item-image,
.side-cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.side-cart-item-image {
    object-fit: cover;
}

.side-cart-item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    font-size: 1.2rem;
}

.side-cart-item-main {
    min-width: 0;
}

.side-cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.side-cart-item-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
}

.side-cart-item-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
}

.side-cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.side-cart-item-total {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.side-cart-remove,
.side-cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(85, 168, 136, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.side-cart-remove:hover,
.side-cart-qty-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-1px);
}

.side-cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: #f4faf6;
    border: 1px solid rgba(85, 168, 136, 0.08);
}

.side-cart-qty-value {
    min-width: 20px;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
}

.side-cart-footer {
    padding: 1rem;
    border-top: 1px solid rgba(85, 168, 136, 0.10);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.side-cart-summary {
    margin-bottom: 0.9rem;
}

.side-cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.side-cart-summary-row + .side-cart-summary-row {
    margin-top: 0.55rem;
}

.side-cart-summary-row-total {
    font-size: 1rem;
    font-weight: 800;
}

.side-cart-actions {
    display: grid;
    gap: 0.6rem;
}

.side-cart-checkout-btn {
    box-shadow: 0 10px 24px rgba(85, 168, 136, 0.22);
}

.side-cart-empty {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
}

.side-cart-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(85, 168, 136, 0.10);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.side-cart-empty-title {
    margin: 0 0 0.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 800;
}

.side-cart-empty-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 260px;
}

/* Floating cart */

.cart-floating-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    color: #fff;
    box-shadow: 0 14px 28px rgba(85, 168, 136, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition);
}

.cart-floating-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.cart-floating-count {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #fff;
    color: var(--green-primary);
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(31, 45, 39, 0.10);
}

@media (min-width: 992px) {
    .cart-floating-btn {
        right: 1.25rem;
        bottom: 1.25rem;
    }
}
.cart-item-media picture,
.checkout-item picture {
    display: block;
}

.cart-item-image-placeholder,
.checkout-item-image-placeholder {
    color: var(--text-light);
}

.checkout-item-image-placeholder {
    width: 64px;
    height: 80px;
    border-radius: 12px;
    flex: 0 0 64px;
}
.checkout-item-image {
    width: 64px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 64px;
}

/* ===== Футер ===== */
footer {
    background: #1a2a23; /* темний відтінок, близький до тексту */
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer .social-icons a {
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

footer .social-icons a:hover {
    background: var(--green-primary);
    transform: translateY(-3px);
}

/* ===== Анімації ===== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(85, 168, 136, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(85, 168, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(85, 168, 136, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== Адаптивність ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    .navbar-nav {
        margin-top: 1rem;
    }
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 350px;
    }
    .category-card, .hover-lift {
        margin-bottom: 1rem;
    }
}
/* ===== Catalog / Menu / Category ===== */

.catalog-hero {
    padding: 1rem 0 1.25rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
}

/* ===== Breadcrumbs (minimal clean) ===== */

.breadcrumb-wrap {
    margin-bottom: 0.75rem;
}

.breadcrumb {
    padding: 0;
    margin: 0;
    background: none;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

/* посилання */
.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

/* hover */
.breadcrumb-item a:hover {
    color: var(--green-primary);
    text-decoration: underline;
}

/* активний */
.breadcrumb-item.active span {
    color: var(--text-main);
    font-weight: 600;
}

/* розділювач */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
}

/* mobile */
@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.85rem;
    }
}
@media (min-width: 992px) {
    .breadcrumb-item a:hover {
        box-shadow: var(--shadow-sm);
    }
}

.catalog-hero-inner {
    max-width: 760px;
}

.catalog-hero-title {
    margin: 0 0 0.75rem;
    color: var(--text-main);
    font-size: clamp(2rem, 6vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.catalog-hero-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.catalog-nav-section {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.75rem 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(85, 168, 136, 0.12);
}

.catalog-chip-nav {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.25rem 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.catalog-chip-nav::-webkit-scrollbar {
    display: none;
}
/* ===== Edge fade  ===== */

.catalog-nav-section::before,
.catalog-nav-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    pointer-events: none;
    z-index: 2;
}

.catalog-nav-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card), rgba(255,255,255,0));
}

.catalog-nav-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card), rgba(255,255,255,0));
}

.catalog-chip {
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--green-soft);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.18s ease;
}

.catalog-chip:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-1px);
}
.catalog-chip.active {
    background: var(--green-primary);
    color: #fff;
    border-color: var(--green-primary);
}

.catalog-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--text-main);
    font-size: 0.7rem;
    font-weight: 700;
}
.catalog-chip.active .catalog-chip-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
/* ===== Desktop ===== */

@media (min-width: 992px) {
    .catalog-chip-nav {
        flex-wrap: wrap;
        overflow: visible;
        scroll-snap-type: none;
        padding: 0;
    }

    .catalog-nav-section::before,
    .catalog-nav-section::after {
        display: none;
    }

    .catalog-chip {
        scroll-snap-align: none;
    }
}
.catalog-page {
    padding: 1.5rem 0 3rem;
    background: var(--bg-main);
}

.catalog-section + .catalog-section {
    margin-top: 2.5rem;
}

.catalog-section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.catalog-section-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.1;
    font-weight: 800;
}

.catalog-section-text {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.catalog-section-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--text-main);
    font-weight: 800;
}


/* ===== Shared modern outline button ===== */

.btn-outline-modern {
    border: 1px solid rgba(85, 168, 136, 0.18);
    background: #fff;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-outline-modern:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background: #fff;
    transform: translateY(-1px);
}

/* ===== Product page ===== */

.product-page {
    background: linear-gradient(180deg, #f8fbf9 0%, var(--bg-main) 100%);
}

.ratio-4x5 {
    --bs-aspect-ratio: 125%;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.product-gallery-card,
.product-info-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(85, 168, 136, 0.10);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(31, 45, 39, 0.05);
}

.product-gallery-card .card-body {
    padding: 0.5rem;
}

.product-media-ratio picture,
.product-media-ratio img,
.product-page-placeholder {
    border-radius: 18px;
}

.product-page-image {
    transition: transform 0.25s ease;
}

.product-gallery-card:hover .product-page-image {
    transform: scale(1.015);
}

.product-page-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-muted), var(--green-soft));
    color: var(--green-primary);
    font-size: 2rem;
    width: 100%;
    height: 100%;
}

.product-info-card {
    padding: 1rem;
}

.product-page-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.product-page-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 5vw, 2.7rem);
    line-height: 1.04;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.product-page-text {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.98rem;
}

.product-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-page-meta-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    background: #f2f8f4;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(85, 168, 136, 0.08);
}

.product-price-box {
    margin-top: 1.15rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    border: 1px solid rgba(85, 168, 136, 0.08);
}

.product-page-old-price {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.product-page-current-price {
    color: var(--text-main);
    font-size: clamp(2rem, 5vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.product-price-hint {
    margin-top: 0.45rem;
    color: var(--text-light);
    font-size: 0.82rem;
}

.product-qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: #f4faf6;
    border: 1px solid rgba(85, 168, 136, 0.08);
}

.product-qty-label {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.product-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.product-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(85, 168, 136, 0.14);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    transition: var(--transition);
}

.product-qty-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    transform: translateY(-1px);
}

.product-qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-page-actions {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.product-page-actions .btn {
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-size: 0.94rem;
    font-weight: 700;
}

.product-page-actions .btn-success {
    box-shadow: 0 10px 24px rgba(85, 168, 136, 0.22);
}

.product-page-actions .btn-success:hover {
    transform: translateY(-1px);
}

.product-page-trust {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-info-panel {
    padding: 1rem;
    border-radius: 18px;
    background: #f4faf6;
    border: 1px solid rgba(85, 168, 136, 0.08);
}

.product-info-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.product-info-panel-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .product-gallery-card .card-body {
        padding: 0.65rem;
    }

    .product-info-card {
        padding: 1.15rem;
    }

    .product-page-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .product-layout {
        grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .product-info-card {
        padding: 1.4rem;
    }
}

/* ===== Cart ===== */


.cart-page {
    background: var(--bg-main);
}

.cart-card,
.cart-summary,
.content-card {
    border-radius: 20px;
}

.cart-card .card-header,
.cart-summary .card-header {
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-main);
}

.cart-summary-row + .cart-summary-row {
    margin-top: 0.9rem;
}

.cart-summary-row-final {
    font-size: 1.1rem;
    font-weight: 800;
}

.cart-empty-icon {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    border-radius: 50%;
    background: rgba(85, 168, 136, 0.10);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.cart-empty-title {
    margin: 0 0 .5rem;
    color: var(--text-main);
    font-size: 1.45rem;
    font-weight: 800;
}

.cart-empty-text {
    max-width: 440px;
    margin-inline: auto;
    color: var(--text-muted);
    line-height: 1.6;
}

.cart-item + .cart-item {
    border-top: 1px solid rgba(0,0,0,.06);
}

.cart-item-image {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    background: var(--bg-muted);
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.cart-item-title {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.cart-item-meta {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: .9rem;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.cart-item-total {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem;
    border-radius: 999px;
    background: var(--bg-muted);
}

.cart-qty-btn,
.cart-remove-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--green-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-remove-btn:hover,
.cart-qty-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.cart-qty-value {
    min-width: 24px;
    text-align: center;
    color: var(--text-main);
    font-weight: 800;
}

/* ===== About / Contact ===== */

.content-page {
    background: var(--bg-main);
}

.content-hero {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-muted) 100%);
}

.info-stack {
    display: grid;
    gap: 1rem;
}

.content-section-title {
    margin: 0 0 1rem;
    color: var(--text-main);
    font-size: clamp(1.4rem, 4vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
}

.content-card p {
    color: var(--text-muted);
    line-height: 1.75;
}

.content-mini-title {
    margin: 0 0 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 800;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: .85rem;
    align-items: start;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(85, 168, 136, 0.10);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-title {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: .2rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.55;
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: .9rem;
    align-items: start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(85, 168, 136, 0.10);
    color: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-label {
    margin-bottom: .2rem;
    color: var(--text-light);
    font-size: .86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact-value {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    word-break: break-word;
}

a.contact-value:hover {
    color: var(--green-primary);
}

@media (min-width: 768px) {
    .cart-item-image {
        width: 88px;
        height: 110px;
        border-radius: 14px;
        object-fit: cover;
        display: block;
        background: var(--bg-muted);
    }
    .checkout-item-image {
        width: 64px;
        height: 80px;
        border-radius: 12px;
        object-fit: cover;
        flex: 0 0 64px;
    }
}
.maki-footer {
    background: linear-gradient(180deg, var(--green-primary), #3f8f73);
    color: var(--text-on-green);
    padding: 40px 0 24px;
    margin-top: 48px;
}

.maki-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.maki-footer-logo img {
    max-width: 150px;
    height: auto;
    display: block;
}

.maki-footer-text {
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.6;
}

.maki-footer-contact {
    margin: 0;
    font-size: 15px;
}

.maki-footer-contact span {
    color: rgba(255, 255, 255, 0.78);
}

.maki-footer a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.maki-footer a:hover {
    color: var(--lime-touch);
}

.maki-footer-section h6 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.maki-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maki-footer-section li {
    margin-bottom: 9px;
}

.maki-footer-section li a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.maki-footer-address {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 15px;
    line-height: 1.6;
}

.maki-footer-social {
    display: flex;
    gap: 10px;
}

.maki-footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.maki-footer-social a:hover {
    background: #fff;
    color: var(--green-primary);
}

.maki-footer-bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-align: center;
}

@media (min-width: 576px) {
    .maki-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .maki-footer-section:last-child {
        grid-column: 1 / -1;
    }

    .maki-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .maki-footer {
        padding-top: 56px;
    }

    .maki-footer-grid {
        grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
        gap: 36px;
    }

    .maki-footer-section:last-child {
        grid-column: auto;
    }
}
