/* @font-face {
    font-family: Poppins;
    src: url(../fonts/Poppins/Poppins-Regular.ttf);
} */


body {
    font-family: system-ui;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--main-content-background);
}

.modal-open {
    overflow: hidden !important;
}

body.modal-open .page-wrapper {
    transform: scale(0.95);
    filter: brightness(0.5);
    overflow: hidden !important;
    pointer-events: none;
}

/* Ensure page wrapper does not affect modal */
.page-wrapper {
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    width: 100%;
    transform-origin: 50% 25%;
    
}

main {
    margin-top: 90px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    background: var(--main-content-background);
    min-height: calc(100vh - 90px);
    transition: filter 0.3s, margin-top 0.3s;
}

#tucked-header.hidden main {
    margin-top: 70px;
}



.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1000px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
}


/* Black and white smooth conversioon color scheme style */
.black-white-button {
    background-color: black;
    color: white;
    border: 1px solid black;
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.black-white-button:hover {
    background-color: #ffffff;
    color: black;
}

button {
    font-family: system-ui;
    user-select: none;
    -webkit-user-drag: none;
}

.main-title {
    margin: 20px 5px;
    max-width: calc(100% - 40px);
    font-weight: lighter;
}

.light-divider {
    max-width: 600px;
    width: 50%;
    margin-bottom: 0;
    margin-top: 20px;
    background: #b3b3b3;
    border: none;
    height: 1px;
}


/* End of Body */

/* ~~~~~~~~~~~~~ */

/* Header */


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    color: var(--text-color);
    position: fixed;
    top: 0;
    z-index: 1000;
    background: var(--header-color);
    transition: height 0.3s, box-shadow 0.3s;
    width: 100%;
}

header.hidden {
    height: 70px;
    box-shadow: 0 4px 10px rgb(107 107 107 / 41%);
}


.header-logo-a {
    height: 100%;
    display: flex;
    align-items: center;
}

.header-logo-and-nav {
    display: flex;
    align-items: center;
    margin-left: 50px;
    gap: 30px;
}

.logo {
    height: calc(100% - 40px);
    transition: height 0.3s, margin-left 0.3s;
    margin-left: 20px;
}

#tucked-header.hidden .logo {
    height: calc(100% - 20px);
    margin-left: 10px;
}

#nav-list {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
	right: 100px;
}

#nav-list-collapse {
    font-size: 25px;
    margin-left: 10px;
    top: 10px;
    position: absolute;
    color: var(--text-color);
    cursor: pointer;
}

#nav-list ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    list-style-type: none;
    padding-left: 0;
    text-align: center;
    list-style-type: none;
    margin: 0;
}


nav ul li a {
    color: #000000;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 30px;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
    font-family: system-ui;
    font-weight: lighter;
}


#nav-list ul li {
    margin: 15px 0;
}

#nav-list ul li a {
    color: var(--text-color);
    font-size: 18px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: var(--company-blue);
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a.current::after {
    width: 100%;
    left: 0;
}

#nav-list.show {
    transform: unset;
}

.mobile-only {
    display: none;
}

.scale-on-hover {
    transition: transform 0.2s ease;
}

.scale-on-hover:hover {
    transform: scale(1.05);
}

#hamburger-icon {
    cursor: pointer;
}

.hamburger-line {
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Default (Hamburger) State */
.hamburger-line.nav_top {
    transform-origin: center;
}

.hamburger-line.nav_middle {
    opacity: 1;
}

.hamburger-line.nav_bottom {
    transform-origin: center;
}

/* Active (X) State */
#hamburger-icon.nav_active .hamburger-line.nav_top {
    transform: translateY(6px) translateX(-6px) rotate(45deg);
}

#hamburger-icon.nav_active .hamburger-line.nav_middle {
    opacity: 0;
}

#hamburger-icon.nav_active .hamburger-line.nav_bottom {
    transform: translateY(-6px) translateX(-6px) rotate(-45deg);
}


.page-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    margin-top: 40px;
    color: var(--text-color);
}



/* Toggle switch */
.toggle-switch {
    display: flex;
    align-items: center;
    margin-right: 20px;
    gap: 10px;
    transition: margin-right 0.3s;
}

#tucked-header.hidden .toggle-switch {
    margin-right: 10px;
}

.switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.profile-and-cart i {
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-and-cart i:hover {
    transform: scale(1.2);
}

.profile-and-cart {
    display: flex;
    align-items: center;
}


.language-switcher {
    position: relative;
    display: inline-block;
}

.language-switcher img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-top: 5px;
    margin-left: 5px;
    border-radius: 10px;
}

.language-switcher img:hover {
    transform: scale(1.20);
}

/* End of Header */

/* ~~~~~~~~~~~~~ */

/* Footer */

footer {
    background-color: var(--text-color);
    color: var(--text-color-inverse);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    padding: 20px 0;
    margin-left: 20px;
    margin-right: 20px;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.footer-column {
    flex: 1;
    margin: 0 20px;
}

.footer-column h3 {
    color: var(--text-color-inverse);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-column p {
    color: var(--text-color-inverse);
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 5px;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-column a {
	color: var(--text-color-inverse);
	font-size: 14px;
	display: flex;
	flex-direction: row;
	text-decoration: none;
	margin-bottom: 10px;
	align-items: center;
	gap: 10px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 20px;
    margin-bottom: 10px;
	width: calc(100% - 40px);
	color: white;
	position: relative;
}

.footer-bottom p,
.footer-links a {
    color: var(--text-color-inverse);
    font-size: 14px;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.social-media {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.social-media a svg {
    fill: white;
	height: 25px;
	width: 25px;
}

.social-media i {
    color: var(--text-color);
    font-size: 2em;
}


.bottom-contact-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--contrast-item-background);
	width: calc(100% - 20px);
	max-width: 900px;
	border-radius: 25px;
	margin-top: 20px;
    color: white;
}
.bottom-contact-section h2 {
    margin: 0;
    margin-top: 10px;
}

.bottom-contact-icons {
	display: flex;
	width: calc(100% - 20px);
	margin-bottom: 10px;
	gap: 20px;
	justify-content: space-evenly;
}

.bottom-contact-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	transition: background-color 0.3s;
	background-color: transparent;
	cursor: pointer;
	margin: 0;
	padding: 0;
	border-radius: 15px;
	gap: 15px;
	text-decoration: none;
	color: white;
}
.bottom-contact-icon:hover {
    background-color: #3d7de1;
}

.bottom-contact-icon svg,
.custom-social-icons svg {
	fill: #ffffff;
	width: 50px;
	height: 50px;
}
.bottom-contact-icon svg {
	margin-top: 10px;
}
.bottom-contact-icon p {
    margin: 0;
}

.custom-social-icons {
    display: flex;
	gap: 20px;
	width: calc(100% - 40px);
	height: 50px;
	justify-content: center;
	margin-top: 20px;
}

@media (max-width: 1200px) {

    .logo {
        height: calc(100% - 20px);
        margin-left: 10px;
    }

    main {
        min-height: calc(100vh - 80px);
    }

    .mobile-only {
        display: unset;
    }
 

    .header-logo-and-nav {
        margin-left: 0px;
    }

    .page-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .hamburger-menu {
        display: block;
    }

    /* Mobile menu */
    #nav-list {
        background: #000000;
        transition: all 0.2s ease-in-out;
        z-index: 1000;
        height: calc(100vh - 70px);
        border-radius: 0;
        transform: unset;
        position: fixed;
        top: 80px;
        right: 0;
        transform: translateX(100%);
        left: unset;
    }

    #nav-list ul {
        flex-direction: column;
        margin: 0 60px;
        gap: 0;
        margin-top: 20px;
    }

    #nav-list ul li a {
        color: #ffffff;
    }

    /* Class that will be toggled by JavaScript */
    header {
        justify-content: space-between;
        height: 80px;
    }

    main {
        margin-top: 80px;
    }


    .main-title {
        font-size: 23px;
    }

    #tucked-header.hidden #nav-list {
        height: calc(100vh - 70px);
        top: 70px;
    }
}

@media (max-width: 900px) {
    .bottom-contact-icons {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    .bottom-contact-icon {
        gap: 5px;
    }
}


@media (max-width: 768px) {
    #nav-list ul {
        margin: 0 20px;
    }
    #nav-list {
        top: 70px;
    }
    
    .logo {
        height: calc(100% - 20px);
        margin-left: 10px;
    }

    header {
        height: 70px;
    }


    main {
        margin-top: 70px;
    }
    
    #tucked-header.hidden main {
        margin-top: 60px;
    }

    header.hidden {
        height: 60px;
    }


    .cta-button {
        padding: 8px 16px;
        font-size: 1em;
    }

    .main-title {
        font-size: 19px;
    }

    .footer-content,
    .footer-bottom {
        flex-direction: column;
    }

    .social-media {
        margin-top: auto;
        display: flex;
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }


    #tucked-header.hidden #nav-list {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

@media (max-width: 500px) {
    .main-title {
        font-size: 19px;
        max-width: calc(100% - 20px);
        text-align: center;
        margin: 20px 0;
    }
}