@import url('./reset.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Noto+Sans+KR:wght@400;700&family=Roboto:wght@400;700&display=swap');


/* General Styling */
body {
    font-family: 'Roboto', 'Montserrat', 'Noto Sans KR', sans-serif;
    color: #2B292D;
    background-color: rgba(196, 196, 196, 0.5);;
}


/* Utilities */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

.row {
    margin-bottom: 30px;
}

.row:nth-of-type(3) {
    margin-bottom: 150px;
}


/* Header - Mobile*/
header {
    position: fixed;
    width: 100%;
    padding: 25px 20px;
    background-color: #e1e1e1;
    z-index: 10;
}

header h1 {
    margin-bottom: 22px;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 1.16666;
    text-align: center;
    letter-spacing: 0.33em;
}

.mobile-layout {
    display: flex;
    justify-content: space-between;
}

.mobile-nav {
    display: flex;
    justify-content: space-between;
}

.customer-menu li {
    display: inline-block;
    margin-right: 8px;
}

.customer-menu li:last-child {
    margin-right: 0;
}



/* Toggle */
#toggle {
    display: block;
    position: relative;
    z-index: 10;
    /* -webkit-user-select: none;
    user-select: none; */
  }
  
  #toggle a {
    text-decoration: none;
    color: #232323;
    transition: color 0.3s ease;
  }
  
  #toggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;    
    opacity: 0;
    z-index: 20;
    /* -webkit-touch-callout: none; */
  }
  
 /* Toggle - Hamburger Icon */
  #toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background-color: #2B292D;
    border-radius: 2px;
    z-index: 1;
    transform-origin: 2px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
  }
  
  #toggle span:first-child {
    transform-origin: 0% 0%;
  }
  
  #toggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
  }
  
 /* Toggle - Hamburger Icon Transform */
  #toggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background-color: #fff;
  }
 
  #toggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }
 
  #toggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(2px, -3px);
  }
 
  /*Toggle - Menu */
  #menu {
    position: absolute;
    width: 100vw;
    height: 100vh;
    margin: -89px 0 0 -20px;
    padding: 0;
    padding-top: 125px;
    background-color: #727272;
    -webkit-font-smoothing: antialiased;
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 500ms cubic-bezier(0.77,0.2,0.05,1.0);
  }
  
  #menu li {
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
  }
 
  #menu li:nth-of-type(3) {
      margin-bottom: 80px;
  }
 
  #menu li:nth-of-type(3) ~ li {
     margin-bottom: 6px;
     font-size: 14px;
  }
 
  #menu li:last-child {
      margin-top: 80px;
  }
  
  #toggle input:checked ~ ul {
    transform: none;
  }


/* Products*/
#products {
    position: relative;
    top: 140px;
}

.card {
    position: relative;
    display: block;
}

.card-image {
    height: 100%;
}

.card-desc {
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.card-desc h5 {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.05em;
}

.card-desc button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: rotate(90deg) translateY(-50%);
}

.card-desc p:first-of-type {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: rotate(-90deg) translateY(-50%);
}

.card-desc p:last-of-type {
    position: absolute;
    left: 50%;
    bottom: 15px;
    transform: translateX(-50%);
}

.col-12 .wrapper {
    width: 100%;
    height: 80vh;
    margin-bottom: 30px;
}

.col-6 .wrapper {
    width: 100%;
    height: 40vh;
}

.wrapper .card {
    height: 100%;
}

.row img {
    width: 100%;
    height: 100%;
}

.card-group {
    display: flex;
    flex-direction: column;
}

.card-group .wrapper {
    height: 40vh;
}

.card-group .wrapper:first-of-type {
    margin-bottom: 30px;
}

/* Products - Each Cards */
.card.a > .card-image {
    background-image: url('../asset/product-01.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.b > .card-image {
    background-image: url('../asset/product-02.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.d > .card-image {
    background-image: url('../asset/product-03.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.e > .card-image {
    background-image: url('../asset/product-04.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.f > .card-image {
    background-image: url('../asset/product-05.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.g > .card-image {
    background-image: url('../asset/product-06.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.h > .card-image {
    background-image: url('../asset/product-07.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.i > .card-image {
    background-image: url('../asset/product-08.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.card.k > .card-image {
    background-image: url('../asset/product-09.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}


/* Footer */
footer {
    padding: 50px 30px;
}

footer ul {
    display: flex;
    justify-content: space-between;
    max-width: 250px;
    margin: 0 auto;
}

footer li {
    text-align: center;
    font-size: 13px;
}


/* Over 992px - iPad Pro */
@media screen and (min-width: 992px) {
    /* General Styling */
    .container {
        max-width: 940px;
    }


    /* Header */  
    header {
        padding: 25px 50px;
    }

    /* Toggle - Menu */
    #menu {
        margin-left: -50px;
    }


    /* Products */
    .second-row .col-lg-3 .wrapper,
    .third-row .col-lg-3 .wrapper {
        height: 40vh;
        margin-bottom: 30px;
    }
    
    .first-row .col-lg-6 .wrapper {
        height: 100%;
        margin-bottom: 0;
    }

    .second-row .col-lg-6 .wrapper,
    .third-row .col-lg-6 .wrapper {
        height: 80vh;
        margin-bottom: 0;
    }   

    .second-row .col-6.col-lg-3 .wrapper {
        position: relative;
        bottom: -50%;
    }
}


/* Over 1200px - Laptop */
@media screen and (min-width: 1200px) {
    /* Utilities */    
    .row:nth-of-type(3) {
        margin-bottom: 200px;
    }


    /* Header - Desktop*/ 
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: block;
    }

    header {
        display: flex;
        justify-content: space-between;
        padding: 50px 50px 30px;
    }

    header h1 {
    font-size: 26px;
    line-height: 1.15384;
    text-align: left;
    }

    .global-nav li {
        display: inline-block;
        margin-right: 40px;
        text-transform: uppercase;
        font-size: 14px;
        letter-spacing: 0.33em;
    }

    .global-nav li::after {
        content: "";
        display: block;
        width: 0;
        height: 2px;
        margin-top: 6px;
        background-color: #2B292D;
        transition: all 500ms ease;
    }

    .global-nav li:hover::after {
        width: 90%;
    }

    .global-nav li:last-child {
        margin-right: 0;
    }

    .search-bar {
        display: flex;
        align-items: center;
        height: 16px;
    }

    .search-bar input {
        width: 60px;
        margin-right: 8px;
        padding: 2px 5px;
        background-color: transparent;
        border-radius: 2px;
        transition: all 500ms;
    }

    .search-bar input:focus {
        width: 200px;
        background-color: #fff;
    }

    .search-bar button {
        width: 16px;
        height: 100%;
        background-color: transparent;
        background-image: url('../asset/search-icon.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .customer-menu {
        font-size: 14px;
    }

    .customer-menu li {
        display: block;
    }

    .customer-menu li:first-child {
        margin-bottom: 10px;
    }

    /* Side Menu */
    aside {
        position: fixed;
        top: 180px;
        padding: 50px;
        z-index: 10;
    }

    .sub-nav {
        margin-bottom: 100px;
    }

    .sub-nav h2 {
        margin-bottom: 16px;
        text-transform: uppercase;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 0.33em;
    }

    .sub-nav h2::after {
        content: "";
        display: block;
        margin-top: 16px;
        width: 20px;
        height: 2px;
        background-color: #2B292D;
    }

    .sub-nav li {
        margin-bottom: 8px;
        color: #727272;
        font-size: 14px;
        transition: all 250ms ease;
    }

    .sub-nav li:first-child {
        color: #2B292D;
        text-decoration: underline;
    }

    .sub-nav li:hover {
        color: #2B292D;
        text-decoration: underline;
    }

    .store-menu li {
        margin-bottom: 8px;
        font-size: 14px;
    }


    /* Products */
    .card-image {
        transition: all 250ms ease;
    }

    .card-desc {
        opacity: 0;
        transition: all 250ms ease;
    }

    .card:hover .card-desc {
        opacity: 1;
    }

    /* Products - Each Cards */
    .card.a:hover > .card-image {
        background-image: url('../asset/product-01-hover.png');
    }

    .card.b:hover > .card-image {
        background-image: url('../asset/product-02-hover.png');
    }

    .card.d:hover > .card-image {
        background-image: url('../asset/product-03-hover.png');
    }

    .card.e:hover > .card-image {
        background-image: url('../asset/product-04-hover.png');
    }

    .card.f:hover > .card-image {
        background-image: url('../asset/product-05-hover.png');
    }

    .card.g:hover > .card-image {
        background-image: url('../asset/product-06-hover.png');
    }

    .card.h:hover > .card-image {
        background-image: url('../asset/product-07-hover.png');
    }

    .card.i:hover > .card-image {
        background-image: url('../asset/product-08-hover.png');
    }

    .card.k:hover > .card-image {
        background-image: url('../asset/product-09-hover.png');
    }


    /* Footer */
    footer ul {
        display: block;
        margin: 0 0 0 auto;
    }

    footer li {
        margin-bottom: 8px;
        text-align: right;
        font-size: 14px;
    }
}


/* Over 1600px - Desktop*/
@media screen and (min-width: 1600px) {
    /* General Styling */
    .container {
        max-width: 1300px;
    }


    /* Header */
    .global-nav li {
        margin-right: 40px;
        font-size: 16px;
    }

    .search-bar {
        height: 18px;
    }

    .search-bar input {
        width: 70px;
        margin-right: 10px;
        padding: 3px 5px;
    }

    .customer-menu {
        font-size: 16px;
    }


    /* Side Menu */    
    .sub-nav h2 {
        margin-bottom: 18px;
        font-size: 16px;
    }
    
    .sub-nav li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .store-menu li {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .customer-menu li:first-child {
        margin-bottom: 12px;
    }


    /* Footer */
    footer li {
        margin-bottom: 10px;
        font-size: 16px;
    }
}