/* CSS Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Khmer OS Battambang", "Arial", sans-serif;
  transition: all 0.2s ease-in-out;
}

body {
  background-color: #2575fc;
  color: #000000;
  padding-bottom: 65px; /* កន្លែងសម្រាប់ Bottom Navigation */
  line-height: 1.6;
}

/* New Category Tabs - Responsive & Modern */
.category-tabs {
  display: flex;
  padding: 15px 20px;
  background-color: #2575fc;
  overflow-x: auto;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #6c757d;
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #6a11cb;
}

.active-tab {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
  border-color: #6a11cb;
  transform: translateY(-2px);
}

.active-tab:hover {
  background: linear-gradient(135deg, #5a0db5 0%, #1c68f0 100%);
  box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
  .category-tabs {
    padding: 12px 15px;
    gap: 8px;
  }

  .category-tab {
    padding: 8px 16px;
    font-size: 0.85em;
    border-radius: 20px;
  }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1024px) {
  .category-tabs {
    padding: 15px 30px;
    gap: 15px;
    justify-content: center;
  }

  .category-tab {
    padding: 12px 24px;
    font-size: 1em;
  }
}

/* Desktop Responsive */
@media (min-width: 1025px) {
  .category-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    gap: 20px;
    justify-content: center;
  }

  .category-tab {
    padding: 12px 28px;
    font-size: 1.05em;
    border-radius: 30px;
  }
}

/* Animation for tab activation */
@keyframes tabActivate {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.active-tab {
  animation: tabActivate 0.3s ease-out;
}

/* Enhanced hover effects */
.category-tab {
  position: relative;
  isolation: isolate;
}

.category-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* Loading state for tabs */
.category-tab.loading {
  pointer-events: none;
  opacity: 0.7;
}

.category-tab.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #6a11cb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .category-tabs {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .category-tab {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #cbd5e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .category-tab:hover {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: #e2e8f0;
  }

  .active-tab {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .category-tab {
    border: 2px solid #000;
  }

  .active-tab {
    border: 3px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .category-tab {
    transition: none;
  }

  .category-tab::before,
  .category-tab::after {
    display: none;
  }

  .active-tab {
    animation: none;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .category-tab:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .category-tab:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
  }
}

/* ត្រូវប្រាកដថារចនាបថ .cart-modal-content មាន Max-height នេះ */
.cart-modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh; /* <-- កំណត់កម្ពស់អតិបរមាសម្រាប់ Modal ទាំងមូល */
  overflow: hidden; /* <-- កំណត់ត្រឹមត្រូវ */
  display: flex;
  flex-direction: column;
}
/* បន្ថែម CSS នេះសម្រាប់ Order History */
#order-history-container {
  /* ប្រើ calc ដើម្បីគណនាកម្ពស់ដែលនៅសល់ */
  /* (90% កម្ពស់ Modal) - (កម្ពស់ Header) - (កម្ពស់ប៊ូតុងលុប) */
  max-height: 100%;
  flex-grow: 1; /* អនុញ្ញាតឱ្យវាពង្រីកពេញចន្លោះ */
  overflow-y: auto; /* <-- កំណត់ឱ្យ Scroll ពេលធាតុច្រើន */
  padding: 20px 10px 0 20px; /* ផ្តល់ចន្លោះសម្រាប់ Scrollbar */
  margin-bottom: 10px; /* ទុកចន្លោះបន្តិចពីប៊ូតុងខាងក្រោម */
}

/* បើអ្នកប្រើ padding: 20px នៅក្នុង HTML ខាងក្នុង div នោះ 
   សូមលុប padding នៅក្នុង HTML ចេញ ហើយប្រើ CSS ខាងលើជំនួស */

/* ------------------ PROMOTION BANNER STYLES (កែសម្រួល) ------------------ */
.promotion-banner {
  /* ប្រើ Gradient សម្រាប់ Background */
  background: linear-gradient(
    135deg,
    #000000 0%,
    #000000 100%
  ); /* ពណ៌ក្រហមឆ្អៅ/ផ្កាឈូក */
  color: #ffffff;
  padding: 12px 15px; /* បង្កើន Padding បន្តិច */
  text-align: center;
  font-size: 1em; /* ធ្វើឱ្យអក្សរធំបន្តិច */
  font-weight: 700;
  margin: 10px 15px 0 15px;
  border-radius: 10px; /* ធ្វើឱ្យរាងមូលស្អាត */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.promotion-banner i {
  margin-right: 8px;
  font-size: 1.1em;
  animation: pulse 1.5s infinite; /* បន្ថែម animation */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
/* ------------------------------------------------------------------------- */

/* Header Styles */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #2575fc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
  background: linear-gradient(
    90deg,
    #ffffff,
    #ff0000,
    #000000,
    #0004ff,
    #ff00f2,
    #00ffff,
    #ffee00
  );
  background-size: 200%;
  background-clip: text;
  color: transparent;
  animation: text-animation 2s infinite linear;
  text-shadow: #000;
  font-size: 1.5em;
  font-weight: 900;
}
@keyframes text-animation {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

.icons {
  position: relative;
  cursor: pointer;
  padding: 5px;
}

.icons i {
  font-size: 1.4em;
  color: #000000;
}

.icons span {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff0000;
  color: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  line-height: 1.4;
}

/* Search Bar Styles */
.search-bar {
  padding: 10px 15px;
  background-color: #2575fc;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  border-color: #000000;
}

/* Slideshow Styles */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mySlides {
  display: none;
}

.mySlides img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-caption {
  color: #ffffff;
  font-size: 0.9em;
  padding: 8px 12px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.315);
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-dot,
.dot:hover {
  background-color: #000000;
}

/* Product Grid Styles */
.section-title {
  background: linear-gradient(90deg, #ffffff, #000000);
  background-size: 200%;
  background-clip: text;
  color: transparent;
  animation: text-animation 2s infinite linear;
  text-shadow: #000;
  font-size: 1.4em;
  font-weight: 700;
  text-align: center;
  margin: 20px 0 15px 0;
}
@keyframes text-animation {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 15px;
}

.product-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: zoom-in;
}

.product-info {
  padding: 5px;
}

.product-name {
  font-size: 1em;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 5px;
  height: 1.4em; /* កំណត់កម្ពស់ថេរសម្រាប់ 2 បន្ទាត់ */
  overflow: hidden;
}

.product-description {
  font-size: 0.8em;
  color: #ff0000;
  margin-bottom: 10px;
  height: 1.1em; /* កំណត់កម្ពស់ថេរសម្រាប់ 1 បន្ទាត់ */
  overflow: hidden;
}

.price-section {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 40px; /* កំណត់កម្ពស់ថេរ */
}

.final-price {
  font-size: 1.2em;
  font-weight: 900;
  color: #000000; /* ពណ៌សំខាន់ */
}

.original-price {
  font-size: 0.8em;
  color: #888;
  text-decoration: line-through;
  margin-right: 5px;
}
/* បន្ថែមបន្ទាត់កូដខាងក្រោមទៅ style.css */

/* --------------------------------------------------------------- */
/* NEW STYLES */
/* --------------------------------------------------------------- */

/* ស្ទីលសម្រាប់ដាក់ស្លាកបញ្ចុះតម្លៃ (Discount Badge) */
.discount-badge {
  background-color: #28a745; /* ពណ៌បៃតង */
  color: white;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.7em;
  font-weight: 700;
  margin-top: 5px;
  /* ត្រូវដាក់នៅក្នុង product-info ឬ overlay */
  position: absolute; /* ត្រូវការឲ្យ product-card មាន position: relative */
  top: 5px;
  right: 5px;
  z-index: 5;
}

/* សម្រាប់ជួសជុលបញ្ហារូបភាពមិនអាចចុចបាន៖ */
/* ធានាថា product-card ត្រូវបានកំណត់ទីតាំងដែលត្រឹមត្រូវ */
.product-card {
  /* ... កូដមុន */
  position: relative; /* បន្ថែមបន្ទាត់នេះដើម្បីឲ្យ .discount-badge ដំណើរការ */
  /* ... កូដក្រោយ */
}

.add-to-cart-btn {
  background-color: #2575fc;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  width: 100%;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #000000;
}

.add-to-cart-btn i {
  margin-right: 5px;
}

/* Bottom Navigation Styles */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  background-color: #2575fc;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 5px 0;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  font-size: 0.7em;
  font-weight: 600;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

.nav-item i {
  font-size: 1.4em;
  margin-bottom: 2px;
}

.nav-item.active-nav {
  color: #ffffff;
}

.nav-item:hover {
  color: #ffffff;
}

.nav-item span#mobile-cart-count {
  position: absolute;
  top: 0px;
  right: 5px;
  background-color: #ff0000;
  color: rgb(255, 255, 255);
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 0.6em;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}

/* --------------------------------------------------------------- */
/* MODAL STYLES (Overlay & Content) */
/* --------------------------------------------------------------- */
.modal-overlay,
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-open {
  display: flex;
}

/* Image Modal Content */
.modal-content-image {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content-image img {
  max-width: 100%;
  max-height: 75vh; /* កំណត់កម្ពស់អតិបរមា */
  height: auto;
  border-radius: 8px;
}

.modal-image-caption {
  margin-top: 10px;
  font-size: 1em;
  color: #000000;
  font-weight: 600;
}

/* Cart & Other Modals Content (Slide up from bottom) */
.cart-modal-content {
  background-color: #ffffff;
  width: 100%;
  max-height: 90%;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cart-modal-overlay.modal-open .cart-modal-content {
  transform: translateY(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.modal-header-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #000000;
}

.modal-header-title i {
  margin-right: 8px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #000000;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.close-btn:hover {
  color: #000000;
}

/* Cart Items List */
.cart-items {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dotted #eee;
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.item-details {
  flex-grow: 1;
}

.item-details h4 {
  font-size: 1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.item-details .item-price {
  font-size: 0.9em;
  color: #888;
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.quantity-control button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  color: #333;
}

.quantity-control span {
  margin: 0 10px;
  font-weight: 600;
}

.item-total {
  font-size: 1em;
  font-weight: 700;
  color: #000000;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.remove-btn {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 5px;
  padding: 0;
}

/* Cart Summary & Checkout */
.cart-summary {
  padding: 15px;
  border-top: 1px solid #eee;
  background-color: #f7f9fc;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.9em;
  color: #555;
}

.total-line {
  font-size: 1.1em;
  font-weight: 700;
  color: #000000;
  border-top: 1px solid #ddd;
  padding-top: 5px;
  margin-top: 5px;
}

.checkout-btn {
  width: calc(100% - 30px);
  margin: 15px;
  padding: 12px;
  background-color: #2575fc;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #000000;
}

.checkout-btn:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

/* Size Modal Styles */
.size-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

.size-option {
  padding: 10px 15px;
  margin: 5px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: background-color 0.2s, border-color 0.2s;
}

.size-option:hover {
  background-color: #f0f0f0;
}

.size-option.selected {
  background-color: #000000;
  color: white;
  border-color: #000000;
  transform: scale(1.05);
}

/* User Info Form Styles */
.user-info-form {
  padding: 20px;
  overflow-y: auto;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: #2575fc;
  margin-bottom: 5px;
}

.input-group label i {
  margin-right: 5px;
  color: #2575fc;
}

.user-info-form input[type="text"],
.user-info-form input[type="tel"],
.user-info-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #2575fc;
  border-radius: 8px;
  font-size: 1em;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit; /* ប្រើពុម្ពអក្សរមេ */
}

.user-info-form input:focus,
.user-info-form textarea:focus {
  border-color: #000000;
  box-shadow: 0 0 5px rgba(231, 0, 80, 0.2);
}

.user-info-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Order History Styles */
.order-card {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 5px;
}

.order-header h4 {
  font-size: 1em;
  color: #000000;
}

.order-total {
  font-size: 1.1em;
  color: #333;
  margin: 5px 0 10px 0;
}

.order-details h5 {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
  font-weight: 600;
}

.order-details ul {
  list-style-type: none;
  padding-left: 0;
}

.order-details li {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 2px;
}

/* Order Status Badges */
.order-header span {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: 700;
  color: white;
}

/* កែ status-pending សម្រាប់ QR Code និង រង់ចាំ */
.status-pending {
  background-color: #ffc107;
  color: #333;
}
/* ប្រើពណ៌បៃតងសម្រាប់ Delivered/ជោគជ័យ */
.status-delivered {
  background-color: #28a745;
}

/* --------------------------------------------------------------- */
/* TOAST NOTIFICATION STYLES */
/* --------------------------------------------------------------- */
#toast-notification {
  position: fixed;
  bottom: 80px; /* ខ្ពស់ជាង bottom-nav */
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5000;
  max-width: 90%;
  text-align: center;
  font-size: 0.9em;
}

#toast-notification.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
  visibility: visible;
}

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #000000;
}
/* --------------------------------------------------------------- */

/* Responsive Desktop/Tablet */
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .product-card img {
    height: 250px;
  }

  .bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  /* Desktop specific styles */
  .top-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 0;
    box-shadow: none;
  }

  .search-bar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 0;
  }

  .promotion-banner {
    max-width: 1000px;
    margin: 10px auto;
  }

  .slideshow-container {
    max-width: 1000px;
    margin: 15px auto;
  }

  /* Desktop Modal adjustments */
  .cart-modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
    bottom: auto;
    left: auto;
    border-radius: 10px;
    transform: none;
    transition: none;
  }

  .cart-modal-overlay.modal-open .cart-modal-content {
    transform: none;
  }

  /* Re-enable smooth transition for opacity/scale if needed for desktop modal */
  .cart-modal-overlay {
    transition: background-color 0.3s;
  }

  /* Toast position for desktop */
  #toast-notification {
    bottom: 20px;
  }
}
