/*==================================
  Reset
  =================================*/
  *{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  }
  html{
	scroll-behavior: smooth;
  }
  body{
	font-family: Arial, Helvetica, sans-serif;
	background-color: #f7f8fc;
	color: #1f2937;
	line-height: 1.6;
  }
  img{
	width: 100%;
	display: block;
  }
  button,
  a{
	font: inherit;
  }
  button{
	cursor: pointer;
  }
  a{
	text-decoration: none;
	color: inherit;
  }
  /* ================================
     Container
  ================================*/
  .container{
	width: min(100% - 32px, 1200px);
	margin-inline: auto;
  }

  /* ===============================
    Header
 =================================*/
 .header{
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: #ffffff;
	border-bottom: 1px solid #e5e7eb;
 }
 .header__container{
	min-height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
 }
 /*  Logo  */

 .logo{
	font-size: 24px;
	font-weight: 800;
	color: #4f46e5;
 }

 /*   Navigation   */

 .nav{
	display: none;
 }
 .nav__link{
	font-size: 15px;
	font-weight: 600;
	color: #4b5563;
	transition: color 0.2s ease;
 }
 .nav__link:hover{
	color: #4f46e5;
 }

 /*   Cart link   */

 .cart-link{
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 15px;
	font-weight: 700;
	color: #1f2937;
	transition: color 0.2s ease;
 }
 .cart-link:hover{
	color: #4f46e5;
 }
 .cart-count{
	min-width: 23px;
	height: 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	border-radius: 50%;
	background-color: #4f46e5;
	color: #ffffff;
	font-size: 12px;
 }

 /* ==============================
      HERO
  ==============================*/
  
  .hero{
	padding: 80px 0;
	background: linear-gradient(135deg, #eef2ff, #f8fafc);
  }
  .hero__container{
	display: flex;
	justify-content: center;
  }
  .hero__content{
	max-width: 720px;
	text-align: center;
  }
  .hero__subtitle{
	margin-bottom: 12px;
	color: #4f46e5;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
  }
  .hero__title{
	margin-bottom: 20px;
	font-size: clamp(40px, 8vw, 72px);
	line-height: 1.05;
	font-weight: 800;
	color: #111827;
  }
  .hero__text{
	max-width: 600px;
	margin: 0 auto 30px;
	color: #6b7280;
	font-size: 17px;
  }
  .hero__button{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px;
	border-radius: 10px;
	background-color: #4f46e5;
	color: #ffffff;
	font-weight: 700;
	transition: background-color 0.2s ease,
	transform 0.2s ease;
  }
  .hero__button:hover{
	background-color: #4338ca;
	transform: translateY(-2px);
  }

  /*========================================
       SECTION HEADER
  ========================================*/
  
  .section-header{
	max-width: 650px;
	margin: 0 auto 45px;
	text-align: center;
  }
  .section-header__subtitle{
	margin-bottom: 8px;
	color: #4f46e5;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
  }
  .section-header__title{
	margin-bottom: 12px;
	color: #111827;
	font-size: 34px;
	line-height: 1.2;
  }
  .section-header__text{
	color: #6b7280;
  }
  
  /*=================================
   PRODUCTS
 ==================================*/

 .products{
	padding: 80px 0;
 }
 .products__grid{
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
 }

 /*==============================
  PRODUCT CARD
 =============================*/
 
 .product-cart{
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow:  0 5px 20px rgba(15, 23, 42, 0.05);
	transition: transform 0.25s ease,
	box=shadow 0.25s ease;
}
.product-cart:hover{
	transform: translateY(-6px);
	box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}
/*  Product image  */

.product-cart__image{
	height: 240px;
	overflow: hidden;
	background-color: #f1f5f9;
}
.product-cart__image img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.product-cart:hover .product-cart__image img{
	transform: scale(1.05);
}

/* Product content  */

.product-cart__content{
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 22px;
}
.product-cart__title{
	margin-bottom: 8px;
	color: #111827;
	font-size: 20px;
	line-height: 1.3;
}
.product-cart__description{
	margin-bottom: 22px;
	color: #6b7280;
	font-size: 14px;
}

/*  Product bottom  */

.product-cart__bottom{
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.product-cart__price{
	color: #111827;
	font-size: 22px;
	font-weight: 800;
}

/*   Add to Cart  */

.product-cart__button{
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background-color: #4f46e5;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	transition: 
	    background-color 0.2s ease,
		 transform 0.2s ease;
}
.product-cart__button:hover{
	background-color: #4338ca;
	transform: translateY(-2px);
}
.product-cart__button:active{
	transform: translateY(0);
}

/* ===================================
   CART
 ================================== */

 .cart{
	padding: 80px 0;
	background-color: #eef2ff;
 }
 .cart__content{
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
 }

 /*  Cart items  */

 .cart__items{
	display: flex;
	flex-direction: column;
	gap: 16px;
 }
 .cart-item{
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background-color: #ffffff;
}
.cart-item__info{
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cart-item__title{
	font-size: 17px;
	color: #111827;
}
.cart-item__price{
	font-weight: 700;
	color: #4f46e5;
}
.cart-item__actions{
	display: flex;
	align-items: center;
	gap: 8px;
}
.cart-item__actions button{
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 6px;
	background-color: #ffffff;
	color: #374151;
	font-weight: 700;
	transition: 
	        background-color 0.2s ease,
			  color 0.2s ease;
}
.cart-item__actions button:hover{
	background-color: #4f46e5;
	color: #ffffff;
}
.cart-item__actions span{
	min-width: 30px;
	text-align: center;
	font-weight: 700;
}

 /*  Cart summary  */

 .cart__summary{
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
 }
 .cart__summary-row{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 16px;

 }
 .cart__summary-row:last-of-type{
	margin-bottom: 20px;
 }
 .cart__summary-row:last-of-type span:last-child{
 font-size: 24px;
 font-weight: 800;
 color: #111827;
 }


 /* Clear button  */
 .cart__clear{
	width: 100%;
	min-height: 48px;
	border: 1px solid #ef4444;
	border-radius: 8px;
	background-color: transparent;
	color: #ef4444;
	font-weight: 700;
	transition: 
	     background-color 0.2s ease,
		  color 0.2s ease;
 }
 .cart__clear:hover{
	background-color: #ef4444;
	color: #ffffff;
 }
 .cart__clear:disabled{
	opacity: 0.5;
	cursor: not-allowed;
 }
 .cart__clear:disabled:hover{
	background-color: transparent;
	color: #ef4444;
 }

  /*   EMPTY CART   */
 .cart-empty{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 40px 20px;
	text-align: center;
	border: 2px dashed #e5e7eb;
	border-radius: 16px;
	background-color: #f9fafb;
 }
 .cart-empty__icon{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	margin-bottom: 20px;
	border-radius: 50%;
	background-color: #eef2ff;
	font-size: 32px;
 }
 .cart-empty__title{
	margin-bottom: 8px;
	font-size: 22px;
	color: #111827;
 }
 .cart-empty__text{
	color: #6b7280;
 }
 

 /* ====================================
   FOOTER
 ====================================*/

 .footer{
	padding: 30px 0;
	background-color: #111827;
 }
 .footer__text{
	text-align: center;
	color: #9ca3af;
	font-size: 14px;
 }

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

 @media(min-width: 600px){
	.products__grid{
		grid-template-columns: repeat(2, 1fr);
	}
	.cart__content{
		padding: 32px;
	}
	.cart-item{
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	.cart-item__actions{
		flex-wrap: nowrap;
	}
 }

 /*===================================
   DESKTOP
 ==================================*/

 @media(min-width: 900px){
	.header__container{
		min-height: 80px;
	}
	.nav{
		display: flex;
		align-items: center;
		gap: 30px;
		margin-left: auto;
	}
	.cart-link{
		margin-left: 10px;
	}
	.hero{
		padding: 120px 0;
	}
	.products{
		padding: 100px 0;
	}
	.products__grid{
		grid-template-columns: repeat(3,1fr);
	}
	.cart{
		padding: 100px 0;
	}
 }