/* ===================================
   PRODUCT GRID SYSTEM - CATALOG
   Prefix: 323
   REVISED TO MATCH SPECIAL PRODUCT 438 MOBILE DESIGN
   =================================== */

/* ===================================
   PRODUCTS GRID CONTAINER - DESKTOP
   =================================== */
.products-grid-323 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
  gap: 20px;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
}

/* ===================================
   BASE PRODUCT CARD - FIXED SIZE
   =================================== */
.product-card-323 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  width: 220px;
  height: 260px;
  border-radius: 15px;
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* ===================================
   DESKTOP HOVER EFFECTS ONLY
   =================================== */
@media (min-width: 769px) {
  .product-card-323:hover {
    transform: scale(1.05);
    box-shadow: 0.5rem 1rem 1rem #d6d6d6;
  }

  .product-card-323:hover .product-label-323 {
    left: 0;
  }

  .product-card-323:hover .product-detail-323 {
    transform: translate(8%, 0);
  }

  .product-card-323:hover .ratings-323 {
    transform: translateX(-5%);
  }

  .product-card-323:hover .wishlist-icon-323,
  .product-card-323:hover .share-icon-323 {
    opacity: 1;
    visibility: visible;
  }

  .product-card-323:hover .default-image-323 {
    opacity: 0;
    transform: scale(1);
  }

  .product-card-323:hover .hover-image-323 {
    opacity: 1;
    transform: translate(-40%, -50%) scale(1);
  }

  .product-card-323:hover .product-ukuran-323 {
    opacity: 0;
    transform: translateY(15px);
  }

  .product-card-323:hover .original-price-323 {
    opacity: 1;
    transform: translateY(-10px);
  }

  .product-card-323:hover .final-price-323 {
    opacity: 1;
    transform: translateY(-10px);
    margin-top: 0;
  }

  .wishlist-icon-323:hover,
  .share-icon-323:hover {
    color: var(--secondary-323);
    transform: scale(1.1);
  }

  .wishlist-icon-323.active svg {
    fill: var(--primary-323);
    stroke: var(--primary-323);
  }
}

/* ===================================
   DESKTOP RESPONSIVE GRID
   =================================== */
@media (min-width: 1600px) {
  .products-grid-323 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 25px;
    padding: 15px 0;
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .products-grid-323 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 22px;
    padding: 12px 0;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .products-grid-323 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 20px;
    padding: 10px 0;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .products-grid-323 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 18px;
    padding: 10px 0;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .products-grid-323 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    gap: 15px;
    padding: 10px 0;
  }
}

/* ===================================
   PRODUCT LABEL (SKU)
   =================================== */
.product-label-323 {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 1.9rem;
  height: 100%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  transition: left 0.5s ease-in-out;
  background-color: var(--secondary-323);
  z-index: 10;
  padding: 8px 0;
}

.product-label-323 span {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

/* ===================================
   PRODUCT IMAGE CONTAINER
   =================================== */
.product-image-323 {
  height: 70%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 8px;
  box-sizing: border-box;
}

.product-image-323 img {
  width: auto;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
}

.default-image-323 {
  position: relative;
  z-index: 1;
}

.hover-image-323 {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 2;
}

/* ===================================
   BADGES
   =================================== */
.badge-discount-323 {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #e74a3b;
  color: #fff;
  z-index: 20;
}

.badge-stock-323 {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  z-index: 20;
}

/* ===================================
   PRODUCT DETAILS
   =================================== */
.product-detail-323 {
  width: 100%;
  position: relative;
  transition: transform 0.5s ease-in-out;
  padding: 0 10px;
  margin-top: -15px;
}

/* ===================================
   RATINGS
   =================================== */
.ratings-323 {
  position: absolute;
  top: 0;
  right: 8%;
  font-size: 13px;
  line-height: 18px;
  transition: transform 0.5s ease-in-out;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1px;
}

.star-323 {
  display: inline-block;
  transition: color 0.2s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.star-323.filled-323 {
  color: var(--primary-323);
}

.star-323.half-323 {
  color: var(--primary-323);
  opacity: 0.5;
}

.star-323.empty-323 {
  color: #d0d0d0;
}

/* ===================================
   PRODUCT TITLE
   =================================== */
.product-title-323 {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  left: 0%;
  display: inline-block;
  vertical-align: middle;
  line-height: 18px;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title-323 p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================
   PRODUCT DESCRIPTION
   =================================== */
.product-deskripsi-323 {
  position: relative;
  top: -1%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--edition-323);
  width: 100%;
  padding: 0 5px;
  overflow: hidden;
  text-align: center;
}

.product-deskripsi-323 p {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  display: inline-block;
  min-width: 100%;
  text-align: inherit;
}

@keyframes scroll-alternate {

  0%,
  20% {
    transform: translateX(0);
  }

  80%,
  100% {
    transform: translateX(var(--scroll-distance, 0));
  }
}

/* ===================================
   PRODUCT UKURAN (SIZE)
   =================================== */
.product-ukuran-323 {
  position: relative;
  top: 6%;
  font-size: 0.75rem;
  font-weight: 500;
  color: #888;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.product-ukuran-323 p {
  margin: 0;
  padding: 0;
}

/* ===================================
   PRODUCT PRICE
   =================================== */
.product-price-323 {
  position: relative;
  top: 5%;
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  margin: 0;
  padding: 0;
}

.original-price-323 {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.final-price-323 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-323);
  line-height: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

/* ===================================
   ACTION ICONS
   =================================== */
.wishlist-icon-323,
.share-icon-323 {
  position: absolute;
  bottom: 8%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  color: #888;
  cursor: pointer;
  z-index: 30;
}

.wishlist-icon-323 {
  left: 8%;
}

.share-icon-323 {
  right: 8%;
}

.wishlist-icon-323 svg,
.share-icon-323 svg {
  width: 20px;
  height: 20px;
}

/* ===================================
   NO PRODUCTS STATE
   =================================== */
.no-products-323 {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
  padding: 60px 20px;
}

.no-products-323 i {
  width: 80px;
  height: 80px;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products-323 h3 {
  font-size: 1.5rem;
  color: var(--tertiary-323);
  margin-bottom: 10px;
}

.no-products-323 p {
  color: #666;
}

/* ==========================================================================
   MOBILE RESPONSIVE - MATCHING SPECIAL PRODUCT 438
   ========================================================================== */

/* Mobile Large - 600px to 767px */
@media (min-width: 600px) and (max-width: 767px) {
  .products-grid-323 {
    display: grid !important;
    grid-template-columns: 190px 190px !important;
    justify-content: center !important;
    align-items: start !important;
    padding: 30px 0 50px 0 !important;
    column-gap: 15px !important;
    row-gap: 15px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 420px !important;
  }

  .product-card-323 {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    height: 240px !important;
    padding: 0.9rem !important;
  }
}

/* Mobile - 440px to 599px */
@media (min-width: 440px) and (max-width: 599px) {
  .products-grid-323 {
    display: grid !important;
    grid-template-columns: 185px 185px !important;
    justify-content: center !important;
    align-items: start !important;
    padding: 30px 0 50px 0 !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 400px !important;
  }

  .product-card-323 {
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    height: 230px !important;
    padding: 0.85rem !important;
  }
}

/* Mobile Small - 380px to 439px */
@media (min-width: 380px) and (max-width: 439px) {
  .products-grid-323 {
    display: grid !important;
    grid-template-columns: 175px 175px !important;
    justify-content: center !important;
    align-items: start !important;
    padding: 25px 0 50px 0 !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 380px !important;
  }

  .product-card-323 {
    width: 175px !important;
    min-width: 175px !important;
    max-width: 175px !important;
    height: 220px !important;
    padding: 0.8rem !important;
  }
}

/* Mobile Extra Small - 320px to 379px */
@media (min-width: 320px) and (max-width: 379px) {
  .products-grid-323 {
    display: grid !important;
    grid-template-columns: 165px 165px !important;
    justify-content: center !important;
    align-items: start !important;
    padding: 25px 0 50px 0 !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 350px !important;
  }

  .product-card-323 {
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    height: 210px !important;
    padding: 0.75rem !important;
  }
}

/* Mobile Super Small - Below 320px */
@media (max-width: 319px) {
  .products-grid-323 {
    display: grid !important;
    grid-template-columns: 160px 160px !important;
    justify-content: center !important;
    align-items: start !important;
    padding: 20px 0 50px 0 !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 340px !important;
  }

  .product-card-323 {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 205px !important;
    padding: 0.7rem !important;
  }
}

/* ==========================================================================
   MOBILE COMPONENT ADJUSTMENTS - ALL BREAKPOINTS
   ========================================================================== */
@media (max-width: 767px) {

  /* Product Image - GEDEIN */
  .product-image-323 {
    height: 68% !important;
    width: 100% !important;
    padding: 10px !important;
  }

  .product-image-323 img {
    height: 95% !important;
  }

  /* Product Details - SPACING LEBIH BESAR */
  .product-detail-323 {
    padding: 0 12px !important;
    margin-top: -8px !important;
  }

  /* Title & Rating - GEDEIN FONT */
  .product-title-323 {
    font-size: 0.85rem !important;
    line-height: 20px !important;
    max-width: 50% !important;
    font-weight: 600 !important;
  }

  .ratings-323 {
    font-size: 16px !important;
    line-height: 20px !important;
    right: 8% !important;
  }

  .star-323 {
    font-size: 16px !important;
  }

  /* Description - GEDEIN FONT */
  .product-deskripsi-323 {
    font-size: 0.95rem !important;
    padding: 0 6px !important;
    top: 2% !important;
    font-weight: 700 !important;
  }

  /* Size - GEDEIN FONT */
  .product-ukuran-323 {
    font-size: 0.9rem !important;
    top: 10% !important;
    font-weight: 600 !important;
  }

  /* Price - GEDEIN FONT & SPACING */
  .product-price-323 {
    gap: 10px !important;
    min-height: 30px !important;
    top: 10% !important;
  }

  .final-price-323 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
  }

  .original-price-323 {
    font-size: 1rem !important;
  }

  /* Badges - GEDEIN */
  .badge-discount-323 {
    top: 12px !important;
    right: 12px !important;
    padding: 5px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
  }

  .badge-stock-323 {
    top: 12px !important;
    left: 12px !important;
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
  }

  /* Hide Label & Icons */
  .product-label-323 {
    left: -2rem !important;
  }

  .wishlist-icon-323,
  .share-icon-323 {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Disable Hover Effects */
  .product-card-323:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  }

  .product-card-323:hover .product-label-323,
  .product-card-323:hover .product-detail-323,
  .product-card-323:hover .ratings-323 {
    transform: none !important;
  }

  .product-card-323:hover .default-image-323 {
    opacity: 1 !important;
  }

  .product-card-323:hover .hover-image-323 {
    opacity: 0 !important;
  }

  .product-card-323:hover .product-ukuran-323,
  .product-card-323:hover .original-price-323,
  .product-card-323:hover .final-price-323 {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Pagination */
  .pagination-323 {
    margin-top: 25px !important;
    margin-bottom: 35px !important;
  }

  .pagination-323 a,
  .pagination-323 span {
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 0.9rem !important;
  }
}

/* Extra refinements for smaller screens */
@media (max-width: 480px) {
  .product-title-323 {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  .product-deskripsi-323 {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
  }

  .product-ukuran-323 {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
  }

  .final-price-323 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
  }

  .original-price-323 {
    font-size: 0.95rem !important;
  }

  .ratings-323 {
    font-size: 15px !important;
  }

  .star-323 {
    font-size: 15px !important;
  }
}

@media (max-width: 360px) {
  .product-title-323 {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
  }

  .product-deskripsi-323 {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
  }

  .product-ukuran-323 {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  .ratings-323 {
    font-size: 14px !important;
  }

  .star-323 {
    font-size: 14px !important;
  }

  .final-price-323 {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  .original-price-323 {
    font-size: 0.9rem !important;
  }
}