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

@media (max-width: 767.98px) {
    .container-full-sm {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px; /* optional padding */
        padding-right: 12px; /* optional padding */
    }

    .header-2 {
        height: auto !important;
    }

    .header-2 .row > [class*="col-12"] {
        margin-top: 24px !important;
    }

    .header-2 .col-12.d-flex.justify-content-md-end {
        margin: 24px 0 !important;
        justify-content: flex-start !important;
        width: 100%;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pagination-col {
        display: flex;
        justify-content: center;
    }

    .pagination-col .dataTables_paginate.paging_simple_numbers {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .pagination-col .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        margin: 0;
        padding-left: 0;
        list-style: none;
    }

    .pagination-col .pagination li.page-item {
        flex: 0 1 auto;
    }

    .my-button.back-button {
        margin-top: 1rem;
    }

    .product-video video {
        width: 100% !important;
        height: auto !important;
    }

    .drop-down-menu-account.show {
        transform: translate3d(-95px, 40px, 0px) !important;
    }
}

body {
    background-color: #e7e6d9;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.form-control:focus {
    outline: none;
    box-shadow: none;
}

.header-banner {
    background: url("../images/banner.jpg") no-repeat center center / cover;
    height: 300px;
    /*box-shadow: 0 6px 16px rgba(123, 212, 211, 0.12);*/
}

.header-1 {
    background-color: #9a734a;
    height: 40px;
}

.header-2 {
    background-color: #dfdecd;
    height: 70px; /* fixed height */
    display: flex;
    align-items: center; /* vertically center contents */
}

.header-1 .home-name {
    font-family: 'Cormorant Garamond', serif;
    line-height: 40px;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.header-1 .dropdown-toggle {
    height: 40px !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border: none;
    outline: none !important;
    box-shadow: none !important;
}

.header-1 .dropdown-toggle:hover {
    color: #000000 !important;
}

.header-1 .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.header-1 .dropdown-menu {
    border: 1px solid #9a734a !important;
    background-color: #ffffff !important;
}

.header-1 .dropdown-menu.show {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    top: -3px !important;
}

.header-1 .dropdown-item {
    color: #000000 !important;
    background-color: transparent !important;
}

.header-1 .dropdown-item:hover,
.header-1 .dropdown-item:focus {
    color: #ffffff !important;
    background-color: #9a734a !important;

}

.header-2 {
    height: 70px;
    background-color: #dfdecd;
}

.header-2 .col {
    height: 70px;
}

.header-2 .fas {
    color: #000000;
}

.breadcrumb-container {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
}

.breadcrumb-container a {
    color: #333;
}

.footer-1 {
    background-color: #9a734a;
    color: #ffffff;
}

.my-button {
    position: relative;
    overflow: hidden;
    background-color: #593529;
    border: none;
    border-radius: 0;
    color: white;
    outline: none;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.my-button:hover {
    background-color: #b9674b;
}

.my-announcement {
    font-family: 'Cormorant Garamond ', serif;
    margin-bottom: 12px;
    color: #000000;
    border-bottom: 1px solid #c0bfb2;
}

.announcement-header {
    font-size: 26px;
    line-height: 40px;
    font-weight: 500;
    text-align: center;
}

.my-announcement a {
    color: #333333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 200;
    margin: 6px 0;
    display: block;
    padding: 3px 6px;
}

.my-announcement a:hover {
    background-color: #dfdecd;
    text-decoration: none;
}

.announcement-table {
    width: auto;
    /*margin-top: 12px;*/
}

.announcement-table btn {

}

.nowrap {
    white-space: nowrap;
}

.nowrap-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1px;
}

.fit-content-nowrap {
    width: 1px;
    white-space: nowrap;
}

.drop-down-menu-account {
    width: 100%;
}

.drop-down-menu-cart {
    padding-top: 2px;
}

/* === products === */

.product-search-wrapper .input-group-text {
    background-color: #9a734a;
    border: 1px solid #9A734A;
}

.product-search-wrapper .fas {
    color: #ffffff;
}

.product-search {
    border-radius: 0;
    font-size: 16px;
    border-color: #ccbeb6;
    background: transparent;
    color: #221b19;
    padding: 0 50px 0 20px;
}

.product-search:focus {
    border-color: #b9674b;
}

.product-card {
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e7e6d9;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #c0bfb2;
    z-index: 2;
}

.product-card:hover .thumb-preview {
    transform: scale(1.05);
}

.thumb-preview {
    transition: transform 0.3s ease;
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.product-code {
    color: #221b19;
    font-size: 13px;
    margin-top: 8px;
}

.product-code-b {
    font-weight: bold;
}

.product-name {
    font-size: 13px;
    line-height: 1.2em;
    color: #221b19;
    margin-bottom: 24px;
    margin-top: 12px;
    font-weight: 500;
    text-align: left;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    text-overflow: ellipsis;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;

    max-height: 2.4em; /* 2 lines × line-height */
}

.product-view-price {
    color: #333333;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: 0.8px;
    margin-top: auto; /* ensures price is pushed to the bottom */
}

/* === categories === */

.category-header {
    font-family: 'Cormorant Garamond ', serif;
    /*border-bottom: 1px solid #c0bfb2;*/
    margin-bottom: 12px;
    color: #000000;
    padding: 0 12px;
    font-size: 26px;
    line-height: 40px;
    font-weight: 500;
    text-align: center;
}

.category-tree-container {
    border: 1px solid #c0bfb2;
    font-size: 14px;
}

.category-tree,
.category-tree ul {
    list-style: none;
    margin: 0;
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.tree-item {
    margin: 2px 0;
}

.category-label {
    display: flex;
    justify-content: space-between; /* push arrow to the right */
    align-items: center;
    cursor: pointer;
    gap: 20px;
    padding: 4px 6px 4px 0;
    user-select: none; /* Prevents text selection */
    border-bottom: 1px solid #c0bfb2;
    border-top: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.category-label:hover {
    color: #333;
    background-color: #dfdecd;
    /*text-decoration: none;*/
    font-weight: bold;
}

.category-label.selected {
    color: #333;
    background-color: #dfdecd;
    font-weight: bold;
}

.category-label span {
    margin-left: 10px;
}

.cat-name {
    margin: 6px 0;
}

.subcategory-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease;
    will-change: max-height;
}

.subcategory-list.expanded {
    max-height: 10000px;
}

.category-label .arrow-icon {
    transition: transform 0.3s ease;
}

/* === product === */

.product-image-full {
    box-shadow: 0 3px 6px rgba(0, 0, 0, .075);
    border-radius: .25rem;
    border: 1px solid #dfdecd;
    padding: 1px;
    z-index: 12;
}

.product-view {
    background: transparent;
    border: none;
    color: #333333;
}

.product-view .card-body {
    padding: 0;
}

.product-view .product-image {
    max-width: 100%;
}

.product-view .product-image-thumbs {
    align-items: stretch;
    display: flex;
    margin-top: 2rem;
}

.product-view .product-image-thumb {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
    border-radius: .25rem;
    border: 1px solid #dfdecd;
    display: -ms-flexbox;
    display: flex;
    margin-right: 1rem;
    max-width: 7rem;
    padding: .5rem;
}

.product-image-thumb.active {
    border: 1px solid #9a734a;
}

.product-view .product-image-thumb img {
    max-width: 100%;
    height: auto;
    align-self: center;
}

.product-view a {
    color: #ffffff;
}

.product-view .product-header {
    margin-top: 24px;
    border-bottom: 1px solid #c0bfb2;
}

.product-view .product-view-description {
    margin-top: 24px;
    border-bottom: 1px solid #c0bfb2;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #62544f;
}

.product-view .product-view-desc {
    padding-bottom: 24px;
}

.product-view .product-view-availability {
    margin-top: 24px;
    border-bottom: 1px solid #c0bfb2;
    padding-bottom: 24px;
}

.product-view .product-view-files {
    margin-top: 24px;
    border-bottom: 1px solid #c0bfb2;
    padding-bottom: 24px;
}

.product-view .product-view-files a {
    color: #333333;
    text-decoration: underline;
}

.product-view .product-view-price {
    margin-top: 24px;
    border-bottom: 1px solid #c0bfb2;
    color: #333333;
    font-weight: 600;
    text-align: left;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: 1px;
    padding-bottom: 24px;
}

/* === user === */

.user-settings {
    background: transparent;
}

/* === pagination === */

.dataTables_info {
    font-size: 14px;
}

.filter-wrapper .form-control {
    height: 44px;
    font-size: 14px;
    font-weight: 400;
    user-select: none;
    border-radius: 0;
    border-color: #9a734a;
    background-color: transparent;
    color: #62544f;
}

.filter-wrapper .form-control:hover,
.filter-wrapper .form-control:focus {
    border-color: #000000;
    background-color: #e7e6d9 !important;
    outline: none; /* optional */
}

.paging_simple_numbers {
    width: 75px;
}

.filter_simple_numbers {
    width: 200px;
}

.page-link {
    background-color: transparent;
    color: #000000;
    border: 1px solid #ccbeb6;
    border-radius: 0;
    margin-right: 6px;
    padding: 0 15px 0 16px;
    font-size: 14px;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
}

.page-link:hover {
    background-color: #b9674b;
    color: #ffffff;
}

.page-link:focus {
    box-shadow: none;
}

.page-item.active .page-link {
    background-color: #b9674b;
    color: #ffffff;
    border: none;
    border-radius: 0;
}

.page-item.disabled .page-link {
    background-color: transparent;
    border: 1px solid #ccbeb6;
}

/* ==== shopping cart === */

.shopping-cart-icon {
    background-color: transparent;
    border: none;
    height: 100%;
}

.shopping-cart-icon:hover {
    color: #000000;
    background-color: transparent;
}

.cart-table {
    width: 100%;
    text-align: center;
    color: #000000;
}

.cart-table a {
    color: #000000;
    text-decoration: none;
}

.cart-table table {
    width: 100%;
    border: 1px solid #ccbeb6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    table-layout: auto;
}

.cart-table table thead th {
    border-bottom: 1px solid #ccbeb6;
    padding: 20px 0;
    line-height: 22px;
}

.cart-table table tbody td {
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #ccbeb6;
    padding: 15px 10px;
    width: auto;
    white-space: nowrap;
}

.cart-image-thumb {
    width: 100%;
    height: 200px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-image-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-table .cart-price {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 15px;
}

.cart-table .cart-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccbeb6;
    padding: 6px 3px;
    width: 100px;
    margin: 0 auto; /* center div inside td */
}

.cart-table .cart-quantity .btn-quantity {
    border: none; /* remove button border */
    background: transparent;
    padding: 0;
    width: 25px;
    height: 25px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    font-size: 22px;
    font-family: 'Roboto', sans-serif;
}

.cart-table .cart-quantity .quantity-text {
    flex-grow: 1;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

/* ==== login/register === */

.login-page, .register-page {
    /*background-color: #e7e6d9;*/
}

/* === errors === */

.error-404.not-found {
    text-align: center;
    margin: 0 0 30px;
}

.error-404.not-found h2 {
    font-size: 130px;
    font-weight: 700;
    color: #b9674b;
    font-family: 'Cormorant Garamond', serif;
}

.error-404.not-found h3 {
    font-size: 30px;
}

.error-404.not-found .page-content {
    font-size: 18px;
    width: 40%;
    margin: 0 auto 30px;
}

.error-404.not-found .page-content p {
    font-size: 16px;
}

.error-404.not-found .back-home-button a {
    font-size: 15px;
    padding: 12px 25px;
    overflow: hidden;
    margin: 30px 0 0 0;
    font-family: 'Roboto', sans-serif;
    background-color: #593529;
    border: none;
}

.error-404.not-found .back-home-button a:hover {
    background-color: #b9674b;
}

.error-404.not-found .back-home-button a:focus {
    box-shadow: none;
}

.error404 .search-wrapper.loading + button {
    display: block;
}

/* === mobile-categories === */

.mobile-categories-toggle a {
    color: #ffffff;
}

/* side panel styles */
.side-panel {
    position: fixed;
    top: 0;
    left: -75%; /* hidden off-screen */
    width: 75%;
    height: 100%;
    background: #E7E6D9;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.4s ease; /* smooth transition */
    z-index: 1000;
    overflow-y: auto;
}

.side-panel.open {
    left: 0;
}