.page-wrapper {
    max-width: 1400px;
    margin: auto;
}

/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.ribbon {
    --f: .5em;
    /* control the folded part */
    position: absolute;
    top: 0;
    right: 0;
    line-height: 1.8;
    padding-inline: 1lh;
    padding-bottom: var(--f);
    border-image: conic-gradient(#0008 0 0) 51%/var(--f);
    clip-path: polygon(100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)), var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)), 999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px));
    transform: translate(calc((1 - cos(45deg))*100%), -100%) rotate(45deg);
    transform-origin: 0% 100%;
    background-color: var(--primary-color);
    /* the main color  */
}

.currency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media(max-width:768px) {
    .currency {
        position: static;
        transform: none;
    }
}

/* Currency select custom styles */
#currency {
    background: #fff;
    color: #222;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    padding: 4px 16px 4px 12px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    outline: none;
    cursor: pointer;
    min-width: 110px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
}

#currency:focus {
    border-color: var(--primary-color, #31D36C);
    box-shadow: 0 0 0 2px rgba(49, 211, 108, 0.15);
}

#currency option {
    color: #222;
    background: #fff;
}

/* add css here  */

/* Dropdown nav styles (no external icon library required) */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 992px) {
    .nav-dropdown {
        display: none;
    }
}

/* Nested subdropdown (right-opening) inside dropdown panels */
.nav-subdropdown {
    position: relative;
}

.nav-subdropdown::after {
    content: "";
    position: absolute;
    top: 0;
    right: -42px;
    width: 42px;
    height: 100%;
}


.nav-subdropdown button {
    color: var(--text-color, #111) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.nav-subdropdown .nav-subdropdown-button {
    background: transparent;
    border: none;
    color: #2d2d2d;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase
}

.nav-subdropdown .nav-subdropdown-button:hover {
    background: #0096FF;
    border-radius: 6px;
    color: white !important;
}

.nav-subdropdown .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .14s ease;
    pointer-events: none;
}

.nav-subdropdown--right .nav-subdropdown-button .chevron {
    transform: rotate(-45deg);
}

.nav-subdropdown--right.open .nav-subdropdown-button .chevron,
.nav-subdropdown--right:hover .nav-subdropdown-button .chevron,
.nav-subdropdown--right:focus-within .nav-subdropdown-button .chevron {
    transform: rotate(135deg);
}

.nav-subdropdown-menu {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    min-width: 300px;
    z-index: 80;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(12, 20, 30, 0.12);
    padding: 10px
}

.nav-subdropdown-menu a {
    font-size: 13px
}

.nav-subdropdown.open .nav-subdropdown-menu,
.nav-subdropdown:hover .nav-subdropdown-menu,
.nav-subdropdown:focus-within .nav-subdropdown-menu {
    display: block;
}

@media (max-width: 768px) {
    .nav-subdropdown .nav-subdropdown-menu {
        position: static;
        box-shadow: none;
    }
}

.nav-dropdown .html {
    display: flex;
    align-items: center;
}

.nav-dropdown-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    text-decoration: none;
}

/* CSS chevron (drawn with borders) */
.nav-dropdown-button .chevron {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    /* default: point down */
    transform: rotate(45deg);
    transition: transform .18s ease, opacity .18s ease;
    margin-left: 2px;
    opacity: .9;
    pointer-events: none;
}

/* Open state: point up */
.nav-dropdown.open .nav-dropdown-button .chevron {
    transform: rotate(-135deg);
}

/* Also flip chevron when hovering or focusing the dropdown so it matches visibility
           even when the open state is driven by CSS :hover or :focus-within */
.nav-dropdown:hover .nav-dropdown-button .chevron,
.nav-dropdown:focus-within .nav-dropdown-button .chevron,
.nav-dropdown.open .nav-dropdown-button .chevron {
    transform: rotate(-135deg);
}

/* Dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: 30px;
    right: 0;
    min-width: 200px;
    padding: 6px 4px;
    display: none;
    z-index: 60;
}

.nav-dropdown-menu-wrapper {
    background: white;
    box-shadow: 0 8px 24px rgba(12, 20, 30, 0.12);
    border-radius: 10px;
    padding: 6px;
    margin-top: 20px;
    position: relative
}

.nav-dropdown-menu-wrapper::before {
    content: "";
    position: absolute;
    top: -15px;
    right: 16px;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    border-bottom: 15px solid #fff;
    border-top: 0;
}

.nav-dropdown-menu-wrapper a {
    text-transform: uppercase
}

/* show on hover, focus-within, or when .open is present */
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu:hover {
    display: block;
}

/* ensure the absolute menu can receive pointer events */
.nav-dropdown-menu {
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-color, #111);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
}

.nav-dropdown-menu a:hover {
    background: #0096FF;
    color: #fff;
}

/* Mobile tweaks: make dropdown flow in document on small screens */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 6px 0;
        border-radius: 6px;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }
}

/* custom dropdown styles  */
.custom-dropdown {
    position: relative;
    display: inline-block;
    margin-bottom: 11px;
    width: 100%;
}

@media(min-width: 992px) {
    .custom-dropdown {
        display: none;
    }
}

.custom-dropbtn {
    color: white;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 11px;
    line-height: 0;
    text-transform: uppercase;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.custom-dropbtn i {
    font-size: 18px;
}

.custom-dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.096);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.9px);
    -webkit-backdrop-filter: blur(11.9px);
    min-width: 200px;
    z-index: 1;
    overflow: hidden;
    padding: 10px 15px;
}

.custom-dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: start;
}

.custom-dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Active dropdown styling */
.custom-dropdown.show .custom-dropdown-content {
    display: block;
}