﻿html, body {
    max-width: 100%;
    overflow-x: hidden;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767.98px) {
    * {
        box-sizing: border-box;
    } 

    header.custom-header nav {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }
}

.weekly-offer-glow {
    background: white;
    border-radius: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .weekly-offer-glow:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 128, 0, 0.25);
    }

.countdown-box {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px dashed #28a745;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1050;
}

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.85rem;
        color: #198754;
        text-decoration: none;
        position: relative;
        padding: 5px;
    }

        .mobile-bottom-nav .nav-item:hover {
            color: #0a5c3f;
        }

        .mobile-bottom-nav .nav-item i {
            font-size: 1.4rem;
            margin-bottom: 2px;
        }
         


/* Header background and text */
header.custom-header {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); /* ավելի շեշտված ստվեր */
    background-color: #198754; /* կամ թող լինի bg-white կամ green, ըստ դիզայնի */
    z-index: 1050;
    color: white;
}

    /* Navigation links */
    header.custom-header nav a.nav-link {
        color: white;
        font-weight: 500;
        padding: 8px 14px;
        transition: 0.3s;
        border-radius: 8px;
    }

        header.custom-header nav a.nav-link:hover {
            background-color: rgba(255, 255, 255, 0.1);
            text-decoration: none;
        }

/* Call button */
.call-btn {
    background-color: #ffffff;
    color: #2e7d32;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

    .call-btn i {
        font-size: 1.2rem;
    }

    .call-btn:hover {
        background-color: #c8e6c9;
        color: #1b5e20;
        text-decoration: none;
    }


.category-select-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
    .category-select-card h6 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.95rem;
    }
    .category-select-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 128, 0, 0.15);
    }


.object-fit-cover {
    object-fit: cover;
    object-position: center;
}

.product-card {
    transition: all 0.3s ease-in-out;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(25, 135, 84, 0.2);
    }

.product-img {
    height: 200px;
    object-fit: cover;
}
.object-fit-cover {
    object-fit: cover;
    object-position: center;
}
#cart-count {
    font-size: 0.85rem;
    padding: 0.3em 0.6em;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-table td,
    .cart-table th {
        word-wrap: break-word;
        white-space: normal;
    }

    .cart-table img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 0.5rem;
    }

@media (max-width: 768px) {
    .cart-header-cell {
        padding: 0.3rem 0.5rem !important; /* նվազագույն padding */
        font-size: 0.9rem !important; /* փոքր տեքստ */
        font-weight: 600;
        vertical-align: middle;
        white-space: nowrap;
    }
    body, html {
        overflow-x: hidden !important;
    }

    .cart-table {
        width: 100% !important;
    }

        .cart-table td,
        .cart-table th {
            padding: 0.6rem 0.4rem;
            font-size: 0.85rem;
        }

        .cart-table img {
            width: 48px !important;
            height: 48px !important;
        }

    .d-flex.align-items-center.gap-3 {
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }

    .cart-qty-input {
        width: 55px !important;
        font-size: 16px !important;
        text-align: center;
        width: 60px;
        height: 38px;
        padding: 0.3rem;
    }
    #cart-success-toast {
        bottom: 70px !important; /* ավելի բարձր հեռավորություն mobile nav-ի համար */
        z-index: 9999 !important;
    }
} 
#product-list.opacity-50 {
    transition: opacity 0.3s ease-in-out;
}

.alert-info {
    background-color: #f1f9ff;
    border-left: 4px solid #198754;
}
.add-to-cart-btn.btn-added {
    background-color: #198754 !important;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(25,135,84,0.5);
    transition: all 0.3s ease;
}

.quick-view-btn {
    margin-bottom: 10px;
}


.add-to-cart-big-btn {
    background-color: #198754;
    color: white;
    font-size: 1.3rem;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(25, 135, 84, 0.4);
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .add-to-cart-big-btn:hover {
        background-color: #157347;
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 12px 32px rgba(21, 115, 71, 0.5);
        color: white;
        text-decoration: none;
    }

.quantity-big-input {
    border: 2px solid #28a745;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    width: 100px;
    transition: all 0.3s ease;
}

    .quantity-big-input:focus {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
        outline: none;
    }


/* Filter Form Block */
#filter-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

    /* Filter Labels */
    #filter-form .form-label {
        font-weight: 600;
        color: #388e3c;
    }

    /* Filter Inputs */
    #filter-form .form-control,
    #filter-form .form-select {
        border-radius: 12px;
        padding: 10px 14px;
        font-size: 0.95rem;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        #filter-form .form-control:focus,
        #filter-form .form-select:focus {
            border-color: #198754;
            box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
        }

    /* Submit Button */
    #filter-form .btn-success {
        font-weight: 600;
        border-radius: 12px;
        padding: 10px 0;
        transition: background-color 0.3s;
    }

        #filter-form .btn-success:hover {
            background-color: #157347;
        }


.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 300px;
    max-height: 600px; /* կամ 70vh ըստ ճաշակի */
    overflow: hidden;
}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        max-height: 600px;
        border-radius: 0;
    }


.carousel-caption {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}
.caption-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.caption-content {
    background: rgba(0, 0, 0, 0.55);
    max-height: 80%;
    overflow-y: auto;
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    word-wrap: break-word;
    overflow-y: auto; /* հնարավոր է սքրոլ լինի */
    scrollbar-width: none;
}

    .caption-content h5 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .caption-content p {
        font-size: 1.1rem;
    }

.nav-link.active,
.nav-item.active {
    font-weight: bold;
    border: 2px solid #28a745;
    border-radius: 5px; 
}

/* Mobile-friendly text sizes */
@media (max-width: 576px) {
    footer{
        display: contents;
    }

    .caption-content h5 {
        font-size: 1.1rem;
    }

    .caption-content p {
        font-size: 0.9rem;
    }


    #abountSection {
        text-align: center;
    }

    .mobile-bottom-nav .nav-item.active {
        background-color: #e6ffe6;
        border-radius: 10px;
    }

    .call-top-btn {
        z-index: 9999;
    }

        .call-top-btn .btn {
            background-color: #28a745;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .nav-link.active,
    .nav-item.active {
        background-color: #d0ffd0;
    }


    .cart-summary-box {
        flex-direction: column;
        align-items: stretch;
    }

        .cart-summary-box h4 {
            font-size: 1.2rem;
            text-align: center;
        }

        .cart-summary-box a.btn {
            width: 100%;
            text-align: center;
        }

}

.weekly-offer-full-bg {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(to right, #e8f5e9, #f1f8f4);
    padding: 4rem 0;
}

    .weekly-offer-full-bg .card {
        border-radius: 16px;
        overflow: hidden;
    }

    .weekly-offer-full-bg .card-img-top {
        height: 260px;
        object-fit: cover;
    }

    .weekly-offer-full-bg .card-body {
        background-color: #ffffff;
    }

    .weekly-offer-full-bg .btn-success {
        font-weight: 600;
        padding: 10px 24px;
        border-radius: 30px;
    }


.fly-img {
    transition: transform 0.3s ease;
}

    .fly-img:hover {
        transform: scale(1.02);
    }


.hover-shadow {
    transition: all 0.3s ease-in-out;
}

    .hover-shadow:hover {
        box-shadow: 0 8px 24px rgba(25, 135, 84, 0.25);
        transform: translateY(-5px);
    }


    
.stylish-select {
    border-radius: 1rem;
    border: 2px solid #28a745;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #155724;
    background-color: #f9fff9;
    transition: all 0.3s ease;
}

    .stylish-select:hover,
    .stylish-select:focus {
        background-color: #eaffea;
        border-color: #218838;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        outline: none;
    }


.image-option.selected {
    border: 2px solid #198754;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}

.image-option:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.image-wrapper.selected {
    border: 2px solid #198754;
    box-shadow: 0 0 10px rgba(25, 135, 84, 0.5);
}


.main-nav .nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
    padding: 8px 14px;
    transition: all 0.3s ease;
}

.main-nav .nav-link.active,
.main-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.nav-item-with-dropdown {
    position: relative;
}

.nav-item-with-dropdown:hover .mega-menu {
    display: flex;
}
    .nav-item-with-dropdown .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        border-radius: 12px;
        padding: 1.5rem;
        width: 800px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 9999; /* Բարձր արժեք՝ վերևում երևալու համար */
        flex-wrap: wrap;
        gap: 1.5rem;
    }

.mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    z-index: 3000;
    min-width: 700px;
    max-width: 90vw;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mega-menu-column {
    flex: 1 1 200px;
}

.mega-menu-title {
    font-weight: 600;
    color: #198754;
    margin-bottom: 0.5rem;
}

.mega-menu a {
    color: #333;
    display: block;
    padding: 5px 0;
    text-decoration: none;
    font-size: 0.9rem;
}

.mega-menu a:hover {
    text-decoration: underline;
    color: #157347;
}

/* Elegant Mega Menu Container */
.elegant-dropdown {
    position: relative;
}

.elegant-dropdown .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px); /* փոքր տարածություն մենյուի տակ */
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    min-width: 700px;
    max-width: 90vw;
    z-index: 3000;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.elegant-dropdown:hover .mega-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    animation: fadeInMenu 0.3s ease-in-out;
}

/* Columns inside the mega menu */
.mega-menu-column {
    flex: 1 1 200px;
}

.mega-menu-title {
    font-weight: 600;
    color: #198754;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mega-menu a {
    color: #333;
    display: block;
    padding: 4px 0;
    text-decoration: none;
    font-size: 0.92rem;
}

.mega-menu a:hover {
    color: #145c36;
    text-decoration: underline;
}

/* Fade-in animation */
@keyframes fadeInMenu {
    0% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
.mega-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

    .mega-menu.show {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

.mega-menu-title a {
    display: inline-block;
    font-weight: 700;
    color: #198754;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding: 4px 2px;
    transition: all 0.3s ease;
}

    .mega-menu-title a:hover {
        color: #145c36;
        border-bottom: 2px solid #198754;
        text-decoration: none;
    }



.stylish-filter {
    background: #ffffff;
    border: 1px solid #e6f4ea;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stylish-input, .stylish-select {
    border: 2px solid #c8e6c9;
    border-radius: 14px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .stylish-input:focus, .stylish-select:focus {
        border-color: #198754;
        box-shadow: 0 0 0 0.2rem rgba(25,135,84,0.25);
        outline: none;
    }

.stylish-btn {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.75rem 1.2rem;
    border-radius: 14px;
    transition: all 0.3s ease-in-out;
}

    .stylish-btn:hover {
        background-color: #145c36;
        transform: scale(1.02);
    }


#scroll-section {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

    #scroll-section:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
        border-color: #d0f0d0;
    }

    #scroll-section select {
        border-radius: 10px;
        padding: 6px 12px;
        font-weight: 500;
    }

.stylish-select optgroup {
    font-weight: bold;
    color: #198754;
} 


.stylish-select option {
    padding-left: 10px;
    font-weight: 500;
}

    .stylish-select option[value]:not([value=""]) {
        font-family: "Segoe UI", sans-serif;
    }

    /* Ենթակատեգորիաների indentation */
    .stylish-select option::before {
        content: '';
    }

    .stylish-select option:nth-child(n+2):not([value=""]) {
        padding-left: 20px;
    }

.empty-cart-box {
    background-color: #f5fff7;
    border: 2px dashed #198754;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
}

.cart-summary-box h4 {
    font-size: 1.5rem;
}

.cart-table td,
.cart-table th {
    vertical-align: middle;
    padding: 1rem;
    font-size: 1rem;
}