/* ── Grid ── */
.tt-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Card ── */
.tt-product_card_plp {
  position: relative;
  background: #f6f6f6;
  padding-left: 20px;
  padding-bottom: 20px;
  padding-right: 20px;
  /*border-right: 1px solid #1e1e1e;*/
  /*border-bottom: 1px solid #1e1e1e;*/
}

.tt-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Image block ── */
.tt-product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.tt-product-img {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/*woocommerce default css overrides*/
.tt-add-to-bag-btn {
  padding: 0px;
}

.woocommerce img,
.woocommerce-page img {
  height: 100%;
  max-width: 100%;
}

.woocommerce ul.products, .woocommerce-page ul.products {
    gap: 5px;
}

/*end*/


.tt-hover-img {
  opacity: 0;
}

.tt-product-image-wrapper:hover .tt-main-img {
  opacity: 0;
}

.tt-product-image-wrapper:hover .tt-hover-img {
  opacity: 1;
  transform: scale(1.03);
}

/* ── Add to Bag ── */
.tt-add-to-bag-wrapper {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tt-product-image-wrapper:hover .tt-add-to-bag-wrapper {
  opacity: 1;
  transform: translateY(0);
}

.tt-add-to-bag-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: white;
  color: #f5f2ee;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.tt-add-to-bag-btn:hover {
  background: #f0f0f0;
}

.tt-bag-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

.tt-bag-icon {
  width: 20px;
  height: 20px;
}

.tt-plus-badge {
  position: absolute;
  bottom: -2px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: #f7f7f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-plus-badge svg {
  width: 9px;
  height: 9px;
}

/* ── Wishlist ── */
.tt-wishlist-btn-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.tt-wishlist-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: color 0.2s, transform 0.2s;
}

.tt-wishlist-btn:hover {
  color: #c8a96e;
  transform: scale(1.15);
}

.tt-wishlist-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Badge ── */
.tt-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* ── Product Info ── */
.tt-product-info {
  padding: 12px 4px 0;
}

.tt-product-info-inner {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.tt-product-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 4px;
}

.tt-product-variant {
  font-size: 14px;
  font-weight: 400;
  color: black;
  letter-spacing: 0.04em;
  font-family: "Centra No2";
}

.tt-product-price {
  font-size: 0.85rem;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Desktop Grid ── */
@media (min-width: 1024px) {
  .tt-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Mobile ── */
@media (max-width: 767px) {

  .tt-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-product-variant {
    font-size: 12px;
  }

  .tt-cards-grid .tt-product_card_plp:nth-child(2n+1) {
    /*border-left: 1px solid #1e1e1e;*/
  }
  ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        columns: 2 !important;
    }
    .woocommerce ul.products:not(.elementor-grid){
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
}