/* Variables CSS */
:root {
  --primary-color: #667eea;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-color: #f6ad55;
  --orange-color: #ff7846;
  --red-color: #f56565;
  --blue-color: #4299e1;
  --teal-color: #38b2ac;
  --purple-color: #764ba2;
  --text-color: #2d3748;
  --light-gray: #f7fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #718096;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --border-radius-sm: 10px;
  --border-radius-md: 15px;
  --border-radius-lg: 25px;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2em;
  color: var(--primary-color);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  color: var(--primary-color);
}

.cart-count {
  background-color: var(--orange-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8em;
  margin-left: 5px;
}

/* Header Improvements */
.btn-history {
  background-color: var(--teal-color);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.9em;
}

.btn-history:hover {
  background-color: #48b090;
}

/* Auth Links Styles */
.auth-links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.9em;
}

.auth-links span {
  color: var(--text-color);
  font-weight: 500;
}

.btn-login,
.btn-signup,
.btn-admin,
.btn-logout {
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-login {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-login:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-signup {
  background-color: var(--primary-color);
  color: white;
}

.btn-signup:hover {
  background-color: var(--secondary-color);
}

.btn-admin {
  background-color: var(--secondary-color);
  color: white;
}

.btn-admin:hover {
  background-color: #e67e22;
}

.btn-logout {
  background-color: #e74c3c;
  color: white;
}

.btn-logout:hover {
  background-color: #c0392b;
}

/* Banner Section */
.banner {
  background: var(--primary-gradient);
  color: white;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.banner-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.banner-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.banner-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--orange-color);
  color: white;
}

.btn-primary:hover {
  background-color: #e66a3c;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

.banner-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.banner-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.2);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Best Sellers Section */
.best-sellers {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.best-sellers h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 50px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  transition: var(--transition);
  position: relative;
  border: 1px solid #f0f4f8;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-tumb {
  display: block;
  overflow: hidden;
  height: 200px;
  position: relative;
}

.product-tumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-tumb img {
  transform: scale(1.1);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 86, 226, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .course-overlay {
  opacity: 1;
}

.btn-overlay {
  background-color: white;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-overlay:hover {
  background-color: var(--orange-color);
  color: white;
}

.product-details {
  padding: 25px;
}

.product-catagory {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.product-details h4 {
  margin: 10px 0;
  font-size: 1.3rem;
  color: var(--text-color);
}

.product-details h4 a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.product-details h4 a:hover {
  color: var(--primary-color);
}

.product-details p {
  color: var(--dark-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-bottom-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-to-cart-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.add-to-cart-btn:hover {
  background-color: var(--purple-color);
  transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Sort Options */
.sort-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.sort-options span {
  font-weight: 600;
  color: var(--text-color);
}

.sort-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.sort-btn:hover,
.sort-btn.active {
  background-color: var(--primary-color);
  color: white;
}

/* View More */
.view-more {
  text-align: center;
}

.view-more a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.view-more a:hover {
  color: var(--purple-color);
}

/* Courses Section */
.courses {
  padding: 80px 0;
  background-color: white;
}

.courses h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.course-card {
  background-color: var(--light-gray);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 3px solid transparent;
}

.course-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(138, 86, 226, 0.2);
}

.level-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.neon-glow {
  box-shadow: 0 0 20px currentColor;
}

.course-icon {
  font-size: 3rem;
  margin: 20px 0;
  color: var(--primary-color);
}

.course-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
}

.course-subtitle {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
  text-align: left;
  margin: 20px 0;
}

.course-features li {
  padding: 5px 0;
  color: var(--dark-gray);
  position: relative;
  padding-left: 20px;
}

.course-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  text-decoration: line-through;
  color: var(--dark-gray);
  font-size: 1rem;
  margin-left: 10px;
}

.discount {
  background-color: var(--orange-color);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-left: 10px;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 30px;
  line-height: 1.7;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  width: 50px;
  text-align: center;
}

.feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-color);
}

.feature-item p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Promo Box */
.promo-box {
  background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
  color: white;
  padding: 80px 0;
  text-align: center;
}

.promo-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--white);
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.contact-card {
  background-color: var(--light-gray);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.contact-card:hover {
  transform: translateY(-10px);
  background-color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background-color: var(--orange-color);
  transform: scale(1.1) rotate(10deg);
}

.contact-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--dark-gray);
  margin-bottom: 25px;
  font-size: 1rem;
}

.btn-contact {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

.btn-contact:hover {
  background-color: var(--orange-color);
  color: white;
  transform: translateY(-2px);
}

.status-badge {
  color: #27ae60;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Footer */
.footer {
  background-color: #2c3e50; /* Darker shade for better contrast */
  color: white;
  padding: 60px 0 20px;
  border-top: 5px solid var(--primary-color); /* Accent border */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--secondary-color); /* Highlight section titles */
}

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

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

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--orange-color); /* Change hover color */
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--orange-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slightly thicker border */
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7); /* Slightly more visible */
}

/* Cart Section Improvements */
.cart-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.cart-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cart-items {
  border-right: 1px solid #eee;
  padding-right: 30px;
}

.cart-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  font-weight: 600;
  color: var(--dark-gray);
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.cart-header-product {
  text-align: left;
}
.cart-header-price {
  text-align: right;
}
.cart-header-total {
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 5px;
}

.cart-item-details p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: right;
}

.cart-item-actions {
  text-align: center;
}

.remove-item {
  color: var(--red-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.remove-item:hover {
  color: #c0392b;
}

.cart-summary {
  padding-left: 30px;
}

.cart-summary h2 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-color);
  font-weight: 600;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--dark-gray);
}

.summary-row.discount span:last-child {
  color: var(--orange-color);
  font-weight: 600;
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 10px;
}

.promo-code {
  display: flex;
  margin: 25px 0;
  gap: 10px;
}

.promo-code input {
  flex-grow: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
}

.promo-code button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.promo-code button:hover {
  background-color: var(--purple-color);
}

.promo-message {
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}

.promo-message.success {
  background-color: #e6ffe6;
  color: #28a745;
  border: 1px solid #28a745;
}

.promo-message.error {
  background-color: #ffe6e6;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  margin-top: 30px;
  border-radius: var(--border-radius-sm);
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.continue-shopping:hover {
  color: var(--purple-color);
}

.recommended-courses {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.recommended-courses h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

/* Checkout Section Improvements */
.checkout {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.checkout-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: var(--primary-color);
  font-weight: 700;
}

.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.checkout-form {
  padding-right: 30px;
  border-right: 1px solid #eee;
}

.checkout-section {
  margin-bottom: 40px;
}

.checkout-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
}

.payment-method input[type="radio"] {
  display: none;
}

.payment-method .radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.payment-method input[type="radio"]:checked + .radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.payment-label i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.credit-card-form {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: var(--border-radius-sm);
  background-color: #fdfdfd;
  display: none; /* Hidden by default */
}

.order-summary {
  padding-left: 30px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.summary-header h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  font-weight: 600;
}

.summary-header .items-count {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  padding: 5px 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-items {
  /* Reusing cart-items from cart.css for consistency */
  margin-bottom: 25px;
}

.cart-item {
  /* Reusing cart-item from cart.css for consistency */
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  flex-grow: 1;
}

.item-details h3 {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 3px;
}

.item-details p {
  font-size: 0.85rem;
  color: var(--dark-gray);
}

.item-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  flex-shrink: 0;
}

.summary-totals {
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1rem;
  color: var(--dark-gray);
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 10px;
}

.btn-checkout {
  display: block;
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 30px;
}

.btn-checkout:hover {
  background-color: var(--purple-color);
  transform: translateY(-2px);
}

.secure-checkout {
  text-align: center;
  margin-top: 20px;
  color: var(--dark-gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.secure-checkout i {
  color: var(--teal-color);
}

.payment-icons {
  text-align: center;
  margin-top: 20px;
  font-size: 2rem;
  color: var(--dark-gray);
}

.payment-icons i {
  margin: 0 5px;
}

.back-to-shopping {
  text-align: center;
  margin-top: 40px;
}

.back-to-shopping a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-to-shopping a:hover {
  color: var(--purple-color);
}

/* View All Courses Section */
.view-all-courses {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 80px 0;
  text-align: center;
}

.view-all-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

.view-all-content p {
  font-size: 1.2rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background-color: var(--purple-color);
}

/* Active navigation link */
.nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* All Courses Page Specific Styles */
.all-courses-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.all-courses-section h1 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  font-weight: 700;
}

.level-section {
  margin-bottom: 60px;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.level-section h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color);
}

.level-section.a1 h2 {
  border-color: var(--teal-color);
  color: var(--teal-color);
}
.level-section.a2 h2 {
  border-color: var(--blue-color);
  color: var(--blue-color);
}
.level-section.b1 h2 {
  border-color: var(--orange-color);
  color: var(--orange-color);
}
.level-section.b2 h2 {
  border-color: var(--red-color);
  color: var(--red-color);
}
.level-section.c1 h2 {
  border-color: var(--purple-color);
  color: var(--purple-color);
}
.level-section.mixed h2 {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.all-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; /* Reduced gap */
}

.all-course-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.all-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.all-course-tumb {
  display: block;
  overflow: hidden;
  height: 140px; /* Reduced height */
  position: relative;
}

.all-course-tumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.all-course-card:hover .all-course-tumb img {
  transform: scale(1.1);
}

.all-course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(138, 86, 226, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  gap: 10px;
}

.all-course-card:hover .all-course-overlay {
  opacity: 1;
}

.btn-overlay-view,
.btn-overlay-add {
  background-color: white;
  color: var(--primary-color);
  padding: 10px 20px; /* Reduced padding */
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-overlay-view:hover,
.btn-overlay-add:hover {
  background-color: var(--orange-color);
  color: white;
}

.all-course-details {
  padding: 18px; /* Reduced padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.all-course-catagory {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.all-course-details h4 {
  margin: 5px 0 10px;
  font-size: 1.15rem; /* Slightly smaller */
  color: var(--text-color);
  line-height: 1.3;
}

.all-course-details h4 a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.all-course-details h4 a:hover {
  color: var(--primary-color);
}

.all-course-details p {
  color: var(--dark-gray);
  font-size: 0.9rem; /* Slightly smaller */
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.all-course-bottom-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Push to bottom */
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.all-course-price {
  font-size: 1.3rem; /* Slightly smaller */
  font-weight: 700;
  color: var(--primary-color);
}

.all-course-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.all-course-rating .stars i {
  color: var(--secondary-color);
}

.all-course-rating span {
  color: var(--dark-gray);
}

.all-add-to-cart-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px; /* Reduced padding */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}

.all-add-to-cart-btn:hover {
  background-color: var(--purple-color);
  transform: translateY(-2px);
}

.all-add-to-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-container,
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .cart-items,
  .checkout-form {
    border-right: none;
    padding-right: 0;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
  }
  .cart-summary,
  .order-summary {
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .banner-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-stats {
    justify-content: center;
  }

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

  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sort-options {
    flex-wrap: wrap;
    gap: 10px;
  }

  .banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .all-courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .header .container {
    flex-direction: column;
    gap: 20px;
  }

  .nav ul {
    gap: 15px;
  }

  .banner {
    padding: 40px 0;
  }

  .banner-text h1 {
    font-size: 1.5rem;
  }

  .promo-title {
    font-size: 2rem;
  }

  .courses h2,
  .best-sellers h2,
  .cart-title,
  .checkout-title,
  .all-courses-section h1 {
    font-size: 2rem;
  }

  .level-section h2 {
    font-size: 1.8rem;
  }

  .all-courses-grid {
    grid-template-columns: 1fr;
  }
}
