@media all {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  p {
    margin: 0;
    padding: 0;
    direction: ltr;
    font-size: 100%;
    line-height: 1.6;
    margin-bottom: 1.37931em;
    text-rendering: optimizeLegibility;
  }
  
  p:empty {
    display: none;
  }
  
  .price {
    font-size: 110%;
    line-height: 1.2;
    min-height: 15px;
    color: var(--wilddragon-product-price);
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
  }
  
  
  
  .price ins {
    text-decoration: none;
  }
  
  .product-info .price {
    font-size: 180%;
    font-weight: 600 !important;
    clear: both;
    display: block;
    margin: 0 0 15px;
    padding-top: 10px;
  }
  
  .screen-reader-text {
    display: none;
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 0;
    width: 0;
    overflow: hidden;
  }
}


/* === Price Animation Styles === */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: sans-serif; /* Adjust to match your font */
}

/* Regular Price (Strikethrough Animation) */
.price del {
  position: relative;
  color: var(--wilddragon-product-deleted);
  font-size: 0.9em;
  opacity: 0.8;
}

/* Strikethrough Effect */
.price del::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wilddragon-underline-hover);
  transform: translateY(-50%);
  animation: strike 0.6s ease-out forwards;
}

@keyframes strike {
  to { width: 100%; }
}

/* Sale Price (3D Pop Effect) */
.price ins {
  color: var(--wilddragon-product-price);
  font-size: 1.3em;
  font-weight: 700;
  text-decoration: none;
  transform: translateZ(0); /* Enable GPU acceleration */
  animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop {
  0% { transform: scale(0.9) translateZ(0); opacity: 0.5; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1) translateZ(0); opacity: 1; }
}

/* Optional: Hover Effects */
.price:hover del::before {
  background: var(--wilddragon-underline-hover);
}

.price:hover ins {
  text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Subtle shadow */
}