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

/* Body styling */
body {
  font-family: "Arial", sans-serif;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

/* Heading */
.heading {
  text-align: center;
  margin-top: 50px;
  font-family: "Dancing Script", cursive;
  color: #9c5a5a;
  font-size: 40px;
  font-weight: bold;
  animation: fadeIn 1s ease-in;
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Main container styling */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background-image: url("rose.jpg");
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar custom styling */
.navbar-custom {
  background-color: rgba(120, 50, 50, 0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-item .nav-link {
  font-family: "Arial", sans-serif;
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  padding: 10px 15px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-item .nav-link:hover {
  color: #ffffff;
  background-color: rgba(120, 50, 50, 0.7);
  border-radius: 5px;
}

.navbar-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Navigation Tabs */
.nav-tabs {
  margin-bottom: 30px;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  font-weight: 600;
  color: #9c5a5a;
  background-color: #fff;
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.nav-link:hover {
  background-color: #f0f0f0;
}

.nav-link.active {
  background-color: #9c5a5a;
  color: white;
}

/* Login Form Section */
.login-form,
.checkout-form {
  background-color: rgb(254, 254, 254, 0.5);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.form-label {
  font-size: 16px;
  color: #6c6c6c;
  margin-bottom: 8px;
}

.form-control {
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 12px;
  font-size: 16px;
  width: 100%;
  background-color: #f9f9f9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: #9c5a5a;
  box-shadow: 0 0 8px rgba(156, 90, 90, 0.3);
}

/* Button Styling */
.login-button {
  background-color: #9c5a5a;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease-in-out;
}

.login-button:hover {
  background-color: #7a3e3e;
}

/* Google Button */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.google-button:hover {
  background-color: #f5f5f5;
}

.google-button img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 10px;
  color: #777;
  font-size: 14px;
}

/* Register Section */
.register-section {
  text-align: center;
  margin-top: 20px;
}

.register-section a {
  color: #9c5a5a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.register-section a:hover {
  color: #7a3e3e;
  text-decoration: underline;
}

/* Alert Messages */
.alert {
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #721c24;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #155724;
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.2);
  border: 1px solid rgba(23, 162, 184, 0.3);
  color: #0c5460;
}

/* Delivery Address Section */
.delivery-address {
  background-color: rgb(254, 254, 254, 0.5);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.delivery-address h3 {
  color: #9c5a5a;
  font-size: 24px;
  margin-bottom: 20px;
}

/* Address Type Selector */
.address-type-selector {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

.address-type-selector label {
  font-size: 18px;
  color: #9c5a5a;
  cursor: pointer;
  transition: color 0.3s ease;
}

.address-type-selector input[type="radio"] {
  margin-right: 10px;
}

.address-type-selector label:hover {
  color: #7a3e3e;
}

/* Cart Items */
.cart-empty {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* tab-content styling */
.tab-content {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .heading {
    font-size: 32px;
  }

  .container {
    padding: 20px;
    margin: 20px 10px;
  }

  .login-form,
  .checkout-form {
    padding: 15px;
  }

  .form-control,
  .login-button,
  .google-button {
    font-size: 15px;
  }

  .address-type-selector {
    flex-direction: column;
    gap: 10px;
  }
}

