@font-face {
    font-family: mainFont;
    src: url('../../assets/fonts/FranklinGothicURW-Boo.otf');
}
@font-face {
    font-family: ekaFont;
    src: url('../../assets/fonts/EKA.otf');
    font-style: normal;
    font-weight: normal;
}

:root {
    --primary: #00d2a0;
    --secondary: #ff5028;
    --accent: #cd64ff;
    --gray: #beb9b9;

    --light: white;
    --dark: rgb(33, 33, 33);

    --text-light: white;
    --text-light-alt: rgb(243, 243, 243);
    --text-dark: rgb(65, 65, 65);

    --main-gradient: linear-gradient(304deg, var(--primary) 0%, var(--secondary) 100%);

    --br: 8px;
    --br-s: 6px;

    --border: 1px solid rgb(53, 53, 53);
    --border-light: 1px solid #eaeaea;;

    --button-hover: 0px 0 0 60px var(--primary) inset;
    --shadow: 0px 6px 5px 0px rgba(0,0,0,0.05);

    --lh-l: 1.5;
    --lh-m: 1.4;
    --lh-s: 1.3;
    --lh-xs: 1.15;

    --fs-c-xl: clamp(2.1rem, 1.92rem + 0.94vw, 3.05rem);
    --fs-c-l: clamp(1.7rem, 1.55rem + 0.74vw, 2.44rem);
    --fs-c-m: clamp(1.35rem, 1.23rem + 0.6vw, 1.95rem);
    --fs-c-s: clamp(1.25rem, 1.19rem + 0.31vw, 1.56rem);
    --fs-c-xs: clamp(1.06rem, 1.03rem + 0.19vw, 1.25rem);
    --fs-l: 1rem;
    --fs-m: 0.8rem;
    --fs-s: 0.64rem;

    --p-m: 20px;
    --p-l: 30px;
    --p-s: 10px;

    --modern: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
    font: inherit;
}
::-moz-selection {
    background: black;
    color: white;
}

::selection {
    background: black;
    color: white;
}
a, button, img {
    user-select: none;
}
html:focus-within {
    scroll-behavior: smooth;
}
html,
body {
    height: 100%;
    scroll-behavior: smooth
}
body {
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    font-family: mainFont;
    background: var(--primary);
    background: url(../../assets/images/bg-1.png);
    &::-webkit-scrollbar-thumb {
        background: var(--primary);
        border: 3px solid black;;
    }
    &::-webkit-scrollbar-track {
        background: black;
    }
    &::-webkit-scrollbar {
        width: 0.6rem;
    }
}
body {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

body.loaded {
  opacity: 1;
}
input[type="text"],
input[type="password"],
input[type="file"],
input[type="email"],
textarea, select {
    &:focus {

    }
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    font-family: mainFont;
    line-height: var(--lh-c-s);
    color: var(--text-dark);   
    letter-spacing: 1px;
}
h1 {
    font-size: var(--fs-c-xl);
}
h2 {
    font-size: var(--fs-c-l);
}
h3 {
    font-size: var(--fs-c-m)
}
h4 {
    font-size: var(--fs-c-s)
}
h5, h6 {
    font-size: var(--lh-c-xs)
}
p, a {
    font-family: mainFont, 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 1px;
}
a {
    font-weight: 600;
}
.container {
    width: min(1200px, 100% - (1rem * 2));
    margin-inline: auto;
}


header {
    background: black;
    box-shadow: var(--shadow);
        -webkit-user-select: none;
    user-select: none;
    & h1 {
        color: var(--text-light);
        font-family: ekaFont;
        & span {
            color: var(--primary);
        }
    }
    & h5 {
        color: var(--gray);
        &:hover {
            color: var(--text-light);
            &:before {
                content: "⬅";
                margin-right: 5px;
            }
        }
    }
    & > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
nav i, nav #lang {
   
    color: white;
    transition: 300ms;
    font-size: 1.5em !important;
    margin-left: 20px;
    cursor: pointer;
    &:hover {
        color: var(--primary);
    }
}
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    background: black;
    z-index: 9100;
    & > div {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        & * {
            color: var(--text-light);
            margin: 0 5px;
        }
    }
}
#cart {
    visibility: hidden; /* or */
    transition: visibility 0.5s, opacity 0.5s ease-in-out;
    position: fixed;
    right: 40px;
    bottom: 50px;
        z-index: 9999;
    & i {
        font-size: 3em;
        margin-right: 5px;
        color: white;
    }
    & a {
        background: black;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
        box-shadow: var(--shadow);
        cursor: pointer;
        &:hover i {
            color: var(--primary);
        }
    }
    &.visible {
        visibility: visible;
    }
}
.breadcrumbs {
    margin-top: 5px;
    & a {
        cursor: pointer;
        &:after {
            content: "➔";
            display: inline-block;
            text-decoration: none !important;
            margin-inline: 5px;
        }
        &:last-of-type:after {
            content:"";
            
        }
        &:hover {
            color: black;
            text-decoration: underline;
        }
    }
}
main {
    padding-bottom: 30px;
    & > section {
        margin: 20px 0;
        & > h1 {
            color: rgba(22, 22, 22, 0.8);
        }
    }
    & .categories {
        & > div {
            margin: var(--p-s) 0;
            display: grid;
            grid-gap: 20px;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            & > a {
                display: flex;
                align-items: center;
                justify-content: space-between;
                background: #f0f0f0da;
                padding: var(--p-m) var(--p-l);
                box-shadow: var(--shadow);
                border: var(--border-light);
                border-radius: var(--modern);
                & h2 {
                    color: var(--text-dark);
                    transition: 300ms;
                }
                & p {
                    color: gray;
                }
                & > i {
                    color: var(--text-dark);
                    font-size: 3em;
                }
                & * {
                    transition: 300ms;
                }
                &:hover {
                    background: #f7f7f7ea;
                }
                &:hover * {
                    color: black;
                    & h2 {
                    text-decoration: underline;
                    }
                }
            }
        }
    }
    & .products {
        margin-bottom: 70px;
        & > div {
            margin: var(--p-s) 0;
            padding: 20px;
            background: rgba(240, 240, 240, 0.815);
            box-shadow: var(--shadow);
            border: var(--border-light);
            border-radius: var(--modern);
            & > div {
                margin: var(--p-s) 0;
                display: grid;
                grid-gap: 20px;
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                & > div {
                    background: #f3f3f3b6;
                    box-shadow: var(--shadow);
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    border-radius: var(--modern);
                    position: relative;
                    & .product-image > a {
                        background: white;
                        height: 200px;
                        overflow: hidden;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        border-radius: 4px 4px 0 0;
                        position: relative;
                        & img {
                            max-height: 70%;
                            object-fit: cover;  
                            transition: 0.2s ease;                         
                        }
                        &:after {
                            content: "";
                            position: absolute;
                            top: 20px;
                            right: 0;
                            width: 25px;
                            height: 25px;
                            background-image: url('../../assets/icons/info.svg');
                            background-size: contain;
                            background-repeat: no-repeat;
                            background-position: center;
                            opacity: 0.3;
                            transform: translate(-50%, -50%) scale(0.8);
                            transition: opacity 0.1s ease, transform 0.1s ease;
                            pointer-events: none;
                        }
                        &:hover:after {
                            opacity: 0.5;
                            transform: translate(-50%, -50%) scale(1);
                        }
                        &:hover img {
                            scale: 1.1;
                        }
                    }
                    & .product-info {
                        padding: var(--p-s);
                        flex: 1;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        overflow: hidden;
                        & h3 {
                            white-space: nowrap;

                            -webkit-mask-image: linear-gradient(to right, black 90%, transparent);
                            mask-image: linear-gradient(to right, black 90%, transparent);

                            -webkit-mask-size: 100% 100%;
                            mask-size: 100% 100%;

                            -webkit-mask-repeat: no-repeat;
                            mask-repeat: no-repeat;
                        }
                        & p {
                            color: gray;
                            margin-top: 20px;
                        }
                    }
                    & .product-details {
                        display: flex;
                        justify-content: space-between;
                        padding: 0 10px 10px 10px;
                    }
                }
            }
        }
    }
}
span.category-label {
    color: var(--primary);
}
/* Modal container */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background: rgba(0, 0, 0, 0.5); 
}

/* Modal content */
.modal-content {
    background: white;
    margin: 15% auto;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 500px; 
    border-radius: var(--modern);
    & img {
        width: 100%;
        padding: 20px;
    }
    & > div:nth-child(2) {
        padding: 20px;
        & > div {
            display: flex;
            justify-content: space-between;
            margin: 10px;
        }
        & > div:nth-child(2) {
            flex-direction: column;
        }
    }
}
.product-details,
.modal-content {
    & a {
        border-radius: var(--modern);
        flex: 1;
        background: var(--primary);
        padding: var(--p-s) var(--p-m);
        position: relative;
        transition: opacity 0.1s ease;
        &:after {
            content: "";
            position: absolute;
            right: 15px;
            top: 50%;
            width: 16px;
            height: 16px;
            background-image: url('../../assets/icons/shopping-cart-add.svg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            transform: translateY(-50%);
            opacity: 0;
            transition: opacity 0.1s ease;
            filter: invert(20%);
        }
        &:hover {
            opacity: 0.8;
            &:after {
                opacity: 1;
            }
        }
    }
}
.close {
    color: black;
    font-size: 28px;
    font-weight: bold;
    &:hover, &:focus {
        color: var(--primary);
        text-decoration: none;
        cursor: pointer;
    }
}


/* Info modal*/
.info-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0, 0, 0);
    background-color: rgba(0,0,0,0.4);
    & .info-modal-content {
        background: #ffffffeb;
        border-radius: var(--modern);
        margin: 15% auto;
        padding: 20px 30px;
        border: 1px solid white;
        width: 95%;
        max-width: 800px;
        & p, & h3, & h4 {
            color: var(--text-dark);
        }
        & a {
            color: var(--primary);
        }
        & > div {
            margin-bottom: 20px;
        }
        & > div:nth-child(1) {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        & > div:nth-child(2) p  {
            margin-bottom: 10px;
            & span {
                font-weight: bold;
            }
        }
        & > div:nth-child(3),
        & > div:nth-child(4) {
            display: flex;
            flex-direction: column;
            & > div {
                display: flex;
                align-items: center;
                & i {
                    text-align: center;
                    filter: invert(30%);
                }
            }
            & a:hover {
                text-decoration: underline;
                color: black;
                cursor: pointer;
            }
        }
        & > div:nth-child(5) {
            & a {
                text-decoration: underline;
                &:hover {
                    color: black;
                }
            }
        } 
    }
    /* The Close Button */
    & i:has(+ a), & i:has(+ p) {
        width: 20px;
        margin-right: 10px;
    }
}




.cart-button {
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}
#cart-popup {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    overflow-y: auto;
    max-width: 500px;
    min-width: 300px;
    padding: 12px 20px;
    background: #000000eb;
    box-shadow: var(--shadow);
    z-index: 9000;
    -webkit-user-select: none;
    user-select: none;
    transform: translateX(100%); /* hide off-screen */
    transition: transform 0.3s ease;
    &.active {
        transform: translateX(0);
    }
    & button {
        border-radius: var(--modern);
    }
}
.cart-popup {
    & p, & h3, & label {
        color: white;
    }
    & > div {
        margin-bottom: 10px;
        &:last-of-type {
            margin: 0;
        }
    }
    & label {
        display: block;
        margin: 10px 0 5px 0;
    }
    & input, & textarea {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
        outline: none;
        border: 2px solid transparent;
        border-radius: var(--modern);
        &:focus {
            border: 2px solid var(--primary);
        }
    }
    & textarea {
        resize:vertical;
        min-height: 50px;
        max-height: 200px;
    }
    & .cart-buttons {
        display: flex;
        gap: 20px;
        & button:nth-child(1) {
            flex: 1;
            &:hover {
                text-decoration: underline;
            }
        }
        & button:nth-child(2) {
            background: var(--gray);
            &:hover {
                background: rgb(199, 0, 0);
                color: white;
            }
        }
        & button {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--primary);
            color: var(--text-dark);
            border: none;
            cursor: pointer;
            
        }
    }
    & > div:nth-child(1) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    & .close-cart {
        color: white;
        font-size: 28px;
        font-weight: bold;
        &:hover, &:focus {
            color: var(--primary);
            text-decoration: none;
            cursor: pointer;
        }
    }
}
#cart-items {
    max-height: 300px;
    overflow-y: scroll;
    &:has(>div) {
        border-block: 1px solid rgb(40, 40, 40);
    }
    &::-webkit-scrollbar-thumb {
        background: var(--primary);
        border: 3px solid transparent;
    }
    &::-webkit-scrollbar-track {
        background: transparent;
    }
    &::-webkit-scrollbar {
        width: 0.6rem;
    }
}
.cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    & > div:nth-child(1) {
        height: 60px;
        width: 60px;
        overflow: hidden;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background:white; 
        & img {
            object-fit: cover;
            height: 60px;
            width: 60px;
        }
    }
    & button {
        border: none;
        background: transparent;
        padding: 0 6px;
        cursor: pointer;
    }
    & .remove-item {
        color: white;
        &:hover {
            color: var(--primary);
        }
    }
    & .cart-item-quantity {
        display: flex;
        flex-direction: column;
        gap: 5px;
        & button {
            background: var(--primary);
            &:hover {
                color: white;
            }
        }
    }
    & .cart-item-name {
        flex: 1;
    }

}

@media (max-width: 500px) {
    footer > div {
        flex-direction: column;
        gap: 0;
    }

    nav {
        display:flex;
        align-items: center;
    }
    #cart {
        right: 10px;
        bottom: 20px;     
        & a {
            width: 50px;
            height: 50px;
            & i {
                font-size: 2em;
            }
            &:active {

            }
        }
    }
    #cart-popup {
        width: 100% !important;
        transform: translateX(100%); /* ADD THIS */
    }

    #cart-popup.active {
        transform: translateX(0); /* ENSURE THIS STILL APPLIES */
    }
}

.cart-indicator {
    display: none;
    width: 15px;
    height: 15px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    bottom: -5px;
    left: 40%;
    text-align: center;
    font-size: 0.7em;
    color: black;
    &:is(.secondary-cart>.cart-indicator) {
        width: 25px;
        height: 25px;
        bottom: 5px;
        left: 5px;
        font-size: 1em;
        border: 1px solid black;
    }
}


#notification {
    position: fixed;
    top: 90%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Ensure it's perfectly centered */
    z-index: 1000;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent black */
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Prevent mouse interaction */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth fade and scale */
    box-shadow: var(--shadow);
}

#notification.visible {
    opacity: 1;
    pointer-events: auto; /* Allow mouse interaction when visible */
    transform: translate(-50%, -50%) scale(1); /* Reset scale when visible */
    z-index: 9999;
    box-shadow: var(--shadow);
}

#notification.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9); /* Slightly shrink when fading out */
}


#notification.success {
    background-color: var(--primary);
    color: #fff;
}

#notification.warning {
    background-color: #FF9800;
    color: #fff;
}

#notification.error {
    background-color: #F44336;
    color: #fff;
}


.notice {
    background: #ffffffe3;
    border-left: 5px solid black;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--modern);
}

.notice h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.notice a.btn {
    display: inline-block;
    margin-top: 0.75rem;
    background: black;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: 100ms;
    &:hover {
        background: var(--primary);
    }
}

.register-link {
    color: var(--primary);
    text-decoration: underline;
    &:hover {
        opacity: 0.9;
        text-decoration: none;
    }
}

.cart-register-notice {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    & .register-link {
        font-weight: 500;
        color: var(--primary);
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
}

.section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    margin-block: 2rem;
    border-radius: var(--modern);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-back {
    padding: 1rem 0;
    margin-bottom: 0;
    background: transparent;
}

.back-button {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.section-info ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.section-form .form {
    display: flex;
    flex-direction: column;
}

.section-form .form div {
    margin-bottom: 1rem;
}
.section-form .form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.section-form .form input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--modern);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.9);
    &:valid {
        border: 1px solid var(--primary);
    }
}

.section-form .form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 179, 0.2);
}

.section-form .form div {
    margin-bottom: 1.5rem;
}


.submit-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-button:hover {
    background: black;
}

.contract-confirmation {
    font-weight: 500;
}

.contract-confirmation a {
    color: var(--primary); /* adjust to your brand green */
    text-decoration: underline;
}

.contract-confirmation a:hover {
    color: #008f63; /* darker green on hover */
}

.scroll-top-btn {
    position: fixed;
    bottom: 9rem;
    right: 3.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: black;
    color: #fff;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    display: block; /* <-- ensures it renders */
    transform: translateY(1rem); /* subtle slide-up effect */
}

.scroll-top-btn.visible {
    opacity: 0.5;
    pointer-events: auto;
    transform: translateY(0); /* smooth pop-in */
    &:hover {
        opacity:1;
    }
}
@media (max-width: 500px) {
    .scroll-top-btn {
        bottom: 6rem;
        right: 0.9rem;
    }
}

.in-cart-marker {
  background: #ffc107;
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-left: 5px;
}
