@media (min-width: 992px) and (max-width: 1199px) {
    header .bottomRow {
    position: fixed;
    top: 50px; /* Default position; will be adjusted by JS */
    left: 0;
	max-height: 70px;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    transition: top 0.3s ease-in-out; /* Smooth movement when topRow hides/shows */
}
	header .bottomRow .navbar .navbar-header .navbar-brand {
		display: none;
	}
	.project-carousel {
        width: 100%;
        height: auto; /* Allow dynamic height based on content */
        margin: 0 auto;
        overflow: hidden;
    }

    .project-carousel .carousel-inner {
    }

    .project-carousel .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .project-carousel .carousel-control {
        font-size: 30px;
        opacity: 0.7;
    }

    .carousel {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }

    .carousel-inner {
        height: auto;
    }

    .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .carousel-control {
        font-size: 30px;
        opacity: 0.7;
    }
	.modal-body .project-carousel {
        height: auto;
        width: 60%;
        overflow: hidden;
    }

    .modal-body .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    #heroBox {
        height: auto;
        padding-top: 20px;
        min-height: 450px; /* Maintain minimum height */
    }

    #heroBox h2 {
        line-height: 20px;
        margin: 15px 0;
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    #heroBox h5 {
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    #heroBox h1 {
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    .blogsSection .blogRow {
        width: 100%;
    }

    .whyChoose {
        width: 50%;
    }

    .workWithUs {
        width: 100%;
    }

    #pageCover h3:before {
        width: calc(50% - 75px);
    }

    #pageCover .pageDirection:before {
        width: calc(50% - 75px);
    }

   .single-project .project_about dl dt {
        width: 100px;
    }

    .navbar-right {
        width: 100%;
    }
    .blogsSection .blog .postMeta {
        font-size: 12px;
        margin: 15px 0;
    }

    .workWithUs h4 {
        margin-top: 5px;
    }

    .workWithUs a {
        margin-bottom: 0;
    }

    .addressRow .addressCol ul li i {
        margin-right: 8px;
    }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
	.product-grid {
    grid-template-columns: repeat(2, 2fr); /* 2 колонки на экранах меньше 1200px */
		width: 50%;
  }
	.product-item {
    height: 360px;
  }
	
}
@media (min-width: 768px) and (max-width: 991px) {
    .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки на экранах меньше 1200px */
  }
	.product-item {
    height: 300px;
  }
	
	.bottomRow {
        width: 100%; /* Corrected calc syntax */
        min-height: 120px;
        padding-top: 0px; /* Adjust based on topRow height */
    }
	header .bottomRow .navbar .navbar-header .navbar-brand {
		display: none;
	}
	header .bottomRow .navbar #mainNav .nav li a {
    padding: 0 15px;
    line-height: 60px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    color: #303030;
}
	.project-carousel {
        width: 100%;
        height: auto; /* Allow dynamic height based on content */
        margin: 0 auto;
        overflow: hidden;
    }

    .project-carousel .carousel-inner {
        height: auto;
    }

    .project-carousel .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .project-carousel .carousel-control {
        font-size: 30px;
        opacity: 0.7;
    }

    .carousel {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }

    .carousel-inner {
        height: auto;
    }

    .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .carousel-control {
        font-size: 30px;
        opacity: 0.7;
    }
	.modal-body .project-carousel {
        height: auto;
        width: 60%;
        overflow: hidden;
    }

    .modal-body .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    #heroBox {
        height: auto;
        padding-top: 45px;
        min-height: 660px; /* Maintain minimum height */
    }

    #heroBox h2 {
        line-height: 20px;
        margin: 15px 0;
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    #heroBox h5 {
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    #heroBox h1 {
        -webkit-text-stroke-width: 0.2px;
        -webkit-text-stroke-color: black;
    }

    .blogsSection .blogRow {
        width: 100%;
    }

    .whyChoose {
        width: 50%;
    }

    .workWithUs {
        width: 100%;
    }

   .single-project .project_about dl dt {
        width: 100px;
    }

    .navbar-right {
        width: 100%;
    }
    .blogsSection .blog .postMeta {
        font-size: 12px;
        margin: 15px 0;
    }

    .workWithUs h4 {
        margin-top: 5px;
    }

    .workWithUs a {
        margin-bottom: 0;
    }

    #pageCover {
        margin-top: 30px;
    }

    #pageCover h3:before {
        width: calc(50% - 485px);
    }

    #pageCover .pageDirection:before {
        width: calc(50% - 485px);
    }

    .addressRow .addressCol ul li i {
        margin-right: 8px;
    }

	.sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
}
@media (max-width: 767px) {
	#clear-cart {
        width: 100% !important;
        box-sizing: border-box;
        padding: 5px 5px;
        font-size: 14px;
    }
	.product-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
	/* Стили для товаров */
	.product-item {
    padding: 10px;
  }

	.product-item img {
  max-width: 100%;
  height: auto;
  display: block;
}
	#projectsRow #projectCarousel {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }
    #projectsRow #projectCarousel .carousel-inner {
        height: 200px; /* Smaller height for mobile */
    }
    #projectsRow #projectCarousel .carousel-inner .item {
        height: 200px;
        width: 100%;
    }
    #projectsRow #projectCarousel .carousel-inner .item img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        display: block;
    }
    #projectsRow #projectCarousel .carousel-control {
        font-size: 25px;
        opacity: 0.7;
    }
	.project-carousel {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }

    .project-carousel .carousel-inner {
        height: auto;
    }

    .project-carousel .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .project-carousel .carousel-control {
        font-size: 25px;
        opacity: 0.7;
    }

    .modal-body .project-carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .modal-body .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    #projectsRow .carousel {
        width: 100%;
        height: auto;
        margin: 0 auto;
        overflow: hidden;
    }

    #projectsRow .carousel-inner {
        height: auto;
    }

    #projectsRow .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    #projectsRow .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    #projectsRow .carousel-control {
        font-size: 25px;
        opacity: 0.7;
    }

    #projectsRow .modal-body .carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    #projectsRow .modal-body .carousel-inner {
        height: auto;
    }

    #projectsRow .modal-body .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    #projectsRow .modal-body .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    #projectsRow .modal-dialog {
        width: 90%;
        max-width: 500px;
        margin: 30px auto;
    }

    #projectsRow .modal-content {
        width: 100%;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    #heroBox h1,
    #heroBox h2,
    #heroBox h3,
    #heroBox h4 {
        font-size: 18px;
        line-height: 1.4;
    }

    .btn {
        margin-top: 10px;
        width: 100%;
    }

    #topFooter:after {
        height: 5px;
    }

    .footer_widget {
        min-height: 50px;
    }

    #heroBox {
        padding: 50px 0 20px;
        min-height: 600px; /* Adjusted for mobile */
		width: 100%;
        aspect-ratio: 1200 / 660;
		height:auto;
		transform: scale()
    }

    .welcome-text {
        max-width: 100%;
        padding: 0 5px;
    }

    .welcome-text h1 {
        font-size: 20px;
        line-height: 32px;
    }

    .welcome-text h2 {
        font-size: 14px;
        line-height: 24px;
    }

    .welcome-text p {
        font-size: 16px;
        line-height: 20px;
    }

    .hero-button {
        margin-top: 0;
        text-align: center;
    }

    .hero-button a {
        padding: 2px 5px;
        font-size: 14px;
    }

    .hero-button a:hover {
        background-color: #245b1f;
        color: #ffffff;
    }
	.card-button {
        margin-top: 0;
        text-align: center;
    }
    .card-button a {
        padding: 12px 20px; /* Increased padding for larger touch target */
        font-size: 18px; /* Larger font size for readability */
        height: 50px; /* Fixed height for consistency */
        line-height: 26px; /* Center text vertically */
        width: 100%; /* Full width for mobile */
        display: inline-block; /* Ensure proper sizing */
        box-sizing: border-box; /* Prevent padding from increasing size */
        background-color: #2f7829; /* Match site’s green theme */
        color: #ffffff; /* White text for contrast */
        text-decoration: none; /* Remove underline */
        border-radius: 5px; /* Subdued rounded corners */
    }
    .card-button a:hover {
        background-color: #245b1f; /* Existing hover color from your CSS */
        color: #ffffff;
    }
    .prof h4 {
        font-size: 18px;
        line-height: 26px;
    }

    .blogsSection .blog.blog_page.single_blog .contents {
        padding-left: 25px;
        padding-right: 25px;
    }

    .remontiobsluzhivanie {
        padding-left: 25px;
        padding-right: 25px;
    }

    .blogsSection .blog.col-sm-4 {
        width: 100%;
        float: none;
    }

    .blogsSection.home2 {
        background-size: cover;
    }

    #featureBlog {
        background-size: cover;
    }

    .featureBlog {
        width: 100%;
        margin: 0 auto;
    }

    .featureBlog .media-left {
        display: block;
        margin-bottom: 40px;
    }

    .featureBlog .media-body {
        padding-left: 0;
    }

    .viewAllBlogLink {
        text-align: center;
    }

    .youMightLike {
        padding-left: 25px;
    }

    .youMightLike .youMightLikeBlog {
        width: 100%;
        box-sizing: border-box;
    }

    .youMightLike .row {
        margin: 0;
    }

    .youMightLike .youMightLikeBlog img {
        width: 100%;
        height: auto;
        display: block;
    }

    .youMightLike .youMightLikeBlog h5 {
        font-size: 16px;
        line-height: 1.4;
        margin: 10px 0 5px;
    }

    .youMightLike .youMightLikeBlog .meta {
        font-size: 13px;
        color: #888;
    }

    .filtersRow {
        margin: 0;
    }

    .filtersRow .project_filderButton {
        width: 100%;
        background: #2f7829;
        border: none;
        line-height: 40px;
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
    }

    .filtersRow .project_filderButton i {
        margin-right: 5px;
    }

    .tags_share {
        padding: 0;
    }

    nav .pager {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 5px;
    }

    .modal-body .carousel-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-control {
        font-size: 25px;
        opacity: 0.7;
    }

    .modal-body {
        padding: 10px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 10px;
    }

    .modal-dialog {
        width: auto;
        max-width: 90%;
        margin: 30px auto;
    }

    .kek h1 {
        font-size: 15px;
    }

    .kek h2 {
        font-size: 13px;
    }

	    #pageCover {
        margin-top: 15px;
    }
    #pageCover .pageDirection .breadcrumb {
        padding: 0 20px;
    }

    #pageCover .pageDirection .breadcrumb li {
        font-size: 14px;
        line-height: 25px;
    }

    header .topRow {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
        line-height: 40px; /* Increased for better visibility */
        background: #303030;
        transition: opacity 0.3s ease-in-out;
    }

    header .bottomRow {
        position: fixed;
        left: 0;
        width: 100%;
		min-height: 100px;
        z-index: 1000;
        padding-top: 0;
        background: #ffffff;
        transition: top 0.3s ease-in-out;
    }

    header .bottomRow .navbar .navbar-header button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 10px 25px;
        line-height: 20px;
        background: #2f7829;
        color: #303030;
        border-radius: 0;
        font-family: 'Montserrat', sans-serif;
        border: none;
        text-transform: uppercase;
        z-index: 1001;
    }

    header .bottomRow .navbar-collapse {
        position: relative;
        top: 0;
        background: #fff;
        padding-bottom: 25px;
    }

    header .bottomRow .navbar .navbar-header {
        padding: 0;
        margin: 0;
    }

    header .bottomRow .navbar .navbar-header .navbar-brand {
        position: relative;
        left: 50%;
		top: 60px;
        transform: translateX(-50%);
        display: block;
        width: 100%;
        text-align: center;
    }

    header .bottomRow .navbar .navbar-header .navbar-brand img {
        position: relative;
		padding-top: 5px;
        width: 120px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    header .bottomRow .navbar .navbar-header button.navbar-toggle.collapsed {
        background: #2f7829;
        color: #303030;
    }

    header .bottomRow .navbar .navbar-header button.navbar-toggle {
        margin: 0;
        background: #303030;
        color: #fff;
    }

    header .bottomRow .navbar .navbar-header button i {
        margin-right: 5px;
    }

    header .bottomRow .navbar #mainNav {
        padding-bottom: 10px;
        background: #fff;
    }

    header .bottomRow .navbar #mainNav .nav {
        display: block;
    }

    header .bottomRow .navbar #mainNav .nav li {
        width: 100%;
    }

    header .bottomRow .navbar #mainNav .nav li a {
        line-height: 45px;
        padding: 0 8px;
        font-size: 14px;
        text-align: center;
        border-bottom: 1px solid rgba(48, 48, 48, 0.1);
    }

    header .bottomRow .navbar #mainNav .nav li.active a {
        background: none;
    }

    header .bottomRow .navbar #mainNav .nav li.active a:after {
        display: none;
    }

    header .bottomRow.scrolled-compact .navbar .navbar-header button {
        line-height: 15px;
		margin-top: 20px;
    }

    header .bottomRow.scrolled-compact .navbar #mainNav .nav li a {
        line-height: 30px;
    }

    body.scrolled-compact {
        
		top: 5px;
    }

	.add-to-cart {
        width: 100%; /* Full width for mobile */
        padding: 12px 20px; /* Larger tap target */
        font-size: 14px; /* Slightly smaller for mobile */
        min-height: 48px; /* Ensure touch-friendliness */
        line-height: 1.5;
    }
    .quantity-input input {
        width: 50px; /* Slightly smaller for mobile */
        font-size: 14px;
    }
	.cart-actions {
        display: flex;
		object-position: center;
        flex-direction: column;
        gap: 10px;
        max-width: 220px;
    }
    .cart-actions button {
        width: 100%;
        box-sizing: border-box;
		    padding-left: 15px; /* или другой одинаковый паддинг с обеих сторон */
    padding-right: 15px;
    }
	.sort-buttons {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap; /* Allows buttons to wrap to the next line */
		flex-direction: column;
        gap: 8px; /* Adds space between buttons */
            }
            .sort-buttons a {
                font-size: 12px;
        padding: 6px 10px;
        width: 48%; /* Adjust width to allow two buttons per line with some gap */
        box-sizing: border-box; /* Include padding and border in the element's total width and height */
            }
}
@media (max-width: 640px) {
    .blogsSection .blog.blog_page.single_blog .post_thumbnail_row i {
        width: 50px;
        line-height: 50px;
        font-size: 18px;
    }

    .blogsSection .blog.col-sm-4 {
        min-width: 320px;
        margin: 0 auto;
        padding: 15px;
        float: none;
    }

    .blogsSection .blog.col-sm-4 .post_thumbnail_row i {
        line-height: 50px;
        font-size: 18px;
        width: 50px;
    }

    .blogsSection #servicesBlocks .blog {
        max-width: 320px;
        min-width: 150px;
        float: left;
    }
	  .btn {
    width: 100%;
    padding: 5px 0;
    font-size: 18px;
    min-width: unset;
  }
  
	 #order-form-section {
    padding: 12px 15px;
    margin: 15px 10px 30px 10px;
  }
  #order-form-section h3 {
    font-size: 18px;
  }
  #order-form-section label {
    font-size: 13px;
  }
  #order-form-section input[type="text"],
  #order-form-section input[type="email"],
  #order-form-section input[type="tel"] {
    font-size: 13px;
    padding: 3px 5px;
  }
  #order-form-section .error {
    font-size: 11px;
  }
  #order-form-section button.btn {
    font-size: 15px;
    padding: 9px 0;
  }
.sort-buttons {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap; /* Позволяет кнопкам переноситься на новую строку */
        flex-direction: column; /* Вертикальное расположение на мобильных */
        gap: 10px; /* Увеличенный отступ между кнопками */
        width: 100%; /* Полная ширина контейнера */
        margin: 0 auto; /* Центрирование */
    }

    .sort-buttons a {
        font-size: 12px;
        padding: 6px 10px;
        width: 100%; /* Полная ширина для каждой кнопки в колонке */
        box-sizing: border-box; /* Учитываем padding и border в ширине */
        display: block; /* Блоки для вертикального расположения */
        text-align: center; /* Центрируем текст внутри кнопок */
        margin-bottom: 5px; /* Небольшой отступ снизу */
    }
}
@media (max-width: 580px) {
	#heroBox {
        padding-top: 60px;
    }
.sort-buttons {
        gap: 8px;
    }

    .sort-buttons a {
        width: 100%; /* Полная ширина */
        padding: 6px 12px;
        margin-bottom: 5px;
    }
	/* Контейнер с таблицей и кнопкой */
    #cart-wrapper {
        flex-direction: column !important; /* из строки flex-direction: row ставим column */
        align-items: stretch; /* растянуть на всю ширину */
    }

    /* Таблица — займет всю ширину */
    #cart-table {
        margin-right: 0 !important;
        width: 100% !important;
        overflow-x: auto; /* добавим горизонтальный скролл для таблицы если нужно */
    }

    /* Контейнер кнопки очистки */
    #cart-wrapper > div {
        width: 100% !important;
        margin-top: 15px;
        display: flex;
        justify-content: flex-start; /* можно изменить на center или flex-end по желанию */
    }

    /* Кнопка очистки */
    #clear-cart {
        width: 40% !important;
        box-sizing: border-box;
        padding: 5px 5px;
        font-size: 12px;
    }
	.btn {
    width: 100%;
    padding: 5px 0;
    font-size: 18px;
    min-width: unset;
  }
	#pageCover {
        margin-top: 20px;
    }
	header .bottomRow {
        position: fixed;
        left: 0;
        width: 100%;
		min-height: 100px;
        z-index: 1000;
        top: 60px;
        background: #ffffff;
        transition: top 0.3s ease-in-out;
    }
	header .bottomRow .navbar .navbar-header .navbar-brand {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: block;
        width: 100%;
        text-align: center;
    }
	/* Добавляем фиксированную высоту для topRow */
    header .topRow {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
        line-height: 25px;
        background: #303030;
        transition: opacity 0.3s ease-in-out;
        height: 60px; /* Фиксируем высоту */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    header .topRow .top-row-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 20px;
        height: 100%; /* Заполняем фиксированную высоту */
        justify-content: space-between;
    }

    header .topRow .top-row-item {
        margin: 0;
        padding: 2px 0; /* Уменьшаем padding */
        width: 100%;
    }
	    header .topRow .search-cart-group {
        display: flex;
        align-items: flex-end;
        width: 100%;
    }

    header .topRow .search .search-input {
        width: 130px;
        height: 30px;
        font-size: 11px;
    }

    header .topRow .search .search-input:focus {
        width: 140px;
    }

    header .topRow .cart {
        flex-direction: row;
    }

    header .topRow .cart a {
        font-size: 11px;
    }

}
@media (max-width: 500px) {
    filter-group {
		gap: 5px;
	}
	.carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .carousel-inner {
        height: auto;
    }

    .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .carousel-control {
        font-size: 20px;
        opacity: 0.7;
    }

    .modal-body .carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .tags_share {
        padding: 0;
    }

    .workWithUs h4 {
        font-size: 17px;
    }

    nav .pager {
        padding: 0;
    }

    #contactInfos .shotInfo {
        padding-left: 10px;
        padding-right: 10px;
    }

    #pageCover {
        margin-top: 20px;
    }

    #pageCover .pageDirection {
        width: calc(100% - 5px);
    }

    .bomba {
        width: 100%;
        line-height: 30px;
    }

    #heroBox {
        padding-top: 50px;
        min-height: 650px; /* Adjusted for mobile */
		max-height: 800px;
		width: 100%;
        aspect-ratio: 1200 / 660;
		height:auto;
		transform: scale()
    }

    #heroBox h2 {
        font-size: 23px;
        line-height: 25px;
    }

    header .topRow {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1100;
		height: 60px;
        line-height: 30px; /* Adjusted for mobile */
        background: #303030;
        transition: opacity 0.3s ease-in-out;
    }

    header .topRow .top-row-content {
        flex-direction: column;
        align-items: flex-start;
    }

    header .topRow .top-row-item {
        margin: 0;
    }

    header .topRow .logo {
        font-size: 11px;
        visibility: hidden;
    }

    header .topRow .contact-info {
        flex-direction: row;
        font-size: 11px;
    }

    header .topRow .search-cart-group {
        display: flex;
        align-items: flex-end;
        width: 100%;
    }

    header .topRow .search .search-input {
        width: 130px;
        height: 30px;
        font-size: 11px;
    }

    header .topRow .search .search-input:focus {
        width: 140px;
    }

    header .topRow .cart {
        flex-direction: row;
    }

    header .topRow .cart a {
        font-size: 11px;
    }

    header .bottomRow {
        position: fixed;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #ffffff;
        transition: top 0.3s ease-in-out;
    }

    header .bottomRow .navbar .navbar-header button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center;
        line-height: 20px;
        background: #2f7829;
        color: #303030;
        border-radius: 0;
        font-family: 'Montserrat', sans-serif;
        border: none;
        text-transform: uppercase;
        z-index: 1001;
    }

    header .bottomRow .navbar-collapse {
        position: relative;
        top: 0;
        background: #fff;
        
    }

    header .bottomRow .navbar .navbar-header {
        padding: 0;
        margin: 0;
    }

    header .bottomRow .navbar .navbar-header .navbar-brand {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: block;
        width: 100%;
        text-align: center;
    }

    header .bottomRow .navbar .navbar-header .navbar-brand img {
        padding-top: 5px;
        width: 120px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    header .bottomRow .navbar .navbar-header button.navbar-toggle.collapsed {
        background: #2f7829;
        color: #303030;
    }

    header .bottomRow .navbar .navbar-header button.navbar-toggle {
        margin: 0;
        background: #303030;
        color: #fff;
    }

    header .bottomRow .navbar .navbar-header button i {
        margin-right: 5px;
    }

    header .bottomRow .navbar #mainNav {
        padding-bottom: 10px;
        background: #fff;
    }

    header .bottomRow .navbar #mainNav .nav {
        display: block;
    }

    header .bottomRow .navbar #mainNav .nav li {
        width: 100%;
    }

    header .bottomRow .navbar #mainNav .nav li a {
        line-height: 35px;
        padding: 0 8px;
        font-size: 14px;
        text-align: center;
        border-bottom: 1px solid rgba(48, 48, 48, 0.1);
    }

    header .bottomRow .navbar #mainNav .nav li.active a {
        background: none;
    }

    header .bottomRow .navbar #mainNav .nav li.active a:after {
        display: none;
    }

    header .bottomRow.scrolled-compact .navbar .navbar-header button {
        line-height: 25px;
    }

    header .bottomRow.scrolled-compact .navbar #mainNav .nav li a {
        line-height: 30px;
    }

    body.scrolled-compact {
        padding-top: 20px; /* Adjust based on topRow height */
    }

    #whyChoose {
        padding-top: 5px;
        width: 100%;
    }
	
    .project-carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .project-carousel .carousel-inner {
        height: auto;
    }

    .project-carousel .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .project-carousel .carousel-control {
        font-size: 20px;
        opacity: 0.7;
    }

    .modal-body .project-carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .quantity-input input {
        width: 45px;
        font-size: 12px;
    }
}
@media (max-width: 400px) {
    .welcome-text {
        max-width: 100%;
    }

    .welcome-text h1 {
        font-size: 16px;
        line-height: 16px;
    }

    .welcome-text h2 {
        font-size: 10px;
        line-height: 14px;
    }

    .welcome-text p {
        font-size: 16px;
        line-height: 12px;
    }

    .prof h4 {
        font-size: 12px;
        line-height: 12px;
    }

    .hero-button a {
        font-size: 10px;
    }

    #whyChoose {
        padding-top: 5px;
        width: 100%;
    }

    #pageCover {
        padding-top: 5px;
    }

    .project-carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }

    .project-carousel .carousel-inner {
        height: auto;
    }

    .project-carousel .carousel-inner .item {
        height: auto;
        width: 100%;
    }

    .project-carousel .carousel-inner .item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .project-carousel .carousel-control {
        font-size: 20px;
        opacity: 0.7;
    }

    .modal-body .project-carousel {
        height: auto;
        width: 100%;
        overflow: hidden;
    }
	.add-to-cart {
        font-size: 11px;
        padding: 8px 12px;
        min-height: 40px;
    }
    .quantity-input input {
        width: 40px;
        font-size: 11px;
    }
}