body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: white;
  color: #333;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.head {
  background-color: black;
}

.cart-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}
.cart-items {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.item-info {
  flex: 1;
}
.item-info h3 {
  margin: 0 0 5px 0;
}
.item-price {
  color: #e74c3c;
  font-weight: bold;
}
.item-qty {
  margin: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-qty input {
  width: 50px;
  padding: 5px;
}
.remove-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}
.remove-btn:hover {
  background: #c0392b;
}
.cart-summary {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  margin-left: auto;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.summary-row.total {
  border-top: 2px solid #333;
  padding-top: 10px;
  font-weight: bold;
  font-size: 18px;
}
.checkout-btn {
  width: 100%;
  padding: 12px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
}
.checkout-btn:hover {
  background: #229954;
}
.empty-cart {
  text-align: center;
  padding: 40px;
  color: #777;
}

.checkout-display{
  display: flex;

  justify-content: space-around;
}

.checkout-pro {
  display: flex;
  border-radius: 20px;
  border: 1px solid rgb(232, 231, 231);
}

.checkout-pro img {
  width: 200px;
}

.continue-shopping {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}
.continue-shopping:hover {
  background: #2980b9;
}

.logo {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

header {
  padding: 10px 20px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

nav img {
  height: 40px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: underline;
}

.hero h1 {
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin: 20px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.nav-link:hover {
  text-decoration: underline;
}

.hero-button {
  background-color: red;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.hero-button:hover {
  background-color: #004999;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 60px;
  margin: 20px 20px;
  max-width: 1300px;
  padding: 0 16px;
}

.about {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  padding: 40px 20px;
}

.about div {
  flex: 1 1 300px;
  width: 100%;
}

@media (max-width: 900px) {
  nav {
    justify-content: center;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 10px 12px 0 0;
  }

  .hero {
    padding: 30px 15px;
  }
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    padding: 24px 12px;
  }

  .about {
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
  }

  .products {
    flex-direction: column;
    align-items: center;
    margin: 20px 10px;
  }

  .pro {
    width: 100%;
    max-width: 340px;
    position: relative;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-section {
    width: 100%;
    max-width: 100%;
  }

  .modal-content {
    width: calc(100% - 40px);
    margin: 20% auto;
  }
}

@media (max-width: 500px) {
  header {
    padding: 10px 15px;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 8px 10px 0 0;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-button {
    width: 100%;
    padding: 14px;
  }

  .footer-content {
    gap: 20px;
  }
}

.pro {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pro img {
  width: 100%;
  border-radius: 5px;
}

.pro p {
  margin: 10px 0;
}

.pro a {
  display: inline-block;
  margin-top: 10px;
  color: #0066cc;
  text-decoration: none;
}

.pro a:hover {
  text-decoration: underline;
}

.pro h3 {
  font-size: 18px;
  margin: 10px 0 5px 0;
  color: #333;
}

.pro .description {
  font-size: 14px;
  color: #666;
  margin: 5px 0 10px 0;
  line-height: 1.4;
}

.pro .price {
  font-size: 16px;
  margin: 10px 0;
}

.pro .add-to-cart {
  display: inline-block;
  background-color: black;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.x {
  background-color: white;
}

.pro .add-to-cart:hover {
  background-color: #777676;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s;
  text-decoration: none;
  animation: cart-animation 0.9s infinite alternate-reverse;
}

@keyframes cart-animation {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.cart-icon {
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.cart-saved {
  display: none;
  width: 120px;
  margin: 0 auto;
  color: greenyellow;
  padding: 2px;
  position: absolute;
  top: 62%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* .cart-count {
  background: red;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 14px;
  margin-left: 5px;
} */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.modal-header {
  font-size: 20px;
  margin-bottom: 15px;
}

.modal-body {
  min-height: 100px;
}

.modal-footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-checkout {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-checkout:hover {
  background: #004999;
}

footer {
  background: #000;
  color: #fff;
  padding: 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  width: 200px;
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 5px;
}

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

footer a:hover {
  text-decoration: underline;
}

.register-section {
  min-height: calc(100vh - 80px);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff5ff;
}

.register-box {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.register-info {
  padding: 56px 44px;
  background: white;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.register-info h1 {
  margin: 0 0 20px;
  font-size: 2.4rem;
  line-height: 1.05;
}

.register-info p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 28px;
  max-width: 360px;
}

.register-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.register-info ul li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.register-form {
  padding: 56px 44px;
}

.register-form h2 {
  margin: 0 0 24px;
  font-size: 2rem;
  color: #111827;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #374151;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-group input:focus {
  outline: none;
  border-color: black;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.btn-submit {
  width: 100%;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  background: black;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.form-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #6b7280;
}

.form-note a {
  color: #2563eb;
  text-decoration: none;
}

.form-note a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .register-box {
    grid-template-columns: 1fr;
  }

  .register-info,
  .register-form {
    padding: 40px 28px;
  }
}

.login-section {
  min-height: calc(100vh - 80px);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4ff;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.login-form h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: #111827;
}

.login-subtitle {
  margin: 0 0 28px;
  color: #6b7280;
}

.login-box .form-group {
  margin-bottom: 16px;
}

.login-box .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #f8fafc;
  color: #111827;
}

.login-box .form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-box .btn-submit {
  width: 100%;
}

.login-box .form-note {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .login-box {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .register-info h1 {
    font-size: 2rem;
  }
}

.faq {
  background-color: #f8f8f8;
  padding: 40px 20px;
}

.faq-content {
  max-width: 1000px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: 24px;
  color: #222;
}

.faq-item {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.4s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}
