:root {
    --us-primary: #1f5c46;
    --us-primary-dark: #123a2c;
    --us-accent: #e8b923;
    --us-accent-dark: #c99c14;
    --us-light: #faf6ec;
    --us-cream: #f3ecdc;
    --us-heading-font: "Playfair Display", "Segoe UI", serif;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--us-light);
    color: #2a2a26;
}

/* Том дэлгэц дээр агуулгын өргөнийг нэмэгдүүлж, хажуугийн хоосон зайг багасгана. */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1800px;
    }
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--us-heading-font);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--us-primary) !important;
}

.section-eyebrow {
    color: var(--us-primary);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .8rem;
}

.section-title {
    font-family: var(--us-heading-font);
    font-weight: 700;
    color: #1c1c18;
}

/* Widget-style section headings (category/product/testimonial blocks etc.) use <h2>,
   while the hero and page-title headings use <h1> — keep those two sizes independent. */
h2.section-title {
    font-size: 1.65rem;
}

@media (max-width: 767.98px) {
    h2.section-title {
        font-size: 1.35rem;
    }
}

.navbar-nav .nav-link {
    font-size: .92rem;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item:not(:first-child) .nav-link {
        border-left: 1px solid #e2ddd0;
        margin-left: .25rem;
        padding-left: 1.25rem !important;
    }
}

.search-group {
    border: 2px solid var(--us-accent);
    border-radius: .375rem;
    overflow: hidden;
}

.search-group .form-select,
.search-group .form-control {
    border: none;
    box-shadow: none;
}

.search-group .form-select {
    border-right: 1px solid #eee;
    background-color: #fafafa;
}

.search-group .btn-accent {
    border-radius: 0;
}

.header-search-input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    margin-right: 0;
    transition: width .25s ease, opacity .2s ease, margin-right .25s ease;
}

.header-search-wrap.active .header-search-input {
    width: 200px;
    opacity: 1;
    padding: .3rem .6rem;
    border: 1px solid #ddd;
    border-radius: 1.25rem;
    margin-right: .5rem;
}

@media (max-width: 575.98px) {
    .header-search-wrap.active .header-search-input {
        width: 140px;
    }
}

.btn-primary {
    background-color: var(--us-primary);
    border-color: var(--us-primary);
}

.btn-primary:hover {
    background-color: var(--us-primary-dark);
    border-color: var(--us-primary-dark);
}

.btn-accent {
    background-color: var(--us-accent);
    border-color: var(--us-accent);
    color: #1c1c18;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: var(--us-accent-dark);
    border-color: var(--us-accent-dark);
    color: #1c1c18;
}

.text-accent {
    color: var(--us-accent);
}

.bg-accent {
    background-color: var(--us-accent) !important;
}

.product-card {
    transition: box-shadow .2s ease, transform .2s ease;
    border: 1px solid #eaeaea;
}

.product-card:hover {
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.product-card .product-img {
    height: 220px;
    object-fit: cover;
    background: #f1f1f1;
}

.product-img-wrap {
    overflow: hidden;
}

.product-hover-icons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -48px;
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: .5rem 0;
    opacity: 0;
    transition: bottom .25s ease, opacity .25s ease;
    pointer-events: none;
}

.product-img-wrap:hover .product-hover-icons {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.btn-icon-hover {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.btn-icon-hover:hover {
    background: var(--us-accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-icon-hover.active {
    background: var(--us-accent);
    color: #fff;
}

.btn-icon-hover.wishlist-toggle-btn.active i {
    color: #fff;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: .9rem;
}

.price-current {
    color: var(--us-accent);
    font-weight: 700;
}

.category-pill {
    border-radius: 2rem;
    padding: .4rem 1rem;
}

footer {
    background-color: var(--us-primary);
    color: #dce3ea;
}

footer a {
    color: #dce3ea;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.star-rating i {
    color: #f5a623;
}

.partners-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partners-scroll 30s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    margin: 0 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: .5rem;
}

.partners-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: filter .2s ease, opacity .2s ease;
}

.partners-logo:hover img {
    filter: none;
    opacity: 1;
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

.banner-cap-anim {
    opacity: 0;
    animation: banner-cap-out .4s ease forwards;
}

.carousel-item.active .banner-cap-anim {
    animation: banner-cap-in .7s ease forwards;
}

.carousel-item.active .banner-cap-1 { animation-delay: .2s; }
.carousel-item.active .banner-cap-2 { animation-delay: .4s; }
.carousel-item.active .banner-cap-3 { animation-delay: .6s; }

@keyframes banner-cap-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes banner-cap-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-15px); }
}

@media (prefers-reduced-motion: reduce) {
    .banner-cap-anim,
    .carousel-item.active .banner-cap-anim {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.product-thumb {
    transition: border-color .15s ease, opacity .15s ease;
    opacity: .7;
}

.product-thumb:hover {
    opacity: 1;
}

.product-thumb.active-thumb {
    border-color: var(--us-accent) !important;
    border-width: 2px !important;
    opacity: 1;
}

#productTabs .nav-link {
    color: #495057;
}

#productTabs .nav-link.active {
    color: var(--us-accent);
    font-weight: 600;
    border-color: #dee2e6 #dee2e6 #fff;
}

.related-scroll-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
}

.related-scroll-track::-webkit-scrollbar {
    height: 6px;
}

.related-scroll-track::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.related-scroll-item {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
}

/* ===== Khaan Sorchlokh homepage sections ===== */

.hero-section {
    background: linear-gradient(180deg, var(--us-light) 0%, #fff 100%);
    padding: 2.5rem 0 2rem;
}

.hero-badge-organic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--us-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .15);
    border: 3px solid #fff;
}

.hero-badge-organic strong {
    font-size: 1.15rem;
    font-family: var(--us-heading-font);
}

.hero-badge-organic span {
    font-size: .55rem;
    letter-spacing: .06em;
}

.hero-image-frame {
    border-radius: 1rem;
    overflow: hidden;
    height: 420px;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item .row {
    min-height: 420px;
}

/* Default Bootstrap fade keeps the outgoing slide at full opacity until the
   incoming slide has almost finished fading in, so the two slides' text
   overlaps mid-transition. Snap the outgoing slide away immediately so only
   one slide's text is ever visible at a time, and slow the incoming slide's
   fade-in down so the dissolve reads clearly instead of as a quick pop. */
#heroCarousel.carousel-fade .carousel-item {
    transition-duration: 1.4s;
}

#heroCarousel.carousel-fade .active.carousel-item-start,
#heroCarousel.carousel-fade .active.carousel-item-end {
    transition: none;
    opacity: 0;
}

.category-card {
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ede6d3;
    transition: box-shadow .2s ease, transform .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
    color: inherit;
}

.category-card .category-img {
    height: 140px;
    object-fit: cover;
    width: 100%;
    background: var(--us-cream);
}

.category-card .category-body {
    padding: .9rem 1rem 1.1rem;
    text-align: center;
}

.category-card .category-body h6 {
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: .15rem;
}

.why-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.why-choose-section {
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../../img/front-end/placeholder.svg');
    background-repeat: repeat;
    background-size: 620px auto;
    opacity: .22;
    pointer-events: none;
}

.why-checklist-item i {
    color: var(--us-primary);
    font-size: 1.1rem;
    margin-top: .1rem;
}

.process-strip .process-step {
    text-align: center;
    position: relative;
}

.process-strip .process-arrow {
    padding-top: 30px;
    color: var(--us-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 64px;
}

.process-strip .process-arrow-line {
    flex: 1;
    height: 2px;
    background: var(--us-accent);
    opacity: .55;
    margin-right: 2px;
}

.process-strip .process-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--us-light);
    border: 1.5px solid var(--us-accent);
    color: var(--us-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto .75rem;
}

.weekly-bundle-banner {
    background: linear-gradient(135deg, var(--us-primary) 0%, var(--us-primary-dark) 100%);
    border-radius: 1rem;
    color: #fff;
    overflow: hidden;
}

.bundle-carousel {
    position: relative;
    padding: 0 8px;
}

.bundle-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    opacity: 1;
}

.bundle-carousel-control.carousel-control-prev {
    left: -8px;
}

.bundle-carousel-control.carousel-control-next {
    right: -8px;
}

.bundle-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--us-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 .3rem .75rem rgba(0, 0, 0, .18);
    transition: background .2s ease, color .2s ease;
}

.bundle-carousel-control:hover .bundle-carousel-arrow {
    background: var(--us-accent);
    color: #1c1c18;
}

.bundle-carousel .carousel-indicators {
    position: static;
    margin-top: 1rem;
}

.bundle-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--us-primary);
    opacity: .3;
}

.hero-carousel {
    position: relative;
}

.hero-carousel-control {
    position: absolute;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    opacity: 1;
    z-index: 5;
    background: none;
    border: 0;
}

.hero-carousel-control.carousel-control-prev {
    left: 12px;
}

.hero-carousel-control.carousel-control-next {
    right: 12px;
}

.hero-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--us-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 .3rem .75rem rgba(0, 0, 0, .18);
    transition: background .2s ease, color .2s ease;
}

.hero-carousel-control:hover .hero-carousel-arrow {
    background: var(--us-accent);
    color: #1c1c18;
}

.hero-carousel .carousel-indicators {
    position: static;
    margin-top: 1.5rem;
}

.hero-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--us-primary);
    opacity: .3;
}

.hero-carousel .carousel-indicators button.active {
    opacity: 1;
}

.bundle-carousel .carousel-indicators button.active {
    opacity: 1;
}

.weekly-bundle-banner .discount-badge {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--us-accent);
    color: #1c1c18;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .25);
}

.recipe-card {
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ede6d3;
}

.recipe-thumb-wrap {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.recipe-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--us-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.recipe-share-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.recipe-share-btn:hover {
    background: #1877f2;
    color: #fff;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #ede6d3;
    border-radius: .75rem;
    padding: 1.5rem;
    height: 100%;
}

.testimonial-card .star-rating i {
    color: var(--us-accent);
}

.trust-badge-item {
    text-align: center;
    color: var(--us-primary);
}

.trust-badge-item i {
    font-size: 1.75rem;
}
