/* =====================================================================
   Mystore Theme: custom overrides (loaded after tm_style.css)
   Change the variables in section 1 to re-skin the whole store.
   ===================================================================== */

/* ---- 1. DESIGN TOKENS (colors + fonts) ------------------------------ */
:root,
[data-bs-theme=light] {
  /* brand */
  --ms-primary:        #5b4b8a;   /* buttons, links, accents */
  --ms-primary-hover:  #4a3d73;
  --ms-primary-active: #3d3263;
  --ms-primary-rgb:    91, 75, 138;
  --ms-accent:         #d6b36a;   /* SALE / NEW badges */
  --ms-ink:            #2e2740;   /* headings */
  --ms-footer-bg:      #2e2740;
  --ms-surface:        #F4F7F6;   /* v2: back to the theme's bright clean surface — the lavender tint dulled the page (Bibi, Nov 29) */   /* image placeholders, soft panels */

  /* type */
  --ms-font-body:      "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ms-font-heading:   "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* shape */
  --ms-radius:         14px;
  --ms-card-ratio:     312 / 400;  /* matches the image size set at install */

  /* wire into Bootstrap / Novator variables */
  --bs-primary:               var(--ms-primary);
  --bs-primary-rgb:           var(--ms-primary-rgb);
  --bs-link-color:            var(--ms-primary);
  --bs-link-hover-color:      var(--ms-primary-hover);
  --bs-primary-bg-subtle:     #EFEAF6;
  --bs-warning:               var(--ms-accent);
  --bs-warning-rgb:           214, 179, 106;
  --bs-font-sans-serif:       var(--ms-font-body);
  --bs-body-font-family:      var(--ms-font-body);
  --pc-heading-color:         var(--ms-ink);
  --pc-body-alt-color:        var(--ms-surface);
}

.btn-primary {
  --bs-btn-bg:                  var(--ms-primary);
  --bs-btn-border-color:        var(--ms-primary);
  --bs-btn-hover-bg:            var(--ms-primary-hover);
  --bs-btn-hover-border-color:  var(--ms-primary-hover);
  --bs-btn-active-bg:           var(--ms-primary-active);
  --bs-btn-active-border-color: var(--ms-primary-active);
  --bs-btn-disabled-bg:         var(--ms-primary);
  --bs-btn-disabled-border-color: var(--ms-primary);
  --bs-btn-focus-shadow-rgb:    var(--ms-primary-rgb);
}

h1, .h1, h2, .h2, h3, .h3 {
  font-family: var(--ms-font-heading);
  color: var(--pc-heading-color);
  letter-spacing: -0.01em;
}
h4, .h4, h5, .h5, h6, .h6 { font-family: var(--ms-font-body); }

/* ---- 2. HEADER ------------------------------------------------------ */
.header-bar {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(46, 39, 64, 0.10);
  box-shadow: 0 1px 12px rgba(46, 39, 64, 0.05);
}
.header-logo { max-width: 220px; }
.header-logo img { max-height: 48px; width: auto; }
.header-bar .link-badge { background: var(--ms-accent); }

@media (max-width: 575.98px) {
  .header-logo { max-width: 140px; }
  .header-logo img { max-height: 36px; }
}

/* ---- 3. FOOTER ------------------------------------------------------ */
.footer { background: var(--ms-footer-bg); }
/* the <footer> carries Bootstrap's p-0 (!important), so pad the inner block */
.footer .footer-bottom { padding: 48px 0 16px; }
.footer h3, .footer .h3, .footer h4 {
  font-family: var(--ms-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer .footer-notes {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 32px;
  font-size: 0.85rem;
}

/* ---- 4. PRODUCT GRID ------------------------------------------------ */
.product-card .prod-img {
  border-radius: var(--ms-radius);
  background-color: var(--ms-surface);
  aspect-ratio: var(--ms-card-ratio);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* config image size is written inline in px; override so cards stay fluid */
.product-card .prod-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.product-card .img-overlay { height: 100% !important; }
.product-card:hover .prod-img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(46, 39, 64, 0.16);
}
.product-card .bottom-bar { background: var(--ms-ink); }
.product-card .bottom-bar a:hover { color: var(--ms-accent); }
.product-card .prod-badge {
  top: 14px;
  left: 14px;
  border-radius: 999px !important;
  padding: .4em .8em;
  font-size: .7rem;
  letter-spacing: .04em;
}
.product-card h6 { font-size: .95rem; line-height: 1.35; min-height: 2.7em; }
.product-card h6 a { color: var(--ms-ink); text-decoration: none; }
.product-card h6 a:hover { color: var(--ms-primary); }

/* touch screens have no hover: keep the action bar visible */
@media (hover: none) {
  .product-card .overlay .bottom-bar { opacity: 1; }
}
@media (max-width: 575.98px) {
  .product-card .bottom-bar { padding: 10px; }
  .product-card h6 { font-size: .85rem; }
}

/* ---- 5. PHX FIXES v2 (Nov 29) --------------------------------------- */
/* back-to-top chevron: was bright blue from the stock stylesheet */
#gotop { color: var(--ms-primary); }
#gotop:hover { color: var(--ms-accent); }
/* Bootstrap's grey secondary button (e.g. the not-found page Continue) */
.btn-secondary {
  --bs-btn-bg: var(--ms-primary);
  --bs-btn-border-color: var(--ms-primary);
  --bs-btn-hover-bg: var(--ms-primary-hover);
  --bs-btn-hover-border-color: var(--ms-primary-hover);
  --bs-btn-active-bg: var(--ms-primary-active);
  --bs-btn-active-border-color: var(--ms-primary-active);
  --bs-btn-disabled-bg: var(--ms-primary);
  --bs-btn-disabled-border-color: var(--ms-primary);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
}
