/* Shop (templates/shop.php). Same look as the course listings: navy title
 * band, sections, cards. Cards: square white image, badge, name, two-line
 * description, price, Add to cart + Details. Grid: 1 column on phones,
 * 2 from 560px, 3 from 900px, 4 from 1180px. */

.ares-shop {
  --s-navy-900: #002f4f;
  --s-navy: #1d506d;
  --s-blue: #048bce;
  --s-blue-dark: #0373ab;
  --s-blue-50: #eef7fc;
  --s-gold: #f7c500;
  --s-ink: #1f2933;
  --s-muted: #52606d;
  --s-line: #dfe5ec;
  --s-surface: #f5f7fa;
  --s-gutter: 16px;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--s-ink);
}
@media (min-width: 768px) { .ares-shop { --s-gutter: 24px; } }
.ares-shop *, .ares-shop *::before, .ares-shop *::after { box-sizing: border-box; }

.ares-shop__wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s-gutter); }
.ares-shop__band {
  padding: 32px 0 30px;
  background-color: #002f4f;
  background-image: linear-gradient(135deg, #002f4f 0%, #1d506d 100%);
  color: #fff;
}
.ares-shop .ares-shop__eyebrow { margin: 0 0 8px; color: var(--s-gold); font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.ares-shop .ares-shop__title { margin: 0; padding: 0; color: #fff !important; font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }
.ares-shop .ares-shop__intro { max-width: 720px; margin: 12px 0 0; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.55; }
.ares-shop .ares-shop__intro a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) {
  .ares-shop__band { padding: 48px 0 44px; }
  .ares-shop .ares-shop__title { font-size: 38px; }
  .ares-shop .ares-shop__intro { font-size: 17px; }
}
.ares-shop__main { padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 768px) { .ares-shop__main { padding-top: 40px; padding-bottom: 88px; } }

.ares-shop__notices:empty { display: none; }
.ares-shop__notices .woocommerce-message,
.ares-shop__notices .woocommerce-error,
.ares-shop__notices .woocommerce-info {
  margin: 0 0 24px;
  padding: 14px 16px 14px 44px;
  border: 1px solid #b9dcf0;
  border-radius: 12px;
  background: var(--s-blue-50);
  color: var(--s-ink);
  font-size: 15px;
}
.ares-shop__notices .button { float: right; margin-left: 12px; }

.ares-shop__section + .ares-shop__section { margin-top: 44px; }
.ares-shop .ares-shop__h2 {
  margin: 0 0 16px;
  padding: 0;
  color: var(--s-navy-900);
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}
.ares-shop .ares-shop__empty { color: var(--s-muted); font-size: 16px; }

/* ---- Cards --------------------------------------------------------------- */
.ares-prods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 560px) { .ares-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ares-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1180px) { .ares-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ares-prod {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.ares-prod:hover { border-color: #b9dcf0; box-shadow: 0 10px 28px rgba(16, 24, 40, .1); }
.ares-shop .ares-prod__media {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid var(--s-line);
}
.ares-shop .ares-prod__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transition: transform .4s ease;
}
.ares-prod:hover .ares-prod__img { transform: scale(1.03); }
.ares-prod__noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #002f4f 0%, #1d506d 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.ares-prod__body { display: flex; flex: 1; flex-direction: column; padding: 16px 16px 18px; }
.ares-shop .ares-prod__badge {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--s-blue-50);
  color: var(--s-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.ares-shop .ares-prod__title {
  margin: 0;
  padding: 0;
  min-height: 0 !important;
  color: var(--s-navy-900);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}
.ares-shop .ares-prod__title a { color: inherit !important; text-decoration: none !important; }
.ares-shop .ares-prod__title a:hover { color: var(--s-blue-dark) !important; }
.ares-shop .ares-prod__desc {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: var(--s-muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.ares-prod__foot { margin-top: auto; padding-top: 14px; }
.ares-shop .ares-prod__price { margin: 0 0 12px; color: var(--s-navy-900); font-size: 20px; font-weight: 800; line-height: 1.2; }
.ares-shop .ares-prod__price del { color: var(--s-muted); font-size: 14px; font-weight: 500; }
.ares-shop .ares-prod__price ins { text-decoration: none; }
.ares-prod__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ares-shop .ares-prod__btn,
.ares-shop .ares-prod__btn.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--s-blue) !important;
  color: #fff !important;
  font: 700 15px/1.2 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ares-shop .ares-prod__btn:hover { background: var(--s-blue-dark) !important; }
.ares-shop .ares-prod__btn:focus-visible { outline: 3px solid rgba(4, 139, 206, .45); outline-offset: 2px; }
.ares-shop .ares-prod__btn.loading { opacity: .7; }
.ares-shop .ares-prod__btn.added::after { content: " \2713"; margin-left: 6px; }
.ares-shop .ares-prod__more { color: var(--s-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.ares-shop .ares-prod__more:hover { text-decoration: underline; }
/* WooCommerce adds a "View cart" link after an AJAX add */
/* WooCommerce adds a "View cart" link after an AJAX add; the cart bar does that. */
.ares-shop .added_to_cart { display: none !important; }

/* Cart bar */
.ares-shop__cartbar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--s-navy-900);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translateX(-50%);
  white-space: nowrap;
}
.ares-shop__cartbar[hidden] { display: none; }
.ares-shop__cartgo { color: var(--s-gold); }

@media (prefers-reduced-motion: reduce) {
  .ares-prod, .ares-prod__img, .ares-shop .ares-prod__btn { transition: none; }
  .ares-prod:hover .ares-prod__img { transform: none; }
}

/* Tall images (the cheat sheet) grew the square frame; pin the image inside
 * it. Phones: a shorter frame so one product doesn't fill the screen. */
.ares-shop .ares-prod__media { position: relative; overflow: hidden; min-height: 0; }
.ares-shop .ares-prod__img { position: absolute; inset: 16px; width: calc(100% - 32px) !important; height: calc(100% - 32px) !important; }
.ares-shop .ares-prod__noimg { position: absolute; inset: 16px; height: auto; }
@media (max-width: 559px) { .ares-shop .ares-prod__media { aspect-ratio: 4 / 3; } }
