* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #262626;
    color: #222;
}

/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    padding: 20px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: red;
    border-bottom: 1px solid #e5e5e5;

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cart-button {
    border: none;
    background: #222;
    color: #fff;

    padding: 12px 18px;

    border-radius: 8px;

    font-size: 15px;
    cursor: pointer;

    transition: 0.2s ease;
}

.cart-button:hover {
    background: #444;
}


/* =========================
   INTRO
========================= */

.intro {
    text-align: center;

    padding: 60px 20px 35px;
}

.intro h1 {
    font-size: 44px;
    font-weight: 700;

    margin-bottom: 10px;
}

.intro p {
    color: #777;
    font-size: 17px;
}


/* =========================
   PRODUCTS
========================= */

.products {
    width: 90%;
    max-width: 1200px;

    margin: 30px auto 70px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.product {
    /* border:4px solid red; */
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.product:hover {
    transform: translateY(-4px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.product img {
    width: 100%;
    height: 230px;

    display: block;

    object-fit: cover;
}

.product-content {
    padding: 20px;
    /* border:1px solid red; */
}

.product-image-wrapper{
  display: grid;
  place-items:center;
  height:400px;
  background: black;
  border:5px solid black;
  border-radius: 0px;
}

.product-image{
  background: black;
  width: 99%;
  height:99%;
  /* border:5px solid black;
  border-radius: 10px; */
}



.product h2 {
    font-size: 21px;

    margin-bottom: 8px;
}

.description {
    color: #777;

    font-size: 14px;

    line-height: 1.5;

    min-height: 42px;
}

.price {
    font-size: 20px;
    font-weight: 700;

    margin: 16px 0;
}


/* =========================
   QUANTITY
========================= */

.quantity {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.quantity button {
    width: 34px;
    height: 34px;

    border: none;

    background: #eeeeee;

    border-radius: 7px;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s ease;
}

.quantity button:hover {
    background: #dddddd;
}

.quantity span {
    min-width: 20px;

    text-align: center;

    font-weight: 700;
}


/* =========================
   ADD TO CART
========================= */

.add-button {
    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #222;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.add-button:hover {
    background: #444;
}


/* =========================
   CART
========================= */

.cart {
    width: 90%;
    max-width: 700px;

    margin: 0 auto 70px;

    padding: 25px;

    background: #ffffff;

    border-radius: 14px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.cart h2 {
    font-size: 24px;

    margin-bottom: 20px;
}

.cart-item {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px 0;

    border-bottom: 1px solid #eeeeee;
}

.cart-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 20px 0;

    font-size: 20px;

    font-weight: 700;
}

.checkout-button {
    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 8px;

    background: #222;
    color: #fff;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.checkout-button:hover {
    background: #444;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 19px;
    }

    .cart-button {
        padding: 10px 13px;
    }

    .intro {
        padding: 40px 20px 25px;
    }

    .intro h1 {
        font-size: 34px;
    }

    .intro p {
        font-size: 15px;
    }

    .products {
        width: 92%;

        grid-template-columns: 1fr;

        gap: 20px;

        margin-top: 20px;
    }

    .product img {
        height: 220px;
    }

    .cart {
        width: 92%;

        padding: 20px;
    }

}




/* ################Checkout page ####################### */


header{
  border:2px solid black;
}

.checkout-form{
  display: grid;
  place-items:center;
}


form{
  width:40%;
  border:2px solid black;
}


.c-field{
  width:60%;
  margin: 3px;
  padding:10px;
  border-radius: 5px;
}


.c-button{
  width:20%;
  padding:10px;
  margin: 3px;
  border-radius: 5px;
}
