:root {
    --primary-green: rgba(29, 143, 95, 1);
    --primary-green-rgb: 29, 143, 95;
    --dark-green: rgba(24, 110, 74, 1);
    --dark-green-rgb: 24, 110, 74;
    --light-green: rgba(66, 182, 136, 0.5);
    --light-green-rgb: 66, 182, 136;
    --lightest-green: rgba(66, 182, 136, 0.25);
    --lightest-green-rgb: 66, 182, 136;

    --bs-primary: var(--primary-green);
    --bs-primary-rgb: var(--primary-green-rgb);

    --bs-link-color: var(--primary-green);
    --bs-link-color-rgb: var(--primary-green-rgb);
    --bs-link-hover-color: var(--light-green);
    --bs-link-hover-color-rgb: var(--light-green-rgb);

    --swiper-navigation-size: 24px;
}

body {
    font-family: "Golos Text", Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

.sofia-font {
    font-family: "Sofia Sans Condensed", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sofia Sans Condensed", Arial, sans-serif;
}

.btn-primary {
    --bs-btn-bg: var(--primary-green);
    --bs-btn-border-color: var(--primary-green);

    --bs-btn-hover-bg: var(--dark-green);
    --bs-btn-hover-border-color: var(--dark-green);

    --bs-btn-focus-shadow-rgb: 72, 180, 97;

    --bs-btn-active-bg: var(--dark-green);
    --bs-btn-active-border-color: var(--dark-green);

    --bs-btn-disabled-bg: var(--primary-green);
    --bs-btn-disabled-border-color: var(--primary-green);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary-green);
    --bs-btn-border-color: var(--primary-green);

    --bs-btn-hover-bg: var(--dark-green);
    --bs-btn-hover-border-color: var(--dark-green);

    --bs-btn-focus-shadow-rgb: 72, 180, 97;

    --bs-btn-active-bg: var(--dark-green);
    --bs-btn-active-border-color: var(--dark-green);

    --bs-btn-disabled-bg: var(--primary-green);
    --bs-btn-disabled-border-color: var(--primary-green);
}

.pagination {
    --bs-pagination-color: var(--primary-green);
    --bs-pagination-hover-color: var(--dark-green);
    --bs-pagination-focus-color: var(--dark-green);

    --bs-pagination-active-bg: var(--primary-green);
    --bs-pagination-active-border-color: var(--dark-green);

    margin-bottom: 0;
}

.list-group {
    --bs-list-group-active-bg: var(--primary-green);
    --bs-list-group-active-border-color: var(--dark-green);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--dark-green);
}

.logo {
    max-height: 45px;
}

.top-bar {
    background: var(--dark-green);
    color: white;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.main-header {
    background: var(--primary-green);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    font-size: 14px;
}

.logo {
    height: 50px;
    width: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info small {
    font-size: 12px;
    color: #e0f2ed;
}

.contact-info .phone {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.contact-info .phone:hover {
    color: #f0f0f0;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
    color: white;
}

.warehouse-selector {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.warehouse-selector:hover {
    background: rgba(255, 255, 255, 0.25);
}

.warehouse-selector i {
    font-size: 16px;
}

.warehouse-selector+.dropdown-menu {
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px;
}

.warehouse-selector+.dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

.warehouse-selector+.dropdown-menu .dropdown-item:hover {
    background: #f0f8f5;
}

.warehouse-selector+.dropdown-menu .dropdown-item.active {
    background: var(--primary-green);
    color: white;
}

.warehouse-selector+.dropdown-menu .dropdown-item.active:hover {
    background: var(--dark-green);
}

.warehouse-selector+.dropdown-menu .dropdown-item i {
    color: var(--primary-green);
}

.warehouse-selector+.dropdown-menu .dropdown-item.active i {
    color: white;
}

.warehouse-selector::after {
    display: none;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
    min-width: 150px;
}

.search-input {
    width: 100%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
}

.search-input::placeholder {
    color: #fff;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--dark-green);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
}

.header-btn {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    border: none;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.header-btn i {
    font-size: 20px;
}

.badge-count {
    background: #ff6b6b;
    color: white;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.main-container {
    padding-top: 100px;
}

@media (max-width: 992px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .contact-info {
        display: none;
    }

    .warehouse-subtext {
        display: none;
    }

    .main-container {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .logo {
        height: 40px;
    }

    .search-wrapper {
        order: 0;
    }

    .social-btn {
        width: 35px;
        height: 35px;
        margin-left: 5px;
    }
}

.main-banner-swiper {
    width: 100%;
    position: relative;
}

.main-banner-swiper .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.main-banner-swiper .swiper-button-prev,
.main-banner-swiper .swiper-button-next {
    color: white;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.main-banner-swiper .swiper-button-prev:hover,
.main-banner-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.main-banner-swiper .swiper-button-prev:after,
.main-banner-swiper .swiper-button-next:after {
    font-size: 18px;
}

.main-banner-swiper .swiper-pagination {
    bottom: 15px;
}

.main-banner-swiper .swiper-pagination-fraction {
    color: white;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
}

.benefits-wrapper {
    background-image: url("/assets/decors/left-bf-bg.svg"), url("/assets/decors/right-bf-bg.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: left top 50px, right top;
    background-size: 160px auto, 60px auto;
}

.benefits-text {
    max-width: 550px;
    margin: 0 auto;
}

.benefits-cards {
    margin-top: 80px;
}

.benefits-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.benefits-card h5 {
    margin-top: auto;
}

.benefits-card.no-mt h5 {
    margin-top: 0;
}

.benefits-card.bc-light {
    border: 1px solid #42B68840;
    background-color: var(--lightest-green);
}

.benefits-card.bc-border {
    border: 1px solid #D9D9D9;
}

.benefits-card.bg-left {
    background-image: url("/assets/decors/left-bf-bg.svg");
    background-repeat: no-repeat;
    background-position: left -90px top -80px;
    background-size: 180px auto;
}

.benefits-card.bg-right {
    background-image: url("/assets/decors/left-bf-bg.svg");
    background-repeat: no-repeat;
    background-position: right -90px top -80px;
    background-size: 180px auto;
}

.benefits-card.bg-top {
    background-image: url("/assets/decors/left-bf-bg.svg");
    background-repeat: no-repeat;
    background-position: top -120px center;
    background-size: 180px auto;
}

.benefits-card.bg-bottom {
    background-image: url("/assets/decors/left-bf-bg.svg");
    background-repeat: no-repeat;
    background-position: bottom -120px center;
    background-size: 180px auto;
}

@media (max-width: 1000px) {
    .benefits-wrapper {
        padding-top: 260px;
        padding-bottom: 120px;
        background-position: top center, bottom right;
        background-size: 180px auto, 80px auto;
    }

    .benefits-cards {
        margin-top: 60px;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.product-card a {
    color: #000;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    display: flex;
    align-items: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin: 10px;
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    margin: 0 0 12px 0;
    min-height: 40px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: auto;
}

.price-old {
    display: block;
    font-size: 12px;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-current {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
}

.price-subtext {
    font-size: 12px;
    color: #666;
}

.product-stock {
    margin-top: 4px;
    font-size: 12px;
}

.product-buttons {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.ps-btn-primary,
.ps-btn-secondary,
.ps-btn-nostock {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.ps-btn-primary {
    background: var(--primary-green);
    color: white;
}

.ps-btn-secondary {
    background: rgba(var(--lightest-green-rgb), 1);
    color: white;
}

.ps-btn-primary:hover {
    background: var(--dark-green);
}

.ps-btn-nostock {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.swiper-button-next,
.swiper-button-prev {
    font-weight: bold;
    color: var(--light-green);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
}

.empty-products {
    padding: 20px;
    background: #e3f2fd;
    color: #0c63e4;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 768px) {
    .product-card {
        min-height: 300px;
    }

    .product-image {
        height: 200px;
    }

    .product-body {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 150px;
    }
}

.product-page-buttons .ps-btn-primary {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
}

.product-page-buttons .ps-btn-secondary {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 10px;
}

.product-page-qty {
    max-width: 120px;
}

.product-page-qty .btn {
    background-color: var(--primary-green);
    border-radius: 10px;
    color: #fff;
    padding: 10px;
    border: none;
}

.product-gallery-main {
    position: relative;
    margin-bottom: 1rem;
}

.product-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0.375rem;
    min-height: 500px;
    cursor: pointer;
}

.product-gallery-main .swiper-slide img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-gallery-thumbs {
    margin-top: 1rem;
}

.product-gallery-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    overflow: hidden;
}

.product-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-green);
}

.product-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.product-gallery-main .swiper-button-next,
.product-gallery-main .swiper-button-prev {
    color: var(--primary-green);
    width: 40px;
    height: 40px;
}

.product-gallery-main .swiper-button-next:after,
.product-gallery-main .swiper-button-prev:after {
    font-size: 20px;
}

.product-gallery-main .swiper-pagination-bullet-active {
    background: var(--primary-green);
}

.catalog-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.category-card:hover {
    transition: all .2s;
}

.category-card:hover {
    background-color: var(--lightest-green);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.subcategory-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.subcategory-card:hover {
    transform: translateY(-2px);
}

.subcategory-card .card {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.subcategory-card:hover .card {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.catalog-toolbar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.toolbar-info strong {
    color: var(--bs-primary);
}

@media (max-width: 768px) {
    .catalog-toolbar {
        padding: 10px 15px;
    }

    .catalog-toolbar .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .catalog-filters {
        padding: 0px;
    }

    .toolbar-sort {
        width: 100%;
    }

    .toolbar-sort form {
        width: 100%;
    }

    .toolbar-sort select {
        width: 100% !important;
    }
}

.partner-heading {
    color: white;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.partner-heading__subtext {
    border-bottom: 1px solid white;
}

.partner-section {
    background: var(--primary-green);
    padding: 80px 0;
}

.partner-images-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
}

.partner-image-card {
    flex: 1;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
}

.partner-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 50px;
    position: relative;
}

.partner-progress-markers {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.partner-progress-dot {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
}

.partner-steps-grid {
    display: flex;
    gap: 40px;
}

.partner-step-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
    color: white;
}

.partner-step-numeral {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.3;
}

.partner-step-heading {
    font-size: 24px;
    text-transform: uppercase;
}

.partner-step-text {
    margin-top: 5px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .partner-section {
        padding: 40px 0;
    }

    .partner-progress-track {
        display: none;
    }

    .partner-images-container {
        flex-direction: column;
        gap: 15px;
    }

    .partner-steps-grid {
        flex-direction: column;
        gap: 30px;
    }

    .partner-step-numeral {
        font-size: 4rem;
    }
}

.main-form-wrapper {
    margin-bottom: 40px;
    background-image: url("/assets/decors/left-bf-bg.svg"), url("/assets/decors/right-bf-bg.svg");
    background-repeat: no-repeat, no-repeat;
    background-position: left top 150px, right top;
    background-size: 160px auto, 60px auto;
}

.main-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.main-form-wrapper .form-control {
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #EDEDED;
    border: none;
}

.main-form-wrapper .btn {
    background-color: rgba(var(--light-green-rgb), 1);
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
}

.main-form-muted {
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-form-wrapper {
        background: none;
    }
}

footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 40px 0 20px;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    flex: 1 1 450px;
}

.footer-right {
    flex: 1 1 100%;
}

.footer-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    max-width: 350px;
}

.footer-contact-box {
    background: var(--primary-green);
    color: white;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.footer-contact-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-phone:hover {
    color: #e0f2ed;
}

.footer-schedule {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    color: white;
}

.footer-social-btn:hover {
    filter: contrast(1.5);
    color: white;
}

.footer-social-btn.whatsapp {
    background: #25D366;
}

.footer-social-btn.telegram {
    background: #0088cc;
}

.footer-social-btn i {
    font-size: 20px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #212529;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    padding-top: 20px;
}

.footer-bottom-text {
    color: #6c757d;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #6c757d;
    font-size: 13px;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--primary-green);
}

@media (max-width: 768px) {
    footer {
        padding-top: 20px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-left {
        flex: 1 1 auto;
    }
}