* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

:root {
  --primary-purple: #570052;
  --dark-purple: #570052;
  --light-purple: #570052;
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #570052;
  --gray-800: #570052;
  --success: #006b09;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.384);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.397);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.404);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body,
input,
textarea,
button {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #14b8a6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  margin-right: 12px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.logo-text p {
  font-size: 12px;
  color: #6b7280;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-purple);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  overflow: hidden;
  z-index: 2000;
  min-width: 180px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--gray-100);
  color: var(--primary-purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn,
.cart-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: color 0.3s;
  position: relative;
}

.search-btn:hover,
.cart-btn:hover {
  color: var(--primary-purple);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--primary-purple);
  color: var(--white);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gray-600);
  transition: all 0.3s;
}

.hero {
  margin-top: 80px;
  padding: 4rem 0;
  position: relative;
  color: var(--white);
  width: 100%;
}

.hero-bg {
  background: url("img/SHE.jpg") center / cover no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  filter: blur(7px) brightness(0.7);
  z-index: 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  width: 55%;
  flex: 1 1 55%;
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.hero-buttons .btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.hero-image {
  flex: 1;
  width: 40%;
  height: 470px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow-xl);
  position: relative;
  flex: 1 1 40%;
  min-width: 0;
  max-width: 100%;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slide 16s infinite;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 15px;
}

@keyframes slide {
  0% {
    transform: translateX(0%);
  }
  20% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  70% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0%);
  }
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  text-align: center;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--primary-purple);
  box-shadow: var(--shadow);
}

.categories {
  padding: 4rem 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-purple);
  margin-bottom: 3rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.category-card {
  text-align: center;
  padding: 2rem;
  background: var(--primary-purple);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-purple);
}

.category-card.active {
  background: var(--primary-purple);
  color: var(--white);
}

.category-card.active .category-icon {
  background: var(--white);
  color: var(--primary-purple);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--dark-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.category-card h3 {
  color: #d1d5db;
  font-size: 1.25rem;
}

.products {
  padding: 4rem 0;
  background: var(--gray-100);
}

/* .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
} */

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.875rem;
  color: var(--primary-purple);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-purple);
}

.add-to-cart {
  background: var(--primary-purple);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.add-to-cart:hover {
  background: var(--dark-purple);
}

.about {
  padding: 4rem 0;
  background: var(--white);
}

.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.about-content {
  flex: 1;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.about-features {
  list-style: none;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.about-features i {
  color: var(--success);
  font-size: 1.5rem;
}

.contact {
  padding: 4rem 0;
  background: var(--primary-purple);
}

.contact-container {
  display: flex;
  gap: 3rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--white);
  margin-top: 0.25rem;
}

.contact-item h4 {
  color: #e5e7eb;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--primary-purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--dark-purple);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  background: rgba(255, 255, 255, 0.479);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.footer {
  background: var(--dark-purple);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-col a:hover {
  opacity: 1;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transition: right 0.3s;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.cart-header h2 {
  color: var(--dark-purple);
}

.close-cart {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-600);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: bold;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.cart-item-price {
  color: var(--primary-purple);
  font-weight: bold;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--purple-100);
  color: var(--primary-purple);
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.quantity-btn:hover {
  background: var(--primary-purple);
  color: var(--white);
}

.cart-item-quantity {
  padding: 0.25rem 0.75rem;
}

.remove-item {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  margin-left: auto;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 2px solid var(--gray-200);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary-purple);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: var(--dark-purple);
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-600);
}

.empty-cart i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5rem;
}

.search-modal.active {
  display: flex;
}

.search-content {
  background: var(--white);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.close-search {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-600);
}

.search-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background: var(--gray-100);
}

.search-result-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.search-result-price {
  color: var(--primary-purple);
  font-weight: bold;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-600);
}

.modal-content h2 {
  color: var(--dark-purple);
  margin-bottom: 2rem;
  word-break: break-word;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  color: var(--dark-purple);
  margin-bottom: 1rem;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
}

.payment-options {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  width: 100%;
}

.payment-option {
  width: 100%;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-card {
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option input[type="radio"]:checked + .payment-card {
  border-color: var(--primary-purple);
  background: var(--purple-50);
}

.payment-card i {
  font-size: 2rem;
  color: var(--primary-purple);
  margin-bottom: 0.5rem;
}

.payment-info {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.card-row {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.hidden {
  display: none;
}

.order-summary {
  background: var(--gray-100);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-purple);
  padding-top: 1rem;
  border-top: 2px solid var(--gray-300);
  margin-top: 1rem;
}

.btn-block {
  width: 100%;
}

.success-content {
  text-align: center;
}

.success-icon {
  font-size: 5rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.success-content h2 {
  color: var(--dark-purple);
  margin-bottom: 1rem;
}

.success-content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.order-number {
  font-weight: bold;
  color: var(--primary-purple);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.track-order {
  padding: 4rem 0;
  background: var(--gray-100);
  text-align: center;
}

.track-order-form {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.track-order-form input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
}

.track-order-form button {
  padding: 0.9rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

.track-order-result {
  margin-top: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-purple);
}

.deals {
  padding: 4rem 0;
  background: var(--gray-100);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.deal-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s;
}

.deal-card:hover {
  transform: translateY(-5px);
}

.deal-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.deal-info {
  padding: 1rem;
}

.deal-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-purple);
}

.deal-prices {
  margin: 0.5rem 0;
}

.deal-prices .old-price {
  text-decoration: line-through;
  color: var(--gray-600);
  margin-right: 10px;
}

.deal-prices .new-price {
  color: red;
  font-weight: bold;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr; 
  }
}


@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 968px) {
  .container {
    padding: 0 20px;
    max-width: 100%;
  }

  /* Navigation improvements */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: 1.5rem;
    transition: left 0.3s;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: flex;
  }

  /* Hero section improvements */
  .hero {
    padding: 3rem 0;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    width: 100%;
    padding: 0;
  }

  .hero-content {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 100%;
    flex: 1 1 100%;
    height: 400px;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-features {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .feature-card {
    flex: 1;
    min-width: 200px;
  }

  /* Category and product grids */
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  /* About section */
  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-stats {
    justify-content: space-around;
  }

  /* Contact section */
  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  /* Cart sidebar */
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
    right: -100%;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile devices */
@media (max-width: 640px) {
  .container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
  }

  /* Logo adjustments */
  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text h1 {
    font-size: 14px;
  }

  .logo-text p {
    font-size: 10px;
  }

  /* Navigation */
  .nav-container {
    padding: 0 15px;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  /* Hero section */
  .hero {
    margin-top: 70px;
    padding: 2rem 0;
    width: 100%;
  }

  .hero-container {
    width: 100%;
    padding: 0;
  }

  .hero-content {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .hero-image {
    height: 280px;
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Section titles */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  /* Categories */
  .categories {
    padding: 3rem 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem 1rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .category-card h3 {
    font-size: 1rem;
  }

  /* Products */
  .products {
    padding: 3rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    max-width: 100%;
    width: 100%;
  }

  .product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
  }

  .product-info {
    padding: 1.25rem;
  }

  .product-name {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.25rem;
  }

  .add-to-cart {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Deals */
  .deals {
    padding: 3rem 0;
  }

  .deals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .deal-card img {
    height: 200px;
  }

  /* About section */
  .about {
    padding: 3rem 0;
  }

  .about-content p {
    font-size: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat h3 {
    font-size: 2rem;
  }

  .about-features li {
    font-size: 1rem;
  }

  /* Contact section */
  .contact {
    padding: 3rem 0;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-item i {
    font-size: 1.25rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  /* Track order */
  .track-order {
    padding: 3rem 0;
  }

  .track-order-form {
    flex-direction: column;
    align-items: stretch;
  }

  .track-order-form input,
  .track-order-form button {
    width: 100%;
    min-width: auto;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col h3 {
    font-size: 1.1rem;
  }

  .payment-methods {
    font-size: 1.75rem;
  }

  /* Cart sidebar */
  .cart-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .cart-item-info {
    flex: 1;
    min-width: 0;
  }

  .cart-item-name {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .cart-item-controls {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Modals */
  .modal-content {
    padding: 1.5rem;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    word-break: break-word;
  }

  /* Search modal */
  .search-content {
    width: 95%;
    max-width: 95%;
    padding: 1.5rem;
  }

  /* Forms */
  .form-section input,
  .form-section textarea,
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
    width: 100%;
  }
}

/* Very small phones (320px - 375px) */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
    max-width: 100%;
  }

  .nav-container {
    padding: 0 12px;
  }

  /* Logo for very small screens */
  .logo {
    gap: 8px;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .logo-text h1 {
    font-size: 12px;
  }

  .logo-text p {
    display: none;
  }

  /* Hero adjustments for tiny screens */
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-image {
    height: 240px;
  }

  .hero-buttons .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Section titles for tiny screens */
  .section-title {
    font-size: 1.5rem;
  }

  /* Category cards for tiny screens */
  .category-card {
    padding: 1.25rem 0.75rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .category-card h3 {
    font-size: 0.9rem;
  }

  /* Product cards for tiny screens */
  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.8rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .add-to-cart {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Forms for tiny screens */
  .form-section input,
  .form-section textarea,
  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Modal for tiny screens */
  .modal-content {
    padding: 1.25rem;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.25rem;
  }
}

/* Large tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 40px;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-content {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero-image {
    width: 100%;
    flex: 1 1 100%;
    height: 450px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens and laptops */
@media (min-width: 1025px) and (max-width: 1440px) {
  .container {
    max-width: 1140px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-content {
    flex: 1 1 55%;
  }

  .hero-image {
    flex: 1 1 40%;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Extra large screens */
@media (min-width: 1441px) {
  .container {
    max-width: 1320px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-image {
    height: 550px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Touch target improvements for mobile usability */
@media (max-width: 768px) {
  .nav-link,
  .category-card,
  .add-to-cart,
  .btn,
  .cart-btn,
  .search-btn,
  .hamburger {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu li {
    padding: 0.5rem 0;
  }

  .dropdown-menu li a {
    padding: 1rem;
    min-height: 44px;
  }
}

/* Landscape orientation fixes for mobile devices */
@media (max-width: 968px) and (orientation: landscape) {
  .hero {
    padding: 2rem 0;
  }

  .hero-image {
    height: 300px;
  }

  .modal-content {
    max-height: 85vh;
  }
}

