/*
 * Custom Products CSS for DNN 9.13 with Bootstrap 3.2.2
 * Author: LIV International
 * Date: July 31, 2020
 * Description: Modern card-based layout for shopping cart products, 3 per row. 
 * Usage: There are CSS for the store. 
 */

.bs-docs-example{padding:0px !important;} 
.bs-docs-empty::after{ display:none !important;} 
.wsc-fdbox-desc{border:0px !important;} 
.bs-docs-special::after{ content: "Special!"; } 
.bs-livstore-btn {margin-top:10px !important;font-size: 18px !important;} 
.price-font-weight{font-weight:300;line-height: 1.3;font-size: 16px;} 
.wsc-featured-box.media-box.wsc-fdbox-bg .wsc-fdbox-desc {padding: inherit !important;} 
.wsc-acc-title, .wsc-acc-content {background: whitesmoke;} 
.price-retail{font-weight:300;line-height: 1.3;font-size: 13px; color:red;text-decoration: line-through;} 
.wsc-promo-button:hover { background-color: red !important;} 
.liv-expand-box {line-height: 42px !important;} 
.follow_us2 {text-align: left;display: none;} 
.liv-orange{background-color: #ed7425 !important; border: 2px solid #ed7425;} 
.liv-purple{background-color: #00ab54 !important;} 
.liv-noborder{border: 1px solid #00ab54 !important;} 

span.upsale {color: red;font-size: small;} 
span.upsalel2 {color: red;font-weight: 700;font-size: x-large;} 
span.saving {font-size: xx-small;} span.tot-saving {font-size: medium;} 
.price-number {font-weight: 500 !important;} 
a.liv-orange { border-color: #ed7425;} 
.liv-button.liv-button-border {border: 2px solid #fff;background-color: transparent;color: #fff!important;} 
.fa-cart-plus {padding-left: 5px;} 

/* ===== LIV Store Modern Styles (scoped) ===== */

.liv-store {
  --liv-brand: #5C7D62;       /* your brand base */
  --liv-brand-2: #00ab54;     /* accent you’ve used */
  --liv-accent: #ed7425;      /* promo/orange */
  --liv-bg: #0c0f0d;          /* dark backdrop for depth */
  --liv-card-bg: #ffffff;
  --liv-muted: #6c757d;
  --liv-radius: 16px;
  --liv-shadow: 0 10px 25px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --liv-shadow-hover: 0 16px 40px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.10);
  color: #1f2937;
}

/* Optional hero strip */
.liv-store-hero {
  text-align: center;
  margin: 12px auto 20px;
}
.liv-hero-title { margin: 0; }
.liv-hero-title .liv-hero-sub {
  display:block; margin-top: 8px; font-weight:600; font-size: 18px; color: var(--liv-brand);
}
.liv-badge {
  display:inline-block; font-weight:700; text-transform:uppercase; letter-spacing:.02em;
  padding:6px 10px; border-radius: 999px; font-size: 12px;
}
.liv-badge-promo {
  background: linear-gradient(135deg, var(--liv-accent), #ff9f65);
  color: #fff;
  box-shadow: 0 6px 14px rgba(237,116,37,.35);
}

/* Hide AF structural cruft if any */
.liv-af-fields { display: none; }

/* Responsive product grid */
.liv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin: 0 auto 30px;
  max-width: 1200px;
  padding: 0 10px;
}
/* 4-up desktop, 3-up md, 2-up sm, 1-up xs */
.liv-card { grid-column: span 3; }
@media (max-width: 1199px) { .liv-card { grid-column: span 4; } }
@media (max-width: 991px)  { .liv-card { grid-column: span 6; } }
@media (max-width: 575px)  { .liv-card { grid-column: span 12; } }

/* Product card */
.liv-card {
  background: var(--liv-card-bg);
  border-radius: var(--liv-radius);
  box-shadow: var(--liv-shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.liv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--liv-shadow-hover);
}

/* Hidden card (preserves layout if AF expects it) */
.liv-card--hidden { display:none !important; }

/* Media: fixed aspect for consistent rows */
.liv-card-media {
  position: relative;
  width: 100%;
  padding-top: 66.666%; /* 3:2 */
  background: #f5f7f8;
}
.liv-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
  padding: 16px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.10));
}

/* Body */
.liv-card-body {
  padding: 14px 16px 16px;
}
.liv-card-title {
  font-size: 18px; font-weight: 700; margin: 2px 0 2px;
}
.liv-card-subtitle {
  font-size: 13px; color: var(--liv-muted); margin: 0 0 10px;
}

/* Prices */
.liv-price {
  display: flex; align-items: baseline; gap: 10px;
  margin: 6px 0 12px;
}
.liv-price-retail {
  font-size: 13px; color: #c0392b; text-decoration: line-through; font-weight: 600;
}
.liv-price-free {
  font-size: 20px; font-weight: 800; color: var(--liv-brand);
}

/* CTA buttons – square style with brand solid color and darker hover */
.liv-card-cta :is(a, button, input[type="submit"], .btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #5C7D62; /* brand solid */
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  box-shadow: 0 4px 12px rgba(92,125,98,.25);
  cursor: pointer;
  margin: 4px;
}

.liv-card-cta :is(a, button, input[type="submit"], .btn):hover {
  transform: translateY(-1px);
  background-color: #4a6450; /* darker shade on hover */
}

.liv-card-cta :is(a, button, input[type="submit"], .btn):active {
  transform: translateY(0);
  background-color: #435a48; /* slightly darker on click */
}

/* ===== Legacy cleanup (from your old CSS) scoped hard so we don't leak ===== */
.liv-store .bs-docs-example,
.liv-store .bs-docs-empty::after,
.liv-store .wsc-fdbox-desc,
.liv-store .wsc-featured-box.media-box.wsc-fdbox-bg .wsc-fdbox-desc,
.liv-store .wsc-acc-title,
.liv-store .wsc-acc-content,
.liv-store .wsc-promo-button,
.liv-store .liv-expand-box,
.liv-store .follow_us2,
.liv-store .liv-orange,
.liv-store .liv-purple,
.liv-store .liv-noborder,
.liv-store .upsale,
.liv-store .upsalel2,
.liv-store .saving,
.liv-store .tot-saving,
.liv-store .price-number,
.liv-store .liv-button.liv-button-border,
.liv-store .fa-cart-plus {
  all: unset; /* neutralize legacy in this scope */
}

/* In case AF emits Bootstrap 3 .btn, make it consistent inside our scope */
.liv-store .btn {
  border-radius: 999px;
  font-weight: 700;
}

/* Optional: dark container background band for extra depth on wide screens */
@media (min-width: 992px) {
  .liv-store {
    background:
      radial-gradient(1200px 200px at 50% -30px, rgba(92,125,98,.08), rgba(92,125,98,0)) no-repeat;
  }
}

@media (min-width: 400px) and (max-width: 575px) {
  .liv-card { grid-column: span 6; } /* 2 per row on bigger phones */
}