* {
  margin: 0;
  padding: 0;
  font-family: "Quicksand", sans-serif;
}

body {
  position: relative;
  z-index: 0;
}

.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.login-modal-content {
  position: relative;
  background: #fffafc;
  border: 2px solid #fbc0d3;
  border-radius: 20px;
  padding: 40px 50px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(249, 127, 160, 0.25);
  animation: popUp 0.3s ease;
  max-width: 420px;
  width: 90%;
}

.modal-icon {
  color: #f97fa0;
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.modal-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.6rem;
  color: #6b3e2e;
  margin-bottom: 12px;
  font-weight: 700;
}

.modal-text {
  font-size: 0.95rem;
  color: #6b3e2e;
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-btn {
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn.signup {
  background-color: #f97fa0;
  color: white;
  border: 2px solid #f97fa0;
}

.modal-btn.signup:hover {
  background-color: #e56c8c;
  border-color: #e56c8c;
  box-shadow: 0 4px 12px rgba(249, 127, 160, 0.3);
}

.modal-btn.signin {
  background-color: #fff;
  border: 2px solid #fbc0d3;
  color: #6b3e2e;
}

.modal-btn.signin:hover {
  background-color: #fbc0d3;
  border-color: #f97fa0;
  box-shadow: 0 4px 12px rgba(249, 127, 160, 0.2);
}

.modal-btn i {
  font-size: 1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: #f97fa0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #e56c8c;
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #c0e8f9 0%, #f7c0ce 100%);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-elements .float {
  position: absolute;
  font-size: 3rem;
  animation: floatUp linear infinite;
  bottom: -50px;
  opacity: 0.5;
}

.floating-elements .float1 {
  left: 10%;
  animation-duration: 6s;
  animation-delay: 0s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float2 {
  left: 25%;
  animation-duration: 8s;
  animation-delay: 1s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float3 {
  left: 45%;
  animation-duration: 7s;
  animation-delay: 2s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float4 {
  left: 65%;
  animation-duration: 9s;
  animation-delay: 3s;
  color: rgba(255, 255, 255, 0.5);
}
.floating-elements .float5 {
  left: 85%;
  animation-duration: 6s;
  animation-delay: 4s;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

.sweet-dreams {
  position: relative;
  text-align: center;
  padding: 50px 20px;
  max-width: 700px;
  margin: 0 auto;
  z-index: 2;
}

.heart-container {
  display: inline-block;
  background-color: #f97fa0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 70px;
  margin-bottom: 20px;
  animation: jump 1s infinite;
  z-index: 2;
  position: relative;
}

.heart-container i {
  color: #fff;
  font-size: 28px;
}

@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.sweet-title {
  font-family: "Unbounded", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #6b3e2e;
}

.sweet-title .highlight {
  font-family: "Unbounded", sans-serif;
  color: #f97fa0;
}

.sweet-subtitle {
  margin: 2rem 1rem 0 1rem;
  font-weight: 500;
  color: #6b3e2e;
  font-size: 1.3rem;
}

.shop-controls {
  background: #ffffff;
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid #fbc0d3;
  border-bottom: 1px solid #fbc0d3;
}

.controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1250px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 400px;
  background-color: #fffafc;
  border: 2px solid #fbc0d3;
  border-radius: 50px;
  padding: 10px 18px;
  transition:
    border 0.3s ease,
    box-shadow 0.3s ease;
}

.search-box i {
  color: #f97fa0;
  font-size: 1rem;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #4b2c20;
  background: transparent;
}

.search-box:focus-within {
  border-color: #f97fa0;
  box-shadow: 0 0 6px rgba(249, 127, 160, 0.3);
}

.filter-options {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex: 1;
  max-width: 400px;
}

.filter-options select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 40px 10px 15px;
  border-radius: 50px;
  border: 2px solid #fbc0d3;
  background-color: #fffafc;
  font-size: 0.95rem;
  color: #6b3e2e;
  cursor: pointer;
  transition:
    border 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23F97FA0' viewBox='0 0 20 20'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

.filter-options select:hover,
.filter-options select:focus {
  border-color: #f97fa0;
  color: #6b3e2e;
  outline: none;
  box-shadow: 0 0 6px rgba(249, 127, 160, 0.3);
}

.products-section {
  padding: 50px 50px;
  margin: 0 auto;
  background-color: #fff;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288.75px, 1fr));
  justify-content: start;
  gap: 30px;
}

.product-card {
  background-color: #fffafc;
  border: 2px solid #fbc0d3;
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-align: justify;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(249, 127, 160, 0.3);
}

.product-image {
  position: relative;
  flex-shrink: 0;
}

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

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  color: #6b3e2e;
  width: 35px;
  height: 35px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.wishlist-btn i {
  font-size: 1rem;
}

.wishlist-btn:hover {
  background-color: rgba(249, 127, 160, 0.8);
  color: #fff;
  transform: scale(1.1);
}

.wishlist-btn.active {
  color: #f97fa0;
  background-color: rgba(255, 255, 255, 0.8);
}

.wishlist-btn.active i {
  color: #f97fa0;
}

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  color: #f97fa0;
  font-size: 1rem;
  padding-bottom: 10px;
}

.product-rating span {
  color: #6b3e2e;
  font-size: 1rem;
  margin-left: 6px;
}

.product-name {
  color: #6b3e2e;
  font-size: 1rem;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 0.9rem;
  color: #4b2c20;
  margin-bottom: 10px;
  flex-grow: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-weight: bold;
  color: #f97fa0;
  font-size: 1.2rem;
}

.add-cart-btn {
  background-color: #f97fa0;
  border: none;
  border-radius: 50px;
  color: #fff;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-cart-btn i {
  margin-right: 10px;
}

.add-cart-btn:hover {
  background-color: #e56c8c;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: #6b3e2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.no-products-icon {
  font-size: 4rem;
  color: #f97fa0;
  margin-bottom: 20px;
}

.no-products h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.no-products p {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.product-detail-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.product-detail-content-wrapper {
  width: 95%;
  max-width: 1000px;
  height: 85vh;
  background: #fffafc;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(249, 127, 160, 0.3);
  animation: slideUp 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

.detail-modal-content {
  position: relative;
  padding: 35px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.close-detail-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #f97fa0;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

.close-detail-modal:hover {
  color: #e56c8c;
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

.detail-image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  height: 475px;
  width: 100%;
  flex-shrink: 0;
}

.detail-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(249, 127, 160, 0.2);
}

.detail-info-section {
  display: flex;
  flex-direction: column;
}

.detail-product-name {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  color: #6b3e2e;
  margin-bottom: 15px;
  font-weight: 700;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.detail-stars {
  display: flex;
  gap: 3px;
  font-size: 1.1rem;
}

.detail-stars i {
  color: #f97fa0;
}

.detail-stars i.far {
  color: #e0e0e0;
}

.detail-stars i.fa-star-half-alt {
  color: #f97fa0;
}

.detail-rating-text {
  color: #6b3e2e;
  font-size: 0.95rem;
  font-weight: 500;
}

.detail-price {
  font-size: 1.5rem;
  color: #f97fa0;
  font-weight: bold;
}

.detail-description {
  color: #4b2c20;
  line-height: 1.6;
  font-size: 1rem;
}

.detail-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #fbc0d3;
  margin-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  color: #6b3e2e;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: #f97fa0;
}

.tab-btn.active {
  color: #f97fa0;
  border-bottom: 3px solid #f97fa0;
  margin-bottom: -2px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ingredient-tag {
  background: #f9f5f7;
  color: #6b3e2e;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #fbc0d3;
  transition: all 0.3s ease;
}

.ingredient-tag:hover {
  background: #fbc0d3;
}

.storage-instructions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 155px;
  overflow-y: auto;
  padding-right: 10px;
  text-align: justify;
  scroll-behavior: smooth;
}

.storage-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.storage-icon {
  font-size: 1.3rem;
  color: #f97fa0;
  margin-top: 4px;
  flex-shrink: 0;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 155px;
  overflow-y: auto;
  padding-right: 10px;
}

.review-item {
  background: #f9f5f7;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #f97fa0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-author {
  color: #6b3e2e;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.review-date {
  color: #999;
  font-size: 0.85rem;
}

.review-stars {
  display: flex;
  gap: 3px;
  font-size: 0.9rem;
}

.review-stars i {
  color: #f97fa0;
}

.review-stars i.far {
  color: #e0e0e0;
}

.review-text {
  color: #4b2c20;
  line-height: 1.6;
  font-size: 0.95rem;
}

.detail-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.detail-add-cart-btn {
  flex: 1;
  background-color: #f97fa0;
  border: none;
  border-radius: 50px;
  color: #fff;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.detail-add-cart-btn:hover {
  background-color: #e56c8c;
  box-shadow: 0 5px 15px rgba(249, 127, 160, 0.3);
}

.detail-add-cart-btn i {
  font-size: 1.1rem;
}

.color-customizer {
  margin: 20px 0 0;
  padding: 15px;
  background: #f9f5f7;
  border: 1px solid #fbc0d3;
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

.color-customizer-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.1rem;
  color: #6b3e2e;
  margin-bottom: 12px;
  font-weight: 600;
}

.color-selection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.color-option {
  display: flex;
  align-items: center;
  max-width: 250px;
}

.color-option input[type="checkbox"] {
  display: none;
}

.color-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #6b3e2e;
  font-weight: 500;
  padding: 5px;
  border-radius: 8px;
  transition: all 0.18s ease;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-option label:hover {
  background: rgba(249, 127, 160, 0.1);
}

.color-option input[type="checkbox"]:checked + label {
  background: rgba(249, 127, 160, 0.2);
  color: #f97fa0;
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) inset;
  margin-right: 6px;
}

.colors-selected-display {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0c0d0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.colors-tag {
  background: #f97fa0;
  color: white;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  margin: 0 2px;
}

.color-remaining-message {
  width: 100%;
  color: #6b3e2e;
  font-size: 0.9rem;
  margin-top: 6px;
}

.detail-tab-content {
  min-height: auto;
  max-height: 175px;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 10px;
}

.detail-tab-content::-webkit-scrollbar {
  display: none;
}

.reviews-list::-webkit-scrollbar,
.storage-instructions::-webkit-scrollbar,
.ingredients-list::-webkit-scrollbar,
.detail-container::-webkit-scrollbar {
  width: 5px;
}

.reviews-list::-webkit-scrollbar-thumb,
.storage-instructions::-webkit-scrollbar-thumb,
.ingredients-list::-webkit-scrollbar-thumb,
.detail-container::-webkit-scrollbar-thumb {
  background-color: rgba(249, 127, 160, 0.4);
  border-radius: 3px;
}

.product-detail-content-wrapper {
  max-height: 90vh;
  overflow-y: auto;
}

.detail-modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

.price-quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  width: 100%;
}

.quantity-selector {
  background: transparent;
  border: none;
  padding: 0;
}

.quantity-label {
  font-weight: 600;
  color: #6b3e2e;
}

.quantity-controls {
  background: #fffafc;
  border: none;
  border-radius: 50px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-decrease-btn,
.qty-increase-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: #f97fa0;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.qty-decrease-btn:hover,
.qty-increase-btn:hover {
  background-color: #e56c8c;
}

.qty-input-field {
  width: 50px;
  text-align: center;
  border: 1px solid #fbc0d3;
  border-radius: 8px;
  background: #fff;
  color: #6b3e2e;
  font-weight: 600;
  font-size: 1rem;
  outline: none;
  padding: 4px 8px;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.qty-input-field::-webkit-inner-spin-button,
.qty-input-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.color-limit-info {
  font-size: 0.9rem;
  color: #f97fa0;
  margin: 10px 0;
  font-weight: 500;
}

.product-notes-section {
  margin: 20px 0;
  padding: 15px;
  background: #f9f5f7;
  border: 1px solid #fbc0d3;
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

.notes-checkbox-label {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  color: #6b3e2e;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notes-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #f97fa0;
}

.notes-wrapper.hidden {
  display: none;
}

.notes-textarea {
  width: 100%;
  height: 90px;
  padding: 12px;
  margin-top: 1rem;
  border: 1px solid #fbc0d3;
  border-radius: 8px;
  background: #fff;
  color: #6b3e2e;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  resize: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.notes-textarea::placeholder {
  color: #999;
}

.notes-textarea:focus {
  outline: none;
  border-color: #f97fa0;
  box-shadow: 0 0 6px rgba(249, 127, 160, 0.3);
}

.notes-char-count {
  font-size: 0.85rem;
  color: #999;
  margin-top: 6px;
  text-align: right;
  font-weight: 500;
}

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

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.product-badge.featured {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.product-badge.bestseller {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.product-badge.new {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}

.product-badge.limited {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

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

.product-badge.limited {
  animation: pulse 1.6s infinite;
}

.no-reviews-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #b07070;
  gap: 10px;
  text-align: center;
}

.no-reviews-icon {
  font-size: 2rem;
  color: #fbc0d3;
}

.no-reviews-placeholder p {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (min-width: 1440px) {
  .sweet-title {
    font-size: 3.5rem;
  }

  .sweet-subtitle {
    font-size: 1.5rem;
  }

  .products-section {
    padding: 60px 80px;
  }

  .controls-container {
    max-width: 1400px;
    padding: 0 80px;
  }
}

@media (max-width: 1024px) {
  .sweet-title {
    font-size: 2.4rem;
  }

  .sweet-subtitle {
    font-size: 1.1rem;
  }

  .products-section {
    padding: 40px 30px;
  }

  .controls-container {
    padding: 0 30px;
  }

  .search-box {
    max-width: 340px;
  }

  .filter-options {
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  .sweet-dreams {
    padding: 40px 16px;
  }

  .sweet-title {
    font-size: 1.8rem;
  }

  .sweet-subtitle {
    font-size: 1rem;
    margin: 1.2rem 0 0;
  }

  .heart-container {
    width: 52px;
    height: 52px;
    line-height: 60px;
  }

  .heart-container i {
    font-size: 24px;
  }

  .shop-controls {
    padding: 16px 0;
  }

  .controls-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
    gap: 12px;
  }

  .search-box {
    max-width: 100%;
    flex: unset;
  }

  .filter-options {
    max-width: 100%;
    flex: unset;
    justify-content: stretch;
  }

  .filter-options select {
    flex: 1;
    font-size: 0.9rem;
  }

  .products-section {
    padding: 30px 16px;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-detail-content-wrapper {
    width: 92%;
    max-height: 88vh;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
  }

  .detail-modal-content {
    padding: 44px 20px 20px;
    max-height: 88vh;
    height: auto;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .close-detail-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.6rem;
    background: #f5e8ef;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    z-index: 20;
  }

  .detail-container {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-y: visible;
    padding-right: 0;
  }

  .detail-image-section {
    height: 500px;
    position: relative;
    top: unset;
    width: 100%;
  }

  .detail-product-image {
    height: 500px;
    border-radius: 10px;
    object-fit: cover;
  }

  .detail-product-name {
    font-size: 1.2rem;
  }

  .detail-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .detail-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }

  .price-quantity-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .floating-elements .float {
    font-size: 2rem;
    opacity: 0.3;
  }
}

@media (max-width: 480px) {
  .sweet-title {
    font-size: 1.5rem;
  }

  .sweet-subtitle {
    font-size: 0.95rem;
  }

  .heart-container {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }

  .heart-container i {
    font-size: 18px;
  }

  .products-section {
    padding: 24px 12px;
  }

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

  .filter-options select {
    width: 100%;
    flex: unset;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-badge {
    font-size: 0.7rem;
  }

  .product-image img {
    height: 150px;
  }

  .product-info {
    padding: 10px;
  }

  .product-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    padding-bottom: 6px;
    line-height: 1.3;
  }

  .product-rating span {
    font-size: 0.72rem;
    margin-left: 0;
    width: 100%;
  }

  .product-name {
    font-size: 0.82rem;
  }

  .product-desc {
    display: none;
  }

  .product-price {
    font-size: 0.88rem;
  }

  .add-cart-btn {
    font-size: 0;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .add-cart-btn i {
    font-size: 0.9rem;
    margin-right: 0;
  }

  .no-products h3 {
    font-size: 1.4rem;
  }

  .product-detail-modal {
    align-items: flex-end !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }

  .product-detail-content-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding-top: 12px;
    animation: slideUpSheet 0.3s ease;
  }

  @keyframes slideUpSheet {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .product-detail-content-wrapper::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: #e0c0d0;
    border-radius: 2px;
    margin: 0 auto 8px;
  }

  .close-detail-modal {
    top: 4px;
    right: 14px;
    font-size: 1.5rem;
    background: #f5e8ef;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
  }

  .detail-modal-content {
    max-height: calc(88vh - 28px);
    overflow-y: auto;
    padding: 44px 16px 24px;
  }

  .detail-image-section {
    height: 400px;
    position: relative;
    top: unset;
  }

  .detail-product-image {
    height: 400px;
    border-radius: 12px;
  }

  .detail-product-name {
    font-size: 1.15rem;
  }

  .detail-price {
    font-size: 1.1rem;
  }

  .floating-elements .float {
    display: none;
  }

  .wishlist-btn {
    width: 30px;
    height: 30px;
  }

  .wishlist-btn i {
    font-size: 0.9rem;
  }

  .toastify {
    font-size: 0.9rem !important;
    padding: 8px 14px !important;
    max-width: 300px !important;
    min-width: unset !important;
    border-radius: 8px !important;
    right: 12px !important;
    left: auto !important;
    bottom: 15px !important;
    transform: none !important;
  }

  .product-detail-content-wrapper.closing {
    animation: slideDownSheet 0.3s ease forwards;
  }

  @keyframes slideDownSheet {
    from {
      transform: translateY(0);
      opacity: 1;
    }
    to {
      transform: translateY(100%);
      opacity: 0;
    }
  }
}

@media (max-width: 360px) {
  .product-badge {
    font-size: 0.6rem;
  }
}

@media (max-width: 320px) {
  .sweet-dreams {
    padding: 30px 12px;
  }

  .sweet-title {
    font-size: 1.2rem;
  }

  .sweet-subtitle {
    font-size: 0.85rem;
  }

  .heart-container {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }

  .heart-container i {
    font-size: 16px;
  }

  .controls-container {
    padding: 0 12px;
  }

  .search-box {
    padding: 8px 14px;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .filter-options select {
    font-size: 0.82rem;
    padding: 8px 30px 8px 12px;
  }

  .products-section {
    padding: 20px 10px;
  }

  .product-badge {
    font-size: 0.5rem;
  }

  .products-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .product-image img {
    height: 130px;
  }

  .product-info {
    padding: 8px;
  }

  .product-rating {
    font-size: 0.7rem;
    padding-bottom: 4px;
  }

  .product-rating span {
    font-size: 0.7rem;
  }

  .product-name {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .product-desc {
    display: none;
  }

  .product-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .product-price {
    font-size: 0.85rem;
  }

  .add-cart-btn {
    width: 100%;
    font-size: 0;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .add-cart-btn i {
    font-size: 0.9rem;
    margin-right: 0;
  }

  .detail-product-name {
    font-size: 1.1rem;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}
