@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --white: #fff;
    --black: #000;
    --slate: #0f1111;
    --slate-950: #131921;
    --slate-800: #232f3e;
    --slate-900: #232f3e;
    --slate-750: #37475a;
    --slate-600: #485769;
    --slate-500: #3a4553;
    --neutral-50: #fbfbfb;
    --neutral-70: #f3f3f3;
    --neutral-100: #dadada;
    --neutral-150: #e5e5e5;
    --neutral-170: #d4d4d4;
    --neutral-200: #cccc;
    --neutral-250: #848688;
    --neutral-180: #cfcfcf;
    --neutral-300: #565656;
    --neutral-400: #494949;
    --amber-200: #febd69;
    --amber-500: #f3a847;
    --yellow-300: #ffd814;
    --yellow-400: #f7ca00;
    --teal-300: #007185;
    --crimson: #cc0c39;
    --orange: #c45500;
    --orange-300: #f08804;




    --fs-1: 13px;
    --fs-2: 14px;
    --fs-3: 15px;
    --fs-4: 16px;
    --fs-5: 18px;
    --fs-6: 12px;
    --fs-7: 25px;
    --fs-8: 26px;
    --fs-9: 20px;
    --fs-10: 28px;
    --fs-11: 11px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--neutral-100);
}

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


nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--slate-950);
    padding: 10px 20px;
    color: var(--white);
}

.nav-menu {
    display: none;
    cursor: pointer;
}

.nav-country {
    display: flex;
    align-items: end;
    margin-left: 15px;
    font-size: var(--fs-1);
    color: var(--neutral-200);
    cursor: pointer;
}

.nav-country h1 {
    color: var(--white);
    font-size: var(--fs-2);
}

.nav-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--white);
    color: gray;
    max-width: 1000px;
    border-radius: 4px;
    margin-left: 15px;
}


.nav-search-categories {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 5px;
    background: var(--neutral-150);
    border-radius: 4px 0 0 4px;
}

.nav-search-categories:hover {
    background: var(--neutral-170);
    cursor: pointer;
}

.nav-search-input {
    border: none;
    outline: none;
    padding-left: 20px;
    width: 100%;
}

.nav-search-icon {
    max-width: 41px;
    padding: 8px;
    background: var(--amber-200);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.nav-search-icon:hover {
    background: var(--amber-500);
}

.nav-languages {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    margin-left: 15px;
    cursor: pointer;
}

.nav-text {
    margin-left: 15px;
    cursor: pointer;
}

.nav-text p {
    font-size: 10px;
}

.nav-text h1 {
    font-size: 14px;
}

.nav-cart {
    display: flex;
    align-items: center;
    margin: 0 15px;
    cursor: pointer;
}

.total-products {
    position: relative;
    z-index: 1;
    bottom: 10px;
    left: 28px;
    color: var(--orange-300);
    font-weight: bold;
}

.nav-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 20px;
    background: var(--slate-800);
    color: var(--white);
    font-size: 15px;
}

.nav-bottom div {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.nav-bottom a:hover {
    color: var(--amber-200);
    transition: 0.2s ease;
}

.header-slider ul {
    display: flex;
    overflow-y: hidden;
}

.header-image {
    width: 100%;
    mask-image: linear-gradient(to bottom, #000000 50%, transparent 100%);
}

.header-slider a {
    position: absolute;
    top: 20%;
    z-index: 1;
    padding: 5vh 1vw;
    background: #ffffff4f;
    color: #0000007b;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--fs-5);
    cursor: pointer;
}

.header-slider a i {
    font-size: var(--fs-5);
    color: var(--black);
}

.control-next {
    right: 0;
}

.box-row {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    justify-content: space-between;
    margin: 20px 30px;
}

.box-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    background: var(--white);
    max-width: 24%;
    min-height: 200px;
    z-index: 1;
}

.box-col a {
    font-size: var(--fs-1);
    color: var(--teal-300);
    font-weight: 500;
}

.box-col a:hover {
    color: var(--orange);
}

.header-box {
    margin-top: -20vw;
}

.products-slider {
    background: var(--white);
    margin: 0 30px;
    padding: 20px;
    margin-bottom: 15px;
}

.products-slider-price h2 a {
    color: var(--teal-300);
    font-size: var(--fs-2);
    padding-left: 15px;
    font-weight: 500;
    transition: 0.2s ease;
}

.products-slider-price h2 a:hover {
    color: var(--orange);
    text-decoration: underline;
}

.products-slider .products {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 24px;
}

.products-slider .products::-webkit-scrollbar-thumb {
    border-radius: 10px;
}


.products-slider .products img {
    max-width: 200px;
    max-height: 200px;
}

.products-slider-price {
    background: var(--white);
    margin: 0 30px;
    padding: 20px;
    margin-bottom: 15px;
}


.products-slider-price .products {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-width: 210px;
    background: var(--neutral-50);
    margin-bottom: 24px;
}

.product-card img {
    width: 150px;
    height: 150px;
    margin: 0 50px;
}

.product-card .product-info {
    height: 130px;
}

.product-info .product-badge {
    background: var(--crimson);
    color: var(--white);
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    margin: 8px 0;
    font-size: 13px;
}

.product-info span {
    color: var(--crimson);
    font-weight: 500;
    font-size: 12px;
}

.product-info .product-name {
    margin-bottom: 10px;
}

.product-info .add-button {
    display: flex;
    padding: 8px;
    background: var(--yellow-300);
    border-radius: 5px;
    justify-content: center;
    margin-inline: 20px;
    cursor: pointer;
}

.product-info .add-button:hover {
    background: var(--yellow-400);
}

.cart-container .amount-button {
    height: 20px;
    width: 20px;
}

/* Footer */
.mobile-main-footer {
    display: none;
}

footer hr {
    border: none;
    height: 1px;
    background: var(--slate-500);
    
}

.footer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--slate-750);
    color: #fff;
    font-size: 0.800rem;
    font-weight: 600;
    height: 40px;
}

.footer-title:hover {
    background: var(--slate-600);
}

.footer-items {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin: 0 auto;
    background: var(--slate-900);
}

.footer-items h3 {
    font-size: var(--fs-4);
    font-weight: 500;
    color: #fff;
    margin: 40px 0 10px 0;
}

.footer-items ul {
    list-style: none;
    margin-bottom: 40px;
}

.footer-items li {
    margin-bottom: 10px;
}

.footer-items li a {
    color: #ddd;
    font-size: 0.875rem;
}

.footer-items li a:hover {
    text-decoration: underline;
}

.footer-items-bottom {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    background: var(--slate-900);
    padding-block-start: 10px;
    padding-block-end: 10px;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-button-language {
    display: flex;
    border: 1px solid var(--neutral-250);
    border-radius: 3px;
    padding: 6px 18px 6px 8px;
    font-size: var(--fs-1);
    margin-right: 4px;
    color: var(--neutral-200);
    align-items: center;
    text-align: center;
    justify-content: center;
}



/* Cart modal */

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.modal-close .close-icon {
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--slate-950);
    transition: 0.2s ease;
}

.modal-close .close-icon:hover {
    color: var(--slate-500);
}

.cart-container {
    display: flex;
    gap: 20px;
    margin: 20px;
}

.cart-container .cart-left {
    background: var(--white);
    padding: 20px;
}

.cart-container .cart-left h1 {
    font-size: var(--fs-10);
    font-weight: 400;
    margin-bottom: 15px;
}

.cart-container .cart-left hr {
    border: none;
    height: 1px;
    background: var(--neutral-100);
}

.cart-container .product-cart-list {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 24px 0 12px 12px;
}

.cart-container .product-title-price {
    display: flex;
    gap: 20px;
    font-size: var(--fs-5);
}

.cart-container .product-cart-bestseller {
    font-size: var(--fs-6);
    margin-top: 10px;
}

.cart-container .product-cart-bestseller span {
    font-size: var(--fs-1);
    background: var(--orange);
    color: var(--white);
    padding: 3px 8px;
}

.cart-container .product-cart-stock {
    font-size: var(--fs-1);
    color: #007600;
    margin: 4px 0;
}

.cart-container .product-cart-delivery {
    font-size: var(--fs-3);
}

.cart-container .product-cart-returns {
    font-size: var(--fs-3);
    color: var(--teal-300);
    font-weight: 400;
}

.cart-container .product-cart-gift {
    color: var(--neutral-400);
    font-size: var(--fs-1);
    margin: 3px 0;
}

.cart-container .product-cart-gift span {
    color: var(--teal-300);
}

.cart-container .product-cart-list-action {
    display: flex;
    gap: 12px;
    font-size: var(--fs-2);
    color: var(--teal-300);
}

.cart-container .product-cart-list-action hr {
    height: 20px;
    width: 1px;
    background: var(--neutral-180);
}

.cart-container .product-cart-list-action select {
    padding: 5px;
    border-radius: 6px;
    background: var(--neutral-70);
}

.cart-container .product-cart-list-subtotal {
    text-align: right;
    font-size: var(--fs-9);
    margin-top: 10px;
}

.cart-container .empty-cart {
    display: none;
    gap: 100px;
    justify-content: center;
    align-items: center;
}

.cart-container .empty-cart img {
    width: 200px;
}

.cart-container .cart-right {
    background: var(--white);
    padding: 20px;
    max-width: 220px;
    min-width: 280px;
}

.cart-container .cart-right .cart-free-delivery {
    display: flex;
    font-size: var(--fs-1);
}

.cart-container .cart-right .cart-right-subtotal {
    margin-top: 20px;
    font-size: var(--fs-5);
    font-weight: 500;
}

.cart-container .cart-right .cart-right-gift {
    margin: 7px 0;
    font-size: var(--fs-2);
    display: flex;
}

.cart-container .cart-right button {
    width: 100%;
    height: 30px;
    margin: 15px 0;
    background: var(--yellow-300);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.cart-container .cart-right button:hover {
    background: var(--yellow-400);
}

/* * ---- Media Queries ---- * */


@media only screen and (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        background: var(--slate-800);
    }

    .footer-items ul:not(.mobile-main-footer ul){
        display: none;
    }

    .mobile-main-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 25px 20px;
    }

    .nav-menu {
        display: block;
    }

    .nav-bottom div {
        display: none;
    }

    .nav-search {
        order: 7;
        margin: 15px 0 5px;
        min-width: 300px;
    }

    .box-col {
        max-width: 48%;
    }

    .cart-container {
        flex-wrap: wrap;
    }

    footer hr {
        display: none;
    }

    .footer-items-bottom {
        background: var(--slate-950);
    }

    .footer-items-bottom .footer-items-logo {
        display: none;
    }

    .footer-button-language {
        display: flex;
        padding: 3px 8px 3px 8px;
        font-size: var(--fs-1);
        margin-right: 4px;
        color: var(--neutral-200);
    }
}

@media only screen and (max-width: 900px) {
    nav {
        background: var(--slate-800);
    }


    .nav-country {
        display: none;
    }

    .nav-languages {
        display: none;
    }

    .nav-text {
        display: none;
    }

    .nav-bottom {
        font-size: var(--fs-1);
        gap: 10px;
        overflow-x: scroll;
    }

    .nav-bottom::-webkit-scrollbar {
        display: block;
    }

    .nav-search-categories {
        display: none;
    }

    .nav-bottom p {
        text-wrap: nowrap;
    }

    .nav-cart h4 {
        display: none;
    }

    .total-products {
        right: 47px;
    }

    .header-slider a {
        display: none;
    }

    .header-slider {
        width: 100%;
        height: 200px;
    }

    .header-image {
        width: 100%;
        height: 200px;
    }

    .box-col {
        max-width: 100%;
        width: 100%;
    }
    
    .cart-container .cart-right {
        max-width: 0;
        min-width: 230px;
    }

    .cart-container .product-cart-list {
        flex-direction: column;
    }

    .cart-container .amount-button {
        height: 30px;
        width: 25px;
    }
}

@media only screen and (max-width: 600px) {
    .cart-container .empty-cart {
        flex-direction: column;
    }

    .product-cart-list {
        padding: 24px 0;
    }

    .product-cart-list img {
        width: 80px;
    }

    .product-title-price {
        flex-wrap: wrap;
        font-size: var(--fs-2);
    }

    .product-cart-delivery {
        font-size: var(--fs-1);
    }

    .product-cart-list-action .action-btn:nth-last-child(1),
    .product-cart-list-action hr:nth-last-child(2),
    .product-cart-list-action .action-btn:nth-last-child(3),
    .product-cart-list-action hr:nth-last-child(4) {
        display: none;
    }

    .cart-right {
        width: 100%;
    }

    .footer-button-language {
        display: flex;
        padding: 3px 8px 3px 8px;
        font-size: var(--fs-1);
        margin-right: 4px;
        color: var(--neutral-200);
    }
}


.processing {
    width: 200px;
    height: 30px;
  }
  
  .processing label {
    position: absolute;
    height: 30px;
    width: 200px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
  }
  
  .processing label input {
    display: none;
  }
  
  .processing label span {
    position: absolute;
    height: 30px;
    width: 200px;
    line-height: 30px;
    text-align: center;
    color: black;
    background: var(--yellow-300);
    border-radius: 8px;
  }

  .processing label span:hover {
    background: var(--yellow-400);
  }

  .processing label input:checked ~ span {
    background: #87E544;
    animation: purchaseSuccess 3.1s ease;
  }
  
  .processing label span:after {
    content: 'Proceed to checkout';
    position: absolute;
    width: 80%;
    height: 100%;
    left: 10%;
  }
  
  .processing label input:checked ~ span:after {
    content: 'Completed';
    animation: purchaseState 3s;
  }
  
  .processing label span:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    opacity: 0;
    background: rgba(255,255,255,.2);
  }
  
  .processing label input:checked ~ span:before {
    animation: purchaseProgress 3s cubic-bezier(.67,.13,.1,.81);
  }
  
  @keyframes purchaseSuccess {
    0%, 90% {
      background: var(--yellow-400);
    }
  
    100% {
      background: #42ba32;
    }
  }
  
  @keyframes purchaseState {
    0%, 95% {
      content: 'Processing...'
    }
  
    100% {
      content: 'Thank you for purchasing'
    }
  }
  
  @keyframes purchaseProgress {
    0% {
      width: 5%;
      opacity: 1;
    }
  
    35% {
      width: 17%;
    }
  
    64% {
      width: 51%;
    }
  
    81% {
      width: 70%;
    }
  
    90% {
      width: 86%;
      opacity: 1;
    }
  
    100% {
      width: 100%;
      opacity: 0;
    }
  }