@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

html{
    margin: 0px 12.5%;
    background: linear-gradient(45deg, #cfcfcf, #efefef);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body{
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin: 0px;
    flex-grow: 1;
}

*{
    font-family: "Noto Sans", sans-serif;
}

header{
    display: flex;
    justify-content: space-between;
    background: linear-gradient(45deg, #6f3f3f, #3f3f6f);
    padding: 16px;
}

header div{
    display: flex;
    text-transform: uppercase;
    font-weight: 700;
    align-items: center;
    font-size: 1.25rem;
} header div a{
    color: #ffffff;
    text-decoration: none;
}

header nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

header nav a, 
header nav form input[type="submit"] {
    background: linear-gradient(45deg, #858585, #a5a5a5);
    padding: 4px 12px;
    border-radius: 12.5px;
    color: #000;
    text-decoration: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block; 
}

header nav a:hover, 
header nav form input[type="submit"]:hover {
    background: linear-gradient(-45deg, #858585, #a5a5a5);
}

header nav form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

section{
    margin: 8px;
}

h1{
    font-weight: 700;
}

.formInline{
    display: inline-block;
} .form8pxMarginLeft{
    margin-left: 8px;
}

.basket-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 255;
    background-color: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(3.125px);
}

.basket-dialog .container {
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, #ffffff, #dfdfdf);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 
                0 4px 10px rgba(0, 0, 0, 0.1);
    width: fit-content;
    box-sizing: border-box;
} .basket-dialog .basket-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color 0.2s ease, transform 0.2s ease;
}

.basket-dialog .basket-header .close-btn svg {
    width: 20px;
    height: 20px;
}

.basket-dialog .basket-header .close-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.formInline .add-to-basket-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    margin: 0px;
    padding: 0px;
}

.formInline .add-to-basket-btn svg {
    width: 18px;
    height: 18px;
}

.formInline .add-to-basket-btn:hover {
    color: #28a745;
    transform: scale(1.05);
}

.button-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.basket-dialog .container p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    margin: 4px 0px;
}

.basket-dialog .container .basket-item-row .formInline {
    display: inline-block;
    vertical-align: middle;
}

.basket-dialog .container .basket-item-row .form8pxMarginLeft {
    margin-left: 8px;
}

.basket-dialog .container .basket-item-row .formInline .close-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.basket-dialog .container .basket-item-row .formInline .close-btn svg {
    width: 20px;
    height: 20px;
    color: #555;
}

.basket-dialog .container .basket-item-row .formInline .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.basket-dialog .container .basket-item-row .formInline .close-btn:active {
    transform: scale(0.95);
}

.basket-dialog .container .basket-item-row .formInline button[name="clearFromBasket"]:hover svg {
    color: #28a745;
}

.basket-dialog .container .basket-item-row .formInline button[name="removeOneFromBasket"]:hover svg {
    color: #dc3545;
}

.checkout-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6f3f3f, #3f3f6f);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-transform: uppercase;
}

.checkout-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.checkout-btn:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    /* for smaller resolutions (e.g. phones) */
    header{
        flex-direction: column;
        align-items: center;
    }
}