/* ==========================================================================
   AlberFood – jubilæumstema: tilpasning til webshoppens egne klasser
   (MDL + Bootstrap 4 + egne styles). Indlæses efter jubilaeum-tema.css.
   Ændrer kun udseendet. Fjernes sammen med temaet (JUBILAEUM_TEMA = False).
   ========================================================================== */

/* Webshoppens egne farvevariabler -> Skovgrøn og guld */
:root {
  --primary-color: #23652e;
  --primary-color-faded: rgba(35, 101, 46, .45);
  --secondary-color: #87621f;
}

/* Alle regler starter med body.af-theme, så de vinder over <style>-blokkene i shop/header.html.
   !important bruges kun dér, hvor webshoppen har style="" direkte på elementet. */

/* --- Grundflade --------------------------------------------------------- */
body.af-theme, body.af-theme .mdl-layout__content, body.af-theme .mdl-color--grey-100 { background: var(--af-paper) !important; }
body.af-theme { color: var(--af-ink); }

/* --- Header ------------------------------------------------------------- */
body.af-theme #MainHeader {
  background: #fff !important; box-shadow: none;
  border-bottom: 1px solid var(--af-gold-line) !important;
}
body.af-theme #MainHeader .navbar-brand h4 { font-family: var(--af-font-body); font-size: 14px !important; color: var(--af-muted) !important; font-weight: 400; }
body.af-theme #MainHeader .material-icons { color: var(--af-primary); }
body.af-theme .af-shop-logo { max-width: 96px !important; height: auto; }

/* --- Venstre menu (kategorier) ------------------------------------------ */
body.af-theme .mdl-layout__drawer {
  background: #fff !important; background-image: none !important;
  border-right: 1px solid var(--af-gold-line) !important; box-shadow: none;
}
body.af-theme .demo-drawer-header { background: var(--af-paper) !important; border-bottom: 1px solid #efe6d2; padding: 16px !important; }
body.af-theme .demo-drawer-header h4 { font-family: var(--af-font-body); font-size: 15px !important; font-weight: 600; color: var(--af-dark); margin: 0; line-height: 1.4; }
body.af-theme .demo-drawer-header h4 #customerBalance { font-size: 13px; color: var(--af-muted); font-weight: 400 !important; }
body.af-theme .demo-drawer-header .material-icons { color: var(--af-gold-ink); }
body.af-theme .mdl-navigation__link span, body.af-theme .mdl-navigation__link .material-icons { color: var(--af-ink) !important; }
body.af-theme .mdl-navigation__link { font-size: 15px; }
body.af-theme .mdl-navigation__link:hover { background: var(--af-paper) !important; }
body.af-theme .sidepanel-title {
  font-family: var(--af-font-body) !important; font-size: 12px !important; font-weight: 600;
  letter-spacing: .14em; color: var(--af-gold-ink) !important; margin: 18px 0 6px 24px !important;
}
body.af-theme .categories a { font-family: var(--af-font-body); font-size: 15px; color: var(--af-ink) !important; }
body.af-theme .categories a:hover, body.af-theme .categories a.checked { color: var(--af-primary) !important; }
body.af-theme .categories a span, body.af-theme .categories a span .x, body.af-theme .categories a span .y { border-color: var(--af-gold) !important; }
body.af-theme .categories .x, body.af-theme .categories .y { background: var(--af-gold) !important; }

/* --- Jubilæumshero i webshoppen (lavere end på forsiden) ----------------- */
body.af-theme .af-shop-hero-wrap { padding: .6rem; }
body.af-theme .af-shop-hero { border-radius: 14px; overflow: hidden; border: 1px solid var(--af-gold-line); }
@media (min-width: 961px) {
  body.af-theme .af-shop-hero { background: linear-gradient(90deg, #faf8f3 0 30%, var(--af-dark) 30%); }
}
body.af-theme .af-shop-hero .af-wrap { padding-block: clamp(28px, 4vw, 48px); }
body.af-theme .af-shop-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 0 0 12px; color: #fbf7ee; }
body.af-theme .af-shop-hero p { font-size: 16px; line-height: 1.6; color: #e2dccb; margin: 0 0 22px; max-width: 48ch; }
body.af-theme .af-shop-hero .af-btn { font-size: 15px; text-decoration: none; }
body.af-theme .af-shop-hero .af-hero__thirty { font-size: clamp(96px, 11vw, 150px); }
body.af-theme .af-shop-hero .af-hero__years { font-size: 18px; }
body.af-theme .af-shop-hero .af-hero__tagline { font-size: 11px; }

/* --- Sortering / sidetal -------------------------------------------------- */
body.af-theme #contentArea .card { border: 1px solid var(--af-gold-line); border-radius: 12px; box-shadow: var(--af-shadow); background: #fff; }
body.af-theme #paginationPages { font-family: var(--af-font-body); font-size: 15px; font-weight: 600; color: var(--af-primary) !important; }
body.af-theme #paginationTotal { font-family: var(--af-font-body); font-size: 14px; color: var(--af-muted) !important; }
body.af-theme .btn-outline-secondary { border-color: var(--af-gold-line); color: var(--af-primary); background: #fff; font-family: var(--af-font-body); }
body.af-theme .btn-outline-secondary:hover, body.af-theme .btn-outline-secondary:focus, body.af-theme .show > .btn-outline-secondary.dropdown-toggle { background: #fffaf0; border-color: var(--af-gold); color: var(--af-primary); box-shadow: none; }
body.af-theme .dropdown-menu { border: 1px solid var(--af-gold-line); border-radius: 10px; box-shadow: var(--af-shadow); }
body.af-theme .dropdown-item { font-family: var(--af-font-body); font-size: 14px; }
body.af-theme .dropdown-item:hover { background: var(--af-paper); }

/* --- Produkt- og kategorikort --------------------------------------------- */
body.af-theme #contentArea .card-hover-effect { transition: border-color .2s, box-shadow .2s, transform .2s; }
body.af-theme #contentArea .card-hover-effect:hover { border-color: var(--af-gold); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(var(--af-shade), .06), 0 14px 30px -14px rgba(var(--af-shade), .3); }
body.af-theme #contentArea .card .image-container { background: var(--af-paper); }
/* Kategorinavne i serif, varenavne (skrevet med store bogstaver i systemet) i brødtekst-skriften */
body.af-theme #contentArea .card-selection .card-body p { font-family: var(--af-font-display); font-weight: 500 !important; color: var(--af-dark); }
body.af-theme #contentArea .card-selection .card-body .col-12:has(.dotted-text) p { font-family: var(--af-font-body); font-weight: 600 !important; font-size: 14px !important; letter-spacing: .01em; line-height: 1.35 !important; }
/* "Gå til næste kategori" */
body.af-theme .next-category-style { background: var(--af-dark) !important; opacity: 1 !important; border-radius: 8px; }
body.af-theme #contentArea .next-category-style p { color: #fbf7ee !important; font-family: var(--af-font-display); font-weight: 500 !important; font-size: 28px !important; }
body.af-theme .next-category span { font-family: var(--af-font-body); color: var(--af-muted) !important; font-size: 14px !important; }
body.af-theme #contentArea .card-selection .card-body .dotted-text { font-family: var(--af-font-body); color: var(--af-muted) !important; }
body.af-theme #contentArea .card-footer { background: transparent; border-top: 1px solid #efe6d2; }
body.af-theme #productInfoPrices h3.card-title { font-family: var(--af-font-body); font-size: 15px; color: var(--af-ink); }
body.af-theme #productInfoPrices h3.card-title strong { font-family: var(--af-font-display); font-size: 20px; font-weight: 600; color: var(--af-dark); }
body.af-theme .af-stk-count { font-size: 13px; color: var(--af-muted); font-weight: 400; }

/* --- Knapper ------------------------------------------------------------- */
body.af-theme .btn-primary { background: var(--af-primary); border-color: var(--af-primary); }
body.af-theme .btn-primary:hover, body.af-theme .btn-primary:focus { background: var(--af-dark); border-color: var(--af-dark); }
body.af-theme .btn-outline-primary { color: var(--af-primary) !important; border-color: var(--af-gold-line); background: #fff; }
body.af-theme .btn-outline-primary:hover { background: #fffaf0; border-color: var(--af-gold); color: var(--af-primary) !important; }
body.af-theme .btn-outline-danger { color: var(--af-gold-ink); border-color: var(--af-gold-line); }
body.af-theme .btn-outline-danger:hover { background: #fffaf0; color: var(--af-gold-ink); border-color: var(--af-gold); }
body.af-theme .form-control:focus { border-color: var(--af-gold); box-shadow: 0 0 0 3px rgba(var(--af-gold-rgb), .25); }

/* --- Bånd: Tilbud / Nyhed ------------------------------------------------- */
body.af-theme .ribbon span { background: var(--af-foil) !important; color: var(--af-dark) !important; }
body.af-theme .news-ribbon span { background: var(--af-primary) !important; color: #fff !important; }

/* --- Kurv-knap ------------------------------------------------------------ */
body.af-theme #showCartModalButton { background: var(--af-primary) !important; box-shadow: 0 10px 24px -10px rgba(var(--af-shade), .6); }
body.af-theme #showCartModalButton .fa { color: #fff !important; }
body.af-theme #showCartModalButton .counter-up { background: var(--af-foil) !important; color: var(--af-dark) !important; border: 2px solid #fff; }
body.af-theme #showCartModalButton .counter-up span { color: var(--af-dark) !important; }

/* --- Dialoger (login, produktinfo, kurv) ---------------------------------- */
body.af-theme .modal-content { border: 1px solid var(--af-gold-line); border-radius: 14px; background: var(--af-paper); box-shadow: 0 30px 60px -20px rgba(var(--af-shade), .45); }
body.af-theme .modal-header { border-bottom: 1px solid #efe6d2; }
body.af-theme .modal-title { font-family: var(--af-font-display); color: var(--af-dark) !important; }
body.af-theme .modal-backdrop.show { background: rgb(var(--af-shade)); opacity: .55; }

/* --- Footer i webshoppen --------------------------------------------------- */
body.af-theme .af-trust, body.af-theme .af-footer { font-size: 15px; }
body.af-theme .af-trust__icon .material-icons { font-size: 22px; color: var(--af-gold-ink); }
body.af-theme .af-trust h3 { font-family: var(--af-font-display); color: var(--af-dark); }
body.af-theme .af-footer h3 { font-family: var(--af-font-display); }
body.af-theme .af-footer p, body.af-theme .af-footer li { font-size: 15px; }
body.af-theme .af-footer .af-footer__bottom span { font-size: 13px; }
