:root {
    --base-color: #e8e8f4;
    --secondary-color: #ffffff;
    --third-color: #1291ee;

    /* Text */
    --base-text-color: black;
    --secondary-text-color: #9292b4;

    --image-invert-color: invert(0);
    --base-color-body: #f8f9fa;
    color-scheme: light;

    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);

    /* Full Shadows conf */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --danger-color: rgb(229, 62, 62);
    --success-color: rgb(40, 167, 69);
}

.darkmode {
    --base-color: #0f1419;
    --secondary-color: #212529;
    /* --third-color: #1cdf78; */

    /* Text */
    --base-text-color: white;
    --secondary-text-color: #a1a7b4;

    --image-invert-color: invert(1);
    --base-color-body: #212529;
    color-scheme: dark;

    /* Shadows */
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

html {
    font-size: 62.5%;
}

body {
    -webkit-text-size-adjust: 100%;
    font-size: 14px;
    line-height: 1.42857143;
    background: var(--base-color);
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: var(--base-text-color);
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

body * {
    box-sizing: border-box;
    line-height: 1.42857143;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    font-weight: 700;
    line-height: 1.1;
}

i,
em {
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

input[type=text],
input[type=submit],
input[type=image],
input[type=password],
input[type=email],
button,
textarea {
    -webkit-appearance: none;
    appearance: none;
}

textarea,
button,
input[type=password],
input[type=email],
input[type=submit],
input[type=text] {
    font-family: 'Open Sans', sans-serif;
}

a:focus {
    text-decoration: none;
}

textarea:focus,
button:focus,
a:focus,
input:focus {
    outline: none;
}

#theme-switch {
    height: 100%;
    width: auto;
    padding: 0 0 1px;
    border: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 30px;
    right: 20px;
    cursor: pointer;
    background-color: transparent;
    margin: 0 5px;
}

#theme-switch i {
    fill: var(--base-text-color);
    transition: color 0.2s ease-in;
    font-size: 2rem;
}

#theme-switch i:hover {
    color: #1291ee;
}

#theme-switch i:first-child {
    display: none;
}

.darkmode #theme-switch i:last-child {
    display: none;
}

.darkmode #theme-switch i:first-child {
    display: block;
}

#page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

.img-rounded {
    border-radius: 6px;
}

.img-thumbnail {
    padding: 4px;
    line-height: 1.42857143;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.img-circle {
    border-radius: 50%;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eeeeee;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
}

[role="button"] {
    cursor: pointer;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100% !important;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

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

.container-fluid {
    display: none;
}

@media (min-width: 992px) {
    .container-fluid {
        display: flex;
        justify-content: end;

        .row {
            margin: 0;
        }
    }
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.container:after,
.container-fluid:after,
.row:after {
    clear: both;
}

.center-block {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.invisible {
    visibility: hidden;
}

/*noinspection CssInvalidPropertyValue*/
.text-hide {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.hidden {
    display: none !important;
}

.affix {
    position: fixed;
}

.footer-container {
    display: flex;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--base-text-color);
}

.email-validation-container {
    background-color: var(--base-color-body);
    color: var(--base-color-body);
    text-align: center;
    border-radius: 20px;
    font-size: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.email-validation-container {
    p {
        color: var(--base-text-color);
    }

    .primary-text {
        font-size: 2.3rem;
    }

    .secondary-text {
        font-size: 2rem;
        color: var(--secondary-text-color);
    }
}

.email-validation-wrapper {
    padding: 0 auto;
}

#resend-button {
    background-color: var(--third-color);
    border-radius: 15px;
    padding: 5px 10px;
    color: white;
    transition: all 0.2s ease-in;
    border: 0;
}

#resend-button {

    &:active,
    &:hover {
        background-color: #7dcd8c;
        cursor: pointer;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

*:disabled {
    cursor: not-allowed !important;
}

button:disabled,
input[type=submit]:disabled {
    background-color: grey !important;
}

div.email-reset {
    background-color: var(--secondary-color);
    color: var(--base-text-color);
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 20px;
    align-items: center;
}

div.email-reset-wrapper {
    padding: 0 auto;
}

h2.email-reset {
    font-size: 1.5rem;
}

form.email-reset {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

div.email-reset>form.email-validation>#resend-button {
    width: 100%;
    height: auto;
    font-size: 2rem;
    margin-bottom: 4px;

    &:active,
    &:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

.email-reset {
    .remember-your-password {
        font-size: 14px;
        margin-bottom: 10px;

        a {
            color: var(--third-color);
            transition: all 0.2s;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    form.email-reset {
        input {
            width: 25rem;
            height: 4rem;
            margin-bottom: .5rem !important;
            color: white;
        }

        .emailinput {
            font-size: 1.3rem;
        }

        .emailinput::placeholder {
            color: var(--secondary-text-color);
        }
    }

}

input.form-control.email-reset {
    border-radius: 5px;
}

input[type=submit].email-reset {
    border-radius: 5px;
    transition: background-color 0.2s ease-out;
    border: 0;
    color: white;
    background-color: var(--third-color);
    transition: all 0.3s;
}

input[type=submit].email-reset:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #0f62a6;
}

p.email-reset {
    font-size: 1.35rem;
}

div.email-reset-confirm {
    background-color: var(--secondary-color);
    color: var(--base-text-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 30px 35px;
    gap: 10px;
    align-items: center;
    box-shadow: 0 4px 8px var(--shadow-light);
    margin-bottom: 40px;

    form {
        width: 100%;
    }
}

div.email-reset-confirm-form {
    div {
        margin-top: 22px !important;
    }

    input {
        color: var(--base-text-color);
        height: 4rem;
        border-radius: 8px;
        font-size: 1.4rem;
        width: 100%;
        padding: 0 40px 0 25px;
        border: none;

        &:focus,
        &::placeholder {
            color: var(--secondary-text-color);
            border: none;
        }
    }

    [id*="helptext"] {
        color: var(--secondary-text-color);
        background-color: oklch(97.1% 0.013 17.38);
        color: oklch(57.7% 0.245 27.325);
        border-color: hsl(0, 85%, 68%);
        border: 1px solid hsl(0, 85%, 90%);
        border-radius: 8px;
        padding: 5px 10px;
        margin: 5px 0;
        font-size: 1.3rem;
        width: 100%;
        font-weight: 500;
    }
}

h2.email-reset-confirm {
    font-size: 2rem;

}

form.email-reset-confirm {
    text-align: center;
    font-size: 1.2rem;
}

div.email-reset-confirm-form {
    text-align: left;
}

input.email-reset-confirm {
    background-color: var(--third-color);
    border-radius: 10px;
    padding: 10px;
    color: white;
    transition: background-color 0.2s ease-in;
    border: 0;
    margin: 20px 0 5px;
    font-size: 1.4rem;
    width: 100%;
}

input.email-reset-confirm:hover {
    background-color: #7dcd8c;
}

div.email-reset-confirm-form>.errorlist {
    color: red;
}

.invalid-feedback>p>strong {
    color: red;
}

form.register input {
    margin: 0;
}

form.register p.auth-submit input,
form.register input.logout-account {
    border-radius: 10px;
}

form.register p.auth-submit {

    input:hover,
    input:active {
        box-shadow: 0 10px 25px rgba(102, 234, 144, 0.4);
        transform: translateY(-2px);
    }
}

form.cart-actions {
    display: contents;
}

form.cart-actions.cart {
    display: block;
    float: right;
    padding: 0;
}

button.hover-label.prod-addbtn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: black;
    font: inherit;
    text-align: left;
}

i.icon.ion-android-cart {
    font-size: 20px;
}

i.icon.ion-android-cart:hover {
    color: var(--third-color)
}

.quantity-control-component {
    max-width: 70%;
    transition: border-color 0.2s ease;
}

.quantity-control-component:active,
.quantity-control-component:hover {
    border-color: var(--third-color) !important;
    transition: border-color 0.2s ease;
}

input.form-control,
textarea.form-control {
    background-color: var(--base-color) !important;
}

.list-group-item {
    background-color: transparent;
    color: var(--base-text-color);
}

.list-group-item .cart-actions-confirm {
    background-color: transparent;
    border-radius: 0;
}

#quantity-down i,
#quantity-up i {
    color: var(--base-text-color);
    transition: color 0.2s ease;
}

#quantity-down:hover i::before,
#quantity-down:active i::before,
#quantity-up:hover i::before,
#quantity-up:active i::before {
    color: var(--third-color);
    transition: color 0.2s ease;
}

.social-links-container {
    width: 100%;
}

.footer-container {
    width: 100%;
}

.footer-container h4 {
    color: var(--base-text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.f-logo-wrap {
    margin-bottom: 0;
    width: 100%;
}

.footer-container ul.footer-link-list {
    text-align: left;
}

.footer-link-list li a {
    color: var(--secondary-text-color);
    font-weight: 600;
}

.footer-link-list li a:active,
.footer-link-list li a:hover {
    color: var(--third-color);
}

ul.footer-link-list.social-links {
    display: flex;
    gap: 1.5rem;
    margin-left: .4rem;
}

.footer-link-list.social-links li:last-child {
    margin: 5px 0;
}

.social-links li a i {
    height: 100%;
}


/* CART */

.bi-cart-plus::before {
    font-size: 2.5rem;
}

#catalog-section article {
    /* translate: -100%; */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: transform, opacity;
}

#catalog-section article.show-on-scroll {
    /* translate: 0; */
    opacity: 1;
    transform: translateY(0);
}

.divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: var(--secondary-color);
    padding: 0 15px;
    color: var(--base-text-color);
    position: relative;
    z-index: 1;
}

input.logout-account {
    background-color: transparent !important;
    border: 2px solid #e53e3e !important;
    color: #e53e3e !important;
}

input.logout-account:hover,
input.logout-account:active {
    background-color: #e53e3e !important;
    color: white !important;
    box-shadow: 0 10px 25px rgba(229, 62, 62, 0.3);
    transform: translateY(-2px);
}

.auth-header {
    text-align: center;
}

.auth-header h2 {
    margin-bottom: 1rem;
}

.auth-header p {
    color: #718096;
    font-size: 1.3rem;
}

#id_sex,
#id_birth {
    color: var(--base-text-color) !important;
    background-color: var(--base-color) !important;
}

.cart-actions.cart-page {
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-color);
}

.cart-collaterals form {
    background-color: transparent;
}

.coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

#coupon-code-input {
    padding: 0 10rem 0 1.5rem;
    margin: 0;
    background-color: var(--base-color);
}

#coupon-code-input:hover,
#coupon-code-input:focus {
    border-color: var(--third-color);
}

.coupon-apply-btn {
    bottom: auto;
    left: initial;
    right: 5px;
}

.cart-coupon-ttl,
.cart-totals-ttl {
    font-weight: bold;
    color: var(--base-text-color);
    background-color: var(--secondary-color);
    z-index: 1;
    padding: 0 5px 0;
}

.cart-coupon-val {
    background-color: var(--secondary-color);
}

.cart-coupon-val,
.cart-totals-val {
    text-align: end;
    color: var(--base-text-color);
    background-color: var(--secondary-color);
    z-index: 1;
    padding: 0 0 0 5px;
}

.cart-actions {

    .order-coupon::before,
    .order-total::before {
        content: '';
        position: absolute;
        width: 80%;
        height: 1px;
        background-color: var(--secondary-text-color);
        top: 50%;
        left: 10%;
        z-index: 0;
    }
}

form.cart-actions input.checkout-button.clear-cart-btn {
    background-color: transparent;
    color: red;
    border: 1px solid red;
}

form.cart-actions input.checkout-button.clear-cart-btn:hover {
    background-color: red;
}

form.cart-actions input.checkout-button:active,
form.cart-actions input.checkout-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.divider {
    margin: 2px 0;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px !important;
    width: 100%;
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    /* font-size: 1.2rem; */
    transition: color 0.2s;
    user-select: none;
}

.password-toggle-icon:hover {
    color: #495057;
}

div.auth-col form.login div.mb-3,
div.auth-col form.signup div.mb-3 {
    margin: 1rem 0 2rem !important;
}

ul.text-muted {
    font-weight: bold;
}

ul.text-muted p {
    color: red;
}

ul.text-muted li {
    color: red;
    margin: 0;
    font-size: .875em;
    margin-left: 10px;
}

.email-wrapper,
.password-wrapper {
    position: relative;
}

.email-wrapper span,
.password-wrapper span {
    position: absolute;
    bottom: 25%;
    left: 8%;
    font-size: 15px;
    color: var(--secondary-text-color);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
}

.email-wrapper input:focus:valid,
.password-wrapper input:focus:valid {
    box-shadow: 0 0 0 .25rem rgba(0, 120, 0, .25);
}

.email-wrapper input:not(:placeholder-shown):focus:invalid,
.password-wrapper input:not(:placeholder-shown):focus:invalid {
    box-shadow: 0 0 0 .25rem rgba(120, 0, 0, .25);
}

.email-wrapper input:focus~span,
.email-wrapper input:not(:placeholder-shown)~span,
.password-wrapper input:focus~span,
.password-wrapper input:not(:placeholder-shown)~span {
    font-size: 12px;
    color: var(--third-color);
    transform: translate(-10px, -25px);
    backdrop-filter: blur(4px);
}

.email-wrapper input:valid~span,
.password-wrapper input:valid~span {
    color: green;
}

.email-wrapper input:not(:placeholder-shown):invalid~span,
.password-wrapper input:not(:placeholder-shown):invalid~span {
    color: red;
}


.toast-container {
    position: fixed;
    bottom: 5%;
    right: 0;
    z-index: 20;
}

.toast {
    width: auto;
    opacity: 0;
    display: inline-block;
    transform: translateY(100%);
    animation: moveUp 0.5s ease-out forwards;
    border-radius: 5px;
    padding: 0 10px;
    position: relative;
    overflow: hidden;
}

.toast.closed {
    animation: dismissToast 0.3s ease-in forwards;
}

@keyframes moveUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dismissToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast button.btn-close {
    font-size: 1.4rem;
    --bs-btn-close-opacity: 0.8;
}



.toast-content {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.toast-body {
    font-size: 1.2rem;
}

.toast {

    &.success,
    &.error,
    &.info {
        color: #ffffff;
    }

    &.success {
        background-color: #4deb87;
    }

    &.error {
        background-color: #ce2b54;
    }

    &.info {
        background-color: #1291ee;
    }

    &.warning {
        background-color: #fcd34d;

        .toast-body {
            color: #000000;
        }

        .btn-close {
            filter: invert(0);
        }
    }
}

body.darkmode {
    .toast {
        &.info {
            background-color: #31318A;
        }

        &.success {
            background-color: #4b984b;
        }

        &.error {
            background-color: #a30029;
        }

        &.warning {
            background-color: #cf8510;
        }
    }
}

.toast {
    &.success {
        .toast-content::before {
            content: '\F26D';
        }
    }

    &.error {
        .toast-content::before {
            content: '\F339';
        }
    }

    &.info {
        .toast-content::before {
            content: '\F433';
        }
    }

    &.warning {
        .toast-content::before {
            content: '\F33B';
            color: #000000;
        }
    }
}

.toast .toast-content::before {
    font-family: 'bootstrap-icons' !important;
    font-size: 2rem;
}

.toast::after {
    content: '';
    width: 100%;
    height: 10%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0;
    left: 0;
    animation: autoHide 5s linear forwards;
}

@keyframes autoHide {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.prod .prod-slider-wrap {
    position: static;
    padding: 0;
    width: 100%;
}

.prod .prod-slider {
    position: static;
}

.prod .prod-thumbs {
    position: static;
}

.prod .prod-slider-wrap.prod-slider-shown {
    background-color: transparent;
}

.carousel-item {
    position: absolute;
    float: unset;
    margin: 0;

    img {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

}

.carousel-inner {
    height: 37rem;
    width: auto;

    &::after {
        content: unset;
        display: none;
        clear: both;
    }
}

.carousel.pointer-event:hover {
    .icon-control-wrap {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

.icon-control-wrap {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 50%;
    padding: 5px;
    display: flex;
    transition: all 0.2s ease-in-out;
}

.carousel.pointer-event {
    button {

        &.carousel-control-prev:hover,
        &.carousel-control-next:hover {
            .icon-control-wrap {
                background-color: rgba(0, 0, 0, 0.8);
                transform: translateX(-4px);
            }
        }

        &.carousel-control-next:hover {
            .icon-control-wrap {
                transform: translateX(4px);
            }
        }
    }
}

.variations_form.cart {
    margin-top: 20px;

    p.prod-price {
        font-size: 3rem;
        font-weight: bold;
    }
}
