/* ======================== start header========================== */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}
::selection{
    background-color: orangered;
    color: #fff;
}
html{
  scroll-behavior: smooth;
}

a{
    text-decoration: none;
}
.container{
    width:85%;
    margin:auto;
}

.color-orangered{
color: orangered;
}
.bg-orangered{
    background-color: orangered;
}
nav {
    padding: 10px 0;

}
.border-bottom{
  border-bottom: 1px solid #ccc;
  margin-top: 0;
}
.header-content{
    display: flex;
    justify-content: space-between;
   
}
.header-content  .brand {
    font-size: 24px;
    color: #000;
    margin-left: 10px;
}


nav ul {
    display: flex;
    list-style: none;
}
nav  li a {
    display: block;
    color: #000;
    text-decoration: none;
}

nav  ul#user_info {
    display: none;
}
#links{
    margin-right: 20px;
}
#links li a{
    text-decoration: none;
    text-align: center;
}
#links li i{
    color: #000;
    font-size: 16px;
    cursor: pointer;
  
}
.header-content .brand{
    text-decoration: none;
    color: #000;
    font-size: 30px;

}

nav ul#user_info li i  {
    color: #000;
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
}
 ul li span{
    font-size: 14px;
    color: #0000;
    text-align: center;
   
 }

nav ul#user_info li{
    margin: 0px 10px;
    position: relative;
}
nav ul#user_info li{
    position: relative;
}

#user_info #user{
    font-size: 10px;
    text-align: center;
    color: #000;
    height: 30px;
padding-top: 12px;
}
#user_info li span , #logout span{
    color: #000;
    font-size: 10px;
    text-align: center;

}


/* ================end header==================== */

/* ========================= start Add-to-products====================== */
 li{
    list-style: none;
}
section{
    width: 100%;
    margin: auto;
    margin-top: 20px;
}
.Add-product{
    display: flex;
    flex-direction: row-reverse;
}
.products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    margin-right: 0px ;

}

.product_item , .fav-card{
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 380px; 
    height: 260px;
     position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    transition: transform 0.3s ease;

}

.product_item:hover {
    transform: translateY(-5px);
}

.product_item_img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.product_item_desc {
    flex: 1;
}

.product_item_desc h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.product_item_desc p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.product_item_desc span , .card span {
    font-size: 14px;
    font-weight: bold;
    
}
.card .card_img{
    cursor: pointer;
}

.product_item_action {
    display: flex;
    align-items: center;
   
}

.product_item_action .add_to_cart {
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}
.product_item_action button{
    position: absolute;
    bottom: 10px;
    right: 10px;
    text-align: center;
      margin-top: 10px;
    
}

.product_item_action .add_to_cart:hover {
    background-color: orangered;
}


/* ================ End Add-to-products====================== */
/* ==================== start Order-summary====================== */

.Order-summary{
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
    width:46%;
    height: 460px ;
    margin-right: 50px;
   margin-top: 4%;
   padding: 10px;
}
#totalPrice{
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
    /* margin-top: 5px; */
    position: relative;
    padding-left: 10px;

}

.Order-summary h2{
    font-size: 26px;
    color:#000;
    padding-top: 10px;
    /* text-align: center; */
    margin-bottom: 10px;
    width: 100%;
     padding: 5px;
     border-bottom: 1px solid #ccc;
}
.Order-summary p{
    padding-top: 5px;
    font-size: 20px;
    color: #000;
     padding-left: 10px;
}
.input-address label , .promo-code label{
    font-size: 18px;
    color: #000;
    display: block;
    margin-bottom: 10px;
    margin-top: 15px;
    padding-left: 5px;
    
}
.input-address input , .promo-code input{
    font-size: 16px;
    height: 40px;
    width: 100%;
    border: 2px solid #d5d4d4;
    outline: none;
    display: block;
    border-radius: 8px;
    margin-bottom: 10px;
    margin-top: 5px;
    padding-left: 10px;
}
#applyPromoBtn{
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.shop-free , .total-price{
    position: relative;
    margin-top: 5px;
}
.shop-free span{
    position: absolute;
    right: 5px; 
    color: #777676;
}
 .total-price #totalPrice{
    position: absolute;
    right: 5px;
     color: #777676;
}
#placeOrderBtn{
    color: #fff;
    border: none;
    width: 100%;
    margin: 15px 0px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
}

/* ==================== End Order-summary====================== */
/* ==================== start Favorites====================== */
.fav{
    text-align: center;
    font-size: 24px;
    color: #000;
    margin-top: 20px;
}
.fa-heart{
color: orangered;
}
.hr-fav{
    width: 50px;
    border: 2px solid orangered;
    margin: 5px auto;
}

#favoritesContainer {
  margin-top: 20px;
  overflow-x: hidden; 
  white-space: nowrap;   
  scroll-behavior: smooth; 
  padding-bottom: 10px;
}
/* ===========card fav=============== */
.card {
  display: inline-block;
  width: 320px;
  background: #f9f9f9;
  border-radius: 15px;
  padding: 15px;
  margin: 0 10px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  position: relative;
  vertical-align: top;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card button {
  border: none;
  background: none;
  position: absolute;
  bottom: 15px;
  right: 15px;
  cursor: pointer;
  font-size: 22px;
  color: orangered;
}
nav ul#user_info li .badge {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: orangered;
    color: #fff;
    text-align: center;
    display: block;
    border-radius: 50%;
    top:-10px;
    right:-10px;
    font-size: 13px;
    display: none;
}

/* =================dot fav=============== */
.indicators {
  margin-top: 15px;
  text-align: center;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: orangered;
}

/* =============counter=================*/

 .quantity_control button {
    border: none;
    background-color: #fff;
    cursor: pointer;
    /* margin-top: 10px; */
    font-size: 20px;

}
.quantity_control button, .quantity_control p{

    font-size: 24px;
    text-align: center;
}
.quantity_control {
    display: flex;
    align-items: center;
    gap: 10px; 
}


/* =========================================================
   RESPONSIVE - CART / ORDER SUMMARY / FAVORITES
========================================================= */
/* =========================================================
   HEADER
========================================================= */

@media (max-width: 768px) {

    .container {
        width: 94%;
    }

    nav {
        width: 100%;
    }

    .header-content {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .header-content .brand {
        font-size: 22px;
        margin-left: 0;
        white-space: nowrap;
    }

    #links {
        margin: 0;
        padding: 0;
    }

    #links li a {
        font-size: 11px;
    }

    nav ul#user_info {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    nav ul#user_info li {
        margin: 0;
    }

    nav ul#user_info li i {
        font-size: 14px;
    }

    #user_info #user {
        font-size: 9px;
        height: auto;
        padding-top: 3px;
    }

    #user_info li span,
    #logout span {
        font-size: 8px;
    }
}


/* =========================================================
   MAIN CART SECTION
========================================================= */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .container {
        width: 94%;
    }

    /* Main section */
    .Add-product {
        gap: 20px;
    }

    .products {
        width: 53%;
        gap: 15px;
    }

    .product_item,
    .fav-card {
        width: 100%;
        height: 230px;
        padding: 12px;
        gap: 12px;
    }

    .product_item_img {
        width: 140px;
        height: 140px;
    }

    .product_item_desc h2 {
        font-size: 16px;
    }

    .product_item_desc p,
    .product_item_desc span {
        font-size: 12px;
    }

    .Order-summary {
        width: 43%;
        margin-right: 10px;
        padding: 12px;
    }

    .Order-summary h2 {
        font-size: 23px;
    }

    .Order-summary p {
        font-size: 17px;
    }

    .input-address label,
    .promo-code label {
        font-size: 15px;
    }

    .input-address input,
    .promo-code input {
        font-size: 14px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* ---------- Main section ---------- */

    .Add-product {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }


    /* ---------- Products ---------- */

    .products {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 10px;
    }

    .product_item,
    .fav-card {
        width: 100%;
        max-width: 500px;
        height: 220px;
        padding: 12px;
        gap: 15px;
    }

    .product_item_img {
        width: 140px;
        height: 140px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .product_item_desc {
        min-width: 0;
    }

    .product_item_desc h2 {
        font-size: 17px;
        line-height: 1.3;
    }

    .product_item_desc p {
        font-size: 13px;
        line-height: 1.4;
    }

    .product_item_desc span {
        font-size: 13px;
    }

    .product_item_action button {
        bottom: 8px;
        right: 8px;
    }


    /* ---------- Order Summary ---------- */

    .Order-summary {
        width: calc(100% - 30px);
        min-height: auto;
        height: auto;
        margin: 10px 15px 30px;
        padding: 15px;
    }

    .Order-summary h2 {
        font-size: 23px;
    }

    .Order-summary p {
        font-size: 16px;
    }

    .input-address label,
    .promo-code label {
        font-size: 14px;
    }

    .input-address input,
    .promo-code input {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    #applyPromoBtn {
        font-size: 14px;
        padding: 9px 18px;
    }

    #placeOrderBtn {
        width: 100%;
        font-size: 15px;
    }


    /* ---------- Favorites ---------- */

    .fav {
        font-size: 22px;
        margin-top: 25px;
    }

    .hr-fav {
        width: 45px;
    }

    #favoritesContainer {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding: 10px 5px 20px;
    }

    .card {
        width: 270px;
        min-width: 270px;
        height: 260px;
        margin: 0 6px;
    }

    .card img {
        height: 160px;
    }
}


/* =========================================================
   IPHONE
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 94%;
    }


    /* ---------- Header ---------- */

    .header-content {
        padding: 5px 0;
        gap: 4px;
    }

    .header-content .brand {
        font-size: 19px;
    }

    #links li a {
        font-size: 9px;
    }

    nav ul#user_info {
        gap: 5px;
    }

    nav ul#user_info li {
        margin: 0;
    }

    nav ul#user_info li i {
        font-size: 12px;
    }

    #user_info #user {
        font-size: 8px;
    }

    #user_info li span,
    #logout span {
        font-size: 7px;
    }


    /* ---------- Product ---------- */

    .products {
        padding: 10px 8px;
    }

    .product_item,
    .fav-card {
        width: 100%;
        height: 190px;
        padding: 10px;
        gap: 10px;
    }

    .product_item_img {
        width: 105px;
        height: 120px;
    }

    .product_item_desc h2 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .product_item_desc p {
        font-size: 11px;
        line-height: 1.3;
    }

    .product_item_desc span {
        font-size: 11px;
    }

    .product_item_action button {
        font-size: 11px;
        padding: 6px 8px;
    }


    /* ---------- Order Summary ---------- */

    .Order-summary {
        width: calc(100% - 20px);
        margin: 10px 10px 30px;
        padding: 12px;
        border-radius: 10px;
    }

    .Order-summary h2 {
        font-size: 20px;
        padding: 5px 2px;
    }

    .Order-summary p {
        font-size: 14px;
        padding-left: 3px;
    }

    .input-address label,
    .promo-code label {
        font-size: 12px;
        margin-top: 12px;
    }

    .input-address input,
    .promo-code input {
        height: 40px;
        font-size: 12px;
    }

    #applyPromoBtn {
        font-size: 12px;
        padding: 8px 15px;
    }

    #placeOrderBtn {
        font-size: 13px;
        padding: 9px;
    }


    /* ---------- Favorites ---------- */

    .fav {
        font-size: 20px;
    }

    #favoritesContainer {
        padding-left: 5px;
        padding-right: 5px;
    }

    .card {
        width: 230px;
        min-width: 230px;
        height: 245px;
        padding: 12px;
    }

    .card img {
        height: 145px;
    }

    .card button {
        font-size: 19px;
        bottom: 10px;
        right: 10px;
    }
}


/* =========================================================
   VERY SMALL IPHONE
========================================================= */

@media (max-width: 375px) {

    .header-content .brand {
        font-size: 17px;
    }

    #links li a {
        font-size: 8px;
    }

    nav ul#user_info li i {
        font-size: 11px;
    }

    #user_info #user {
        font-size: 7px;
    }

    #user_info li span,
    #logout span {
        font-size: 6px;
    }


    /* Product */
    .product_item,
    .fav-card {
        height: 175px;
    }

    .product_item_img {
        width: 90px;
        height: 105px;
    }

    .product_item_desc h2 {
        font-size: 13px;
    }

    .product_item_desc p {
        font-size: 10px;
    }

    .product_item_desc span {
        font-size: 10px;
    }

    .product_item_action button {
        font-size: 10px;
        padding: 5px 7px;
    }


    /* Summary */
    .Order-summary h2 {
        font-size: 19px;
    }

    .Order-summary p {
        font-size: 13px;
    }

    .input-address input,
    .promo-code input {
        height: 38px;
    }


    /* Favorites */
    .card {
        width: 215px;
        min-width: 215px;
    }
}




