body {
  padding-top: 100px;
}

nav{
	top: 0;
	z-index: 1000px;
}

.cart-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
        cursor: pointer;
        background: #fff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        z-index: 1000;
      }
      
      .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: red;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
      }
      
      .cart-container {
        position: fixed;
        top: 0;
        right: -400px;
        width: 350px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 20px;
        overflow-y: auto;
      }
      
      .cart-container.active {
        right: 0;
      }
      
      .cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
      }
      
      .close-cart {
        cursor: pointer;
        font-size: 20px;
      }
      
      .cart-items {
        margin-bottom: 20px;
      }
      
      .cart-item {
        display: flex;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
      }
      
      .cart-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        margin-right: 15px;
      }
      
      .cart-item-details {
        flex-grow: 1;
      }
      
      .cart-item-name {
        font-weight: bold;
        margin-bottom: 5px;
      }
      
      .cart-item-price {
        color: #555;
      }
      
      .cart-item-quantity {
        display: flex;
        align-items: center;
        margin-top: 5px;
      }
      
      .quantity-btn {
        background: #eee;
        border: none;
        width: 25px;
        height: 25px;
        cursor: pointer;
      }
      
      .quantity-value {
        margin: 0 10px;
      }
      
      .remove-item {
        color: red;
        cursor: pointer;
        margin-left: 10px;
      }
      
      .cart-summary {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
      }
      
      .summary-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
      }
      
      .cart-total {
        font-weight: bold;
        font-size: 18px;
      }
      
      .cart-buttons {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
      }
      
      .checkout-btn {
        background: red;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
        flex-grow: 1;
        margin-right: 10px;
      }
      
      .clear-cart-btn {
        background: #eee;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        font-weight: bold;
      }
      
      .empty-cart-message {
        text-align: center;
        color: #888;
        margin: 30px 0;
      }

.go_back{
	position: relative;
	padding: 15px 30px;
	color: red;
	text-decoration: none;
	letter-spacing: 2px;
	transition: letter-spacing 0.3s ease;
	display: flex;
	margin-top: 10px;
	max-width: 70px;
}
.go_back:hover{
letter-spacing: 10px;
}
.products-container{
	display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px;
		flex-direction: row;
		
}

.product-card {
		width: 300px;
		height: 400px;
		perspective: 1000px;
		margin: 20px;

}

.card-inner {
		position: relative;
		width: 100%;
		height: 100%;
		transition: transform 0.8s;
		transform-style: preserve-3d;
		cursor: default;
		border: thick;
}

.product-card:hover .card-inner {
		transform: rotateY(180deg);
}

.card-front, .card-back {
		position: absolute;
		width: 100%;
		height: 100%;
		backface-visibility: hidden;
		border-radius: 16px;
		padding: 20px;
		display: flex;
		flex-direction: column;
		background-color: #EBE8E2;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
		 }



		     .card-back {
        transform: rotateY(180deg);
        justify-content: center;
      }


			product-card:hover .card-front,
.product-card:hover .card-back {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);   }

.product-image {
		width: 100%;
		height: 200px;
		object-fit: contain;
		margin-bottom: 15px;
}

.product-name {
		font-size: 1.2rem;
		font-weight: 600;
		margin-bottom: 10px;
		color: #333;
}

.product-price {
		font-size: 1.3rem;
		font-weight: 700;
		color:red;
		margin-bottom: 15px;
}

.rating {
		margin-top: auto;
		display: flex;
		align-items: center;
}


.rating-text {
		color: #666;
		font-size: 0.9rem;
		margin-left: 10px;
		font-weight: 600;
}

.buy-button {
		padding: 10px 20px;
		background-color: red;
		color: white;
		border: none;
		border-radius: 25px;
		font-weight: 600;
		cursor: pointer;
		transition: background-color 0.3s;
		margin-top: auto;
		transition: transform 0.3s ease;
}

.buy-button:hover {
		background-color: darkred;
		box-shadow: rgb(0, 0, 0, 0.05);
		transform: scale(1.1);
}
.buy-button:active
{
box-shadow: rgb(0, 0, 0, 0.4);

}
.product-description {
		font-size: 0.95rem;
		line-height: 1.5;
		color: #555;
		margin-bottom: 20px;
		overflow-y: auto;
}

.product-details {
		margin-top: 15px;
}

.detail-item {
		display: flex;
		margin-bottom: 8px;
}

.detail-label {
		font-weight: 600;
		width: 100px;
		color: #666;
}

.detail-value {
		color: #333;
}

@media (max-width: 768px) {
		.product-card {
				width: 280px;
				height: 380px;
		}

		.product-name {
				font-size: 1.1rem;
		}
}			


.checkout-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        z-index: 2000;
        justify-content: center;
        align-items: center;
				overflow: hidden;
      }

      .checkout-modal.active {
        display: flex;
      }

      .checkoutLayout {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 20px;
        background-color: white;
        border-radius: 10px;
        width: 90vw;
        max-width: 1000px;
        max-height: 90vh;
        overflow-y: auto;
      }

      .checkoutLayout .right {
        background-color: red;
        border-radius: 20px;
        padding: 40px;
        color: #fff;
      }

      .checkoutLayout .right .form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        border-bottom: 1px solid darkred;
        padding-bottom: 20px;
      }

      .checkoutLayout .form h1,
      .checkoutLayout .form .group:nth-child(-n+3) {
        grid-column-start: 1;
        grid-column-end: 3;
      }

      .checkoutLayout .form input,
      .checkoutLayout .form select {
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
        border-radius: 20px;
        margin-top: 10px;
        border: none;
        background-color: darkred;
        color: #fff;
      }

      .checkoutLayout .right .return .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
      }

      .checkoutLayout .right .return .row div:nth-child(2) {
        font-weight: bold;
        font-size: x-large;
      }

      .returnCart {
        background-color: #f8f9fa;
        border-radius: 20px;
        padding: 20px;
      }

      .returnCart h1 {
        margin-bottom: 20px;
        color: #333;
      }

      .returnCart .list {
        max-height: 300px;
        overflow-y: auto;
      }

      .returnCart .item {
        display: grid;
        grid-template-columns: 60px 1fr auto auto;
        gap: 10px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ddd;
        align-items: center;
      }

      .returnCart .item img {
        width: 50px;
        height: 50px;
        object-fit: cover;
      }

      .returnCart .info .name {
        font-weight: bold;
        margin-bottom: 5px;
      }

      .returnCart .info .price {
        color: #666;
        font-size: 14px;
      }

      .returnCart .quantity {
        font-weight: bold;
      }

      .returnCart .returnPrice {
        font-weight: bold;
        color: red;
      }

      .returnCart .total {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        font-weight: bold;
        font-size: 18px;
      }

      .close-modal {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: white;
        cursor: pointer;
      }

      .submit-order {
        background-color: darkred;
        color: white;
        border: none;
        padding: 12px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        margin-top: 20px;
        width: 100%;
      }
