/* =========================================================
   GDM PRODUCT CARD – SINGLE SOURCE OF TRUTH
   File: vineta-child/assets/css/gdm-card.css
   ---------------------------------------------------------
   This file contains ALL card styles. No other CSS file
   should define card appearance.
   ========================================================= */

/* ---- Scope: card root class ---- */
.tf-mockup-card,
.gdm-shop-card {
  --gdm-orange: var(--qc-primary, #ee5a58);
  --gdm-orange-dark: var(--qc-primary-dark, #d94846);
  --gdm-orange-light: var(--qc-primary-med-pink, #fee8e8);
  --gdm-orange-soft: var(--qc-primary-lighter, #f8c1bf2e);
  --gdm-dark: #15171a;
  --gdm-text: var(--qc-text, #252525);
  --gdm-muted: var(--qc-muted, #6b6b6b);
  --gdm-border: var(--qc-border, #e5e5e5);
  --gdm-image-bg: #fafafa;
  --gdm-card-svg-badge: #FFCCCC;
  --gdm-primary: var(--qc-primary, #ee5a58);
  --gdm-primary-dark: var(--qc-primary-dark, #d94846);
  --gdm-primary-light: var(--qc-primary-light, #f5a19f);
  --gdm-primary-tint: var(--qc-primary-med-pink, #fee8e8);
  --gdm-primary-soft: var(--qc-primary-lighter, rgba(248, 193, 191, 0.18));
  --gdm-primary-border: var(--qc-primary-border, #f5a19f);
  --gdm-shadow: var(--qc-pink-shadow, rgba(238, 90, 88, 0.25));
  --gdm-shadow-dark: var(--qc-pink-shadow-dark, rgba(238, 90, 88, 0.7));
  --gdm-font: var(--qc-font, "Poppins", "DM Sans", Arial, sans-serif);
}

.tf-mockup-card,
.gdm-shop-card,
.tf-mockup-card *,
.gdm-shop-card * {
  box-sizing: border-box;
}
.tf-mockup-card a,
.gdm-shop-card a {
  text-decoration: none !important;
}
.tf-mockup-card img,
.gdm-shop-card img {
  border: 0;
  box-shadow: none;
}
.tf-mockup-card svg,
.gdm-shop-card svg {
  flex: none;
}

/* ---- CARD SHELL ---- */
.tf-mockup-card,
.gdm-shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 10px 10px 18px;
  border: 1px solid var(--gdm-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(39, 26, 17, 0.045);
  font-family: var(--gdm-font);
  transition: border-color 0.4s ease, box-shadow 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
@media (hover: hover) {
  .tf-mockup-card:hover,
  .gdm-shop-card:hover {
    border-color: var(--gdm-primary-border);
    /*box-shadow: 0 24px 50px rgba(45, 28, 15, 0.1);*/
    transform: translateY(-7px);
  }
}
.tf-mockup-card.is-hidden {
  display: none !important;
}

/* ---- CARD MEDIA ---- */
.tfmg-card-media,
.gdm-shop-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  /*overflow: hidden;*/
  border: 1px solid #f0ece8;
  border-radius: 16px;
  /*background: radial-gradient(*/
  /*    circle at 22% 15%,*/
  /*    var(--gdm-primary-soft),*/
  /*    transparent 38%*/
  /*  ),*/
  /*  var(--gdm-image-bg);*/
}
.tfmg-product-image,
.gdm-shop-product-image {
  position: absolute;
  inset: 0;
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  padding: 10px;
}
.tfmg-product-image img,
.tfmg-product-image .tfmg-img,
.gdm-shop-product-image img,
.gdm-shop-product-image .gdm-shop-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  object-position: center !important;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@media (hover: hover) {
  .tf-mockup-card:hover .tfmg-product-image img,
  .tf-mockup-card:hover .tfmg-product-image .tfmg-img,
  .gdm-shop-card:hover .gdm-shop-product-image img,
  .gdm-shop-card:hover .gdm-shop-product-image .gdm-shop-img {
    transform: scale(1.06);
  }
}
/* Composite mockup state */
.tf-mockup-card.processed .tfmg-product-image img,
.tf-mockup-card.processed .product-img img {
  object-fit: contain !important;
  animation: tfmgImgIn 0.35s ease;
}
@keyframes tfmgImgIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.tf-mockup-card.is-error {
  border-color: #e5b5b3;
}

/* ---- VERTICAL CAMPAIGN RIBBON (top‑left) ---- */
.tfmg-campaign-ribbon {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 6px;
  border-radius: 15px;
  background: #E9F5E5;
  box-shadow: 0 10px 22px var(--gdm-shadow);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--gdm-primary-border);
  pointer-events: none;
}
.tfmg-campaign-ribbon-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block !important;
  color: #3C944F !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  padding: 3px 3px !important;
  margin: 0 !important;
}

/* ---- META CHIPS (Best Seller / Trending) ---- */
.tfmg-card-meta {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 70%;
}
.tfmg-has-ribbon .tfmg-card-meta {
  left: 56px;
  max-width: 60%;
}
.tfmg-best-seller {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 100px;
  background: var(--gdm-dark);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(39, 26, 17, 0.14);
}
.tfmg-trending-tag,
.gdm-shop-trending-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid var(--gdm-primary-border);
  border-radius: 100px;
  background: var(--gdm-primary-tint);
  color: var(--gdm-primary-dark);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}
.tfmg-trending-tag img,
.gdm-shop-trending-tag img {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---- SALE BADGE (top‑right) ---- */
.tfmg-sale-badge,
.gdm-shop-sale-badge {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 5;
  display: flex;
  min-width: 0;
  padding: 7px 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gdm-primary-border);
  border-radius: 100px;
  background: var(--gdm-primary-tint);
  box-shadow: 0 8px 18px var(--gdm-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.tfmg-sale-badge-text,
.gdm-shop-sale-badge-text {
  display: block;
  color: var(--gdm-primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ---- ACTION RAIL (vertical buttons) ---- */
.tfmg-card-actions,
.gdm-shop-card-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 7;
  opacity: 0;
  transform: translateY(-50%) translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) {
  .tf-mockup-card:hover .tfmg-card-actions,
  .gdm-shop-card:hover .gdm-shop-card-actions {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
  }
}
@media (hover: none), (pointer: coarse) {
  .tfmg-card-actions,
  .gdm-shop-card-actions {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
  }
}
.tfmg-btn-rail,
.gdm-shop-list-product-btn {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tfmg-rail-btn,
.gdm-shop-act-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(233, 227, 222, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  backdrop-filter: blur(6px);
  transition: background 0.25s, color 0.25s;
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
}
.tfmg-rail-btn svg,
.gdm-shop-act-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  color: inherit;
  flex-shrink: 0;
}
.tfmg-rail-btn:hover,
.gdm-shop-act-btn:hover {
  background: var(--gdm-primary);
  color: #fff !important;
}
.tfmg-rail-btn:hover svg,
.gdm-shop-act-btn:hover svg {
  stroke: #fff;
}
.tfmg-tooltip,
.gdm-shop-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 3px 10px;
  background: #15171a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tfmg-rail-btn:hover .tfmg-tooltip,
.gdm-shop-act-btn:hover .gdm-shop-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/*.tfmg-tooltip,*/
/*.gdm-shop-tooltip*/


.tfmg-tooltip::before{
        content: "";
    left: 100%;
    transform: translateX(-50%) rotate(45deg);
    top: 45%;
    position: absolute;
    background: var(--dark);
    width: 8px;
    height: 8px;
    z-index: -1;
}


/* ---- CARD BODY ---- */
.tfmg-card-body,
.gdm-shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 6px 0;
  width: 100%;
  border-top: 1px solid #f3efeb;
  margin-top: 15px;
}
.inner-tfmg-card-top-row,
.inner-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px !important;
}
.tfmg-outer-title-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tfmg-card-title,
.gdm-shop-card-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--gdm-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gdm-text);
}
.tfmg-card-title a,
.gdm-shop-card-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit;
  transition: color 0.2s ease;
  text-decoration: none !important;
}
.tfmg-card-title a:hover,
.gdm-shop-card-title a:hover {
  color: var(--gdm-primary);
}
.tfmg-card-price,
.gdm-shop-card-price {
  flex: 0 0 auto;
  text-align: right;
}
.tfmg-price-inner,
.gdm-shop-price-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  line-height: 1.1;
}
.tfmg-price-regular,
.gdm-shop-regular-price {
  color: var(--gdm-muted);
  font-size: 18px;
  font-weight: 500;
  position: relative;
  display: inline-block;
}
.tfmg-price-regular::after,
.gdm-shop-regular-price::after {
  content: '';
  background-color: var(--gdm-primary);
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-8deg);
  height: 2px;
  width: 100%;
}
.tfmg-price-current,
.gdm-shop-current-price {
  color: var(--gdm-primary);
  font-size: 18px;
  font-weight: 500;
}
.tfmg-price-none,
.gdm-shop-no-price {
  color: var(--gdm-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.tfmg-price-inner .tfmg-price-sale .woocommerce-Price-amount,
.tfmg-price-inner bdi {
  color: var(--gdm-primary);
  font-size: 19px;
  font-weight: 500;
  font-family: inherit;
}
.tfmg-price-inner del,
.tfmg-price-inner ins {
  text-decoration: none;
  background: transparent;
}
.tfmg-card-rating-row,
.gdm-shop-card-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tfmg-stars,
.gdm-shop-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.tfmg-stars span,
.gdm-shop-stars span {
  display: inline-flex;
}
.tfmg-stars svg,
.gdm-shop-stars svg {
  width: 20px;
  height: 20px;
  display: block;
}
.tfmg-star-filled svg,
.gdm-shop-star-filled svg {
  fill: var(--gdm-primary);
}
.tfmg-star-empty svg,
.gdm-shop-star-empty svg {
  fill: #e6dfd8;
}
.tfmg-card-reviews,
.gdm-shop-card-reviews {
  font-size: 16px;
  font-weight: 500;
  color: var(--gdm-text);
}

/* ---- AVAILABLE FOR (brand chips) ---- */
.tfmg-available,
.gdm-shop-available {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}
.tfmg-available-label,
.gdm-shop-available-label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(--gdm-muted);
  margin-bottom: 5px;
}
.tfmg-available-list,
.gdm-shop-available-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tfmg-available-brand,
.gdm-shop-available-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 100px;
  background: var(--gdm-primary-soft);
  color: var(--gdm-primary-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none !important;
}
.tfmg-available-brand:hover,
.gdm-shop-available-brand:hover {
  border: 1px solid var(--gdm-primary-border) !important;
  color: var(--gdm-primary) !important;
  background: var(--gdm-primary-tint);
}
.tfmg-available-brand span:nth-of-type(2),
.gdm-shop-available-brand span:nth-of-type(2) {
  color: var(--gdm-text);
}
.tfmg-available-brand:hover span,
.gdm-shop-available-brand:hover span {
  color: var(--gdm-primary) !important;
}
.tfmg-available-icon,
.gdm-shop-available-icon {
  display: inline-grid;
  place-items: center;
}
.tfmg-available-icon svg,
.gdm-shop-available-icon svg {
  width: 12px;
  height: 12px;
}

/* ---- DELIVERY ROW + campaign chip + product tags ---- */
.tfmg-delivery,
.gdm-shop-delivery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--gdm-primary-tint);
}
.tfmg-delivery-lhs,
.gdm-shop-delivery-lhs {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.tfmg-delivery-icon,
.gdm-shop-delivery-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 100%;
  background: #FFCCCC;
  color: var(--gdm-text);
}
.tfmg-delivery-icon svg,
.gdm-shop-delivery-icon svg {
  width: 20px;
  height: 20px;
}
.tfmg-delivery-content,
.gdm-shop-delivery-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tfmg-delivery-content .tfmg-delivery-title,
.gdm-shop-delivery-content .gdm-shop-delivery-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--gdm-text);
}
.tfmg-delivery-content .tfmg-delivery-date,
.gdm-shop-delivery-content .gdm-shop-delivery-date {
  font-size: 12px;
  font-weight: 400;
  color: var(--gdm-primary);
  white-space: nowrap;
}
.tfmg-delivery-rhs,
.gdm-shop-delivery-rhs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  max-width: 52%;
}
.tfmg-campaign-chip,
.gdm-shop-campaign-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--gdm-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1;
  text-transform: uppercase;
}
.tfmg-card-tags,
.gdm-shop-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tfmg-card-tag,
.gdm-shop-card-tag {
  margin: 0 !important;
}
.tfmg-card-tag span,
.gdm-shop-card-tag span {
  display: inline-block !important;
  background: #E9F5E5 !important;
  border: 1px solid #fff !important;
  border-radius: 4px !important;
  color: #3C944F !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  padding: 3px 6px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

/* ---- CUSTOMISE BUTTON ---- */
.tfmg-customise-btn,
.gdm-shop-customise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--gdm-primary);
  color: #fff !important;
  font-family: var(--gdm-font);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px var(--gdm-shadow);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important;
  margin-top: 5px;
}
.tfmg-customise-btn:hover,
.gdm-shop-customise-btn:hover {
  background: var(--gdm-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--gdm-shadow-dark);
}

/* ---- RESPONSIVE CARD ADJUSTMENTS ---- */
@media (max-width: 640px) {
  .tf-mockup-card,
  .gdm-shop-card {
    padding: 6px 6px 13px;
    border-radius: 16px;
  }
  .tfmg-card-media,
  .gdm-shop-card-media {
    border-radius: 12px;
  }
  .tfmg-product-image,
  .gdm-shop-product-image {
    padding: 4px;
  }
  .tfmg-card-meta {
    top: 9px;
    left: 8px;
  }
  .tfmg-best-seller {
    padding: 5px 9px;
    font-size: 8.5px;
  }
  .tfmg-trending-tag,
  .gdm-shop-trending-tag {
    padding: 4px 8px;
    font-size: 8.5px;
  }
  .tfmg-sale-badge,
  .gdm-shop-sale-badge {
    top: 9px;
    right: 8px;
    padding: 5px 9px;
  }
  .tfmg-sale-badge-text,
  .gdm-shop-sale-badge-text {
    font-size: 9px;
  }
  .tfmg-card-actions,
  .gdm-shop-card-actions {
    right: 8px;
  }
  .tfmg-btn-rail,
  .gdm-shop-list-product-btn {
    gap: 6px;
  }
  .tfmg-rail-btn,
  .gdm-shop-act-btn {
    width: 35px;
    height: 35px;
  }
  .tfmg-rail-btn svg,
  .gdm-shop-act-btn svg {
    width: 14px;
    height: 14px;
  }
  .tfmg-tooltip,
  .gdm-shop-tooltip {
    display: none;
  }
  .tfmg-card-body,
  .gdm-shop-card-body {
    padding: 10px 3px 0;
    margin-top: 12px;
  }
  .tfmg-card-title,
  .gdm-shop-card-title {
    font-size: 16px;
  }
  .tfmg-card-price,
  .gdm-shop-card-price {
    margin-top: 5px;
  }
  .tfmg-card-rating-row,
  .gdm-shop-card-rating-row {
    margin-top: 6px;
  }
  .tfmg-stars svg,
  .gdm-shop-stars svg {
    width: 18px;
    height: 18px;
  }
  .tfmg-card-reviews,
  .gdm-shop-card-reviews {
    font-size: 10.5px;
  }
  .tfmg-available,
  .gdm-shop-available {
    margin-top: 9px;
    padding-top: 9px;
    gap: 7px;
  }
  .tfmg-available-label,
  .gdm-shop-available-label {
    font-size: 10.5px;
  }
  .tfmg-available-brand,
  .gdm-shop-available-brand {
    padding: 5px 9px;
    font-size: 10.5px;
    gap: 4px;
  }
  .tfmg-available-icon svg,
  .gdm-shop-available-icon svg {
    width: 12px;
    height: 12px;
  }
  .tfmg-delivery,
  .gdm-shop-delivery {
    margin-top: 9px;
    padding: 5px 10px;
  }
  .tfmg-delivery-icon,
  .gdm-shop-delivery-icon {
    width: 28px;
    height: 28px;
  }
  .tfmg-delivery-icon svg,
  .gdm-shop-delivery-icon svg {
    width: 14px;
    height: 14px;
  }
  .tfmg-card-tag span,
  .gdm-shop-card-tag span {
    font-size: 9px;
    padding: 3px 7px;
  }
  .tfmg-customise-btn,
  .gdm-shop-customise-btn {
    margin-top: 9px;
    padding: 10px 14px;
    font-size: 10.5px;
  }
}
@media (hover: none), (pointer: coarse) {
  .tf-mockup-card:hover,
  .gdm-shop-card:hover {
    transform: none !important;
  }
  .tfmg-product-image img,
  .tfmg-product-image .tfmg-img,
  .gdm-shop-product-image img,
  .gdm-shop-product-image .gdm-shop-img {
    transform: scale(1) !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tf-mockup-card,
  .gdm-shop-card,
  .tf-mockup-card *,
  .gdm-shop-card *,
  .tf-mockup-card *::before,
  .tf-mockup-card *::after,
  .gdm-shop-card *::before,
  .gdm-shop-card *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}





