.heading-title-h2,
.product-title-h2 {
  font-weight: 700;
}
.heading-title-h2 {
  font-size: 21px;
}
.product-title-h2 {
  font-size: 31px;
}
.custom-primary-color{
  color: #1C4235;
}
.pre-line {
  white-space: pre-line !important;
  word-break: break-word !important;
  overflow-wrap: break-word;
}
.post-content img{
    width: 100% !important;
}
.breadcrumb-link{
    padding: 0px !important;
}
.breadcrumb-item{
    padding: 0px !important;
}
.breadcrumb-item+.breadcrumb-item::before{
    padding: 0 5px;
}
@media (min-width: 1400px) {
  .container,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1500px;
  }
}

.index .product-card .menu-swiper, .menu-swiper-2{
    font-size: 18px;
    padding: 10px 30px;
}
.index .product-card .card-title{
    font-size: 21px;
    font-weight: 700;
    color: #000000;
}
.index .spec-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
}
.index .spec-img:hover {
    opacity: 0.6;
    transform: scale(1.1);
}
.index .spec-img.active {
    border-color: #dddddd !important;
    border-width: 2px !important;
}
.index .menu-swiper{
    text-align: center;
    overflow: hidden !important;
    position: relative;
}
.index .menu-swiper .swiper{
    margin: 0px 50px;
}
.index .menu-swiper .swiper-wrapper{
    overflow: visible;
}
.index .menu-swiper .menu-text{
    font-size: 22px;
    font-weight: 900;
    color: #000;   
}
.index .menu-swiper .menu-item-card{
    text-decoration: none !important;
}
.index .menu-swiper .menu-item-card svg{
    color: #000;
    font-size: 24px;
}
.index .menu-swiper .swiper-button-container{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}
.index .menu-swiper .swiper-button-container .swiper-button-next,
.index .menu-swiper .swiper-button-container .swiper-button-prev {
    top: unset;
    pointer-events: auto;
    cursor: pointer;
}
.index .menu-swiper .swiper-button-next,
.index .menu-swiper .swiper-button-prev {
    color: #000 !important;
    width: 30px;
    height: 30px;
    margin-top: 0;
}
.index .menu-swiper .swiper-button-next:after,
.index .menu-swiper .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}
.index .menu-swiper .swiper-button-next {
    right: 10px;
}
.index .menu-swiper .swiper-button-prev {
    left: 10px;
}
.index .menu-swiper .swiper-button-next .swiper-button-label,
.index .menu-swiper .swiper-button-prev .swiper-button-label {
    display: none;
}
.index .menu-swiper .swiper-button-next[aria-label],
.index .menu-swiper .swiper-button-prev[aria-label] {
    font-size: 0;
    line-height: 0;
}
.index #homepageCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.index .menu-swiper-2{
    text-align: center;
    overflow: hidden !important;
    position: relative;
}
.index .menu-swiper-2 .swiper{
    margin: 0px 50px;
}
.index .menu-swiper-2 .swiper-wrapper{
    overflow: visible;
}
.index .menu-swiper-2 .menu-text{
    font-size: 22px;
    font-weight: 900;
    color: #fff;   
    text-wrap: nowrap;
}
.index .menu-swiper-2 .menu-item-card{
    text-decoration: none !important;
    text-wrap: nowrap;
}
.index .menu-swiper-2 .menu-item-card svg{
    color: #fff;
    font-size: 24px;
}
.index .menu-swiper-2 .swiper-button-container{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}
.index .menu-swiper-2 .swiper-button-container .swiper-button-next,
.index .menu-swiper-2 .swiper-button-container .swiper-button-prev {
    top: unset;
    pointer-events: auto;
    cursor: pointer;
}
.index .menu-swiper-2 .swiper-button-next,
.index .menu-swiper-2 .swiper-button-prev {
    color: #000 !important;
    width: 30px;
    height: 30px;
    margin-top: 0;
}
.index .menu-swiper-2 .swiper-button-next:after,
.index .menu-swiper-2 .swiper-button-prev:after {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}
.index .menu-swiper-2 .swiper-button-next {
    right: 10px;
}
.index .menu-swiper-2 .swiper-button-prev {
    left: 10px;
}
.index .menu-swiper-2 .swiper-button-next .swiper-button-label,
.index .menu-swiper-2 .swiper-button-prev .swiper-button-label {
    display: none;
}
.index .menu-swiper-2 .swiper-button-next[aria-label],
.index .menu-swiper-2 .swiperddd-button-prev[aria-label] {
    font-size: 0;
    line-height: 0;
}
.index .menu-swiper-2 .swiper-slide{
    background-color: #666666;
    padding: 10px 0;
    border-radius: 10px;
}

.auth-page {
    min-height: 60vh;
}
.auth-page .card {
    border-radius: 10px;
}
.auth-page .nav-tabs {
    border-bottom: 2px solid #e9ecef;
}
.auth-page .nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-weight: 500;
}
.auth-page .nav-tabs .nav-link:hover {
    opacity: 0.6;
}
.auth-page .nav-tabs .nav-link.active {
    color: #1C4235;
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: #1C4235;
    font-weight: 700;
}
.auth-page .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.auth-page .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.auth-page .form-control:focus {
    border-color: #1C4235;
    box-shadow: 0 0 0 0.2rem rgba(28, 66, 53, 0.25);
}
.auth-page .btn-primary {
    background-color: #1C4235;
    border-color: #1C4235;
    padding: 12px;
    font-weight: 600;
    border-radius: 5px;
}
.auth-page .btn-primary:hover {
    opacity: 0.6;
}

.member-page .member-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}
.member-page .member-nav {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}
.member-page .member-nav .nav-link {
    color: #666;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.member-page .member-nav .nav-link:hover {
    opacity: 0.6;
}
.member-page .member-nav .nav-link.active {
    background-color: #1C4235;
    color: #fff;
    font-weight: 600;
}
.member-page .card-header {
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
}
.member-page .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.member-page .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.member-page .form-control:focus {
    border-color: #1C4235;
    box-shadow: 0 0 0 0.2rem rgba(28, 66, 53, 0.25);
}
.member-page .btn-primary {
    background-color: #1C4235;
    border-color: #1C4235;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 5px;
}
.member-page .btn-primary:hover {
    opacity: 0.6;
}

.cart-page .table {
    margin-bottom: 0;
}
.cart-page .table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
    padding: 15px;
}
.cart-page .table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}
.cart-page .table tfoot td {
    padding: 20px 15px;
    border-top: 2px solid #dee2e6;
    background-color: #f8f9fa;
}
.cart-page .input-group-sm .btn {
    padding: 5px 12px;
    font-size: 14px;
}
.cart-page .input-group-sm input {
    padding: 5px 10px;
    text-align: center;
}
.cart-page .card-header {
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
}
.cart-page .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.cart-page .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.cart-page .form-control:focus {
    border-color: #1C4235;
    box-shadow: 0 0 0 0.2rem rgba(28, 66, 53, 0.25);
}
.cart-page textarea.form-control {
    resize: vertical;
}
.cart-page .btn-primary {
    background-color: #1C4235;
    border-color: #1C4235;
    padding: 12px;
    font-weight: 600;
    border-radius: 5px;
}
.cart-page .btn-primary:hover {
    opacity: 0.6;
}
.cart-page .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}
.cart-page .btn-outline-danger:hover {
    opacity: 0.6;
}
.cart-page .sticky-top {
    z-index: 1020;
}

.info-page {
    min-height: 60vh;
}
.info-page .card {
    border-radius: 10px;
}
.info-page .content-section {
    line-height: 1.8;
    color: #333;
}
.info-page .content-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 2rem;
}
.info-page .content-section h3:first-child {
    margin-top: 0;
}
.info-page .content-section p {
    margin-bottom: 1rem;
    color: #555;
}
.info-page .content-section ul,
.info-page .content-section ol {
    padding-left: 1.5rem;
}
.info-page .content-section li {
    margin-bottom: 0.5rem;
    color: #555;
}
.info-page .feature-box {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.info-page .feature-box:hover {
    opacity: 0.6;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(28, 66, 53, 0.15);
}
.info-page .cooperation-box {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}
.info-page .cooperation-box:hover {
    opacity: 0.6;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(28, 66, 53, 0.15);
}
.info-page .process-step {
    height: 100%;
}
.info-page .step-number {
    background-color: #1C4235 !important;
    font-size: 20px;
}
.info-page .accordion-button {
    color: #1C4235;
    font-weight: 600;
}
.info-page .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #1C4235;
}
.info-page .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(28, 66, 53, 0.25);
    border-color: #1C4235;
}
.info-page .accordion-item {
    border-color: #dee2e6;
}
.info-page .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
.info-page .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.info-page .form-control:focus {
    border-color: #1C4235;
    box-shadow: 0 0 0 0.2rem rgba(28, 66, 53, 0.25);
}
.info-page .form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}
.info-page .form-select:focus {
    border-color: #1C4235;
    box-shadow: 0 0 0 0.2rem rgba(28, 66, 53, 0.25);
}
.info-page .btn-primary {
    background-color: #1C4235;
    border-color: #1C4235;
    padding: 12px;
    font-weight: 600;
    border-radius: 5px;
}
.info-page .btn-primary:hover {
    opacity: 0.6;
}
.info-page .contact-info h6 {
    color: #1C4235;
    font-weight: 600;
}
.info-page .social-link {
    transition: all 0.3s ease;
    text-decoration: none;
}
.info-page .social-link:hover {
    opacity: 0.6;
    transform: scale(1.2);
}
.info-page .alert-primary {
    background-color: rgba(28, 66, 53, 0.1);
    border-color: #1C4235;
    color: #1C4235;
}
.info-page .alert-primary .alert-link {
    color: #164D29;
    text-decoration: underline;
}
.info-page .alert-primary .alert-link:hover {
    opacity: 0.6;
}

@media (max-width: 991px) {
    .index .heading-title-h2 {
        font-size: 18px;
    }
    .index .product-title-h2 {
        font-size: 24px;
        text-align: left;
    }

    .index .menu-swiper .swiper {
        margin: 0px 40px;
    }
    .index .menu-swiper .menu-text {
        font-size: 18px;
    }
    .index .menu-swiper .menu-item-card svg {
        font-size: 20px;
    }
    .index .menu-swiper .swiper-button-next,
    .index .menu-swiper .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    .index .menu-swiper .swiper-button-next:after,
    .index .menu-swiper .swiper-button-prev:after {
        font-size: 12px;
    }
    .index .menu-swiper .swiper-button-next {
        right: 5px;
    }
    .index .menu-swiper .swiper-button-prev {
        left: 5px;
    }

    .index .menu-swiper-2 .swiper {
        margin: 0px 40px;
    }
    .index .menu-swiper-2 .menu-text {
        font-size: 18px;
    }
    .index .menu-swiper-2 .menu-item-card svg {
        font-size: 20px;
    }
    .index .menu-swiper-2 .swiper-button-next,
    .index .menu-swiper-2 .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    .index .menu-swiper-2 .swiper-button-next:after,
    .index .menu-swiper-2 .swiper-button-prev:after {
        font-size: 12px;
    }
    .index .menu-swiper-2 .swiper-button-next {
        right: 5px;
    }
    .index .menu-swiper-2 .swiper-button-prev {
        left: 5px;
    }

    .index #homepageCarousel .carousel-control-prev,
    .index #homepageCarousel .carousel-control-next {
        width: 8%;
    }
    .index .product-card .card-title {
        font-size: 16px;
    }
    .index .spec-img {
        width: 35px;
        height: 35px;
    }

    .index section .row[style*="height: 810px"] {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1,
    .index section .row[style*="height: 810px"] > .col-1 {
        width: 100%;
        margin-bottom: 20px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 h2,
    .index section .row[style*="height: 810px"] > .col-1 h2 {
        margin-bottom: 0 !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 {
        flex-direction: row;
        gap: 10px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1.h-100,
    .index section .row[style*="height: 810px"] > .col-1.h-100 {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4,
    .index section .row[style*="height: 810px"] > .col-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4.h-100,
    .index section .row[style*="height: 810px"] > .col-4.h-100 {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-7,
    .index section .row[style*="height: 810px"] > .col-7 {
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-7.h-100,
    .index section .row[style*="height: 810px"] > .col-7.h-100 {
        height: auto !important;
    }
    .navbar-collapse {
        position: absolute;
        width: 100%;
        z-index: 999999;
        background-color: #fff;
        top: 63px;
        left: 0;
        padding-top: 0rem;
    }
}

@media (max-width: 768px) {
    .index .menu-swiper .swiper {
        margin: 0px 35px;
    }
    .index .menu-swiper-2 .swiper {
        margin: 0px 35px;
    }

    .index .product-card .card-title {
        font-size: 14px;
    }
    .index .spec-img {
        width: 30px;
        height: 30px;
    }

    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        max-height: 250px;
    }
    .marquee{
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .index .menu-swiper .swiper {
        margin: 0px 30px;
    }
    .index .menu-swiper .menu-text {
        font-size: 16px;
    }
    .index .menu-swiper .menu-item-card svg {
        font-size: 18px;
    }
    .index .menu-swiper .swiper-button-next,
    .index .menu-swiper .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    .index .menu-swiper .swiper-button-next:after,
    .index .menu-swiper .swiper-button-prev:after {
        font-size: 10px;
    }

    .index .menu-swiper-2 .swiper {
        margin: 0px 30px;
    }
    .index .menu-swiper-2 .menu-text {
        font-size: 16px;
    }
    .index .menu-swiper-2 .menu-item-card svg {
        font-size: 18px;
    }
    .index .menu-swiper-2 .swiper-button-next,
    .index .menu-swiper-2 .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    .index .menu-swiper-2 .swiper-button-next:after,
    .index .menu-swiper-2 .swiper-button-prev:after {
        font-size: 10px;
    }
    .index #homepageCarousel .carousel-control-prev,
    .index #homepageCarousel .carousel-control-next {
        width: 10%;
    }

    .index .heading-title-h2 {
        font-size: 16px;
    }
    .index .product-title-h2 {
        font-size: 20px;
    }

    .index .product-card .card-title {
        font-size: 13px;
        margin-bottom: 10px !important;
    }
    .index .spec-img {
        width: 28px;
        height: 28px;
    }

    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 h2,
    .index section .row[style*="height: 810px"] > .col-1 h2 {
        margin-bottom: 15px !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3 a,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 a {
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        max-height: 200px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background-color: #808080;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #666666;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.product-cover-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
.product-cover-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
}


.marquee {
    padding: 1rem;
    margin: 1rem 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.marquee:hover .marquee-item {
    animation-play-state: paused;
}
@keyframes marquee-one-way {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}
.marquee-one-way .marquee-item {
    display: inline-block;
    min-width: 100%;
    animation: marquee-one-way 30s linear infinite;
}

.index-content {
    padding: 0 15px;
    max-width: 1500px;
    margin: 0 auto;
}
.index-content .container {
    max-width: 1250px;
}

.flexdiv-container {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    max-width: 100%;
    height: 100%;
    pointer-events: none;
    margin: auto;
}
.flexdiv-container > * {
    pointer-events: auto;
}
.flexdiv {
    top: 10px;
    position: sticky;
}

.block-section {
    min-height: 500px;
}
.block-product-item-1 {
    width: 16.66%;
}
.block-product-item-2 {
    width: 25%;
}
.block-cover-image {
    aspect-ratio: 5 / 9;
}
@media (min-width: 992px) {
    .block-header {
        height: 100%;
    }
}

.spec-images-container {
    height: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.spec-images-container .spec-img {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    object-fit: cover;
    cursor: pointer;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card .card-title {
    font-size: 0.95rem;
    min-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.index .container {
    padding-left: 15px;
    padding-right: 15px;
}

.menu-swiper,
.menu-swiper-2 {
    position: relative;
    padding: 0 40px;
}
.swiper-button-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}
.swiper-button-next,
.swiper-button-prev {
    pointer-events: auto;
    width: 30px;
    height: 30px;
}

.heading-title-h2,
.product-title-h2 {
    font-size: 1.75rem;
}

.index img {
    max-width: 100%;
    height: auto;
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    .spec-img,
    .index .product-card .product-view-btn,
    .category-item {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

.floating-category-menu {
    position: absolute;
    left: 0%;
    top: 0;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 0 8px 8px 0;
    z-index: 1000;
    padding: 15px 10px;
    width: 80px;
    transition: all 0.3s ease;
}
.floating-category-menu:hover {
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}
.category-menu-header {
    border-bottom: 2px solid #1C4235;
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.category-menu-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1C4235;
    text-align: center;
}
.category-menu-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    background-color: #f9f7f7;
    text-align: center;
    border: 1px solid #f1f1f1;
    font-size: 12px;
}
.category-item:hover {
    opacity: 0.6;
}

.floating-browsed-products {
    position: absolute;
    right: 0%;
    top: 0;
    background: #fbfbfb;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 15px 10px;
    width: 80px;
    max-height: 70vh;
    border: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}
.floating-browsed-products:hover {
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.15);
}
.browsed-products-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.browsed-products-header h5 {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    margin: auto;
}
.btn-clear-browsed {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}
.btn-clear-browsed:hover {
    background-color: #f0f0f0;
    color: #1C4235;
}
.browsed-products-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.browsed-product-item {
    display: block;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: none;
    overflow: hidden;
}
.browsed-product-item:hover {
    opacity: 0.8;
}
.browsed-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    line-height: 1.8;
}


@media (max-width: 1650px) {
    .index-content .container {
        max-width: 85%;
    }
}

@media (max-width: 1399px) {
    .index-content {
        max-width: 1140px;
    }
    .index-content .container {
        max-width: 82%;
    }
    .block-product-item-1 {
        width: 25%;
    }
    .block-product-item-2{
        width: 33%;
    }
}

@media (max-width: 991px) {
    .index .heading-title-h2 {
        font-size: 18px;
    }
    .index .product-title-h2 {
        font-size: 24px;
    }
    .heading-title-h2,
    .product-title-h2 {
        font-size: 1.5rem;
    }

    .index-content {
        max-width: 720px;
    }
    .block-section {
        min-height: auto;
    }
    .index-content .container {
        max-width: 78%;
    }
    .block-product-item-1 {
        width: 33.33%;
    }

    .index .menu-swiper .swiper {
        margin: 0px 40px;
    }
    .index .menu-swiper .menu-text {
        font-size: 18px;
    }
    .index .menu-swiper .menu-item-card svg {
        font-size: 20px;
    }
    .index .menu-swiper .swiper-button-next,
    .index .menu-swiper .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    .index .menu-swiper .swiper-button-next:after,
    .index .menu-swiper .swiper-button-prev:after {
        font-size: 12px;
    }
    .index .menu-swiper .swiper-button-next {
        right: 5px;
    }
    .index .menu-swiper .swiper-button-prev {
        left: 5px;
    }

    .index .menu-swiper-2 .swiper {
        margin: 0px 40px;
    }
    .index .menu-swiper-2 .menu-text {
        font-size: 18px;
    }
    .index .menu-swiper-2 .menu-item-card svg {
        font-size: 20px;
    }
    .index .menu-swiper-2 .swiper-button-next,
    .index .menu-swiper-2 .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    .index .menu-swiper-2 .swiper-button-next:after,
    .index .menu-swiper-2 .swiper-button-prev:after {
        font-size: 12px;
    }
    .index .menu-swiper-2 .swiper-button-next {
        right: 5px;
    }
    .index .menu-swiper-2 .swiper-button-prev {
        left: 5px;
    }
    .index #homepageCarousel .carousel-control-prev,
    .index #homepageCarousel .carousel-control-next {
        width: 8%;
    }
    .index .product-card .card-title {
        font-size: 16px;
    }
    .index .spec-img {
        width: 35px;
        height: 35px;
    }

    .index section .row[style*="height: 810px"] {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1,
    .index section .row[style*="height: 810px"] > .col-1 {
        width: 100%;
        margin-bottom: 20px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 h2,
    .index section .row[style*="height: 810px"] > .col-1 h2 {
        margin-bottom: 0 !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 {
        flex-direction: row;
        gap: 10px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1.h-100,
    .index section .row[style*="height: 810px"] > .col-1.h-100 {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4,
    .index section .row[style*="height: 810px"] > .col-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4.h-100,
    .index section .row[style*="height: 810px"] > .col-4.h-100 {
        height: auto !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-7,
    .index section .row[style*="height: 810px"] > .col-7 {
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-7.h-100,
    .index section .row[style*="height: 810px"] > .col-7.h-100 {
        height: auto !important;
    }
    .product-view-btn{
        font-size: 16px;
        text-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .index .menu-swiper .swiper {
        margin: 0px 35px;
    }
    .index .menu-swiper-2 .swiper {
        margin: 0px 35px;
    }
    .menu-swiper,
    .menu-swiper-2 {
        padding: 0 30px;
    }
    .heading-title-h2,
    .product-title-h2 {
        font-size: 1.5rem;
    }

    .index .product-card .card-title {
        font-size: 14px;
    }
    .index .spec-img {
        width: 30px;
        height: 30px;
    }

    .block-header {
        text-align: center;
    }
    .block-header .d-flex.flex-column.gap-3 {
        flex-direction: row !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    .block-header .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        max-height: 250px;
    }
}
@media (max-width: 767px) {
    .flexdiv-container{
        display: none;
    }
    .index-content .container {
        max-width: 100%;
    }
    .btn-website-nav{
        margin-left: 30px !important;
    }
}
@media (max-width: 576px) {
    .block-product-item-2 {
        width: 50%;
    }
    .index-content {
        max-width: 520px;
    }
    .index .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .index .menu-swiper .swiper {
        margin: 0px 30px;
    }
    .index .menu-swiper .menu-text {
        font-size: 16px;
    }
    .index .menu-swiper .menu-item-card svg {
        font-size: 18px;
    }
    .index .menu-swiper .swiper-button-next,
    .index .menu-swiper .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    .index .menu-swiper .swiper-button-next:after,
    .index .menu-swiper .swiper-button-prev:after {
        font-size: 10px;
    }

    .index .menu-swiper-2 .swiper {
        margin: 0px 30px;
    }
    .index .menu-swiper-2 .menu-text {
        font-size: 16px;
    }
    .index .menu-swiper-2 .menu-item-card svg {
        font-size: 18px;
    }
    .index .menu-swiper-2 .swiper-button-next,
    .index .menu-swiper-2 .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    .index .menu-swiper-2 .swiper-button-next:after,
    .index .menu-swiper-2 .swiper-button-prev:after {
        font-size: 10px;
    }
    .menu-swiper,
    .menu-swiper-2 {
        padding: 0 20px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 25px;
        height: 25px;
    }

    .index #homepageCarousel .carousel-control-prev,
    .index #homepageCarousel .carousel-control-next {
        width: 10%;
    }

    .index .heading-title-h2 {
        font-size: 16px;
    }
    .index .product-title-h2 {
        font-size: 20px;
    }
    .heading-title-h2,
    .product-title-h2 {
        font-size: 1.25rem;
    }

    .index .product-card .card-title {
        font-size: 13px;
        margin-bottom: 10px !important;
    }
    .product-card .card-title {
        font-size: 0.85rem;
        min-height: 2em;
    }
    .index .spec-img {
        width: 28px;
        height: 28px;
    }
    .spec-images-container .spec-img {
        width: 40px;
        height: 40px;
    }

    .marquee {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }
    .marquee-item {
        font-size: 0.9rem;
    }

    .row.g-3 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 h2,
    .index section .row[style*="height: 810px"] > .col-1 h2 {
        margin-bottom: 15px !important;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-1 .d-flex.flex-column.gap-3 a,
    .index section .row[style*="height: 810px"] > .col-1 .d-flex.flex-column.gap-3 a {
        width: 100%;
    }
    .index section .row[style*="height: 810px"] > .col-lg-4 img,
    .index section .row[style*="height: 810px"] > .col-4 img {
        max-height: 200px;
    }
}
.homepage-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* 行動版頂部列：左 LOGO、右漢堡選單（預設隱藏，< 1200px 時顯示） */
.sidebar-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 19;
    height: 60px;
    padding: 0 16px;
    background-color: #ff830e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.sidebar-mobile-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar-mobile-logo {
    max-height: 40px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}
.sidebar-mobile-site-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.sidebar-mobile-header .sidebar-hamburger-btn {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.8);
}
.sidebar-mobile-header .sidebar-hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
.sidebar-mobile-header .sidebar-hamburger-btn .hamburger-line {
    background-color: #fff;
}
/* 漢堡選單按鈕 */
.sidebar-hamburger-btn {
    display: none;
    position: relative;
    z-index: 1051;
    width: 35px;
    height: 35px;
    padding: 0;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.sidebar-hamburger-btn:hover {
    background-color: #f8f9fa;
    border-color: #ff830e;
}
.sidebar-hamburger-btn .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}
/* 選單遮罩 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
body.sidebar-open .sidebar-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
}
/* 側邊欄關閉按鈕（漢堡模式時顯示） */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.sidebar-close-btn:hover {
    background-color: #f8f9fa;
    color: #ff830e;
}

.homepage-sidebar {
    position: relative;
    left: 0;
    top: 0;
    width: 350px;
    min-width: 350px;
    flex-shrink: 0;
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    z-index: 1001;
    overflow-y: auto;
    padding: 0;
}

/* 寬度 < 1200px：漢堡選單模式 */
@media (max-width: 1199px) {
    .sidebar-mobile-header {
        display: flex;
    }
    .sidebar-hamburger-btn {
        display: flex;
    }
    .sidebar-close-btn {
        display: flex;
    }
    .homepage-sidebar .sidebar-header {
        display: none;
    }
    body.sidebar-open {
        overflow: hidden;
    }
    .homepage-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }
    body.sidebar-open .homepage-sidebar {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        padding-top: 60px; /* 為固定頂部列留空間 */
    }
}
@media (max-width: 767px) {
    .main-content {
        overflow-x: hidden;
    }
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
    position: relative;
}

/* 側邊欄載入動畫 - 頁面載入即播放，不需捲動 */
@keyframes sidebarFadeIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.homepage-sidebar .sidebar-close-btn,
.homepage-sidebar .sidebar-header,
.homepage-sidebar .sidebar-language,
.homepage-sidebar .sidebar-menu .sidebar-category-item,
.homepage-sidebar .sidebar-menu .sidebar-website-nav-wrap,
.homepage-sidebar .sidebar-footer {
    opacity: 0;
    animation: sidebarFadeIn 0.5s ease-out forwards;
}
.homepage-sidebar .sidebar-close-btn { animation-delay: 0s; }
.homepage-sidebar .sidebar-header { animation-delay: 0.05s; }
.homepage-sidebar .sidebar-language { animation-delay: 0.1s; }
.homepage-sidebar .sidebar-menu .sidebar-category-item:nth-child(1) { animation-delay: 0.15s; }
.homepage-sidebar .sidebar-menu .sidebar-category-item:nth-child(2) { animation-delay: 0.2s; }
.homepage-sidebar .sidebar-menu .sidebar-category-item:nth-child(3) { animation-delay: 0.25s; }
.homepage-sidebar .sidebar-menu .sidebar-category-item:nth-child(4) { animation-delay: 0.3s; }
.homepage-sidebar .sidebar-menu .sidebar-category-item:nth-child(5) { animation-delay: 0.35s; }
.homepage-sidebar .sidebar-menu .sidebar-website-nav-wrap { animation-delay: 0.4s; }
.homepage-sidebar .sidebar-footer { animation-delay: 0.45s; }

.sidebar-header {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
    line-height: 28px;
}

/* LOGO（前台左上角，取自後台首頁 slug=home 封面圖） */
.sidebar-logo-link {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.sidebar-logo-link .sidebar-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar-logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.sidebar-language {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-language {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background-color: rgba(0, 158, 150, 0.2);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50px;
    margin: 0 5px;
}

.btn-language {
    border-radius: 50% !important;
    width: 35px;
    height: 35px;
    padding: 0;
    font-size: 14px;
}

.btn-language:hover {
    background-color: rgba(0, 158, 150, 0.3);
    color: #1C4235;
}

.btn-language.active {
    background-color: rgba(0, 158, 150, 0.2);
    color: #1C4235;
    border-color: rgba(0, 158, 150, 0.5);
}

/* 網站導覽按鈕（側邊欄） */
.btn-website-nav {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background-color: #ff830e;
    border-radius: 8px;
    padding: 0px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    width: fit-content;
    margin: 10px 0;
}
.btn-website-nav:hover {
    background-color: rgba(255, 131, 14, 0.15);
    color: #ff830e;
    border-color: #ff830e;
}

/* 網站導覽 Modal：滿版、黑底 0.8 透明度、白字 */
body.website-nav-modal-open .modal-backdrop {
    background-color: #000;
    opacity: 0.8;
}
#websiteNavModal .modal-content {
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    border: none;
}
#websiteNavModal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
#websiteNavModal .modal-title {
    color: #fff;
}
#websiteNavModal .modal-body {
    color: #fff;
    /* 自訂捲軸樣式 */
    scrollbar-width: thin;
    scrollbar-color: #ff830e rgba(255, 255, 255, 0.15);
}
#websiteNavModal .modal-body::-webkit-scrollbar {
    width: 8px;
}
#websiteNavModal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
#websiteNavModal .modal-body::-webkit-scrollbar-thumb {
    background: #ff830e;
    border-radius: 4px;
}
#websiteNavModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #ff9a3d;
}
#websiteNavModal .website-nav-content,
#websiteNavModal .website-nav-content * {
    color: #fff !important;
}
#websiteNavModal .website-nav-content a {
    color: #ff830e !important;
}
#websiteNavModal .website-nav-empty {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-baedge-item-link-title{
    background-color: rgb(38, 189, 239);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    font-weight: 600;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
}

.homepage-sidebar .sidebar-category-item.active .sidebar-baedge-item-link-title {
    background-color: #ff830e;
}

.sidebar-item-link-title{
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.sidebar-category-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.sidebar-category-item a {
    text-decoration: none;
    border-bottom: none;
}

.sidebar-category-item:hover {
    opacity: 0.8;
    transform: none;
}

.sidebar-read-more{
    text-align: end ;
    color: #ff830e;
    font-size: 14px;
}

.homepage-sidebar .sidebar-category-item:hover .category-title,
.homepage-sidebar .sidebar-category-item:hover .category-sub-title {
    transform: none;
    /* padding-left: inherit; */
    /* margin-left: 0; */
}

.sidebar-news-date{
    font-size: 12px;
    color: #fff;
    background-color: #ff830e;
    padding: 2px 10px;
    width: fit-content;
    border-radius: 50px;
}

.category-title {
    font-size: 24px;
    font-weight: 900;
    color: #ff830e;
    margin-bottom: 8px;
}
.category-sub-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333;
}

.category-underline {
    width: 100%;
    height: 2px;
    background-color: #ff830e;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
}

.copyright-text {
    font-size: 12px;
    margin: 0;
}

.homepage-carousel-wrapper {
    flex: 1;
    margin-left: 0;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.homepage-carousel-wrapper #homepageCarousel {
    height: 100%;
    width: 100%;
    position: relative;
}

.homepage-carousel-wrapper .carousel-inner {
    height: 100%;
}

.homepage-carousel-wrapper .carousel-item {
    height: 100%;
}

.homepage-carousel-wrapper .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-carousel-wrapper .carousel-item a {
    display: block;
    height: 100%;
}

.homepage-carousel-wrapper .carousel-control-prev,
.homepage-carousel-wrapper .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.homepage-carousel-wrapper .carousel-control-prev:hover,
.homepage-carousel-wrapper .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.homepage-carousel-wrapper .carousel-control-prev {
    left: 0;
}

.homepage-carousel-wrapper .carousel-control-next {
    right: 0;
}

.homepage-carousel-wrapper .carousel-control-prev-icon,
.homepage-carousel-wrapper .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
}

.homepage-carousel-wrapper .carousel-indicators {
    bottom: 30px;
}

.carousel-placeholder {
    background-color: #f8f9fa;
    color: #6c757d;
}

.text-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .homepage-sidebar {
        width: 250px;
    }
    
    .sidebar-menu-item {
        padding: 15px 20px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .homepage-layout {
        flex-direction: column;
    }
    
    .homepage-sidebar {
        position: fixed;
        width: 100%;
        height: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sidebar-content {
        padding: 20px 15px;
    }     
    
    .sidebar-title {
        font-size: 20px;
    }
    
    .sidebar-logo-img {
        max-width: 120px;
    }
    
    .sidebar-menu {
        /* flex-direction: row; */
        /* overflow-x: auto; */
        /* overflow-y: hidden; */
        flex: 0;
        margin-bottom: 15px;
    }
    
    .sidebar-category-item {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0px 0px 5px 15px;
    }
    
    .category-title {
        font-size: 16px;
        padding-left: 16px;
    }
    
    .category-title::before {
        font-size: 16px;
    }
    
    .category-sub-title {
        font-size: 14px;
    }
    
    .sidebar-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .homepage-carousel-wrapper {
        margin-left: 0;
        height: calc(100vh - 400px);
    }
    
    .homepage-carousel-wrapper .carousel-control-prev,
    .homepage-carousel-wrapper .carousel-control-next {
        width: 30px;
        height: 80px;
        border-radius: 0;
        position: absolute;
        z-index: 10;
    }
    
    .homepage-carousel-wrapper .carousel-control-prev {
        left: 0;
    }
    
    .homepage-carousel-wrapper .carousel-control-next {
        right: 0;
    }
    
    .homepage-carousel-wrapper .carousel-control-prev-icon,
    .homepage-carousel-wrapper .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }
}