@font-face {
    font-family: 'EstedadV';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    ascent-override: 100%;
    src: url('../fonts/estedad-v7-3/variable.woff2') format('woff2');
}

@font-face {
    font-family: 'Estedad';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/estedad-v7-3/regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Estedad';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/estedad-v7-3/bold.woff2') format('woff2');
}

/* ===== VARIABLES ===== */

:root {
    --color-primary-800: #2a3e55;
    --color-primary-500: #496c93;
    --color-primary-300: #dae3ec;
    --color-primary-200: #e4ebf1;
    --color-primary-100: #f2f5f8;

    --color-success-500: #27ae60;
    --color-danger-500: #e74c3c;

    --transition-default: 0.25s ease-in-out;
}

/* ===== RESET ===== */

*, ::before, ::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    cursor: default;
    font-family: 'Estedad', 'serif';
    color: var(--color-primary-800);
}

@supports (font-variation-settings: normal) {

    body {
        font-family: 'EstedadV', 'serif';
        font-feature-settings: 'ss03'
    }

}

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

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    color: inherit;
}

input, textarea, select {
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    outline: none;
    width: 100%;
    border: none;
    resize: none;
}

[x-cloak] {
    display: none !important;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

img, svg, video {
    display: block
}

img, video {
    max-width: 100%
}

ol, ul {
    padding: 0;
    margin: 0;
}

/* ===== HEADING ===== */

.heading {
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0.125rem white;
    position: relative;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.heading:before {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    right: 0;
    width: 100%;
    height: 0.5rem;
    background: var(--color-primary-200);
    z-index: -1;
    border-radius: 10rem;
}

/* ===== MODAL ===== */

.modal__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 89;
    transition: var(--transition-default);
}

.modal__backdrop--hidden {
    opacity: 0;
    visibility: hidden;
}

.modal__backdrop--visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(30rem, 100% - 2rem);
    background-color: #fff;
    transform: translate(-50%, -50%);
    z-index: 99;
    transition: var(--transition-default);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -25%);
}

.modal--visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* ===== TOAST ===== */

.toast {
    width: min(25rem, 100% - 2rem);
    background-color: var(--color-primary-100);
    border: 0.125rem solid var(--color-primary-200);
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: var(--transition-default);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 99;
}

.toast--hidden {
    transform: translateX(-50%) translateY(calc(-100% - 1rem));
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
}

.toast__icon {
    display: block;
    width: 2rem;
    height: 2rem;
}

.toast__icon--error {
    color: var(--color-danger-500);
    stroke: var(--color-danger-500);
    fill: var(--color-danger-500);
}

.toast__icon--success {
    color: var(--color-success-500);
    stroke: var(--color-success-500);
    fill: var(--color-success-500);
}

/* ===== SPINNER ===== */

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-style: solid;
    border-width: 0.125rem;
    border-radius: 100%;
    border-color: currentColor currentColor currentColor transparent;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ===== RIPPLE ===== */

[data-ripple] {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: rippleEffect 0.9s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(100);
        opacity: 0;
    }
}

/* ===== DIVIDER ===== */

.divider {
    width: 100%;
    flex-grow: 1;
    height: 1px;
    background-color: var(--color-primary-200);
    margin-block: 1rem;
}

.divider--thin {
    background-color: var(--color-primary-200);
    height: 1px;
}

.divider--thick {
    background-color: var(--color-primary-200);
    height: 0.5rem;
}

/* ===== BUTTONS ===== */

.button {
    flex: 1 0 0;
    height: 3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button--primary {
    background-color: var(--color-primary-500);
    color: var(--color-primary-200);
}

.button--secondary {
    background-color: var(--color-primary-200);
    color: var(--color-primary-500);
}

/* ===== SIDEBAR ===== */

.sidebar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 2rem);
    max-width: 20rem;
    height: 100%;
    z-index: 20;
    transition: var(--transition-default);
}

.sidebar--hidden {
    transform: translateX(100%);
}

.sidebar--visible {
    transform: translateX(0);
}

.sidebar__backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10;
    transition: var(--transition-default);
}

.sidebar__backdrop--hidden {
    opacity: 0;
    visibility: hidden;
}

.sidebar__backdrop--visible {
    opacity: 1;
    visibility: visible;
}

.sidebar__button {
    padding: 0;
    height: 3rem;
    width: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-100);
    color: var(--color-primary-500);
    margin-right: auto;
}

.sidebar__divider {
    background-color: var(--color-primary-200);
    height: 0.5rem;
}

.sidebar__line {
    background-color: var(--color-primary-200);
    height: 1px;
}

/* ===== USER ===== */

.user__option {
    text-align: right;
}

.user__avatarContainer {
    border: 0.125rem solid var(--color-primary-200);
}

.user__formContainer {
    width: calc(100% - 2rem);
    max-width: 25rem;
    margin-inline: auto;
}

.user__avatarListContainer {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
}

/* ===== PRODUCT SHOW ===== */

.product-show__landscape {
    position: relative;
    z-index: 5;
}

.product-show__landscape-backdrop {
    position: absolute;
    filter: blur(0.875rem);
    z-index: 0;
    transform: translateY(0.75rem);
}

.product-show__spec-column {
    border: 0.125rem solid var(--color-primary-200);
    padding: 0.5rem 1rem;
    min-width: 8rem;
}

.front__content p {
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.03em;
    line-height: 2;
}

.front__content p:first-child {
    margin-top: 0
}

.front__content p:last-child {
    margin-bottom: 0
}

.front__content ul, .front__content ol {
    list-style-position: inside;
    line-height: 2;
}

.front__content a {
    border-bottom: 1px dashed var(--color-primary-500)
}

.product-show__variantButton {
    background-color: var(--color-primary-500);
    color: var(--color-primary-100);
}

.product-show__variantPriceContainer {
    padding: 0.75rem 1.5rem;
}

.product-show__feature {
    padding: 0.375rem 0.75rem
}

.product-show__old-price {
    opacity: 0.5;
    text-decoration: line-through;
}

.screenshot-slideshow__button-next, .screenshot-slideshow__button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border-radius: 100%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-100);
    border: 0.125rem solid var(--color-primary-200);
}

.screenshot-slideshow__button-next {
    left: -1rem;
}

.screenshot-slideshow__button-prev {
    right: -1rem;
}

/* ===== POST SHOW ===== */

.post-show__title {
    font-size: 1.125rem;
    margin-block: 0;
}

/* ===== TABLE ===== */

.front__content table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    white-space: nowrap;
    margin-inline: auto;
}

.front__content table th, .front__content table td {
    white-space: nowrap;
}

.front__content table td, .front__content table th {
    border: 0.125rem solid var(--color-primary-100);
    padding: 0.5rem;
}

/* ===== UTILITIES ===== */

.w-fit {
    width: fit-content
}

.w-full {
    width: 100%
}

.max-w-\[30\] {
    max-width: 30rem
}

.w-calc-\[2\] {
    width: calc(100% - 2rem)
}

.min-w-0 {
    min-width: 0
}

.w-\[3\] {
    width: 3rem
}

.min-w-\[15\] {
    min-width: 15rem
}

.min-h-\[100vh\] {
    min-height: 100vh
}

.h-\[3\] {
    height: 3rem
}

.h-\[4\] {
    height: 4rem
}

.container {
    width: min(85rem, 100% - 2rem)
}

.container-fluid {
    width: 100%;
    max-width: 85rem;
}

.rounded {
    border-radius: 1rem;
    @supports (corner-shape: squircle) {
        border-radius: 1.5rem;
        corner-shape: squircle;
    }
}

.block {
    display: block
}

.flex {
    display: flex
}

.wrap {
    flex-wrap: wrap
}

.grow {
    flex-grow: 1
}

.grow-equal {
    flex: 1 0 0
}

.shrink-0 {
    flex-shrink: 0
}

.column {
    flex-direction: column
}

.items-center {
    align-items: center
}

.items-end {
    align-items: flex-end
}

.justify-center {
    justify-content: center
}

.justify-between {
    justify-content: space-between
}

.grid {
    display: grid
}

.gtc-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.gtc-auto-fill-\[20rem\] {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr))
}

.gap-2 {
    gap: 0.25rem
}

.gap-4 {
    gap: 0.5rem
}

.gap-6 {
    gap: 0.75rem
}

.gap-8 {
    gap: 1rem
}

.gap-12 {
    gap: 1.5rem
}

.gap-16 {
    gap: 2rem
}

.gap-\[3rem\] {
    gap: 3rem
}

.mt-auto {
    margin-top: auto
}

.mt-0 {
    margin-top: 0
}

.mt-4 {
    margin-top: 0.5rem
}

.mt-12 {
    margin-top: 1.5rem
}

.mt-\[1\] {
    margin-top: 1rem
}

.mt-\[5\] {
    margin-top: 5rem
}

.mr-auto {
    margin-right: auto
}

.mx-auto {
    margin-inline: auto
}

.mb-8 {
    margin-bottom: 1rem
}

.mb-\[3rem\] {
    margin-bottom: 3rem
}

.my-0 {
    margin-block: 0
}

.my-8 {
    margin-block: 1rem
}

.my-16 {
    margin-block: 2rem
}

.my-\[2\] {
    margin-block: 2rem
}

.px-6 {
    padding-inline: 0.75rem
}

.px-8 {
    padding-inline: 1rem
}

.py-3 {
    padding-block: 0.375rem
}

.p-4 {
    padding: 0.5rem
}

.p-6 {
    padding: 0.75rem
}

.p-8 {
    padding: 1rem
}

.p-10 {
    padding: 1.25rem
}

.o-hidden {
    overflow: hidden
}

.relative {
    position: relative
}

.absolute {
    position: absolute
}

.top-0 {
    top: 0
}

.top-\[0\.5\] {
    top: 0.5rem
}

.left-\[0\.5\] {
    left: 0.5rem
}

.ratio-1 {
    aspect-ratio: 1
}

.text-primary-500 {
    color: var(--color-primary-500)
}

.text-primary-800 {
    color: var(--color-primary-800)
}

.text-success-500 {
    color: var(--color-success-500);
}

.text-center {
    text-align: center
}

.fs-6 {
    font-size: 0.75rem
}

.fs-7 {
    font-size: 0.875rem
}

.fs-9 {
    font-size: 1.125rem
}

.fs-\[1\.5\] {
    font-size: 1.5rem
}

.fw-\[600\] {
    font-weight: 600
}

.fw-\[800\] {
    font-weight: 800
}

.lh-\[1\.5\] {
    line-height: 1.5
}

.lh-\[2\] {
    line-height: 2
}

.truncate-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

.text-justify {
    text-align: justify;
    text-justify: inter-word;
    word-spacing: -0.03em;
}

.bg-primary-100 {
    background-color: var(--color-primary-100)
}

.bg-primary-200 {
    background-color: var(--color-primary-200)
}

.opacity-\[0\.5\] {
    opacity: 0.5
}

.opacity-\[50\%\] {
    opacity: 0.5
}

.hidden {
    display: none
}

.z-\[0\] {
    z-index: 0
}

.z-\[5\] {
    z-index: 5
}

.blur-\[0\.875\] {
    filter: blur(0.875rem)
}

.t-y-\[0\.75\] {
    transform: translateY(0.75rem)
}

.shadow {
    box-shadow: 0 0 1.5rem #cccccc;
}

.bg-gradient-primary-100 {
    background-image: linear-gradient(-135deg, var(--color-primary-100), transparent);
}

.border-\[0\.125\]-dashed-primary-300 {
    border: 0.125rem dashed var(--color-primary-300)
}

.border-1 {
    border-width: 0.125rem
}

.border-solid {
    border-style: solid
}

.border-dashed {
    border-style: dashed
}

.border-primary-100 {
    border-color: var(--color-primary-100)
}

.border-primary-300 {
    border-color: var(--color-primary-300)
}

/* ===== BEM ===== */

.logo-wrapper {
    transform: translateY(0.75rem);
    animation: rise 20s infinite alternate ease-in-out;
}

@keyframes rise {
    from {
        transform: translateY(0.75rem);
    }
    to {
        transform: translateY(1.75rem);
    }
}

.header {
    width: min(85rem, 100% - 2rem);
    margin-inline: auto;
    margin-bottom: 3rem;
}

.header__inner {
    background-image: linear-gradient(to top, var(--color-primary-100), transparent);
    border: 0.125rem solid var(--color-primary-200);
    backdrop-filter: blur(1rem);
}

.header__option {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-primary-200);
    display: grid;
    place-content: center;
}

.header__logoTitle {
    font-size: 1.25rem;
    font-weight: 900;
    margin-block: 0;
}

.slideshow__bottomBar {
    display: block;
    width: 90%;
    height: 0.25rem;
    margin-inline: auto;
    background-color: var(--color-primary-200);
    margin-top: 0.5rem;
    border-radius: 10rem;
}

.slideshow__wrapper:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0.5rem;
    background-image: linear-gradient(90deg, #ffffff, transparent);
    z-index: 10;
}

.slideshow__wrapper:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 0.5rem;
    background-image: linear-gradient(-90deg, #ffffff, transparent);
    z-index: 10;
}

.slideshow__text {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    font-size: 0.875rem;
    color: #ffffff;
    padding: 1rem;
    background-image: linear-gradient(0, #000000, transparent);
    height: 100%;
    display: flex;
    align-items: end;
}

.product-collection__column, .post-collection__column {
    background-image: linear-gradient(-135deg, var(--color-primary-100), transparent);
    border: 0.125rem solid var(--color-primary-100)
}

.post-collection__column:focus, .product-collection__column:focus {
    outline: 0.125rem solid var(--color-primary-300);
    outline-offset: 0.25rem;
}

.stats__column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats__column-footer {
    width: fit-content;
    margin-right: auto;
}

.product-collection__badge {
    position: absolute;
    top: 0;
    right: 0;
}

.front__content {
    overflow-x: hidden
}

/* ===== FORM ===== */

.auth__container {
    width: min(30rem, 100% - 2rem);
}

.auth__inlineLink {
    border-bottom: 1px dotted var(--color-primary-500);
}

.auth__progressBar {
    height: 0.75rem;
    background-color: var(--color-primary-200);
    margin-bottom: 1rem;
    margin-inline: auto;
    transition: var(--transition-default);
}

/* ===== FORM ===== */

.form-group {
    position: relative;
    flex-grow: 1;
}

.form-label {
    font-size: 0.875rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    opacity: 50%;
}

.form-input {
    border: 0.125rem solid var(--color-primary-200);
    height: 5rem;
    padding: 1.5rem 1rem 0 1rem;
    transition: var(--transition-default);
}

.form-input:focus {
    box-shadow: 0 0 0 0.25rem var(--color-primary-100);
}

/* ===== TOGGLE ===== */

.toggle-container {
    width: 2.5rem;
    height: 1.5rem;
    background-color: var(--color-primary-200);
    padding: 0.25rem;
}

.toggle-circle {
    height: 100%;
    aspect-ratio: 1;
    background-color: var(--color-primary-500);
    transition: var(--transition-default);
}

.toggle-input:checked ~ .toggle-label > .toggle-container > .toggle-circle {
    background-color: var(--color-success-500);
    transform: translateX(-100%);
}

.toggle-label:active > .toggle-container {
    transform: scale(0.95);
}

/* ===== COMMENT ===== */

.comment-form__textarea {
    border: 0.125rem solid var(--color-primary-200);
    min-height: 5rem;
    padding: 1rem;
    transition: var(--transition-default);
    display: block;
}

.comment-form__textarea:focus {
    box-shadow: 0 0 0 0.25rem var(--color-primary-100);
}

.comment-form__button {
    background-color: var(--color-primary-500);
    color: var(--color-primary-100);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    padding: 0.875rem;
}

/* ===== WHY ===== */

.why__column {
    border: 0.125rem dashed var(--color-primary-300);
}

/* ===== FOOTER ===== */

.footer {
    border-top: 0.125rem solid var(--color-primary-200)
}

.footer__hero-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer__logo {
    opacity: 25%;
}

.footer__link {
    border-bottom: 1px dotted var(--color-primary-300);
}

/* ===== RESPONSIVE ===== */

@media screen and (min-width: 480px) {

    .sm\:gtc-auto-fill-\[12rem\] {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr))
    }

}

@media screen and (min-width: 768px) {

    .md\:flex {
        display: flex
    }

    .md\:my-16 {
        margin-block: 2rem
    }

    .md\:gtc-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .md\:fs-8 {
        font-size: 1rem
    }

    .md\:fs-10 {
        font-size: 1.25rem
    }

    .md\:fs-\[1\.5\] {
        font-size: 1.5rem
    }

    .md\:gtc-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .md\:gap-10 {
        gap: 1.25rem
    }

    .md\:row {
        flex-direction: row
    }

    .md\:w-\[20\] {
        width: 20rem
    }

    .product-show__landscape-container, .post-show__landscape-container {
        width: 20rem;
    }

    .product-show__title {
        font-size: 1.25rem
    }

}

@media screen and (min-width: 1024px) {

    .lg\:row {
        flex-direction: row
    }

    .lg\:gtc-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .lg\:gtc-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .lg\:rounded {
        border-radius: 1rem;
        @supports (corner-shape: squircle) {
            border-radius: 1.5rem;
            corner-shape: squircle;
        }
    }

    .lg\:fs-8 {
        font-size: 1rem
    }

    .lg\:fs-9 {
        font-size: 1.125rem
    }

    .lg\:w-\[30\] {
        width: 30rem
    }

    .sidebar {
        position: absolute;
        top: 100%;
        left: 0;
        right: unset;
        height: fit-content;
        margin-top: 1rem;
    }

    .sidebar--hidden {
        transform: translateY(5rem);
        opacity: 0;
        visibility: hidden;
    }

    .sidebar--visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .product-show__landscape-container, .post-show__landscape-container {
        width: 30rem
    }

    .front__content p, .front__content ul, .front__content ol {
        font-size: 1.125rem
    }

    .heading {
        font-size: 1.25rem
    }

    .footer__hero-container {
        width: 25%;
    }

}

@media screen and (min-width: 1280px) {

    .xl\:gtc-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .xl\:w-\[40\] {
        width: 40rem
    }

    .slideshow__text {
        font-size: 1.125rem
    }

}
