@import url(https://fonts.googleapis.com/css2?family=Istok+Web:ital,wght@0,400;0,700;1,400;1,700&display=swap);
/* Image Upload Component Styles */
.image-upload-container {
  width: 100%;
}

.image-upload-area {
  border: 2px dashed #e1e5e9;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  min-height: 200px;
}

/* Multiple images variant */
.image-upload-container.multiple-images .image-upload-area {
  min-height: 250px;
}

.image-upload-area:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.image-upload-area.drag-over {
  border-color: #007bff;
  background: #e3f2fd;
  transform: scale(1.02);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  height: 100%;
  min-height: 200px;
}

.upload-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 1rem;
}

.upload-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin: 0 0 0.5rem 0;
}

.upload-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0 0 0.5rem 0;
}

.upload-info {
  font-size: 0.8rem;
  color: #868e96;
  margin: 0;
}

.upload-stats {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
}

.files-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  background: #e9ecef;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  display: inline-block;
}

/* Image Previews */
.image-previews {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.image-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.image-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.preview-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Force 1:1 square aspect ratio */
  overflow: hidden;
}

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

.remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.2s ease;
}

.remove-image:hover {
  background: rgba(220, 53, 69, 1);
}

.image-index {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(0, 123, 255, 0.9);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.preview-info {
  padding: 0.75rem;
}

.preview-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-size {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Upload Actions */
.upload-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  margin-top: 1rem;
}

.upload-actions .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.upload-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.upload-actions .add-more-btn {
  background: #fff;
  border: 1px solid #007bff;
  color: #007bff;
}

.upload-actions .add-more-btn:hover:not(:disabled) {
  background: #007bff;
  color: white;
}

.upload-actions .clear-all-btn {
  background: #fff;
  border: 1px solid #dc3545;
  color: #dc3545;
}

.upload-actions .clear-all-btn:hover {
  background: #dc3545;
  color: white;
}

/* Progress Indicator */
.upload-progress {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 0.85rem;
  color: #495057;
  text-align: center;
}

/* Single Image Upload Variant */
.image-upload-container.single-image .image-previews {
  grid-template-columns: 1fr;
  max-width: 300px;
  margin: 0 auto;
}

.image-upload-container.single-image .image-preview {
  max-width: 100%;
}

.image-upload-container.single-image .preview-image {
  aspect-ratio: 1 / 1; /* Maintain 1:1 aspect ratio for single images */
}

/* Responsive Design */
@media (max-width: 768px) {
  .image-previews {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .preview-image {
    aspect-ratio: 1 / 1; /* Maintain 1:1 aspect ratio on mobile */
  }
  
  .upload-placeholder {
    padding: 1.5rem;
    min-height: 150px;
  }
  
  .upload-icon {
    font-size: 2.5rem;
  }
  
  .upload-title {
    font-size: 1rem;
  }
}

/* Error States */
.image-upload-area.error {
  border-color: #dc3545;
  background: #f8d7da;
}

.image-upload-area.error .upload-icon {
  color: #dc3545;
}

/* Loading State */
.image-upload-area.loading {
  pointer-events: none;
  opacity: 0.7;
}

.image-upload-area.loading .upload-placeholder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Image Cropper Component Styles */
.image-cropper-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cropper-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.cropper-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  z-index: 1;
}

.cropper-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.cropper-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
}

.cropper-header p {
  margin: 0;
  font-size: 0.875rem;
  color: #6c757d;
}

.cropper-body {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.cropper-canvas-container {
  position: relative;
  display: inline-block;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.cropper-canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.crop-area {
  position: absolute;
  border: 2px solid #007bff;
  background: rgba(0, 123, 255, 0.1);
  cursor: move;
  pointer-events: all;
  min-width: 50px;
  min-height: 50px;
}

.crop-area::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(0, 123, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #007bff;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.crop-handle:hover {
  background: #0056b3;
  transform: scale(1.2);
}

.crop-handle-nw {
  top: -6px;
  left: -6px;
  cursor: nw-resize;
}

.crop-handle-ne {
  top: -6px;
  right: -6px;
  cursor: ne-resize;
}

.crop-handle-sw {
  bottom: -6px;
  left: -6px;
  cursor: sw-resize;
}

.crop-handle-se {
  bottom: -6px;
  right: -6px;
  cursor: se-resize;
}

.cropper-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: #f8f9fa;
}

.cropper-footer .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cropper-footer .btn-secondary {
  background: #6c757d;
  color: white;
}

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

.cropper-footer .btn-primary {
  background: #007bff;
  color: white;
}

.cropper-footer .btn-primary:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cropper-content {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
  }
  
  .cropper-header,
  .cropper-body,
  .cropper-footer {
    padding: 1rem;
  }
  
  .cropper-canvas-container {
    max-width: 100%;
  }
  
  .cropper-footer {
    flex-direction: column;
  }
  
  .cropper-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Dark overlay effect outside crop area */
.crop-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.crop-area::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Animation for modal appearance */
.image-cropper-modal {
  animation: cropperFadeIn 0.3s ease-out;
}

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

.cropper-content {
  animation: cropperSlideIn 0.3s ease-out;
}

@keyframes cropperSlideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.swiper-grid > .swiper-wrapper {
  flex-wrap: wrap;
}
.swiper-grid-column > .swiper-wrapper {
  flex-wrap: wrap;
  flex-direction: column;
}

/* Base Styles */
.home-page {
  color: #313131;
}
p {
  margin: 0 !important;
}
#no-data {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: center;
}
/* PRODUCT CARD  */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background-color: #fff;
  border: 1px solid #f3f3f3;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  gap: 8px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.card__img-wrapper {
  height: 150px;
  overflow: hidden;
}

.card__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__promo-badge {
  background: #dc2626;
  color: white;
  position: absolute;
  top: 10px;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 5px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: top;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card__content {
  padding: 12px 12px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__content__name {
  font-weight: 500 !important;
  font-size: 14px;
  margin: 0 0 8px 0;
  color: #2c3e50;
  line-height: 1.4;
  margin: 0;
}
.card__content__price {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px 0;
  color: #2c3e50;
}
.card__content__original-price {
  font-size: 12px;
  color: #6b7280;
  text-decoration: line-through;
  margin: 0;
  font-weight: 400;
}
.card__content__promo-price {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #dc2626;
}
.card__content__discount {
  background: #dc2626;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
/* PRODUCT CART */

/* Main Layout */
.home-main-layout {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-bottom: 120px;
}

/* Banner Styles */
.home-banner-container {
  position: relative;
}

.home-banner-item {
  height: 175px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.home-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner-skeleton {
  width: 100%;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}

.home-skeleton-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(-90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: home-loading 1.2s ease-in-out infinite;
}

@keyframes home-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.home-animate-pulse {
  animation: home-loading 1.5s infinite linear;
}

/* Swiper Styles - Following Original Structure */
.home-banner-container.swiper,
.home-banner-item {
  position: relative;
}

.home-swiper-pagination {
  position: absolute;
  bottom: 20px !important;
  z-index: 10;
}

.home-swiper-pagination .swiper-pagination-bullet-active {
  background-color: #e6b120 !important;
}

/* Section Styles */
.home-section-wrapper {
  margin-top: 2.5rem;
}

.home-section-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  color: #66686a;
  margin-bottom: 1rem;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.home-view-all {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.home-view-all:hover {
  opacity: 0.8;
}

.home-view-all-text {
  font-size: 12px;
  text-transform: capitalize;
  color: #313131;
  margin-right: 0.25rem;
}

.home-view-all-arrow {
  font-size: 14px;
  color: #313131;
}

.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-categories-container {
  position: relative;
}

.home-categories-swiper {
  padding-bottom: 2rem;
}

.home-categories-pagination {
  display: none;
  position: absolute;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: auto !important;
  text-align: center;
}

.home-categories-pagination .swiper-pagination-bullet {
  background: #e6b120;
  opacity: 0.3;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.home-categories-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #e6b120;
  transform: scale(1.2);
}

.home-categories-pagination .swiper-pagination-bullet:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.home-category-card {
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.home-category-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 8px;
}

.home-category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-category-name {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #66686a;
  line-height: 1.2;
  margin: 0;
}

/* Product Card */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.home-product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.home-product-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  text-transform: capitalize;
  color: #313131;
  margin: 0;
  line-height: 1.3;
}

.home-product-rating {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #666;
  gap: 4px;
}

.home-rating-stars {
  color: #ffd700;
}

.home-rating-divider {
  color: #ddd;
}

.home-sales-count {
  color: #686a6b;
}

.home-product-meta {
  font-size: 10px;
  color: #838383;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}
@media (max-width: 576px) {
  .promo-badge {
    font-size: 7px;
    padding: 1px 4px;
  }
}
/* Loading and Error States */
.home-loading-text {
  text-align: center;
  color: #838383;
  font-size: 14px;
  padding: 2rem;
  margin: 0;
}

.home-no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #838383;
  font-size: 14px;
  padding: 2rem;
  margin: 0;
}

.home-error-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #dc2626;
  font-size: 14px;
  padding: 2rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 639px) {
  .home-categories-container {
    width: 100%;
  }

  .home-categories-swiper {
    padding-bottom: 2rem;
  }

  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-category-card {
    width: 100px;
    height: auto;
    margin: 0 auto;
  }

  .home-category-img-wrapper {
    width: 100px;
    height: 100px;
  }

  .home-category-name {
    font-size: 11px;
    text-align: center;
  }
}

@media (min-width: 400px) {
  footer {
    display: flex;
  }

  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-categories-pagination {
    display: block;
  }

  .home-category-card {
    width: 80px;
    height: auto;
    margin: 0 auto;
  }

  .home-category-img-wrapper {
    width: 80px;
    height: 80px;
  }

  .home-category-name {
    font-size: 11px;
    text-align: center;
  }
}

@media (min-width: 640px) {
  .home-main-layout {
    margin-top: 1.25rem;
    max-width: 700px;
  }

  .home-banner-item {
    height: 200px;
  }

  .home-banner-skeleton {
    height: 200px;
  }

  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-category-img-wrapper {
    height: 70px;
  }

  .home-category-name {
    font-size: 13px;
  }

  .home-product-img-wrapper {
    height: 140px;
  }

  .home-product-name {
    font-size: 14px;
  }

  .home-product-price {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .home-main-layout {
    margin-top: 2rem;
    padding-left: 0;
    padding-right: 0;
  }

  .home-category-card {
    width: 120px;
  }

  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-section-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  /* PRODUCT CARD */
  .card {
    width: 200px;
  }
  .home-category-card {
    width: 100px;
  }

  .home-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .home-product-img-wrapper {
    border-radius: 8px;
    height: 200px;
    width: 200px;
  }

  .home-product-name {
    font-family: "Inter", sans-serif;
    font-size: 15px;
  }

  .home-product-price {
    font-size: 18px;
  }
}

@media (min-width: 1280px) {
  .home-main-layout {
    max-width: 1140px;
  }

  .home-banner-item {
    height: 350px;
  }

  .home-banner-skeleton {
    height: 350px;
  }

  .home-categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .home-category-card {
    width: 150px;
  }

  .home-category-img-wrapper {
    height: 150px;
    width: 150px;
  }

  .home-category-name {
    font-size: 14px;
  }

  .home-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ===== CATALOG PAGE LAYOUT ===== */

/* Main layout container - ensures proper page structure */
.catalog-main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content wrapper - grows to fill available space */
.catalog-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Main container for catalog content */
.catalog-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
}

/* ===== FILTER SIDEBAR ===== */

.catalog-filter {
    width: 280px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
    height: fit-content;
}

.catalog-filter__title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.catalog-filter__group {
    margin-bottom: 24px;
}

.catalog-filter__label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
}

.catalog-filter__input-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.catalog-filter__input-prefix {
    width: 50px;
    font-size: 11px;
    font-weight: 500;
    background-color: #f8f9fa;
    padding: 10px 8px;
    border: 1px solid #e9ecef;
    border-right: none;
    border-radius: 6px 0 0 6px;
    text-align: center;
    color: #6c757d;
}

.catalog-filter__input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0 6px 6px 0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.catalog-filter__input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.catalog-filter__select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 8px;
}

.catalog-filter__select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== MAIN CONTENT AREA ===== */
.catalog-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0 0 40px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.catalog-header__count {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* ===== PRODUCT GRID ===== */

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

/* ===== LOADING INDICATOR ===== */

.catalog-loading {
    text-align: center;
    padding: 24px;
    color: #6c757d;
    font-size: 14px;
    transition: opacity 0.2s ease-in-out;
}

.catalog-loading.hidden {
    display: none;
}

.catalog-loading i {
    margin-right: 8px;
}

/* ===== SKELETON LOADERS ===== */

.catalog-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.catalog-skeleton-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

.catalog-skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(-90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.catalog-skeleton-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-skeleton-title {
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    width: 85%;
}

.catalog-skeleton-title-second {
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    width: 60%;
}

.catalog-skeleton-price {
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 4px;
    width: 45%;
    margin-top: 4px;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.7;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== NO PRODUCTS MESSAGE ===== */

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.no-products-message i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-products-message h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.no-products-message p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* ===== PRODUCT CARDS ===== */
.catalog-product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}

.catalog-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.catalog-product-card__image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

.catalog-product-card__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.catalog-product-card__name {
    font-weight: 500;
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    --webkit-line-clamp: 2;
    --webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.catalog-product-card__price {
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

/* ===== PROMO STYLES ===== */

.promo-badge {
    background: #dc2626;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: top;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-product-card__price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 8px 0;
}

.catalog-product-card__price-original {
    font-size: 12px;
    color: #6b7280;
    text-decoration: line-through;
    margin: 0;
    font-weight: 400;
}

.catalog-product-card__price-promo {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    color: #dc2626;
}

.catalog-product-card__discount {
    background: #dc2626;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.catalog-product-card__rating {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-product-card__rating i {
    color: #FFD700;
    margin-right: 4px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 400px) {
    footer {
        display: none;
    }
}


/* Desktop - 5 columns at 1024px and above */
@media (min-width: 1024px) {
    .catalog-product-grid,
    .catalog-skeleton-grid {
        grid-template-columns: repeat(4 , 1fr);
    }
}
@media (min-width: 1280px) {
    .catalog-product-grid,
    .catalog-skeleton-grid {
        grid-template-columns: repeat(5 , 1fr);
    }
}

/* Large tablet - 4 columns */
@media (max-width: 1023px) and (min-width: 769px) {
    .catalog-product-grid,
    .catalog-skeleton-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small tablet - 3 columns */
@media (max-width: 768px) and (min-width: 577px) {
    .catalog-product-grid,
    .catalog-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile - 2 columns */
@media (max-width: 576px) {
    .catalog-product-grid,
    .catalog-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ===== TABLET AND MOBILE LAYOUT ===== */

/* Tablet and below - filter becomes horizontal */
@media (max-width: 1023px) {
    .catalog-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .catalog-filter {
        position: static;
        width: 100%;
        padding: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        border-radius: 8px;
    }

    .catalog-filter__title {
        width: 100%;
        margin-bottom: 12px;
        font-size: 16px;
    }

    .catalog-filter__group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }

    .catalog-filter__group:last-child {
        flex: 2;
        min-width: 280px;
    }

    .catalog-header {
        margin-bottom: 16px;
    }

    .catalog-header__count {
        font-size: 15px;
    }
}

/* ===== MOBILE SPECIFIC STYLES ===== */

@media (max-width: 576px) {
    .catalog-container {
        padding: 12px;
    }

    .catalog-filter {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .catalog-filter__group,
    .catalog-filter__group:last-child {
        min-width: 100%;
        flex: none;
    }

    .catalog-filter__title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .catalog-filter__label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .catalog-filter__input,
    .catalog-filter__select {
        padding: 8px 10px;
        font-size: 13px;
    }

    .catalog-filter__input-prefix {
        padding: 8px 6px;
        font-size: 10px;
    }

    .catalog-header__count {
        font-size: 14px;
    }

    .catalog-product-card__image {
        height: 100%;
    }

    .catalog-product-card__content {
        padding: 12px;
    }

    .catalog-product-card__name {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .catalog-product-card__price {
        font-size: 14px;
    }

    .catalog-product-card__price-promo {
        font-size: 14px;
    }

    .catalog-product-card__price-original {
        font-size: 11px;
    }

    .catalog-product-card__discount {
        font-size: 8px;
        padding: 1px 4px;
    }

    .promo-badge {
        font-size: 7px;
        padding: 1px 4px;
    }

    .catalog-product-card__rating {
        font-size: 11px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Disable smooth scroll for better infinite scroll performance */
html {
    scroll-behavior: auto;
}

/* Optimize for animations and rendering */
.catalog-product-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* Searchable Dropdown Component Styles */
.searchable-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.selected-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
  min-height: 48px;
}

.selected-value:hover {
  border-color: #007bff;
}

.searchable-dropdown.open .selected-value {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.selected-text {
  flex: 1;
  color: #495057;
  font-size: 0.9rem;
}

.selected-value.has-value .selected-text {
  color: #212529;
  font-weight: 500;
}

.selected-value:not(.has-value) .selected-text {
  color: #6c757d;
}

.dropdown-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.clear-btn:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.dropdown-arrow {
  color: #6c757d;
  transition: transform 0.2s ease;
}

.dropdown-arrow i {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
  max-height: 300px;
  overflow: hidden;
}

/* Search Input */
.dropdown-search {
  padding: 0.75rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: #6c757d;
  font-size: 0.85rem;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 0.85rem;
  background: white;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Dropdown Options */
.dropdown-options {
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f8f9fa;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover,
.dropdown-option.focused {
  background: #f8f9fa;
}

.dropdown-option:active {
  background: #e9ecef;
}

.option-content {
  display: flex;
  flex-direction: column;
}

.option-name {
  font-size: 0.9rem;
  color: #212529;
  font-weight: 500;
}

.option-description {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Loading and No Results States */
.loading-state,
.no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.loading-state i,
.no-results i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #adb5bd;
}

.loading-state i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error State */
.searchable-dropdown.error .selected-value {
  border-color: #dc3545;
}

.searchable-dropdown.error .selected-value:hover,
.searchable-dropdown.error.open .selected-value {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Disabled State */
.searchable-dropdown.disabled {
  pointer-events: none;
  opacity: 0.6;
}

.searchable-dropdown.disabled .selected-value {
  background: #f8f9fa;
  cursor: not-allowed;
}

/* Custom Scrollbar */
.dropdown-options::-webkit-scrollbar {
  width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dropdown-menu {
    max-height: 250px;
  }
  
  .dropdown-options {
    max-height: 150px;
  }
  
  .selected-value {
    padding: 0.625rem 0.875rem;
    min-height: 44px;
  }
  
  .dropdown-option {
    padding: 0.625rem 0.875rem;
  }
  
  .search-input {
    padding: 0.5rem 0.625rem 0.5rem 2rem;
  }
  
  .search-icon {
    left: 0.625rem;
  }
}

/* Animation for dropdown appearance */
.dropdown-menu {
  animation: dropdownFadeIn 0.2s ease-out;
}

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

/* Focus styles for accessibility */
.dropdown-trigger:focus-within .selected-value {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .selected-value {
    border-width: 2px;
  }
  
  .dropdown-option:hover,
  .dropdown-option.focused {
    background: #000;
    color: #fff;
  }
}

/* Price Formatter Component Styles */
.price-formatter-container {
  width: 100%;
}

.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 1rem;
  color: #495057;
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1;
  pointer-events: none;
}

.price-input {
  padding-left: 3rem !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
}

.price-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.price-input::placeholder {
  color: #adb5bd;
  font-weight: normal;
}

.price-info {
  margin-top: 0.5rem;
}

.price-info small {
  font-size: 0.8rem;
}

/* Error State */
.price-formatter-container.error .price-input {
  border-color: #dc3545;
}

.price-formatter-container.error .price-input:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.price-formatter-container.error .currency-prefix {
  color: #dc3545;
}

/* Disabled State */
.price-formatter-container.disabled .price-input {
  background-color: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

.price-formatter-container.disabled .currency-prefix {
  color: #6c757d;
  opacity: 0.6;
}

/* Success State */
.price-formatter-container.success .price-input {
  border-color: #28a745;
}

.price-formatter-container.success .price-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

.price-formatter-container.success .currency-prefix {
  color: #28a745;
}

/* Large Size Variant */
.price-formatter-container.large .price-input {
  padding: 1rem 1rem 1rem 3.5rem;
  font-size: 1.1rem;
  min-height: 56px;
}

.price-formatter-container.large .currency-prefix {
  left: 1.25rem;
  font-size: 1.1rem;
}

/* Small Size Variant */
.price-formatter-container.small .price-input {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.price-formatter-container.small .currency-prefix {
  left: 0.75rem;
  font-size: 0.85rem;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
  .price-input {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .price-input:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 2px rgba(99, 179, 237, 0.25);
  }
  
  .currency-prefix {
    color: #e2e8f0;
  }
  
  .price-formatter-container.disabled .price-input {
    background-color: #1a202c;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .price-input {
    border-width: 2px;
  }
  
  .currency-prefix {
    font-weight: 600;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .price-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding-left: 2.75rem !important;
  }
  
  .currency-prefix {
    left: 0.875rem;
    font-size: 0.85rem;
  }
}

/* Animation for value changes */
.price-input {
  transition: all 0.2s ease;
}

.price-formatter-container.value-changed .price-input {
  background-color: #e8f5e8;
  animation: valueHighlight 0.6s ease;
}

@keyframes valueHighlight {
  0% {
    background-color: #e8f5e8;
  }
  100% {
    background-color: white;
  }
}

/* Focus ring for accessibility */
.price-input:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Custom number input styling */
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.price-input[type=number] {
  -moz-appearance: textfield;
}

/* Validation states */
.price-formatter-container .validation-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.price-formatter-container.error .validation-icon {
  color: #dc3545;
}

.price-formatter-container.success .validation-icon {
  color: #28a745;
}

/* Loading state */
.price-formatter-container.loading .price-input {
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Tooltip for formatting info */
.price-formatter-container .format-tooltip {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.price-formatter-container .format-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #333;
}

.price-formatter-container:hover .format-tooltip {
  opacity: 1;
}

/* QR Code Generator Component Styles */
.qr-generator-container {
  width: 100%;
  background: white;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  overflow: hidden;
}

.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.qr-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-title i {
  color: #007bff;
}

.qr-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  color: #6c757d;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.btn-icon:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
}

.btn-refresh:hover {
  color: #007bff;
  border-color: #007bff;
}

.btn-download:hover {
  color: #28a745;
  border-color: #28a745;
}

.qr-content {
  padding: 1.5rem;
}

.qr-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-bottom: 1.5rem;
  position: relative;
  background: #fafafa;
  border-radius: 8px;
  border: 2px dashed #e1e5e9;
}

.qr-placeholder {
  text-align: center;
  color: #6c757d;
}

.qr-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #adb5bd;
}

.qr-placeholder p {
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.qr-placeholder small {
  color: #868e96;
}

.qr-canvas,
.qr-svg {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 0.5rem;
}

.qr-error {
  text-align: center;
  color: #dc3545;
  padding: 2rem;
}

.qr-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.qr-error p {
  margin: 0;
  font-weight: 500;
}

.qr-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.qr-data {
  font-size: 0.8rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

.qr-size {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.qr-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #007bff;
  font-weight: 500;
  z-index: 10;
}

.qr-loading i {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .qr-header {
    padding: 0.75rem;
  }
  
  .qr-title {
    font-size: 0.9rem;
  }
  
  .qr-content {
    padding: 1rem;
  }
  
  .qr-display {
    min-height: 180px;
    margin-bottom: 1rem;
  }
  
  .qr-placeholder i {
    font-size: 2.5rem;
  }
  
  .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0.375rem;
  }
}

/* Animation for QR code appearance */
.qr-canvas,
.qr-svg {
  animation: qrFadeIn 0.5s ease-out;
}

@keyframes qrFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Loading animation */
.qr-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success state */
.qr-generator-container.success .qr-display {
  border-color: #28a745;
  background: #f8fff9;
}

.qr-generator-container.success .qr-title i {
  color: #28a745;
}

/* Error state */
.qr-generator-container.error .qr-display {
  border-color: #dc3545;
  background: #fff8f8;
}

.qr-generator-container.error .qr-title i {
  color: #dc3545;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .qr-generator-container {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .qr-header {
    background: #1a202c;
    border-color: #2d3748;
  }
  
  .qr-title {
    color: #e2e8f0;
  }
  
  .qr-display {
    background: #1a202c;
    border-color: #4a5568;
  }
  
  .qr-placeholder {
    color: #a0aec0;
  }
  
  .qr-data {
    background: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .btn-icon {
    border-color: #4a5568;
    color: #a0aec0;
  }
  
  .btn-icon:hover {
    background: #2d3748;
    color: #e2e8f0;
  }
}

/* Print styles */
@media print {
  .qr-header {
    background: white !important;
    border-bottom: 1px solid #000;
  }
  
  .qr-actions {
    display: none;
  }
  
  .qr-display {
    border: 1px solid #000;
    background: white;
  }
  
  .qr-canvas,
  .qr-svg {
    box-shadow: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .qr-generator-container {
    border-width: 2px;
  }
  
  .qr-display {
    border-width: 3px;
  }
  
  .btn-icon {
    border-width: 2px;
  }
}

/* Focus styles for accessibility */
.btn-icon:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Tooltip for buttons */
.btn-icon {
  position: relative;
}

.btn-icon::after {
  content: attr(title);
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.btn-icon:hover::after {
  opacity: 1;
}

/* Lazy loading styles */
.lazy-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.lazy-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2rem;
  color: #e74c3c;
}

.lazy-error button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.lazy-error button:hover {
  background-color: #2980b9;
}

/* Skeleton loading for better UX */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
}
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000000;
  background-color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
}

#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 0.875rem;
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #e6b120;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ffcd29;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.5rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #e6b120;
  color: #ffffff;
  border-color: #e6b120;
}

.btn-primary:hover:not(:disabled) {
  background-color: #ffcd29;
  border-color: #ffcd29;
  text-decoration: none;
  color: #000000;
}

.btn-secondary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #333333;
  border-color: #333333;
  text-decoration: none;
  color: #ffffff;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
  border-color: #dc2626;
  text-decoration: none;
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  border-color: #e6b120;
}

.btn-outline:hover:not(:disabled) {
  background-color: #ffcd29;
  text-decoration: none;
  color: #000000;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #000000;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e6b120;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #000000;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #ffcd29;
  box-shadow: 0 0 0 3px rgba(255, 205, 41, 0.2);
}

.form-control:disabled {
  background-color: #f9fafb;
  color: #6b7280;
}

.form-control.is-invalid {
  border-color: #ef4444;
}

.form-control.is-invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #ef4444;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}
.d-flex {
  display: flex !important;
}
.d-inline-flex {
  display: inline-flex !important;
}

.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-end {
  justify-content: flex-end;
}

.align-items-center {
  align-items: center;
}
.align-items-start {
  align-items: flex-start;
}
.align-items-end {
  align-items: flex-end;
}

.flex-column {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}

.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}

/* Additional utility classes */
.text-muted {
  color: #6c757d !important;
}

.text-danger {
  color: #dc3545 !important;
}

.font-weight-500 {
  font-weight: 500 !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

.text-gray-500 {
  color: #6b7280 !important;
}
.text-header {
  color: #2c3e50;
  font-size: 24px;
  font-weight: 600;
}
.m-0{
  margin: 0;
}
.mb-7 {
  margin-bottom: 28px;
}
@media (max-width: 1023px) {
  .text-header {
    font-size: 20px;
  }
}
@media (max-width: 576px) {
  .text-header {
    font-size: 18px;
  }
}
.ellipsis-3 {
  line-clamp: 3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ellipsis-2 {
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-layout {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-bottom: 120px;
  min-height: 100vh;
  color: #66686a;
}

@media (min-width: 640px) {
  .main-layout {
    margin-top: 1.25rem;
    max-width: 700px;
  }
}

@media (min-width: 768px) {
  .main-layout {
    margin-top: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 1280px) {
  .main-layout {
    max-width: 1140px;
  }
}

/* Page Transitions */
.page-container {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-container.page-enter {
  opacity: 1;
  transform: translateY(0);
}

.page-container.page-exit {
  opacity: 0;
  transform: translateY(-20px);
}

/* Fade transition for route changes */
#root {
  position: relative;
}

.route-transition {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  z-index: 1;
}

.route-transition.entering {
  animation: routeEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.route-transition.exiting {
  animation: routeExit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes routeEnter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes routeExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states with smooth transitions */
.loading-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Import component styles */

.wishlist-container {
  width: 100%;
}

.wishlist-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.clear-btn {
  background: none;
  color: red;
  border: none; 
  cursor: pointer;
}

.clear-btn:hover {
  background: none;
}

.wishlist-heading {
  font-size: 16px;
  margin-bottom: 12px;
}

.items-container {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  gap: 20px;
}
.wishlist-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wishlist-checkbox {
  flex-shrink: 0;
}

.wishlist-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.wishlist-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wishlist-name {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.wishlist-price {
  font-weight: bold;
  font-size: 14px;
  margin-top: 4px;
  color: #000;
}

.wishlist-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #888;
  padding: 4px;
  flex-shrink: 0;
}

.wishlist-delete:hover {
  color: #ff4444;
}

.delete-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  min-height: 150px;
  max-width: 400px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ddd;
  color: #333;
}

.modal-btn.danger {
  background-color: #e74c3c;
  color: #fff;
}

.hidden {
  display: none;
}

/* Enhanced wishlist item styles */
.wishlist-items {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 16px;
}

.wishlist-items:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wishlist-brand {
  font-size: 12px;
  color: #6c757d;
  margin-top: 4px;
}

.wishlist-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 4px;
}

.wishlist-rating .rating-stars {
  color: #E6B120;
}

.wishlist-rating .rating-text {
  color: #495057;
  font-weight: 500;
}

.wishlist-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.wishlist-view {
  background: none;
  border: 2px solid #E6B120;
  color: #E6B120;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.wishlist-view:hover {
  background-color: #E6B120;
  color: white;
}

.wishlist-delete {
  border: 2px solid #dc3545;
  color: #dc3545;
  font-size: 12px;
}

.wishlist-delete:hover {
  background-color: #dc3545;
  color: white;
}

.brands-title {
  font-size: 20px;
  font-weight: semibold;
  color: #313131;
}
.brands-image-container {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: 110px;
}
.brands-image-skeleton {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}
.brands-item {
  margin-top: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-title {
  font-size: 28px;
  font-weight: 600;
}
.brands-container {
  display: grid;
  gap: 1.5rem;
  justify-content: between;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 400px) {
  footer {
    display: flex;
  }
}

@media (min-width: 640px) {
  .brands-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .brands-image-container {
    height: 150px;
  }
  .brands-image-skeleton {
    height: 150px;
  }
}

@media (min-width: 1280px) {
  .brands-container {
    grid-template-columns: repeat(5, 1fr);
  }
  .brands-image-container {
    height: 250px;
  }
  .brands-image-skeleton {
    height: 225px;
  }
}

.error-message {
  text-align: center;
  color: white;
  padding: 20px;
}
.error-message h3 {
  text-align: center;
  color: #313131;
  font-weight: 400;
}

.refresh-button {
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #f8be00;
  border: none;
  color: white;
  font-weight: bold;
  font-weight: 400;
  border-radius: 5px;
  cursor: pointer;
}

.refresh-button:hover {
  background-color: #e0ab00;
}

/* Detail Page Styles */
.detail-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  padding-top: 0;
  /* Remove top padding since we have TopNavigationBar */
}

/* Main Content */
.detail-main {
  flex: 1;
  padding: 0;
  background-color: #ffffff;
}
.header__promo-badge__container {
  margin-bottom: 12px !important;
  height: auto;
}
.header__promo-badge {
  background: #dc2626;
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  vertical-align: top;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content {
  display: flex;
  flex-direction: column;
}
.content__price {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 8px 0;
  color: #2c3e50;
}
.content__original-price {
  color: #6b7280;
  text-decoration: line-through;
  margin: 0;
  font-weight: 400;
  font-size: 24px;
}
.content__promo-price {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #dc2626;
}
.content__discount {
  background: #dc2626;
  color: white;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.content__discount__container {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Detail Header - positioned below TopNavigationBar */
.detail-header {
  padding: 16px 20px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.back-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.back-btn:hover {
  background-color: #f5f5f5;
}

/* Product Detail Container */
.product-detail-container {
  display: flex;
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Images Section */
.product-images-section {
  flex: 1;
  max-width: 500px;
}

.main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8f9fa;
  margin-bottom: 16px;
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variant-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Thumbnails */
.thumbnail-images {
  margin-top: 16px;
}

.thumbnail-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-behavior: smooth;
}

.thumbnail-container::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.thumbnail-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.thumbnail {
  min-width: 80px;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  background-color: #f5f5f5;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: #e6b120;
}

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

/* Product Info Section */
.product-info-section {
  flex: 1;
  max-width: 600px;
}

.product-header {
  margin-bottom: 16px;
}

.title-rating {
  width: 100%;
}

.product-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.rating-text {
  color: #666;
  font-weight: 500;
}

.rating-count {
  color: #999;
  font-size: 13px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #e6b120;
}

.rating-text {
  font-family: "Istok Web", sans-serif;
  font-weight: 400;
  color: #838383;
  padding: 0 8px 0 0;
  border-right: 1px solid #838383;
}

.rating-count {
  font-family: "Istok Web", sans-serif;
  color: #838383;
  font-size: 13px;
}

.sold-text {
  color: #6c757d;
  font-weight: 500;
}

.price-section {
  border-bottom: 1px solid #e7e7e7;
  padding: 0 0 16px 0;
  margin-bottom: 16px;
}

.price-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  flex: 1;
}

.wishlist-btn {
  background: none;
  border: 2px solid #e6b120;
  color: #e6b120;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  flex-shrink: 0;
}

.wishlist-btn:hover {
  background-color: #e6b120;
  color: white;
  transform: scale(1.05);
}

.wishlist-btn.added {
  background-color: #e6b120;
  border-color: #e6b120;
  color: white;
  animation: heartBeat 0.6s ease-in-out;
}

.wishlist-btn.added:hover {
  background-color: #d4a017;
  border-color: #d4a017;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Variants */
.variants-section {
  margin: 1rem 0 0 0;
  padding: 0 0 2rem 0;
  border-bottom: 1px solid #e7e7e7;
}

.variants-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.variants-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-box {
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
}

/* Description */
.description-section {
  margin-bottom: 24px;
}

.description-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 12px 0 12px 0;
}

.brand-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.category-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.description-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  white-space: pre-line;
  /* Preserve line breaks */
}

/* Related Products */
.related-products-section {
  padding: 32px 20px 40px 20px;
  border-top: 1px solid #e7e7e7;
  background-color: #fafafa;
  margin-top: 20px;
}

.related-products-container {
  max-width: 1200px;
  margin: 0 auto;
}

.related-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
}

.related-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 220px;
  height: fit-content;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-image {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f8f9fa;
  overflow: hidden;
  position: relative;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.related-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.related-price {
  font-size: 16px;
  font-weight: 600;
  color: #e6b120;
  margin: 4px 0;
}

.related-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-top: auto;
}

.related-stars {
  color: #ffd700;
  font-size: 12px;
  letter-spacing: 1px;
}

.related-sold {
  color: #666;
  font-size: 11px;
  white-space: nowrap;
}

/* Responsive Design */
@media (min-width: 768px) {
  .product-container {
    flex-direction: row;
    gap: 32px;
  }

  .product-images {
    flex: 1;
    max-width: 400px;
  }

  .product-info {
    flex: 1;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
  }

  .related-products-section {
    padding: 40px 24px 48px 24px;
  }
}

@media (min-width: 1024px) {
  .detail-main {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
    padding: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
  }

  .product-title {
    font-size: 28px;
  }

  .price {
    font-size: 32px;
  }
  .content__original-price {
    font-size: 20px;
  }
  .content__discount {
    font-size: 12px;
    padding: 4px 12px;
  }

  .related-products-section {
    padding: 48px 32px 56px 32px;
  }
}

@media (min-width: 1440px) {
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
  }

  .related-products-section {
    padding: 56px 40px 64px 40px;
  }
}

/* Desktop specific styles */
@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
    /* Hide bottom nav on desktop */
  }
}

/* Tablet specific styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  .detail-main {
    padding: 12px;
  }

  .product-title {
    font-size: 20px;
  }

  .price {
    font-size: 24px;
  }
  .content__original-price {
    font-size: 16px;
  }

  .related-products-section {
    padding: 24px 16px 32px 16px;
    margin-top: 16px;
  }

  .related-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
  }

  .related-card {
    max-width: none;
  }

  .related-info {
    padding: 12px;
  }

  .related-name {
    font-size: 13px;
    min-height: 2.6em;
  }

  .related-price {
    font-size: 14px;
  }

  .related-rating {
    font-size: 11px;
  }

  .related-sold {
    font-size: 10px;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .related-products-section {
    padding: 20px 12px 28px 12px;
  }

  .related-info {
    padding: 10px;
  }

  .related-name {
    font-size: 12px;
  }

  .related-price {
    font-size: 13px;
  }
}

/* ===== ACTION BUTTONS ===== */

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.add-to-cart-btn,
.buy-now-btn {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
}

.add-to-cart-btn {
  background-color: #f8f9fa;
  color: #e6b120;
  border: 2px solid #e6b120;
}

.add-to-cart-btn:hover:not(:disabled) {
  background-color: #e6b120;
  color: white;
}

.buy-now-btn {
  background-color: #e6b120;
  color: white;
}

.buy-now-btn:hover:not(:disabled) {
  background-color: #d4a017;
}

.add-to-cart-btn:disabled,
.buy-now-btn:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  border-color: #e9ecef;
  cursor: not-allowed;
}

/* ===== STOCK INFO ===== */

.stock-info {
  margin: 16px 0;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.stock-indicator.in-stock {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.stock-indicator.out-of-stock {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.stock-indicator i {
  font-size: 16px;
}

/* ===== TOAST NOTIFICATIONS ===== */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-notification {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== LOADING STATES ===== */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #e6b120;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 14px;
}

.no-data-text,
.error-text {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 20px;
  grid-column: span 2;
}

.error-container {
  text-align: center;
  padding: 40px 20px;
}

.error-container h2 {
  color: #e74c3c;
  margin-bottom: 16px;
}

.error-container p {
  color: #666;
  margin-bottom: 24px;
}

.back-btn,
.retry-btn {
  padding: 10px 20px;
  margin: 0 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover,
.retry-btn:hover {
  background-color: #f8f9fa;
  border-color: #e6b120;
}

/* ===== SKELETON LOADING ===== */

.product-skeleton {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

.product-images-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-skeleton {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f0f0f0;
  border-radius: 12px;
}

.thumbnails-skeleton {
  display: flex;
  gap: 8px;
}

.thumbnail-skeleton {
  width: 60px;
  height: 60px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.product-info-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.title-skeleton {
  height: 28px;
  background-color: #f0f0f0;
  border-radius: 4px;
  width: 80%;
}

.rating-skeleton {
  height: 20px;
  background-color: #f0f0f0;
  border-radius: 4px;
  width: 60%;
}

.price-skeleton {
  height: 32px;
  background-color: #f0f0f0;
  border-radius: 4px;
  width: 40%;
}

.description-skeleton {
  height: 80px;
  background-color: #f0f0f0;
  border-radius: 4px;
  width: 100%;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 767px) {
  .product-detail-container {
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    margin-top: 10px;
  }

  .product-header {
    margin-bottom: 12px;
  }

  .product-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .product-rating {
    font-size: 13px;
  }

  .price-section {
    padding: 0 0 12px 0;
    margin-bottom: 12px;
  }

  .price-container {
    gap: 12px;
  }

  .price {
    font-size: 22px;
  }

  .wishlist-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 16px;
  }

  .wishlist-btn i {
    font-size: 16px;
  }
}

/* Page Layout */
.page-container {
  display: flex;
  flex-direction: column;
}

.main-layout {
  flex: 1;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  margin-top: 1rem;
}

.page-title {
  font-size: 18px;
  font-weight: 500;
  text-transform: capitalize;
  color: #313131;
  margin: 0 0 1rem 0;
}

/* Items Grid Layout */
.items-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr); /* Default: 2 columns on mobile */
}

@media (min-width: 640px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr); /* sm: 3 columns */
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(4, 1fr); /* md: 4 columns */
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(5, 1fr); /* lg: 5 columns */
  }
}

@media (min-width: 1280px) {
  .items-grid {
    grid-template-columns: repeat(6, 1fr); /* xl: 6 columns */
  }
}

/* Item Container */
.items-container {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  gap: 2px;
  overflow: hidden;
  background: white;
}

/* Image Wrapper */
.items-image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 160px; /* Default height for mobile */
  position: relative;
  background-color: #f3f3f3;
}

.items-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .items-image-wrapper {
    height: 180px; /* sm and above: 180px */
  }
}

@media (min-width: 1024px) {
  .items-image-wrapper {
    height: 200px; /* lg and above: 200px */
  }
}

/* Text Content */
.items-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px 4px 4px;
}

.items-title {
  font-family: 'Istok Web', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: capitalize;
  color: #313131;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .items-title {
    font-size: 15px;
  }
}

@media (min-width: 1024px) {
  .items-title {
    font-size: 16px;
  }
}

.items-price {
  font-size: 14px;
  font-weight: 600;
  color: #4e5052;
  margin: 0 0 8px 0;
}

@media (min-width: 640px) {
  .items-price {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .items-price {
    font-size: 14px;
  }
}

/* Rating and Sales Info */
.items-sold {
  display: flex;
  gap: 4px;
  font-size: 11px;
  color: #666;
  align-items: center;
  margin-top: 2px;
}

@media (min-width: 640px) {
  .items-sold {
    font-size: 12px;
  }
}

.items-sold svg {
  flex-shrink: 0;
}

.items-sold .rating {
  color: #FFD700;
  font-weight: 500;
}

.items-sold .separator {
  color: #ccc;
}

.items-sold .sold-count {
  color: #888;
}

/* Not Found Styles */
.not-found-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  margin-top: 60px;
  padding: 2rem;
}

.not-found-image {
  height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .not-found-image {
    height: 250px;
  }
}

@media (min-width: 1024px) {
  .not-found-image {
    height: 300px;
  }
}

.not-found-text {
  color: #777;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* Brands Styles (if needed) */
.brands-title {
  font-size: 12px;
  font-weight: 400;
  color: #313131;
}

.brands-image-container {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: 110px;
}

.brands-image-skeleton {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  border-radius: 8px;
  overflow: hidden;
}

.brands-item {
  margin-top: 12px;
  width: 100%;
  height: 100%;
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brands-container {
  display: grid;
  gap: 1.5rem;
  justify-content: space-between;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 640px) {
  .brands-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .brands-image-container {
    height: 150px;
  }
}

  @media (min-width: 1280px) {
    .brands-container {
      grid-template-columns: repeat(5, 1fr);
    }
    .brands-image-container {
      height: 250px;
    }
    .brands-image-skeleton {
      height: 225px;
    }
  }

/* Loading States */
.items-container.loading {
  pointer-events: none;
  opacity: 0.7;
}

.items-image.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
.items-container:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.items-container:focus:not(:focus-visible) {
  outline: none;
}

/*# sourceMappingURL=styles.6ebbbcb4259606fffb9e.css.map*/