﻿/* CODEX UNIFIED PRODUCT CARD STYLE */
.arrival-products,
.featured-products,
.best-products {
  align-items: stretch !important;
  gap: 18px !important;
}

.arrival-card,
.featured-card,
.best-card,
.product-card {
  position: relative !important;
  width: 260px !important;
  min-width: 260px !important;
  min-height: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 48px rgba(89, 46, 130, 0.08) !important;
  overflow: hidden !important;
  backdrop-filter: none !important;
}

.arrival-card::before,
.featured-card::before,
.best-card::before,
.product-card::before {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  left: 20px !important;
  width: 58px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #6a35ff !important;
  transform: none !important;
  z-index: 2 !important;
}

.arrival-card:hover,
.featured-card:hover,
.best-card:hover,
.product-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 56px rgba(89, 46, 130, 0.12) !important;
}

.arrival-card .product-image,
.featured-card .featured-image,
.best-card .best-card-image,
.product-card > .product-image {
  width: 100% !important;
  height: 270px !important;
  min-height: 270px !important;
  margin: 0 0 18px !important;
  padding: 26px !important;
  border-radius: 0 !important;
  background: #f1ece4 !important;
  object-fit: contain !important;
  box-shadow: none !important;
}

.arrival-card .product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.arrival-card .product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.arrival-card .brand,
.featured-brand,
.best-brand,
.product-card .brand {
  margin: 0 0 12px !important;
  color: #746d65 !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
}

.arrival-card .product-title,
.featured-name,
.best-product-name,
.product-name {
  min-height: 52px !important;
  height: auto !important;
  max-height: 54px !important;
  margin: 0 0 12px !important;
  color: #2d2d2f !important;
  font-size: 18px !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.arrival-card .product-title::after,
.featured-name::after,
.best-product-name::after,
.product-name::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 14px;
  background: rgba(66, 79, 96, 0.14);
}

.product-desc,
.product-rating,
.best-size,
.badge,
.product-badge,
.best-rank {
  display: none !important;
}

.arrival-card .product-info,
.featured-card,
.best-card-content,
.product-card .product-info {
  flex: 1 !important;
}

.arrival-card .product-bottom,
.featured-bottom,
.best-card-footer,
.product-bottom {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

.arrival-card .price,
.featured-price,
.best-price,
.product-card .price {
  margin: 0 !important;
  color: #1f1f22 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.add-btn,
.add-cart-btn,
.best-shop-btn,
.cart-btn {
  flex: 0 0 auto !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #7a35ff, #5624df) !important;
  color: #fff !important;
  font-size: 31px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: 0 14px 28px rgba(106, 53, 255, 0.22) !important;
  text-decoration: none !important;
}

.best-shop-btn {
  font-size: 0 !important;
}

.best-shop-btn::before {
  content: "+";
  font-size: 31px;
  line-height: 1;
}

.cart-btn i {
  display: none !important;
}

.cart-btn::before {
  content: "+";
  font-size: 31px;
  line-height: 1;
}

.view-btn {
  display: none !important;
}

.products-grid .product-card {
  width: auto !important;
  min-width: 0 !important;
}

@media (max-width: 760px) {
  .arrival-card,
  .featured-card,
  .best-card,
  .product-card {
    width: 240px !important;
    min-width: 240px !important;
    min-height: 520px !important;
  }

  .products-grid .product-card {
    width: auto !important;
    min-width: 0 !important;
  }

  .arrival-card .product-image,
  .featured-card .featured-image,
  .best-card .best-card-image,
  .product-card > .product-image {
    height: 235px !important;
    min-height: 235px !important;
  }
}


/* CODEX RESTORED WISHLIST HEARTS */
.wishlist-btn {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 8 !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(106, 53, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #6a35ff !important;
  box-shadow: 0 10px 24px rgba(89, 46, 130, 0.12) !important;
  cursor: pointer !important;
}

.wishlist-btn i {
  color: inherit !important;
  font-size: 17px !important;
}

.wishlist-btn:hover,
.wishlist-btn.active {
  background: #6a35ff !important;
  color: #fff !important;
}


/* CODEX EXACT REFERENCE CARD TUNE */
.arrival-products,
.featured-products,
.best-products {
  align-items: center !important;
  gap: 18px !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.arrival-card,
.featured-card,
.best-card,
.product-card {
  width: 258px !important;
  min-width: 258px !important;
  height: 568px !important;
  min-height: 568px !important;
  max-height: 568px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 16px 44px rgba(90, 48, 132, 0.075) !important;
  align-self: center !important;
}

.products-grid .product-card {
  width: auto !important;
  min-width: 0 !important;
}

.arrival-card::before,
.featured-card::before,
.best-card::before,
.product-card::before {
  top: 20px !important;
  left: 20px !important;
  width: 58px !important;
  height: 3px !important;
}

.arrival-card .product-image,
.featured-card .featured-image,
.best-card .best-card-image,
.product-card > .product-image {
  height: 270px !important;
  min-height: 270px !important;
  max-height: 270px !important;
  margin: 0 0 19px !important;
  padding: 26px !important;
  background: #f0ebe3 !important;
  object-fit: contain !important;
}

.arrival-card .brand,
.featured-brand,
.best-brand,
.product-card .brand {
  margin: 0 0 12px !important;
  color: #746d65 !important;
  font-size: 13px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
}

.arrival-card .product-title,
.featured-name,
.best-product-name,
.product-name {
  min-height: 46px !important;
  height: 46px !important;
  max-height: 46px !important;
  margin: 0 !important;
  color: #303033 !important;
  font-size: 17px !important;
  line-height: 1.26 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.arrival-card .product-title::after,
.featured-name::after,
.best-product-name::after,
.product-name::after {
  content: none !important;
  display: none !important;
}

.arrival-card .product-info,
.best-card-content,
.product-card .product-info {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.featured-card {
  display: flex !important;
  flex-direction: column !important;
}

.arrival-card .product-bottom,
.featured-bottom,
.best-card-footer,
.product-bottom {
  margin-top: auto !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(116, 109, 101, 0.18) !important;
  min-height: 72px !important;
  align-items: center !important;
}

.arrival-card .price,
.featured-price,
.best-price,
.product-card .price {
  color: #202124 !important;
  font-size: 21px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.add-btn,
.add-cart-btn,
.best-shop-btn,
.cart-btn {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  font-size: 30px !important;
}

.wishlist-btn {
  top: 28px !important;
  right: 28px !important;
  width: 36px !important;
  height: 36px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 20px rgba(89, 46, 130, 0.1) !important;
}

.wishlist-btn i {
  font-size: 15px !important;
}

@media (max-width: 760px) {
  .arrival-card,
  .featured-card,
  .best-card,
  .product-card {
    width: 238px !important;
    min-width: 238px !important;
    height: 528px !important;
    min-height: 528px !important;
    max-height: 528px !important;
  }

  .products-grid .product-card {
    width: auto !important;
    min-width: 0 !important;
  }

  .arrival-card .product-image,
  .featured-card .featured-image,
  .best-card .best-card-image,
  .product-card > .product-image {
    height: 235px !important;
    min-height: 235px !important;
    max-height: 235px !important;
  }
}

/* CODEX COMPACT NAME PRICE GAP */
.arrival-card,
.featured-card,
.best-card,
.product-card {
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
}

.arrival-card .product-image,
.featured-card .featured-image,
.best-card .best-card-image,
.product-card > .product-image {
  height: 250px !important;
  min-height: 250px !important;
  max-height: 250px !important;
  margin-bottom: 17px !important;
}

.arrival-card .product-title,
.featured-name,
.best-product-name,
.product-name {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin-bottom: 16px !important;
}

.arrival-card .product-bottom,
.featured-bottom,
.best-card-footer,
.product-bottom {
  margin-top: 0 !important;
  padding-top: 16px !important;
  min-height: 68px !important;
  border-top: 1px solid rgba(116, 109, 101, 0.18) !important;
}

.arrival-card .product-info,
.best-card-content,
.product-card .product-info {
  flex: 0 0 auto !important;
}

.featured-card {
  justify-content: flex-start !important;
}

@media (max-width: 760px) {
  .arrival-card,
  .featured-card,
  .best-card,
  .product-card {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }

  .arrival-card .product-image,
  .featured-card .featured-image,
  .best-card .best-card-image,
  .product-card > .product-image {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
  }
}

/* CODEX FINAL PRODUCT TEXT AND PLUS FIX */
.arrival-card .product-title,
.featured-name,
.best-product-name,
.product-name {
  height: auto !important;
  min-height: 54px !important;
  max-height: 54px !important;
  margin-bottom: 14px !important;
  color: #25262a !important;
  font-size: 20px !important;
  line-height: 1.32 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.arrival-card .price,
.featured-price,
.best-price,
.product-card .price {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #25262a !important;
}

.best-card-footer,
.featured-bottom,
.product-bottom,
.arrival-card .product-bottom {
  overflow: visible !important;
}

.best-shop-btn,
.best-shop-btn:hover,
.best-shop-btn:focus {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-indent: -9999px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.best-shop-btn::before {
  content: "+" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-indent: 0 !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
}

/* CODEX CTA UNDERLINE SINGLE LINE FIX */
.featured-btn,
.best-btn,
.arrival-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.featured-btn:hover,
.featured-btn:focus,
.featured-btn:visited,
.best-btn:hover,
.best-btn:focus,
.best-btn:visited,
.arrival-btn:hover,
.arrival-btn:focus,
.arrival-btn:visited {
  text-decoration: none !important;
}

.featured-btn {
  min-width: 260px !important;
}

/* CODEX SECTION IMAGE BOX COLOR PATCH */
.arrival-card .product-image,
.featured-card .featured-image {
  background: #f8f1ff !important;
}

.best-card .best-card-image {
  background: #fde8d8 !important;
}

/* CODEX KEEP NEW ARRIVALS ALL PRODUCTS BEIGE */
.arrival-card .product-image,
.product-card > .product-image {
  background: #f0ebe3 !important;
}

.featured-card .featured-image {
  background: #f8f1ff !important;
}

.best-card .best-card-image {
  background: #fde8d8 !important;
}
