/* #region Fonts */
@font-face {
    font-family: "UbuntuMono";
    src: url(fonts/UbuntuMono-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "UbuntuMono";
    src: url(fonts/UbuntuMono-Bold.ttf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "UbuntuMono";
    src: url(fonts/UbuntuMono-Italic.ttf);
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "UbuntuMono";
    src: url(fonts/UbuntuMono-BoldItalic.ttf);
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: "StackSansNotch";
    src: url(fonts/StackSansNotch-VariableFont_wght.ttf);
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans";
    src: url("fonts/OpenSans-VariableFont_wdth,wght.ttf");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans";
    src: url("fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf");
    font-weight: 100 900;
    font-style: italic;
}

/* #endregion */

/* #region Layout */
html {
    background-color: lightblue;
    overflow-x: hidden;
}

body {
    background-color: lightblue;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-deco {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.site-header {
    background-color: #1a3a5c;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .site-title {
    color: #ffffff;
    font-family: "StackSansNotch", sans-serif;
    font-size: 44px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.site-logo {
    height: 100px;
    width: auto;
    filter: invert(1);
}

.container {
    position: relative;
    z-index: 1;
}

.table thead th {
    vertical-align: middle;
}
/* #endregion */

/* #region Typography */
h1.product-heading {
    color: #ffffff;
    text-align: center;
    font-family: "OpenSans", sans-serif;
    font-weight: bold;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #1a3a5c;
    margin-bottom: 0;
    padding: 18px 24px;
    border-radius: 8px 8px 0 0;
}

.product-card {
    border-radius: 0 0 8px 8px;
    border-top: none;
}
p {
    font-family: "OpenSans", sans-serif;
    font-size: 16px;
    color: #333;
}
/* #endregion */

/* #region Cart */
.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 68px;
    height: 68px;
    background-color: #1a3a5c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 1000;
}

.cart-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: invert(1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: 50px;
    width: 22px;
    height: 22px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #1a3a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "OpenSans", sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #1a3a5c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
/* #endregion */

/* #region Product Detail */
.product-detail-imgwrap {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.product-detail-img {
    max-width: 100%;
    max-height: 300px;
    opacity: 0.75;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.product-detail-title {
    font-family: "OpenSans", sans-serif;
    font-weight: bold;
    color: #1a3a5c;
    font-size: 1.6rem;
}

.product-detail-table td {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-family: "OpenSans", sans-serif;
}

.product-detail-price-block {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.5rem;
}

.product-detail-price {
    font-family: "OpenSans", sans-serif;
    font-size: 2.4rem;
    font-weight: bold;
    color: #1a3a5c;
    line-height: 1.1;
}

.product-detail-btn {
    font-family: "OpenSans", sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 0.75rem 2rem;
    letter-spacing: 0.5px;
}
/* #endregion */

/* #region Loader */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: all;
}

.loader-panel {
    position: absolute;
    inset: 0;
    background-color: #1a3a5c;
    transition: transform 0.75s cubic-bezier(0.5, 0, 0.75, 0);
    will-change: transform;
}

#loaderTop {
    clip-path: polygon(0 0, 100% 0, 100% 47%, 0 61%);
}
#loaderBottom {
    clip-path: polygon(0 59%, 100% 45%, 100% 100%, 0 100%);
}

.loader-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 2;
    transition: opacity 0.25s ease;
}

/* Spinner */
.loader-spinner-wrap {
    position: relative;
    width: 84px;
    height: 84px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loaderSpin 0.9s linear infinite;
}

.loader-bolt-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    filter: invert(1);
    opacity: 0.85;
}

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

/* Title */
.loader-title {
    color: #ffffff;
    font-family: "StackSansNotch", sans-serif;
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: loaderTitleIn 0.55s ease 0.45s forwards;
}

.loader-x {
    color: lightblue;
}

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

/* Exit */
#loader.exit .loader-content {
    opacity: 0;
    pointer-events: none;
}
#loader.exit #loaderTop {
    transform: translate(-14vw, -110vh);
}
#loader.exit #loaderBottom {
    transform: translate(14vw, 110vh);
}
/* #endregion */
