/* Minimal styles; override in theme for perfect match */
/* Card Wrapper */
.card {
  width: 360px;
  border-radius: var(--card-radius, 16px);
  overflow: hidden;
  transition: transform var(--transition-time, .35s) ease, 
              box-shadow var(--transition-time, .35s) ease;
}
.rs-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #184E57; /* your brand color */
    color: #fff;
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Hover Lift */
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,.15));
}

/* Media (Image Holder) */
.card .media {
  position: relative;
  height: 240px;
  overflow: hidden;
  display: block;
}

/* Product Image */
.card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
    display: block;
    background: #000;
  transition: transform var(--transition-time, .35s) cubic-bezier(.2,.8,.2,1);
  transform-origin: center center;
  will-change: transform;
}

/* Image Zoom */
.card:hover .media img {
  transform: scale(1.12);
}

/* Gradient Overlay */
.card.featured .media::after {
  content: "";
  position: absolute;
  inset: 0;
  visibility: hidden;
  background: linear-gradient(
    to top, 
    rgba(192,132,252,0.80) 0%, 
    rgba(244,114,182,0.70) 40%, 
    rgba(244,114,182,0.30) 70%, 
    rgba(0,0,0,0) 100%
  );
  mix-blend-mode: normal;
  transition: opacity .35s ease;
}

/* Caption on Image */
.card .media .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.card .media h3 {
  margin: 0 0 6px 0;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  font-family: "Segoe UI" !important;
}

.card .media p {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .95);
  opacity: .95;
  font-family: "Segoe UI" !important;
}

/* Bottom Content (Button Area) */
.card .body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.card .btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background .25s ease, color .25s ease, transform .15s ease;
  text-decoration: none;
  color: #222;
  font-family: "Segoe UI" !important;
  font-size: 14px;
}

.card:hover .btn {
  color: #111;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 420px) {
  
  .card .media { height: 200px; }
}

/* Responsive Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional styling for your theme */
@media only screen and (max-width: 1024px) {
  div.prod_hold .name {
    font-size: 13px;
  }
}

.dedar-filter-buttons {
    margin-bottom: 20px;
}
.dedar-filter-btn {
    display: inline-block;
    margin: 0 8px 10px 0;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    transition: all .15s ease;
    font-size: 14px;
}
.dedar-filter-buttons.gradient-bg button.dedar-filter-btn:hover {
    transform: translateY(-1px);
    background: #dddddd1c !important;
}
.dedar-filter-buttons.gradient-bg button.dedar-filter-btn.active:hover {
    transform: translateY(-1px);
    background: var(--gradient-primary) !important;
}
.dedar-filter-buttons.gradient-bg button.dedar-filter-btn.active {
    /* background: #111; */
    color: #fff;
    /* border-color: #111; */
    background: var(--gradient-primary);
}
.dedar-filter-buttons.gradient-bg button {
    /* min-width: fit-content; */
    border: unset;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .5);
    padding: 10px 20px;
    font-family: "Segoe UI";
    background: #fff;
}
.dedar-grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.dedar-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow .15s ease;
}
.dedar-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.dedar-card .media {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
}
.dedar-card .media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.dedar-card .caption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.dedar-card h3 { margin: 0; font-size: 18px; }
.dedar-card p { margin: 4px 0 0; font-size: 13px; opacity: .9; }

.dedar-card .body {
    padding: 14px;
    margin-top: auto;
    text-align: center;
}
.dedar-card .btn {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #111;
    background: #111;
    color: #fff;
}

/* Product meta row inside card (title / price) */
.dedar-product-meta {
    padding: 12px 14px;
    border-top: 1px solid #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dedar-product-title { font-weight: 600; font-size: 15px; margin: 0; }
.dedar-product-price { font-weight: 700; }
