/* ===== 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;
}

/* ===== Інфо-бар ===== */
.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;
}

.btn-outline-modern {
    border: 2px solid var(--green-primary);
    color: var(--green-primary);
    background: transparent;
    border-radius: 40px;
    padding: 0.5rem 1.8rem;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ===== Бічна корзина ===== */
.side-cart {
    background: var(--bg-card);
    border-left: 1px solid var(--green-soft);
}

.side-cart .offcanvas-header {
    border-bottom: 1px solid var(--green-soft);
}

.side-cart .offcanvas-title {
    font-weight: 700;
    color: var(--text-main);
}

.side-cart-footer {
    background: var(--bg-muted);
}

.cart-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-hover));
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(85, 168, 136, 0.3);
    transition: var(--transition);
    z-index: 1000;
    display: none; /* показується тільки на мобільних */
}

@media (max-width: 768px) {
    .cart-floating-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.cart-floating-btn:hover {
    transform: scale(1.1);
}

.cart-floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--lime-touch);
    color: var(--text-main);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Футер ===== */
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;
    }
}
