:root {
  --primary-color: #2e7d32;
  --secondary-color: #6c757d;
  --accent-color: #f9a825;
  --background-color: #ffffff;
  --text-color: #212529;
  --font-family-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Responsive Navigation Bar */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: var(--background-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: var(--primary-color);
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .navbar-link {
  color: #ffffff;
}

.navbar.scrolled .navbar-link:hover {
  color: var(--accent-color);
}

.navbar.scrolled .navbar-link.active {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 700;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}

.search-input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  width: 300px;
}

.category-filter,
.sort-filter {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #fff;
  font-size: 1rem;
  color: var(--text-color);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.category-filter:focus,
.sort-filter:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
}

.navbar-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

.navbar-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-section {
    flex-direction: column;
  }

  .search-input,
  .category-filter,
  .sort-filter {
    width: 100%;
  }

  .navbar-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }
}

/* Hero Section */
.hero {
  padding: 0;
  text-align: center;
  background-color: #e8f5e9;
  margin-bottom: 2rem;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 0.25rem;
  font-weight: 500;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-color);
  margin-left: 0.25rem;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-wishlist {
  background-color: transparent;
  color: #d32f2f;
  border: 1px solid #d32f2f;
  margin-left: 0.25rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.btn-wishlist:hover {
  background-color: #d32f2f;
  color: white;
}

.btn-share {
  background-color: transparent;
  color: #007bff;
  border: 1px solid #007bff;
  margin-left: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.btn-share:hover {
  background-color: #007bff;
  color: white;
}

.btn-whatsapp {
  background-color: transparent;
  color: #25D366;
  border: 1px solid #25D366;
  margin-left: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background-color: #25D366;
  color: white;
}

.btn-compare {
  background-color: transparent;
  color: #17a2b8;
  border: 1px solid #17a2b8;
  margin-left: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.btn-compare:hover {
  background-color: #17a2b8;
  color: white;
}

/* Page Header */
.page-header {
  background-color: #e8f5e9;
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Filter Section */
.filter-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0 1rem;
}

/* Carousel Styles */
.carousel-track-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-slide.has-image img {
  max-height: 200px;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .carousel-slide.has-image {
    flex-direction: row;
    gap: 2rem;
  }
  .carousel-slide.has-image img {
    margin-bottom: 0;
  }
  .carousel-slide.has-image .hero-content {
    text-align: left;
  }
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.5);
}

.button-left {
  left: 10px;
}

.button-right {
  right: 10px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.carousel-indicator {
  border: none;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.carousel-indicator.current-slide {
  background: rgba(0, 0, 0, 0.8);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s;
  background-color: #fff;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-card .btn {
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0.25rem;
}

.product-card .btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Tooltip Styles */
.product-card .btn[data-tooltip] {
  position: relative;
}

.product-card .btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  margin-bottom: 8px;
  z-index: 10;
}

.product-card .btn[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

.product-image {
  margin-bottom: 1rem;
  max-height: 200px;
  object-fit: contain;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1rem;
}

.badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #d32f2f;
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  font-weight: bold;
}

.badge.out-of-stock {
  background-color: #6c757d;
}

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

/* Footer */
.footer {
  background-color: #343a40;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

/* Cart Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 0.5rem;
  position: relative;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 5px;
}

/* Compare Modal */
.compare-modal-content {
  max-width: 900px;
  width: 95%;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}

.compare-table th, .compare-table td {
  border: 1px solid #dee2e6;
  padding: 1rem;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
}

.compare-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
  width: 150px;
}

.compare-table td img {
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.quick-view-content {
  max-width: 800px;
  width: 90%;
}

.quick-view-body {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
}

.quick-view-body img {
  max-width: 50%;
  border-radius: 0.5rem;
  object-fit: contain;
}

.close-button:hover {
  color: #000;
}

#cart-items li,
#saved-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  margin-left: 1rem;
}

.remove-btn:hover {
  background-color: #c82333;
}

.cart-total {
  font-weight: bold;
  margin: 1rem 0;
  text-align: right;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  text-align: left;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
}

.form-group input.success,
.form-group textarea.success {
  border-color: #28a745;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  position: absolute;
  bottom: -22px;
  left: 0;
  visibility: hidden;
}

.form-group.error .error-message {
  visibility: visible;
}

.clear-cart-btn {
  background-color: #dc3545;
  margin-left: 0.5rem;
}

.clear-cart-btn:hover {
  background-color: #c82333;
}

/* Back to Top Button */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  font-size: 18px;
}

#back-to-top:hover {
  background-color: #555;
}

/* Product Detail Page */
.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.product-detail-image {
  flex: 1 1 400px;
  text-align: center;
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-detail-image img {
  max-height: 400px;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
  cursor: zoom-in;
}

.product-detail-image:hover img {
  transform: scale(1.2);
}

.product-detail-info {
  flex: 1 1 400px;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.detail-category {
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-detail-info .product-price {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#detail-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #555;
}

.quantity-selector {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.quantity-selector label {
  margin-right: 0.5rem;
}

.quantity-selector input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1rem;
}

/* Related Products */
.related-products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.related-products-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Product Tabs */
.product-tabs-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 2rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--secondary-color);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

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

/* Shop Page Layout */
.shop-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  align-items: flex-start;
}

.shop-sidebar {
  flex: 0 0 250px;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

.sidebar-widget {
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0.5rem;
  color: var(--text-color);
}

.shop-sidebar .search-input,
.shop-sidebar .category-filter,
.shop-sidebar .sort-filter {
  width: 100%;
}

#price-range {
  width: 100%;
  margin: 0.5rem 0;
}

.shop-main {
  flex: 1;
  width: 100%;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pagination a {
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border: 1px solid #dee2e6;
  margin: 0 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #e9ecef;
  text-decoration: none;
}

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

.shop-main {
  flex: 1;
  width: 100%;
}

.shop-container .product-grid {
  flex: 1;
  padding: 0;
  margin: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .shop-container {
    flex-direction: column;
  }
  .shop-sidebar {
    width: 100%;
    flex: none;
  }

  .quick-view-body {
    flex-direction: column;
  }
  .quick-view-body img {
    max-width: 100%;
  }
}

/* Cart Animation */
@keyframes cart-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-animate {
  animation: cart-bump 0.3s ease;
  display: inline-flex;
}

/* Cart Icon Badge */
.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background-color);
}

/* Auth Modal Styles */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-color);
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s;
}

/* Profile Page */
.profile-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 2rem;
}

.profile-sidebar {
  flex: 0 0 250px;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

.profile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-menu li {
  margin-bottom: 0.5rem;
}

.profile-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  border-radius: 0.25rem;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.profile-menu a:hover,
.profile-menu a.active {
  background-color: #fff8e1;
  color: var(--primary-color);
  text-decoration: none;
  border-left-color: var(--accent-color);
}

.profile-content {
  flex: 1;
}

.profile-header {
  margin-bottom: 2rem;
}

.order-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.order-history-table th,
.order-history-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.order-history-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.order-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-processing {
  background-color: #fff3cd;
  color: #856404;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
    flex: none;
  }
  .order-history-table {
    display: block;
    overflow-x: auto;
  }
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 3rem;
}

.contact-form-wrapper {
  flex: 2;
  min-width: 300px;
}

.contact-info-wrapper {
  flex: 1;
  min-width: 300px;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 0.5rem;
  height: fit-content;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

.map-container {
  text-align: center;
  margin-top: 2rem;
  border-radius: 0.25rem;
  overflow: hidden;
}

/* Live Chat Widget */
#live-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 100;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: #fff;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

#live-chat-btn:hover {
  transform: scale(1.1);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast.show {
  opacity: 1;
}

.nav-badge {
  background-color: #d32f2f;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 1rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.profile-tab-content .product-grid {
  padding: 0;
  margin: 0;
}

/* Reviews */
.review-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

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

.review-author {
  font-weight: bold;
}

.review-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.review-rating {
  color: #ffc107; /* Gold color for stars */
  margin-bottom: 0.5rem;
}

.review-form-container {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

#review-rating {
  background-color: #fff;
}

/* Subscribe & Save */
.purchase-options {
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  background-color: #f8f9fa;
}

.option-group {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group label {
  margin-left: 0.5rem;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

#subscription-frequency {
  padding: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.loyalty-points {
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 0.5rem;
}

.checkout-summary {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

/* Track Order Page */
.track-order-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.track-order-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
}

/* Deals Section */
.deals-section {
  padding: 4rem 2rem;
  background-color: #fff8e1;
  margin-bottom: 2rem;
}

.deals-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.original-price {
  text-decoration: line-through;
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
}

/* Deals Countdown */
.deals-countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  min-width: 80px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-item span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.countdown-item .label {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.btn-notify {
  background-color: #ffc107;
  color: #212529;
}

.btn-notify:hover {
  background-color: #e0a800;
  color: #212529;
}

/* Subscription Section */
.subscription-section {
  padding: 4rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.subscription-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subscription-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.subscription-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.5rem;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.subscription-section .btn {
  background-color: #fff;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.subscription-section .btn:hover {
  background-color: #f8f9fa;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.faq-item {
  border-bottom: 1px solid #dee2e6;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Cart Animation */
@keyframes cart-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.cart-animate {
  animation: cart-bump 0.3s ease;
  display: inline-flex;
}

/* Cart Icon Badge */
.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: #d32f2f;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background-color);
}

/* Auth Modal Styles */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-color);
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s;
}

/* Profile Page */
.profile-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 2rem;
}

.profile-sidebar {
  flex: 0 0 250px;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

.profile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-menu li {
  margin-bottom: 0.5rem;
}

.profile-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  border-radius: 0.25rem;
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.profile-menu a:hover,
.profile-menu a.active {
  background-color: #fff8e1;
  color: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border-left-color: var(--accent-color);
}

.profile-content {
  flex: 1;
  min-width: 0;
}

.profile-header {
  margin-bottom: 2rem;
}

.order-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.order-history-table th,
.order-history-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.order-history-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.order-status {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-processing {
  background-color: #fff3cd;
  color: #856404;
}

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
    flex: none;
  }
  .order-history-table {
    display: block;
    overflow-x: auto;
  }
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  gap: 3rem;
}

.contact-form-wrapper {
  flex: 2;
  min-width: 300px;
}

.contact-info-wrapper {
  flex: 1;
  min-width: 300px;
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 0.5rem;
  height: fit-content;
}

.contact-info-item {
  margin-bottom: 1.5rem;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--secondary-color);
  margin-bottom: 0;
}

.map-container {
  margin-top: 2rem;
  border-radius: 0.25rem;
  overflow: hidden;
}

/* Live Chat Widget */
#live-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 100;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: #fff;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

#live-chat-btn:hover {
  transform: scale(1.1);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.25rem;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.toast.show {
  opacity: 1;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 300px;
  height: 400px;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.chat-window.open {
  display: flex;
}

.chat-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-footer {
  padding: 0.5rem;
  border-top: 1px solid #dee2e6;
  display: flex;
}

.chat-footer input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  margin-right: 0.5rem;
}

.chat-message {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  max-width: 80%;
  font-size: 0.9rem;
}

.chat-message.user {
  background-color: #e8f5e9;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-message.bot {
  background-color: #fff;
  border: 1px solid #dee2e6;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

.chat-attachment-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

#chat-file-input {
  display: none;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  align-self: flex-start;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #b0b0b0;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1.0);
  }
}

/* Admin Page */
.admin-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
  min-height: 80vh;
}

.admin-sidebar {
  flex: 0 0 250px;
  background-color: #343a40;
  color: #fff;
  padding: 1.5rem;
  border-radius: 0.25rem;
}

.admin-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-menu li {
  margin-bottom: 0.5rem;
}

.admin-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.8);
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.admin-menu a:hover,
.admin-menu a.active {
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

.admin-content {
  flex: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.25rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  min-width: 0;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
  animation: fadeIn 0.3s;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card h3 {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  margin: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  text-align: left;
}

.admin-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}
}

.nav-badge {
  background-color: #d32f2f;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 1rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.profile-tab-content .product-grid {
  padding: 0;
  margin: 0;
}

/* Reviews */
.review-item {
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

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

.review-author {
  font-weight: bold;
}

.review-date {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.review-rating {
  color: #ffc107; /* Gold color for stars */
  margin-bottom: 0.5rem;
}

.review-form-container {
  margin-top: 2rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

#review-rating {
  background-color: #fff;
}

/* Subscribe & Save */
.purchase-options {
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 1rem;
  background-color: #f8f9fa;
}

.option-group {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group label {
  margin-left: 0.5rem;
  margin-right: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}

#subscription-frequency {
  padding: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.loyalty-points {
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 0.5rem;
}

.checkout-summary {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
  text-align: right;
}

/* Track Order Page */
.track-order-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.track-order-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
}

/* Deals Section */
.deals-section {
  padding: 4rem 2rem;
  background-color: #fff8e1;
  margin-bottom: 2rem;
}

.deals-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.original-price {
  text-decoration: line-through;
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1rem;
  font-weight: normal;
}

/* Deals Countdown */
.deals-countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  min-width: 80px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-item span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.countdown-item .label {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.btn-notify {
  background-color: #ffc107;
  color: #212529;
}

.btn-notify:hover {
  background-color: #e0a800;
  color: #212529;
}

/* Subscription Section */
.subscription-section {
  padding: 4rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.subscription-content h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subscription-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.subscription-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.step {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.5rem;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.step h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.subscription-section .btn {
  background-color: #fff;
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.subscription-section .btn:hover {
  background-color: #f8f9fa;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 2rem;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.faq-item {
  border-bottom: 1px solid #dee2e6;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0;
}