:root {
  --primary: #1a6b80;
  --secondary: #f8b400;
  --accent: #ff6b6b;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Tajawal', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

header {
  background-color: white;
  color: var(--dark);
  padding: 15px 0;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header .logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-left: 10px;
  color: var(--secondary);
}

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

.search-bar {
  position: relative;
  margin-left: 20px;
}

.search-bar input {
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid var(--light-gray);
  width: 250px;
  font-size: 14px;
}

.search-bar button {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
}

.cart-icon, .user-icon {
  position: relative;
  margin-right: 20px;
  font-size: 1.2em;
  color: var(--dark);
  cursor: pointer;
}

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

nav {
  background-color: var(--primary);
  padding: 10px 0;
}

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

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1920x600') center/cover;
  padding: 100px 20px;
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.hero-search-bar {
  max-width: 500px;
  margin: 25px auto;
  position: relative;
}

.hero-search-bar input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-search-bar button {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--dark);
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

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

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

.btn-primary:hover {
  background-color: #145a6b;
}

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

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

.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--secondary);
  margin: 15px auto;
}

.categories {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.category-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  width: 22%;
  text-align: center;
  transition: var(--transition);
  padding: 20px;
}

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

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

.category-card h3 {
  margin: 15px 0;
  color: var(--primary);
}

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

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

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.product-card .rating {
  color: var(--secondary);
  margin-bottom: 10px;
}

.product-card .price {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2em;
  margin: 10px 0;
  display: block;
}

.product-card .old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 0.9em;
  margin-right: 8px;
}

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

.offer-section {
  background-color: var(--light-gray);
  padding: 60px 0;
  margin: 60px 0;
}

.offer-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  display: flex;
  margin-bottom: 30px;
}

.offer-image {
  width: 40%;
}

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

.offer-content {
  width: 60%;
  padding: 30px;
}

.offer-card h3 {
  color: var(--primary);
  font-size: 1.8em;
  margin: 0 0 15px;
}

.offer-timer {
  display: flex;
  margin: 15px 0;
}

.timer-box {
  background-color: var(--primary);
  color: white;
  padding: 10px;
  margin-left: 10px;
  border-radius: var(--border-radius);
  min-width: 50px;
  text-align: center;
}

.timer-box span {
  display: block;
  font-size: 1.3em;
  font-weight: bold;
}

.features {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
  text-align: center;
}

.feature {
  width: 23%;
}

.feature-icon {
  color: var(--primary);
  font-size: 3em;
  margin-bottom: 15px;
}

.feature h3 {
  color: var(--dark);
  margin-bottom: 10px;
}

.testimonials {
  text-align: center;
  padding: 60px 0;
  background-color: var(--light);
}

.testimonial-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin: 0 15px;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-name {
  font-weight: bold;
  color: var(--primary);
}

.contact-info {
  padding: 60px 0;
  background-color: var(--light-gray);
}

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

.contact-form {
  width: 48%;
}

.contact-details {
  width: 48%;
}

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

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
}

.newsletter {
  background-color: var(--primary);
  padding: 40px 0;
  color: white;
  text-align: center;
}

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

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
  background-color: var(--secondary);
  color: var(--dark);
  border: none;
  padding: 0 20px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
  font-weight: bold;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 50px 0 20px;
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col {
  width: 23%;
}

.footer-col h3 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a {
  color: var(--light-gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
}

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

.social-link:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

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

.wholesale-section {
  margin: 60px 0;
}

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

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

.wholesale-status {
  margin: 20px 0;
  padding: 15px;
  border-radius: var(--border-radius);
  background-color: var(--light-gray);
  display: none;
}

.wholesale-products {
  display: none;
}

.wholesale-products .section-title {
  margin-top: 30px;
}

.min-quantity {
  display: block;
  font-size: 0.8em;
  color: var(--primary);
  font-weight: normal;
  margin-top: 5px;
}

.orders-section {
  margin: 40px 0;
}

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

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

.filter-container label {
  margin-left: 10px;
  font-weight: 500;
}

.order-card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  padding: 20px;
  transition: var(--transition);
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.order-header h3 {
  margin: 0 0 5px;
  color: var(--primary);
}

.order-date {
  color: var(--gray);
  font-size: 0.9em;
}

.order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 8px;
}

.status-delivered {
  background-color: #e6f7ee;
  color: #4CAF50;
}

.status-shipping {
  background-color: #e6f4f7;
  color: #2196F3;
}

.status-approved {
  background-color: #f0f7e6;
  color: #8bc34a;
}

.status-pending {
  background-color: #fff8e1;
  color: #ffc107;
}

.status-cancelled {
  background-color: #feeeee;
  color: #f44336;
}

.order-total {
  display: block;
  font-weight: bold;
  color: var(--primary);
}

.order-summary {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.order-item-preview {
  position: relative;
  margin-left: 10px;
}

.order-item-preview img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--light-gray);
}

.order-item-preview span {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background-color: var(--primary);
  color: white;
  font-size: 0.7em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-count {
  color: var(--gray);
  font-size: 0.9em;
}

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

.no-orders {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  color: var(--gray);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  max-width: 700px;
  border-radius: var(--border-radius);
  animation: modalOpen 0.3s ease-out;
}

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

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--gray);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.order-info {
  background-color: var(--light);
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.order-info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.order-items h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.order-detail-item {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

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

.order-detail-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  object-fit: cover;
  margin-left: 15px;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 8px;
}

.item-meta {
  color: var(--gray);
  font-size: 0.9em;
}

.item-meta span {
  margin-left: 15px;
}

.item-total {
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.edit-order-modal-content {
  max-width: 800px;
}

.edit-order-items {
  margin-bottom: 20px;
}

.edit-order-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--light-gray);
}

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

.edit-order-item img {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  object-fit: cover;
  margin-left: 15px;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 5px;
}

.item-price {
  color: var(--gray);
  font-size: 0.9em;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin: 0 20px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--light-gray);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  font-size: 16px;
  margin: 0 5px;
}

.item-subtotal {
  font-weight: bold;
  color: var(--primary);
  margin-right: 20px;
  min-width: 100px;
  text-align: left;
}

.remove-item {
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  margin-right: 10px;
}

.edit-order-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-gray);
}

.order-total-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.edit-order-total {
  color: var(--primary);
  margin-right: 10px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-nav {
  background-color: var(--light-gray);
  padding: 10px 0;
  margin-bottom: 30px;
}

.page-nav .container {
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 1.5em;
  color: var(--primary);
  margin: 0;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 20px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin: 0 10px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

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

.breadcrumb .current {
  color: var(--primary);
  font-weight: 500;
}

.product-detail-modal .modal-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
}

.product-detail-container {
  display: flex;
  padding: 0;
}

.product-gallery {
  width: 50%;
  padding: 20px;
}

.product-main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

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

.product-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

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

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

.product-info-container {
  width: 50%;
  padding: 20px;
  border-right: 1px solid var(--light-gray);
}

.product-detail-title {
  font-size: 1.8em;
  color: var(--dark);
  margin: 0 0 10px;
}

.product-detail-rating {
  margin: 10px 0;
  color: var(--secondary);
}

.product-detail-description {
  margin: 15px 0;
  line-height: 1.6;
  color: var(--gray);
}

.product-detail-price {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
  margin: 20px 0;
}

.product-detail-price .old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 0.8em;
  margin-right: 10px;
}

.product-attributes {
  margin: 20px 0;
}

.product-attribute {
  margin-bottom: 15px;
}

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

.attribute-options {
  display: flex;
  gap: 10px;
}

.attribute-option {
  padding: 5px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s;
}

.attribute-option.selected {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-quantity {
  margin: 20px 0;
}

.quantity-control {
  display: flex;
  align-items: center;
  width: 120px;
}

.quantity-btn {
  width: 34px;
  height: 34px;
  background-color: var(--light-gray);
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

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

.quantity-btn.minus {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.quantity-btn.plus {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quantity-input {
  width: 50px;
  height: 34px;
  border: 1px solid var(--light-gray);
  text-align: center;
  font-size: 14px;
}

.product-total {
  margin-bottom: 20px;
  font-weight: 500;
}

.product-total-value {
  font-weight: bold;
  color: var(--primary);
}

.product-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.product-detail-actions .btn {
  flex: 1;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: white;
  z-index: 1000;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--light-gray);
  margin-bottom: 20px;
}

.sidebar .logo {
  font-size: 1.5em;
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--gray);
}

.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  margin: 0;
  padding: 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
  border-right: 3px solid transparent;
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
  background-color: rgba(26, 107, 128, 0.1);
  border-right-color: var(--primary);
}

.sidebar-nav a i {
  margin-left: 10px;
  width: 20px;
  text-align: center;
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  .container {
    padding: 15px;
  }
  
  header .container {
    flex-direction: column;
  }
  
  .search-bar {
    margin: 15px 0;
    width: 100%;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .hero-search-bar {
    max-width: 90%;
  }
  
  .hero-search-bar input {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .hero-search-bar button {
    font-size: 16px;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  .categories, .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
  }
  
  .category-card {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .category-icon {
    font-size: 2em;
    margin: 10px 0;
  }
  
  .category-card h3 {
    font-size: 0.9em;
    margin: 10px 0;
  }
  
  .offer-card {
    flex-direction: column;
  }
  
  .offer-image, .offer-content {
    width: 100%;
  }
  
  .features {
    flex-direction: column;
  }
  
  .feature {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .contact-flex {
    flex-direction: column;
  }
  
  .contact-form, .contact-details {
    width: 100%;
  }
  
  .footer-cols {
    flex-direction: column;
  }
  
  .footer-col {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-gallery, .product-info-container {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
    padding: 15px;
  }
  
  .product-detail-actions {
    flex-direction: column;
  }
  
  .product-detail-actions .btn {
    margin-bottom: 10px;
    width: 100%;
  }
  
  .product-quantity {
    margin: 15px 0;
  }
  
  .product-main-image {
    height: 250px;
  }
  
  .product-thumbnails {
    justify-content: center;
  }
  
  .product-thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .product-detail-title {
    font-size: 1.5em;
  }
  
  .product-detail-modal .modal-content {
    width: 95%;
    max-width: 100%;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .header-actions {
    margin-top: 15px;
  }
  
  .categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .feature {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .features {
    flex-direction: column;
  }
  
  .testimonial-card {
    padding: 15px;
  }
  
  .cart-actions {
    flex-direction: column;
  }
  
  .cart-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .product-main-image {
    height: 200px;
  }
  
  .product-detail-title {
    font-size: 1.3em;
  }
  
  .product-detail-price {
    font-size: 1.3em;
  }
  
  .product-thumbnail {
    width: 40px;
    height: 40px;
  }
  
  .hero-search-bar {
    max-width: 100%;
  }
  
  .hero-search-bar input {
    padding: 10px;
    font-size: 13px;
  }
}