html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    height: 100%;
    width: 100%;
    font-family: 'Nunito Sans', -apple-system, system-ui, sans-serif;
}

a {
    text-decoration: none;
    color: #000;
    word-break: break-all;
}

li {
    list-style: none;
}

p {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

::selection {
    background-color: #cce2ff;
    color: rgba(0, 0, 0, 0.8);
}

.container {
    max-width: 1220px;
    padding: 0 1.25rem;
    margin: 0 auto;
    box-sizing: border-box;
}


/* header */

header {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* position: relative; */
    position: fixed;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid #D0D3D4;
    background-color: #fff;
}

header .container {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    width: 100%;
    z-index: 2;
    box-sizing: border-box;
}

header .container .container-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav action";
    grid-template-rows: 1fr;
    justify-content: center;
    align-items: center;
}

header .container .container-inner .logo-wrap {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    min-width: 0.625rem;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-family: Montserrat, 'Nunito Sans', -apple-system, system-ui, sans-serif;
    color: #111111;
    font-weight: 600;
    margin-right: 1.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    gap: 15px;
}

header .container .container-inner .logo-wrap {
    min-height: 1.15em;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header .container .container-inner .logo-wrap .mobile-icon {
    display: none;
}

header .container .container-inner .menu-bar a {
    color: inherit;
    font-size: 1em;
    padding: 0.625rem 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    transition: opacity .11s;
    white-space: nowrap;
    display: inline-block;
    transform: none!important;
    user-select: none;
    min-height: 1.15em;
    box-sizing: content-box;
}

header .container .container-inner .menu-bar a:first-child {
    padding-left: 0;
}

header .actions {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    margin-left: 1.875rem;
    grid-area: action;
    justify-self: end;
}

header .item.search {
    cursor: pointer;
    z-index: 7;
    position: relative;
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 1rem;
    transition: opacity .11s, padding .11s;
    box-sizing: border-box;
}

header .item.search .close {
    position: absolute;
    right: 20px;
    font-size: 21PX;
    display: none;
}

header .item.search input {
    width: 0;
    color: #111111;
    border: none;
    border-bottom: 1px solid #111111;
    outline: none;
    padding: 0.375em 0.5em;
    opacity: 0;
}

header .item.cart {
    padding: 1rem 1rem 1rem 0;
    display: flex;
    align-items: center;
    margin-top: 6px;
}


/* sidenav */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 11;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.5s;
    box-sizing: border-box;
}

.sidenav a {
    padding: 20px 10px;
    text-decoration: none;
    font-size: 16px;
    color: #111111;
    display: block;
    transition: 0.3s;
    font-family: 'Nunito Sans';
    font-weight: 700;
}


/* .sidenav a:hover {
  color: #f1f1f1;
} */

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 26px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
}

.container-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* footer */

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* margin-top: 100px; */
    /* position : absolute; */
    width: 100%;
    bottom: 0;
}

footer .footer-top {
    padding: 0.625rem 0;
    box-sizing: border-box;
}

footer .footer-top a {
    padding: 0.3125rem 0.625rem;
    font-size: 1em;
    box-sizing: border-box;
}

footer .line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

footer .footer-top select {
    padding: 0 0.625rem;
    border: none;
    font-family: Nunito Sans, 'Nunito Sans', -apple-system, system-ui, sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

footer .footer-bottom {
  padding-top: 20px;
}

footer .footer-bottom p {
    color: #999999;
    font-size: 14px;
    padding: 0.1rem 0;
    box-sizing: border-box;
    text-align: center;
}

footer.footer--detailpage {
    position: initial;
    margin-top: 0;
}

@media all and (max-width: 450px) {
    /* .container-flex {
    height: auto;
  } */
    .container-flex.long {
        height: auto;
    }
    /* section.main.subpage{
    height: auto;
    min-height: 100%;
    padding-bottom: 88px;
  }
  footer {
    height: 88px;
    position: relative;
    transform: translateY(-100%);
  } */
}

@media all and (max-width:900px) {
    header .container .menu-bar {
        display: none;
    }
    header .container .container-inner .logo-wrap .mobile-icon {
        display: block;
    }
}
@media all and (max-width: 450px) {
  .container-detail--height {
    height: 123%;
  }
}
@media all and (max-width: 400px) {
    footer .footer-top a {
        font-size: 12px;
    }
}