﻿/* --------------------------- */
/* ---------- Setup ---------- */
/* --------------------------- */

body {
    background-image: url('/background/bg1.jpg'); /* root-relative */
    background-repeat: repeat;
    background-position: center center;
    background-size: cover;
    font-size: 18px;
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    margin: 0;
}

:root {
    --primary-color: #4f5a4f;
    --primary-color-muted: color-mix(in srgb, var(--primary-color) 80%, transparent);
    --primary-color-light: color-mix(in srgb, var(--primary-color) 30%, transparent);
    --secondary-color: #afa385;
    --green-color: #4d6566;
    --warning-color: #3e044e;
    --red-color: #952929;
    --info-color: #3e044e;
    --light-color: #e9e9e7;
    --white-color: #fff;
    --black-color: #000;
    --dark-color: #3e044e;
    --dark-color-r: 69;
    --dark-color-g: 57;
    --dark-color-b: 44;
    --overlay-alpha: 0.1;
    --border-radius: 4px;
}

/* --------------------------- */
/* ---------- Grid ----------- */
/* --------------------------- */

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1580px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* --------------------------- */
/* ----- General columns ----- */
/* --------------------------- */

[class*="col-"] {
    position: relative;
    width: 100%;
}

.col-1 {
    flex: 0 0 8.33%;
    max-width: 8.33%;
}

.col-2 {
    flex: 0 0 16.66%;
    max-width: 16.66%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.col-5 {
    flex: 0 0 41.66%;
    max-width: 41.66%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.33%;
    max-width: 58.33%;
}

.col-8 {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.33%;
    max-width: 83.33%;
}

.col-11 {
    flex: 0 0 91.66%;
    max-width: 91.66%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* --------------------------- */
/* -- Mobile screen columns -- */
/* --------------------------- */
@media (max-width: 767px) {
    .col-mobile-1 {
        flex: 0 0 8.33%;
        max-width: 8.33%;
    }

    .col-mobile-2 {
        flex: 0 0 16.66%;
        max-width: 16.66%;
    }

    .col-mobile-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-mobile-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .col-mobile-5 {
        flex: 0 0 41.66%;
        max-width: 41.66%;
    }

    .col-mobile-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-mobile-7 {
        flex: 0 0 58.33%;
        max-width: 58.33%;
    }

    .col-mobile-8 {
        flex: 0 0 66.66%;
        max-width: 66.66%;
    }

    .col-mobile-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-mobile-10 {
        flex: 0 0 83.33%;
        max-width: 83.33%;
    }

    .col-mobile-11 {
        flex: 0 0 91.66%;
        max-width: 91.66%;
    }

    .col-mobile-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --------------------------- */
/* ------ Page Elements ------ */
/* --------------------------- */

.node {
    border-radius: var(--border-radius);
    padding: 7px 13px;
}

.hidden {
    display: none !important;
}

.x-center {
    justify-content: center;
    justify-self: center;
}

.x-right {
    justify-content: end;
    justify-self: end;
}

.y-center {
    align-items: center;
    align-self: center;
}

.y-end {
    align-items: end;
    align-self: end;
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: var(--border-radius);
}

    .iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.overflow-hidden {
    overflow: hidden;
}

.break-word {
    word-wrap: break-word;
}

.cursor-pointer {
    cursor: pointer !important;
}


/* --------------------------- */
/* -------- VANA PASK -------- */
/* --------------------------- */
@media (max-width: 767px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-bottom-menu {
        bottom: 0;
        left: 0;
        position: fixed;
        width: 100%;
        z-index: 99;
    }

    #shopping-cart, #mobile-menu {
        width: 100vw !important;
    }

    .width-mobile-90 {
        width: 90% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-tab-1 {
        flex: 0 0 8.33%;
        max-width: 8.33%;
    }

    .col-tab-2 {
        flex: 0 0 16.66%;
        max-width: 16.66%;
    }

    .col-tab-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-tab-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .col-tab-5 {
        flex: 0 0 41.66%;
        max-width: 41.66%;
    }

    .col-tab-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-tab-7 {
        flex: 0 0 58.33%;
        max-width: 58.33%;
    }

    .col-tab-8 {
        flex: 0 0 66.66%;
        max-width: 66.66%;
    }

    .col-tab-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-tab-10 {
        flex: 0 0 83.33%;
        max-width: 83.33%;
    }

    .col-tab-11 {
        flex: 0 0 91.66%;
        max-width: 91.66%;
    }

    .col-tab-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: none;
    }
}

@media (min-width: 992px) {
    .col-desktop-1 {
        flex: 0 0 8.33%;
        max-width: 8.33%;
    }

    .col-desktop-2 {
        flex: 0 0 16.66%;
        max-width: 16.66%;
    }

    .col-desktop-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-desktop-4 {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .col-desktop-5 {
        flex: 0 0 41.66%;
        max-width: 41.66%;
    }

    .col-desktop-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-desktop-7 {
        flex: 0 0 58.33%;
        max-width: 58.33%;
    }

    .col-desktop-8 {
        flex: 0 0 66.66%;
        max-width: 66.66%;
    }

    .col-desktop-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-desktop-10 {
        flex: 0 0 83.33%;
        max-width: 83.33%;
    }

    .col-desktop-11 {
        flex: 0 0 91.66%;
        max-width: 91.66%;
    }

    .col-desktop-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .width-desktop-40 {
        width: 40% !important;
    }
}

.width-100 {
    width: 100% !important;
}

.width-80 {
    width: 80% !important;
}

.width-70 {
    width: 70% !important;
}

.width-60 {
    width: 60% !important;
}

.width-50 {
    width: 50% !important;
}

.width-40 {
    width: 40% !important;
}

.min-height-100 {
    min-height: 100vh;
}

.min-height-85 {
    min-height: 85vh;
}

.min-height-50 {
    min-height: 50vh;
}

.justify-content-center {
    justify-content: center;
}

.align-self-end {
    align-self: end;
}

.align-self-center {
    align-self: center;
}

[data-modal] {
    cursor: pointer;
}

.input {
    display: inline-block;
    font-weight: 400;
    text-align: left;
    border: 1px solid var(--primary-color-light);
    padding: 0.575rem 0.75rem;
    border-radius: var(--border-radius);
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
    color: var(--primary-color);
}

    .input:hover {
        background-color: color-mix(in srgb, var(--white-color) 50%, transparent);
        border-color: var(--primary-color); /* keep the 1px border */
        box-shadow: 0 0 0 1px var(--primary-color); /* extra ring outside – no layout shift */
    }

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    padding: 0.575rem 0.75rem;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.btn-primary {
    font-size: 1rem;
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-primary:hover {
        filter: brightness(120%);
    }

    .btn-primary:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn-primary-outline {
    font-size: 1rem;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
}


    .btn-primary-outline:hover {
        background-color: var(--primary-color-light);
    }

    .btn-primary-outline:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }


.btn-light {
    font-size: 1rem;
    color: #fff;
    background-color: var(--light-color);
    border: 1px solid var(--light-color);
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-light:hover {
        filter: brightness(120%);
    }

    .btn-light:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn-light-outline {
    font-size: 1rem;
    color: var(--light-color);
    background-color: transparent;
    border: 1px solid var(--light-color);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
}


    .btn-light-outline:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .btn-light-outline:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }

.btn-success {
    font-size: 1rem;
    color: #fff;
    background-color: var(--green-color);
    border: 1px solid var(--green-color);
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-success:hover {
        filter: brightness(120%);
    }

    .btn-success:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn-success-outline {
    font-size: 1rem;
    color: var(--green-color);
    background-color: transparent;
    border: 1px solid var(--green-color);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-success-outline:hover {
        filter: brightness(120%);
    }

    .btn-success-outline:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn-secondary {
    font-size: 1rem;
    color: #212529;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
}

    .btn-secondary:hover {
        filter: brightness(90%);
    }

    .btn-secondary:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }

.btn-secondary-outline {
    font-size: 1rem;
    color: var(--secondary-color);
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-secondary-outline:hover {
        color: var(--white-color);
        background-color: var(--secondary-color);
    }

    .btn-secondary-outline:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }


.btn-red {
    font-size: 1rem;
    color: #fff;
    background-color: var(--red-color);
    border: 1px solid var(--red-color);
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-red:hover {
        filter: brightness(120%);
    }

    .btn-red:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

.btn-red-outline {
    font-size: 1rem;
    color: var(--red-color);
    background-color: transparent;
    border: 1px solid var(--red-color);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    border-radius: var(--border-radius);
}

    .btn-red-outline:hover {
        background-color: var(--red-color);
        color: var(--white-color);
    }

    .btn-red-outline:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }

.btn-flat {
    font-size: 1rem;
    color: #212529;
    background-color: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    .btn-flat:hover {
        filter: brightness(90%);
    }

    .btn-flat:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(248, 249, 250, 0.25);
    }

.btn:disabled {
    background-color: #eee;
    color: darkgray;
    cursor: not-allowed;
    border: 1px solid gray;
}

    .btn:disabled:hover {
        filter: none;
    }

/* ----- Btn Positioning ----- */

.btn-right {
    display: block;
    width: max-content;
    margin-left: auto;
}


*, *::before, *::after {
    box-sizing: border-box;
}

.hidden {
    display: none;
}

.position-absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.right-0 {
    right: 0;
}

.selected {
    border: 2px solid #aaa;
}
/* ------------------------------------- */
/* ----------- Zoom section ------------ */
/* ------------------------------------- */

.hover-zoom-container {
    display: inline-block; /* Or 'block' depending on your layout */
    overflow: hidden;
    position: relative;
    line-height: 0; /* Remove space below images */
}

.hover-zoom {
    display: block; /* Ensure the image fills the container without spaces */
    transition: transform 0.2s ease;
    width: 100%; /* Make the image responsive to the container size */
    height: auto; /* Maintain aspect ratio */
    cursor: zoom-in;
}

.hover-zoom-container:hover .hover-zoom {
    transform: scale(2);
}

.simple-zoom {
    transition: transform 0.2s ease;
    display: block;
    margin: 0 auto;
}

    .simple-zoom:hover {
        transform: scale(1.15);
    }

.shadow {
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.05);
}

.masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center
}

.masonry-item {
    flex: 1 1 calc(20% - 10px); /* 20% for 5 items in a row */
    box-sizing: border-box;
    overflow: hidden;
    max-width: 20%;
}

.masonry-width-2 {
    flex: 1 1 calc(50% - 10px); /* 20% for 5 items in a row */
    max-width: 50%;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .masonry-item {
        flex: 1 1 calc(33.33% - 10px); /* 3 items in a row */
        max-width: 33.33%;
    }

    .masonry-width-2 {
        flex: 1 1 calc(100%); /* 3 items in a row */
        max-width: 100%;
    }
}

/* ------------------------------------- */
/* ------ Navigation menu section ------ */
/* ------------------------------------- */

.list-style-none {
    list-style: none;
}

.navbar-container {
    background: #eeecea;
    position: fixed;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid #d1ccc7;
    top: 0;
}

.navbar-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items:center;
    justify-content: center;
}

.navbar-main-link {
    color: #333;
    font-size: 12px;
    letter-spacing: .1em;
    font-weight: 600;
    padding: 15px 15px;
    background: transparent;
    display: block;
    cursor: pointer;
}

    .navbar-main-link:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

.navbar-secondary-link {
    color: #333;
    font-size: 12px;
    letter-spacing: .1em;
    padding: 5px 5px;
    background: transparent;
    display: block;
    min-width: 220px;
    max-width: 220px;
}

    .navbar-secondary-link:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }

/* ------------------------------------- */
/* ----- Nodes and Banners section ----- */
/* ------------------------------------- */

.node-light {
    background: #f7f5f4;
    border-radius: 4px;
    padding: 10px 5px;
    overflow: hidden;
}

/* ------------------------------------- */
/* ----- Padding & Margin settings ----- */
/* ------------------------------------- */


.padding-small {
    padding: 5px !important;
}

.padding-0 {
    padding: 0 !important;
}

.padding-05 {
    padding: 0.5em !important;
}

.padding-1 {
    padding: 1em !important;
}

.padding-2 {
    padding: 2em !important;
}

.padding-3 {
    padding: 3em !important;
}

.padding-4 {
    padding: 4em !important;
}

.padding-5 {
    padding: 5em !important;
}

.padding-top-small {
    padding-top: 5px;
}

.padding-top-0 {
    padding-top: 0 !important;
}

.padding-top-1 {
    padding-top: 1em !important;
}

.padding-top-2 {
    padding-top: 2em !important;
}

.padding-top-3 {
    padding-top: 3em !important;
}

.padding-top-4 {
    padding-top: 4em !important;
}

.padding-top-5 {
    padding-top: 5em !important;
}

.padding-bottom-0 {
    padding-bottom: 0 !important;
}

.padding-bottom-1 {
    padding-bottom: 1em !important;
}

.padding-bottom-2 {
    padding-bottom: 2em !important;
}

.padding-bottom-3 {
    padding-bottom: 3em !important;
}

.padding-bottom-4 {
    padding-bottom: 4em !important;
}

.padding-bottom-5 {
    padding-bottom: 5em !important;
}

.padding-left-0 {
    padding-left: 0 !important;
}

.padding-left-1 {
    padding-left: 1em !important;
}

.padding-left-2 {
    padding-left: 2em !important;
}

.padding-left-3 {
    padding-left: 3em !important;
}

.padding-left-4 {
    padding-left: 4em !important;
}

.padding-left-5 {
    padding-left: 5em !important;
}

.padding-right-0 {
    padding-right: 0 !important;
}

.padding-right-1 {
    padding-right: 1em !important;
}

.padding-right-2 {
    padding-right: 2em !important;
}

.padding-right-3 {
    padding-right: 3em !important;
}

.padding-right-4 {
    padding-right: 4em !important;
}

.padding-right-5 {
    padding-right: 5em !important;
}

.margin-0 {
    margin: 0;
}

.margin-1 {
    margin: 1em;
}

.margin-2 {
    margin: 2em;
}

.margin-3 {
    margin: 3em;
}

.margin-4 {
    margin: 4em;
}

.margin-5 {
    margin: 5em;
}

.margin-top-0 {
    margin-top: 0;
}

.margin-top-small {
    margin-top: 5px;
}

.margin-top-1 {
    margin-top: 1em;
}

.margin-top-2 {
    margin-top: 2em;
}

.margin-top-3 {
    margin-top: 3em;
}

.margin-top-4 {
    margin-top: 4em;
}

.margin-top-5 {
    margin-top: 5em;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.margin-bottom-1 {
    margin-bottom: 1em;
}

.margin-bottom-2 {
    margin-bottom: 2em;
}

.margin-bottom-3 {
    margin-bottom: 3em;
}

.margin-bottom-4 {
    margin-bottom: 4em;
}

.margin-bottom-5 {
    margin-bottom: 5em;
}

.margin-left-small {
    margin-left: 5px !important;
}

.margin-left-0 {
    margin-left: 0 !important;
}

.margin-left-2 {
    margin-left: 2em !important;
}

.margin-left-3 {
    margin-left: 3em !important;
}

.margin-left-4 {
    margin-left: 4em !important;
}

.margin-left-5 {
    margin-left: 5em !important;
}

.margin-right-0 {
    margin-right: 0 !important;
}

.margin-right-small {
    margin-right: 5px !important;
}

.margin-right-1 {
    margin-right: 1em !important;
}

.margin-right-2 {
    margin-right: 2em !important;
}

.margin-right-3 {
    margin-right: 3em !important;
}

.margin-right-4 {
    margin-right: 4em !important;
}

.margin-right-5 {
    margin-right: 5em !important;
}

/* ------------------------------------- */
/* ---------- Modal settings ---------- */
/* ------------------------------------- */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.zoom-image {
    cursor: pointer;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    overflow-y: auto;
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    transition: transform 0.3s ease-out;
}

.modal-image {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    opacity: 1 !important;
    min-height: 40vh;
    max-height: 90vh;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    z-index: 999;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.modal-inner-container {
    height: 60vh;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* --------------------------------- */
/* -------- Table settings --------- */
/* --------------------------------- */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.45;
}

    .table th,
    .table td {
        padding: 12px 16px;
        vertical-align: middle;
        background-clip: padding-box;
    }

    .table tbody tr + tr td {
        border-top: 1px solid var(--secondary-color);
    }

    .table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--primary-color);
        color: var(--white-color);
        font-weight: 600;
        letter-spacing: .02em;
        text-align: left;
    }

        .table thead th:first-child,
        .table tbody td:first-child {
            padding-left: 20px;
        }

        .table thead th:last-child,
        .table tbody td:last-child {
            padding-right: 20px;
        }

.table-striped tbody tr:nth-child(odd) td {
    background-color: rgba(0,0,0,.025);
}

.table-hover tbody tr {
    transition: background-color .15s ease, box-shadow .15s ease;
}

    .table-hover tbody tr:hover td {
        background-color: rgba(0,0,0,.045);
    }

.table-row-active td {
    background-color: var(--primary-color-muted);
    box-shadow: inset 0 0 0 1px var(--primary-color-muted);
}

.table-small th,
.table-small td {
    padding: 6px 10px;
}

.table-borderless,
.table-borderless tbody tr + tr td,
.table-borderless thead th {
    border: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    background: transparent;
}

.table-scroll {
    --ts-height: 60vh; /* default height (override via size helpers) */
    position: relative;
    width: 100%;
    border-spacing: 0; /* keep header/body edges aligned */
}

/* Height helpers */
.table-scroll-50 {
    --ts-height: 50vh;
}

.table-scroll-60 {
    --ts-height: 60vh;
}

.table-scroll-70 {
    --ts-height: 70vh;
}

/* Split header/body so only body scrolls */
.table-scroll thead,
.table-scroll tbody {
    display: block;
}

/* The scroll viewport lives on tbody */
.table-scroll tbody {
    max-height: var(--ts-height);
    overflow-y: auto;
    overflow-x: hidden; /* avoid double scrollbars */
}

    /* Keep header visible (thead doesn’t scroll because tbody is the scroller) */
    .table-scroll thead tr,
    .table-scroll tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed; /* keeps columns aligned */
    }

.table-scroll thead th {
    position: sticky; /* optional: helps when header taller than 1 row */
    top: 0;
    z-index: 2;
}

/* Subtle shadow only when body is scrolled */
.table-scroll.is-scrolled thead th {
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

/* Top fade: visible only when scrolled down a bit */
.table-scroll::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.table-scroll.is-scrolled::before {
    opacity: 1;
}

/* Bottom fade (hidden when at the end) */
.table-scroll::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), var(--light-color));
    opacity: 1;
    transition: opacity .2s ease;
}

.table-scroll.at-end::after {
    opacity: 0;
}
/* --------------------------------- */
/* -------- Hover settings --------- */
/* --------------------------------- */

.hover-primary,
.hover-light {
    transition: background-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.hover-lighten {
    transition: filter .25s ease;
}

.hover-primary:hover {
    background-color: var(--primary-color);
}

.hover-light:hover {
    background-color: var(--light-color);
}

.hover-lighten:hover {
    filter: brightness(1.04);
}

/* ------------------------------------- */
/* -------- Scrollbar settings --------- */
/* ------------------------------------- */
::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ------------------------------------- */
/* ------- Mobile menu settings -------- */
/* ------------------------------------- */

#mobile-menu {
    position: fixed;
    top: 0;
    left: -900px;
    width: 500px;
    height: 100%;
    background: white;
    z-index: 1003;
    transition: left 0.5s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#closemobilemenu {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 50px;
    padding: 7px 15px 0 0;
    color: #bbb;
}

/* ---- Text Alignment ----- */

.text-trim {
    overflow: hidden;
    word-break: break-word;
    white-space: break-spaces;
}

.text-underline {
    text-decoration: underline;
}


.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-small {
    font-size: 13px;
}

.text-medium {
    font-size: 16px;
}

.text-large {
    font-size: 19px;
}

.text-italic {
    font-decoration: italic;
}

.letter-spacing-1 {
    letter-spacing: 0.15em;
}

a {
    text-decoration: none;
}

.link-a {
    text-decoration: underline;
    color: #000;
}

.uppercase {
    text-transform: uppercase;
}

.bold {
    font-weight: 600;
}

.text-title {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 100;
}

.white-space-nowrap {
    white-space: nowrap;
}

/* ------ Text colors -------- */

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-green {
    color: var(--green-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-white {
    color: var(--white-color);
}

.text-red {
    color: var(--red-color);
}

.text-info {
    color: var(--info-color);
}

.text-light {
    color: var(--light-color);
}

.text-dark {
    color: var(--dark-color);
}
/* ------ Text Sizes ------- */

.text-h1 {
    font-size: 2em;
}

.text-h2 {
    font-size: 1.5em;
}

.text-h3 {
    font-size: 1.17em;
}


/* ------------------------------------- */
/* -------- Backgrounds section -------- */
/* ------------------------------------- */

.bg-primary {
    background-color: var(--primary-color);
    background-color: rgb(from var(--primary-color) r g b / var(--bg-opacity, 1));
}

.bg-secondary {
    background-color: var(--secondary-color);
    background-color: rgb(from var(--secondary-color) r g b / var(--bg-opacity, 1));
}

.bg-success {
    background-color: var(--green-color);
    background-color: rgb(from var(--green-color) r g b / var(--bg-opacity, 1));
}

.bg-white {
    background-color: var(--white-color);
    background-color: rgb(from var(--white-color) r g b / var(--bg-opacity, 1));
}

.bg-black {
    background-color: var(--black-color);
    background-color: rgb(from var(--black-color) r g b / var(--bg-opacity, 1));
}

.bg-light {
    background-color: var(--light-color);
    background-color: rgb(from var(--light-color) r g b / var(--bg-opacity, 1));
}

.bg-gradient {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 80%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 80%, transparent) 100% );
}

.bg-none {
    background-color: none;
}

.bg-opacity-100 {
    --bg-opacity: 1;
}

.bg-opacity-75 {
    --bg-opacity: .75;
}

.bg-opacity-50 {
    --bg-opacity: .5;
}

.bg-opacity-25 {
    --bg-opacity: .25;
}

.bg-opacity-10 {
    --bg-opacity: .10;
}

.bg-opacity-0 {
    --bg-opacity: 0;
}

/* --------------------------- */
/* ----- Border Elements ----- */
/* --------------------------- */

.border-0 {
    border: 0;
}

.border-primary {
    border: 1px solid var(--primary-color);
}

.border-primary-bottom {
    border-bottom: 1px solid var(--primary-color);
}

.border-secondary {
    border: 1px solid var(--secondary-color);
}

.border-secondary-bottom {
    border-bottom: 1px solid var(--secondary-color);
}

.border-light {
    border: 1px solid var(--light-color);
}

.border-light-bottom {
    border-bottom: 1px solid var(--light-color);
}

.border-light-top {
    border-top: 1px solid var(--light-color);
}

.border-round {
    border-radius: 4px;
}

.border-sharp {
    border-radius: 0px;
}

.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,.15);
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* Datetime logic */
.drp-popover {
    position: absolute;
    z-index: 2000;
    background: var(--light-color);
    border: 1px solid var(--primary-color-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 10px;
    min-width: 580px;
    user-select: none;
}

.drp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 10px;
    border-bottom: 1px solid var(--light-color);
}

.drp-nav {
    display: flex;
    gap: 6px;
}

.drp-btn {
    border: 1px solid var(--primary-color-light);
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 6px 8px;
    cursor: pointer;
    font-size: 14px;
}

    .drp-btn:hover {
        filter: brightness(1.05);
    }

.drp-quick {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

    .drp-quick .drp-chip {
        border: 1px solid var(--primary-color-light);
        color: var(--primary-color);
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 12px;
        cursor: pointer;
    }

        .drp-quick .drp-chip:hover {
            background: var(--primary-color-light);
        }

.drp-calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 10px 6px 6px;
}

.drp-calendar {
    border: 1px solid var(--primary-color-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.drp-month-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    letter-spacing: .02em;
    padding: 8px 6px;
}

.drp-weekdays, .drp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.drp-weekdays {
    padding: 6px 6px 0;
    background: var(--light-color);
    font-size: 12px;
    color: var(--primary-color);
}

.drp-weekday {
    text-align: center;
    padding: 6px 0;
    opacity: .8;
}

.drp-cell {
    text-align: center;
    padding: 9px 0;
    cursor: pointer;
    position: relative;
    background: var(--white-color);
    color: var(--primary-color);
    border: 1px solid transparent; /* for consistent height */
}

    .drp-cell.is-out {
        color: #ccc;
    }

    .drp-cell.is-disabled {
        color: #bbb;
        cursor: not-allowed;
        text-decoration: line-through;
    }

    .drp-cell:hover:not(.is-disabled) {
        background: rgba(0,0,0,.045);
    }

    .drp-cell.is-start,
    .drp-cell.is-end {
        background: var(--primary-color);
        color: #222;
        font-weight: 600;
    }

    .drp-cell.is-inrange {
        background: color-mix(in srgb, var(--primary-color) 30%, transparent);
    }

    .drp-cell.is-preview {
        outline: 1px dashed var(--primary-color);
        outline-offset: -3px;
    }

.drp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 8px 0;
    border-top: 1px solid var(--light-color);
}

.drp-actions {
    display: flex;
    gap: 8px;
}

    .drp-actions .btn {
        padding: 0.5rem 0.8rem;
    }

.drp-summary {
    font-size: 12px;
    color: var(--primary-color);
}

.drp-hidden {
    display: none !important;
}

/* --- dropdown --- */
/* === Dropdown container + trigger === */
/* Wrapper & toggle */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Optional caret on the toggle */
.dropdown-toggle::after {
    content: "▾";
    margin-left: .4rem;
    font-size: .9em;
    opacity: .7;
}

/* Menu panel */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: max(180px, 100%);
    padding: .5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: .5rem;
    background: var(--surface-color, #fff);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* Open state */
.dropdown[data-open="true"] .dropdown-menu {
    display: block;
}

/* Spacing between menu children */
.dropdown-menu > * + * {
    margin-top: .25rem;
}

/* Fallback look for plain <a> without your btn classes */
.dropdown-menu > a:not([class*="btn"]) {
    display: block;
    padding: .5rem .75rem;
    border-radius: .375rem;
    text-decoration: none;
    color: var(--text-color, #111);
}

    .dropdown-menu > a:not([class*="btn"]):hover {
        background: var(--light-color, #f5f6f8);
    }
