/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: #2980b9;
}

ul {
  list-style: none;
}

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

/* Add semi-transparent background to content sections for better readability */
header, footer, .hero, .categories, .featured-products, .newsletter, 
.products-section, .auth-section, .cart-section, .search-results, .wishlist-section,
.checkout-section, .account-section, .product-detail {
  background-color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn-secondary:hover {
  background-color: #1a252f;
}

.btn-success {
  background-color: var(--success-color);
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-danger {
  background-color: var(--danger-color);
}

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

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

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

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 18px;
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 50px;
  margin-right: 10px;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--secondary-color);
}

.logo-text span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions a {
  margin-left: 15px;
}

.welcome-message {
  margin-right: 15px;
  font-weight: 500;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--secondary-color);
  cursor: pointer;
}

/* Search Bar */
.search-container {
  display: flex;
  margin-left: 20px;
}

.search-form {
  display: flex;
  align-items: center;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  width: 200px;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: #2980b9;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(44, 62, 80, 0.5));
  color: white;
  text-align: center;
  padding: 100px 0;
  margin-top: 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Categories Section */
.categories {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-family: var(--font-heading);
}

.section-title h2 {
  font-size: 36px;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title p {
  color: #777;
  margin-top: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.category-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-img {
  height: 200px;
  overflow: hidden;
}

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

.category-card:hover .category-img img {
  transform: scale(1.05);
}

.category-content {
  padding: 20px;
  text-align: center;
}

.category-content h3 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Featured Products */
.featured-products {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.product-badge.new {
  background-color: var(--primary-color);
}

.product-badge.sale {
  background-color: var(--accent-color);
}

.product-badge.featured {
  background-color: var(--warning-color);
}

.product-content {
  padding: 20px;
}

.product-category {
  color: #777;
  font-size: 14px;
  margin-bottom: 5px;
}

.product-title {
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 18px;
}

.product-price {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.rating-stars {
  color: var(--warning-color);
  margin-right: 5px;
}

.rating-count {
  color: #777;
  font-size: 14px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  color: #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

.wishlist-btn:hover, .wishlist-btn.active {
  color: var(--accent-color);
}

/* Filter Bar */
.filter-bar {
  background-color: white;
  padding: 15px;
  margin-bottom: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.filter-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-label {
  margin-right: 8px;
  font-weight: 500;
  font-size: 14px;
}

.filter-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  font-size: 14px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.price-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.view-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-options span {
  font-size: 14px;
  font-weight: 500;
}

.view-btn {
  background: none;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Newsletter Section */
.newsletter {
  padding: 60px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #2980b9;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-col ul li a {
  color: #bdc3c7;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

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

.social-links a {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Authentication Pages */
.auth-container {
  max-width: 500px;
  margin: 80px auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  font-size: 28px;
  color: var(--secondary-color);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.auth-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.auth-form .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 10px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  width: auto;
  margin-right: 5px;
}

/* Two-Factor Authentication */
.two-factor-container {
  text-align: center;
  margin-top: 20px;
}

.verification-code {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.verification-code input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.verification-code input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Product Category Pages */
.category-header {
  background-color: var(--secondary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.category-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 5px;
  background-color: white;
  color: var(--secondary-color);
  font-weight: 500;
  transition: var(--transition);
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
}

.pagination a.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination a.next, .pagination a.prev {
  width: auto;
  padding: 0 15px;
}

/* Cart Page */
.cart-section {
  padding: 60px 0;
}

.cart-header {
  margin-bottom: 30px;
}

.cart-header h1 {
  font-size: 32px;
  color: var(--secondary-color);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background-color: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 500;
  color: var(--secondary-color);
}

.cart-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.cart-product {
  display: flex;
  align-items: center;
}

.cart-product-img {
  width: 80px;
  height: 80px;
  margin-right: 15px;
}

.cart-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-product-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.cart-product-info p {
  color: #777;
  font-size: 14px;
}

.cart-quantity {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.quantity-input {
  width: 40px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 5px;
}

.cart-remove {
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-summary {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.cart-summary h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.summary-row.total {
  font-weight: bold;
  font-size: 18px;
  color: var(--secondary-color);
}

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

.coupon-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
}

.coupon-form button {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.coupon-form button:hover {
  background-color: #2980b9;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  text-align: center;
}

.empty-cart {
  text-align: center;
  padding: 60px 0;
}

.empty-cart i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.empty-cart p {
  margin-bottom: 30px;
  color: #777;
}

/* Checkout Page */
.checkout-section {
  padding: 60px 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
}

.checkout-form {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.checkout-form h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.payment-methods {
  margin-top: 30px;
}

.payment-method {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  border-color: var(--primary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.payment-method input {
  margin-right: 10px;
}

.payment-method-logo {
  margin-left: auto;
  height: 30px;
}

.payment-details {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.checkout-summary {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.checkout-items {
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.checkout-item-img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.checkout-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.checkout-item-info p {
  color: #777;
  font-size: 14px;
}

.checkout-item-price {
  font-weight: bold;
}

.place-order-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  margin-top: 20px;
}

/* Search Results Page */
.search-results {
  padding: 60px 0;
}

.search-header {
  margin-bottom: 30px;
}

.search-header h1 {
  font-size: 32px;
  color: var(--secondary-color);
}

.search-header p {
  color: #777;
}

.search-highlight {
  background-color: rgba(255, 255, 0, 0.3);
  padding: 0 2px;
}

/* Wishlist Page */
.wishlist-section {
  padding: 60px 0;
}

.wishlist-header {
  margin-bottom: 30px;
}

.wishlist-header h1 {
  font-size: 32px;
  color: var(--secondary-color);
}

.empty-wishlist {
  text-align: center;
  padding: 60px 0;
}

.empty-wishlist i {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-wishlist h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.empty-wishlist p {
  margin-bottom: 30px;
  color: #777;
}

/* Product Detail Page */
.product-detail {
  padding: 60px 0;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.product-gallery {
  position: relative;
}

.product-main-img {
  width: 100%;
  height: 400px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 15px;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-thumbnail:hover, .product-thumbnail.active {
  border-color: var(--primary-color);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.product-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.product-category-badge {
  background-color: #f8f9fa;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  color: #777;
}

.product-price {
  font-size: 28px;
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 20px;
}

.product-description {
  margin-bottom: 30px;
  line-height: 1.8;
}

.product-specs {
  margin-bottom: 30px;
}

.product-specs h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.specs-item {
  display: flex;
  align-items: center;
}

.specs-label {
  font-weight: 500;
  margin-right: 10px;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

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

.quantity-input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: 1px solid #ddd;
  margin: 0 5px;
}

.add-to-cart-btn {
  flex: 1;
  padding: 12px;
  font-size: 16px;
}

.wishlist-btn-large {
  padding: 12px;
  background-color: transparent;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-btn-large:hover, .wishlist-btn-large.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Product Reviews */
.product-reviews {
  margin-top: 60px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.reviews-header h2 {
  font-size: 24px;
  color: var(--secondary-color);
}

.review-item {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-name {
  font-weight: 500;
}

.review-date {
  color: #777;
  font-size: 14px;
}

.review-rating {
  color: var(--warning-color);
}

.review-content {
  line-height: 1.8;
}

.review-form {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.review-form h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.rating-selector {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.rating-star {
  color: #ddd;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.rating-star:hover, .rating-star.active {
  color: var(--warning-color);
}

/* Account Dashboard */
.account-section {
  padding: 60px 0;
}

.account-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.account-sidebar {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.account-sidebar h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.account-menu {
  display: flex;
  flex-direction: column;
}

.account-menu a {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: var(--transition);
}

.account-menu a:hover, .account-menu a.active {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.account-menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.account-content {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.account-header {
  margin-bottom: 30px;
}

.account-header h1 {
  font-size: 28px;
  color: var(--secondary-color);
}

/* Order History */
.order-list {
  margin-top: 20px;
}

.order-item {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.order-id {
  font-weight: 500;
}

.order-date {
  color: #777;
}

.order-status {
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
}

.order-status.pending {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.order-status.processing {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.order-status.shipped {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.order-status.delivered {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.order-status.cancelled {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

.order-items {
  margin-bottom: 15px;
}

.order-item-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.order-item-img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.order-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 500;
  margin-bottom: 5px;
}

.order-item-price {
  color: var(--accent-color);
  font-weight: 500;
}

.order-item-quantity {
  color: #777;
  font-size: 14px;
}

.order-total {
  font-weight: bold;
  text-align: right;
  margin-bottom: 15px;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Admin Dashboard */
.admin-dashboard {
  padding: 60px 0;
}

.admin-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.admin-sidebar {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.admin-sidebar h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--secondary-color);
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.admin-menu {
  display: flex;
  flex-direction: column;
}

.admin-menu a {
  padding: 12px 15px;
  border-radius: 5px;
  margin-bottom: 5px;
  transition: var(--transition);
}

.admin-menu a:hover, .admin-menu a.active {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.admin-menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.admin-content {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.admin-header {
  margin-bottom: 30px;
}

.admin-header h1 {
  font-size: 28px;
  color: var(--secondary-color);
}

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

.stat-card {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  font-size: 24px;
}

.stat-icon.sales {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
}

.stat-icon.orders {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary-color);
}

.stat-icon.users {
  background-color: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.stat-icon.products {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.stat-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.stat-info p {
  color: #777;
  font-size: 14px;
}

.chart-container {
  margin-bottom: 30px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chart-header h2 {
  font-size: 20px;
  color: var(--secondary-color);
}

.chart-filters {
  display: flex;
  gap: 10px;
}

.chart-filter {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.chart-filter:hover, .chart-filter.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chart {
  height: 300px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.recent-orders {
  margin-bottom: 30px;
}

.recent-orders h2 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: #f8f9fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  color: var(--secondary-color);
}

.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
}

.table tr:hover {
  background-color: #f8f9fa;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.table-actions a {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.table-actions a:hover {
  background-color: #f8f9fa;
}

.table-actions a.edit {
  color: var(--primary-color);
}

.table-actions a.delete {
  color: var(--danger-color);
}

.table-actions a.view {
  color: var(--secondary-color);
}

/* Product Management */
.product-form {
  margin-top: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.image-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  border: 2px dashed #ddd;
  border-radius: 5px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.image-uploader:hover {
  border-color: var(--primary-color);
}

.image-uploader i {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 15px;
}

.image-uploader p {
  color: #777;
  margin-bottom: 10px;
}

.image-uploader span {
  color: var(--primary-color);
  font-weight: 500;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.image-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
}

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

.image-item .remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background-color: rgba(231, 76, 60, 0.8);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
}

.specs-form {
  margin-top: 20px;
}

.specs-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.specs-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.specs-row button {
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 5px;
  width: 40px;
  cursor: pointer;
  transition: var(--transition);
}

.specs-row button:hover {
  background-color: #c0392b;
}

.add-spec-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.add-spec-btn:hover {
  background-color: #2980b9;
}

/* Bulk Upload */
.bulk-upload {
  margin-top: 30px;
}

.bulk-upload-container {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 5px;
  text-align: center;
}

.bulk-upload-container i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.bulk-upload-container h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.bulk-upload-container p {
  margin-bottom: 20px;
  color: #777;
}

.bulk-upload-btn {
  padding: 12px 24px;
  font-size: 16px;
}

.template-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  text-decoration: underline;
}

/* Notifications */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
  max-width: 300px;
}

.notification.success {
  background-color: var(--success-color);
  color: white;
}

.notification.error {
  background-color: var(--danger-color);
  color: white;
}

.notification.info {
  background-color: var(--info-color);
  color: white;
}

.notification.warning {
  background-color: var(--warning-color);
  color: white;
}

/* Loading Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  color: var(--danger-color);
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--danger-color);
  border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .product-detail-container {
    grid-template-columns: 1fr;
  }
  
  .admin-container {
    grid-template-columns: 1fr;
  }
  
  .account-container {
    grid-template-columns: 1fr;
  }

  .category-grid, .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-container {
    flex-wrap: wrap;
    position: relative;
  }
  
  .logo {
    flex: 1;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-image {
    height: 40px;
  }

  .mobile-menu-toggle {
    display: block;
    order: 2;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0;
    margin-bottom: 15px;
    text-align: center;
  }

  .nav-menu li:last-child {
    margin-bottom: 0;
  }

  .nav-menu a {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  .user-actions {
    order: 3;
    margin-left: auto;
  }

  .user-actions a, .user-actions .welcome {
    margin-left: 8px;
    font-size: 14px;
  }

  .user-actions .btn {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .search-container {
    width: 100%;
    margin: 15px 0 0 0;
    order: 4;
  }
  
  .search-form {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
  }
  
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
  
  .category-grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .section-title h2 {
    font-size: 28px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-options {
    margin-bottom: 15px;
    width: 100%;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    margin-bottom: 10px;
  }

  .filter-select, .price-input {
    width: 100%;
  }
  
  .view-options {
    width: 100%;
    justify-content: flex-end;
  }
  
  .cart-table {
    display: block;
    overflow-x: auto;
  }

  .cart-table th, .cart-table td {
    padding: 10px;
    font-size: 14px;
  }
  
  .form-row, .card-row {
    grid-template-columns: 1fr;
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }

  .product-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 14px;
  }

  .logo-image {
    height: 35px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 24px;
  }

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

  .section-title h2 {
    font-size: 24px;
  }
  
  .category-grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    font-size: 14px;
  }

  .product-title {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: 5px;
    margin-bottom: 10px;
  }
  
  .newsletter-form button {
    border-radius: 5px;
    width: 100%;
  }
  
  .product-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .quantity-selector {
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .auth-container {
    margin: 40px auto;
    padding: 20px;
  }

  .cart-product {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-product-img {
    margin-bottom: 10px;
  }
}