* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #ffcc00;
  color: white;
  padding: 1rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: #333;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product {
  background: white;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.product h3 {
  font-size: 1.2em;
}
.products-loading{
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.product p {
  font-size: 0.9em;
  color: #555;
}

.add-cart-btn, 
.view-details {
  display: inline-block; 
  width: 48%;  
  padding: 10px 15px;
  font-size: 14px;
  text-align: center;
  background-color: #af1818;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.add-cart-btn:hover, 
.view-details:hover {
  background-color: #991b1b; 
}
.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px; 
}

.btn {
  display: inline-block;
  /* margin-top: 10px; */
  padding: 10px 15px;
  background: #007BFF;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.btn:hover {
  background: #0056b3;
}

section label {
  font-weight: bold;
  margin-right: 10px;
}

select {
  padding: 5px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.confirmation-message {
  text-align: center;
  font-size: 1.5em;
  color: green;
  margin-top: 20px;
}
.product-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-image {
  flex: 1;
  text-align: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.product-info {
  flex: 1;
  text-align: left;
}

.product-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}

.product-info p {
  font-size: 1.1rem;
  color: #555;
  margin: 5px 0;
}

.product-info strong {
  color: #111;
}

.strikethrough {
  text-decoration: line-through;
  color: red;
}

button#add-to-cart {
  color: white;
  padding: 10px 15px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  /* margin-top: 15px; */
}



#add-to-cart {
  /* margin-top: 10px; */
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #af1818;
  color: #ffff;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#add-to-cart:hover {
  background-color: #991b1b;
}

.home-btn{
  display: block;
  text-align: center;
}
.strick-off{
  text-decoration: line-through;
}
.display-none{
  display: none;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item img {
  width: 80px;
  height: auto;
  border-radius: 5px;
  margin-right: 15px;
}

.cart-item h3 {
  font-size: 16px;
  color: #333;
  flex: 1;
  margin: 0;
}

.cart-item p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

.remove-btn {
  background: #e74c3c;
  margin-left: 10px;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.remove-btn:hover {
  background: #c0392b;
}

#total-price {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  margin-top: 15px;
  text-align: right;
  margin-right: 30px;
}

.shipping-details {
  margin-top: 20px;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 8px;
}

.shipping-details input,
.shipping-details select {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.complete-purchase {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  border-radius: 5px;
  transition: 0.3s;
}

.complete-purchase:hover {
  background: #219150;
}
.checkout-container{
  display: flex;
  justify-content: space-between;
}
.form-section{
  width: 80%;
  margin-left: 20px;
}

.checkout-main {
  max-width: 80%;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-h {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

#cart-items {
  margin-bottom: 20px;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#checkout-form label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

#checkout-form input,
#checkout-form textarea,
#checkout-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background: #f9f9f9;
  transition: 0.3s;
}

#checkout-form textarea {
  resize: vertical;
  min-height: 80px;
}

#checkout-form input:focus,
#checkout-form textarea:focus,
#checkout-form select:focus {
  border-color: #3498db;
  background: #fff;
  outline: none;
}

#checkout-button {
  background: #af1818;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 5px;
  width: 100%;
  transition: 0.3s;
}

#checkout-button:hover {
  background: #991b1b;
}

.confirmation-main {
  max-width: 60%;
  margin: 50px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.order-item{
  display: flex;
  margin: 8px 0px;
  justify-content: space-between;
}
.order-total{
  text-align: right;
}

#confirmation-message h2 {
  font-size: 26px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

#confirmation-message p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

#order-summary {
  padding: 15px;
  border-radius: 5px;
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  color: #333;
  text-align: left;
  margin-bottom: 20px;
}

.back-to-home {
  display: inline-block;
  background: #af1818;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.back-to-home:hover {
  background: #991b1b;
}

footer{
  height: 30px;
  margin: 40px 0px;
  text-align: center;
}

footer .links{
  display: flex;
  justify-content: space-evenly;
}

footer a{
  text-decoration: none;
  color: #333;
}

footer a:hover{
  text-decoration: underline;
  color: #333;
}

.terms-main, .policy-main {
  max-width: 80%;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
  line-height: 1.6;
}

.terms-main section, .policy-main section {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.terms-main h2, .policy-main h2 {
  font-size: 22px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.terms-main p, .policy-main p {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.terms-main a, .policy-main a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

.terms-main a:hover, .policy-main a:hover {
  text-decoration: underline;
}

.category-sec{
  margin: 25px;
}

.product-btns{
  margin-top: 15px;
  display: flex;
  justify-content: space-evenly;
}

@media (max-width: 768px) {
  nav ul {
      flex-direction: column;
  }

  .product-grid {
      grid-template-columns: 1fr;
  }
}
