:root {
  --primary-color: #ff8c42;
  --secondary-color: #ff6b35;
  --accent-color: #ffa500;
  --bg-light: #f9f7f4;
  --bg-dark: #333333;
  --text-dark: #2c2c2c;
  --text-light: #f9f7f4;
  --border-color: #e8e8e8;
  --success-color: #4caf50;
  --danger-color: #ff4444;
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

/* Premium Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

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

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0.5rem 0;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

.logo:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-medium);
}

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

.nav-link:hover::after {
  width: 100%;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.3rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 140, 66, 0.1);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Pages with enhanced animations */
.page {
  display: none;
  animation: fadeInUp 0.7s ease-out;
}

.page.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Premium Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 2rem;
  border-radius: 0 0 20px 20px;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  animation: slideInDown 1s ease-out;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.feature {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  display: inline-block;
  transition: transform var(--transition-medium);
}

.feature:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature p {
  color: #666;
  line-height: 1.7;
}

/* Premium About Section */
.about-container {
  background: white;
  padding: 4rem 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.about-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,140,66,0.05) 0%, rgba(255,140,66,0) 70%);
  z-index: 0;
}

.about-container > * {
  position: relative;
  z-index: 1;
}

.about-container h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.point {
  background: var(--bg-light);
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.point::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.7s;
}

.point:hover::before {
  left: 100%;
}

.point:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-light);
}

.point h3 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Premium Products Section */
.products-header {
  text-align: center;
  margin-bottom: 4rem;
}

.products-header h1 {
  color: var(--primary-color);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.products-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,140,66,0.1) 0%, rgba(255,165,0,0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
}

.product-info {
  padding: 1.8rem;
  position: relative;
  z-index: 2;
}

.product-info h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.product-price {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.product-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.quantity-control button {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.quantity-control input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  font-weight: 600;
}

/* Enhanced Buttons */
.btn {
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.7s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 100%;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: var(--text-dark);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #555;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(255, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 68, 68, 0.4);
}

.full-width {
  width: 100%;
}

/* Premium Contact Section */
.contact-container {
  background: white;
  padding: 4rem 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.contact-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,140,66,0.05) 0%, rgba(255,140,66,0) 70%);
  z-index: 0;
}

.contact-container > * {
  position: relative;
  z-index: 1;
}

.contact-container h1 {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-info p i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
  transform: translateY(-2px);
}

/* Premium Login Section */
.login-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  max-width: 500px;
  margin: 3rem auto;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.login-container h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form h2 {
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.login-form input {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
  transform: translateY(-2px);
}

.login-form p {
  text-align: center;
  margin-top: 1.5rem;
}

.login-form a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.login-form a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Premium Cart Section */
.cart-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.cart-container h1 {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.cart-item:hover {
  background: rgba(249, 247, 244, 0.5);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 8px;
}

.cart-item-info h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
}

.cart-item-controls {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.empty-cart {
  text-align: center;
  padding: 3rem;
  color: #999;
}

.empty-cart button {
  margin-top: 1.5rem;
}

.cart-summary {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
  box-shadow: var(--shadow-light);
}

.cart-summary h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-item.total {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  border-top: 2px solid var(--border-color);
  padding-top: 1.2rem;
  border-bottom: none;
}

/* Premium Checkout Section */
.checkout-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.checkout-container h1 {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.checkout-form h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.checkout-form input {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
  transform: translateY(-2px);
}

.order-summary {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 12px;
  height: fit-content;
  box-shadow: var(--shadow-light);
}

.order-summary h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.order-summary ul {
  margin-bottom: 1.5rem;
}

.order-summary li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
}

.order-summary p {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* Premium Invoice Section */
.invoice-container {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
}

.invoice-container h1 {
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.invoice {
  background: white;
  border: 2px solid var(--border-color);
  padding: 3rem;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.invoice-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 1.5rem;
}

.invoice-header h2 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.invoice-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 10px;
}

.invoice-detail-item {
  font-size: 0.95rem;
  line-height: 1.8;
}

.invoice-items {
  margin-bottom: 2.5rem;
}

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

.invoice-items th {
  background: var(--bg-light);
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
}

.invoice-items td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.invoice-items tr:hover td {
  background: rgba(249, 247, 244, 0.5);
}

.invoice-total {
  text-align: right;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

/* Premium Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-content p {
  margin: 0.8rem 0;
  opacity: 0.9;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: var(--shadow-medium);
    padding: 0;
    gap: 0;
    z-index: 999;
  }

  .nav-menu.active {
    max-height: 400px;
    padding: 1.5rem 0;
  }

  .nav-menu li {
    padding: 0.8rem 1.5rem;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 4rem 1.5rem;
    border-radius: 0 0 15px 15px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .invoice-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .about-container,
  .contact-container,
  .login-container,
  .cart-container,
  .checkout-container,
  .invoice-container {
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .about-container,
  .contact-container,
  .login-container,
  .cart-container,
  .checkout-container,
  .invoice-container {
    padding: 2rem 1.5rem;
  }
  
  .invoice {
    padding: 2rem 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-medium);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
}


/* Chatbot Buttons Styles */
.chatbot-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-btn {
    padding: 0.8rem 0.5rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-align: center;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 44px;
}

.chat-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border-color: transparent;
}

.chat-btn:active {
    transform: translateY(0);
}

/* Enhanced Chatbot Styles for buttons layout */
@media (max-width: 480px) {
    .chatbot-buttons {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.8rem;
    }
    
    .chat-btn {
        font-size: 0.75rem;
        padding: 0.7rem 0.4rem;
    }
}

/* Keep the rest of the chatbot styles the same */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: inherit;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: all var(--transition-medium);
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.chatbot-toggle span {
    font-size: 1.5rem;
    color: white;
}

.chatbot-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.chatbot-container.active {
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-light);
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message p {
    margin: 0;
    font-size: 0.9rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.8rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Responsive design for chatbot */
@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .chatbot-container {
        width: calc(100vw - 40px);
        height: 400px;
        right: -10px;
    }
    
    .message {
        max-width: 90%;
    }
}
