@media (max-width: 870px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 12%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 4001;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .cart-drawer.open {
    transform: translateX(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}


/* === MOBILE VIEW === */
@media (max-width: 768px) {

  /* prevent scroll when cart is open */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 14%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 560px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 16%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 480px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 17%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 440px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 18%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 415px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 19%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 382px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 21%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}

@media (max-width: 350px) {
  /***CART***/
  .cart-box {
    position: fixed;
    right: 23%;
    top: 5%;
    z-index: 2000;
    background-color: #FAF7F1;
    height: 5rem;
    width: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3rem;
    cursor: pointer;
  }

  .cart-box img {
    height: 3rem;
  }

  .cart {
    -webkit-user-drag: none;
    user-select: none;
  }

  .cart-digits {
    position: absolute;
    background-color: black;
    color: #FAF7F1;
    top: 0;
    font-weight: 700;
    font-size: 1.2rem;
    right: -1rem;
    padding: .4rem .7rem;
    border-radius: 3rem;
  }

  /* === CART DRAWER === */
  .cart-drawer {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 0 0;
    transform: translateX(100%);
  }
  .cart-drawer.open {
    transform: translateY(0);
  }

  .cart-drawer-header {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: .1rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-drawer-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .cart-name {
    font-size: 2.5rem;
  }

  #closeCart {
    font-size: 4rem;
  }

  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }

  .cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 1.2rem;
    padding: 0.5rem;
  }

  .cart-item img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: .8rem;
    margin-right: 1rem;
  }

  .cart-item button {
    margin-left: auto;
    color: #68655F;
    border: none;
    padding: 0.3rem 0.9rem;
    border-radius: .6rem;
    cursor: pointer;
    font-size: 2.5rem;
  }

  .cart-footer {
    padding: 2rem;
    border-top: .1rem solid #eee;
    background: #fff;
  }

  .cart-footer button {
    width: 100%;
    background: #68655F;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: background 0.2s;
  }

  .cart-footer button:hover {
    background: #f57faa;
  }

  .cart-footer button:active {
    background: #f57faa;
  }
}
