/* styles.css */

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #f8f9fa;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.navbar nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #444;
  font-weight: 500;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: #fff;
}
.hero-text {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
}
.hero-image {
  flex: 1;
  min-width: 300px;
  padding: 1rem;
  text-align: center;
}
.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}
.buttons a.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 1rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.buttons a.secondary {
  background: #6c757d;
}
.buttons a.btn:hover {
  background: #0056b3;
}

/* Categories Section */
.categories {
  padding: 3rem 2rem;
  background: #f1f1f1;
}
.categories h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.category-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
}
.category-card:hover {
  transform: translateY(-5px);
}
.category-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.category-card h3 {
  margin-bottom: 0.5rem;
}
.category-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.category-card .btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* Applications Section */
.applications {
  padding: 3rem 2rem;
  background-color: #fff;
}
.applications h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.application-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}
.app-card {
  flex: 1 1 250px;
  background: #f8f9fa;
  padding: 1rem;
  border-left: 4px solid #007bff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background-color: #f8f9fa;
  color: black;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #dee2e6;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-columns h4 {
  color: black;
  margin-bottom: 0.5rem;
}
.footer-columns ul {
  list-style: none;
  padding: 0;
}
.footer-columns ul li {
  margin-bottom: 0.5rem;
}
.footer-columns ul li a {
  color: black;
  text-decoration: none;
}
.footer-columns ul li a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .application-cards {
    flex-direction: column;
    align-items: center;
  }
  .footer-columns {
    flex-direction: column;
  }
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f0f2f5;
}

.login-box {
  background: white;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-box h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-button {
  width: 100%;
  padding: 0.7rem;
  background-color: #2a6ed6;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.login-button:hover {
  background-color: #1e58b2;
}

/* Cart Styles */
.cart-dropdown {
  position: relative;
  display: inline-block;
}

.cart-link {
  position: relative;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white !important;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-link:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-1px);
  color: white !important;
}

.cart-count {
  background: #dc3545;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8em;
  margin-left: 5px;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.cart-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 150px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1;
  margin-top: 5px;
  border: 1px solid #ddd;
}

.cart-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.cart-dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #333;
}

.cart-dropdown:hover .cart-dropdown-content {
  display: block;
}

/* Shipping Options Styling */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.shipping-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  position: relative;
}

.shipping-option:hover {
  border-color: #007bff;
  background: #f8f9ff;
}

.shipping-option.selected {
  border-color: #007bff;
  background: #e7f3ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  transform: scale(1.02);
  font-weight: 600;
}

.shipping-option.selected::before {
  content: '✓ SELECTED';
  position: absolute;
  right: 10px;
  top: 10px;
  background: #28a745;
  color: white;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: bold;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.shipping-option.selected::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  z-index: 5;
}

.shipping-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.shipping-option input[type="radio"] {
  margin-right: 10px;
  pointer-events: none;
  transform: scale(1.3);
  accent-color: #007bff;
}

.shipping-option.selected input[type="radio"] {
  transform: scale(1.5);
}

.shipping-method-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.method-icon {
  font-size: 1.2em;
}

.delivery-time {
  font-size: 0.85em;
  color: #666;
  margin-left: auto;
}

.savings-badge {
  background: #28a745;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  margin-left: 8px;
}

.shipping-cost {
  font-size: 1.1em;
  font-weight: bold;
  color: #007bff;
  margin-top: 5px;
}

.calculation-details {
  font-size: 0.8em;
  color: #666;
  margin-top: 3px;
  line-height: 1.3;
}