/*
 * CBD Astra Child: custom.css  (v0.2.0, Plan A styling-only fixes)
 * Brand tokens: teal #006C68, lime #B4DB78, ink #1E293B, slate #334155, black, white. Headings Manrope (from the site).
 * RULES: CSS only, no wording changes, no template overrides. Checkout/cart/payment UI is NOT styled here.
 * Every block is independent and labelled A1..A9: delete one block to revert that item.
 * Approved by Markus 2026-12-04 (Plan A, docs/redesign-plan.md). Log: docs/change-log.md.
 */

/* ---------------------------------------------------------------------------
 * A1. Desktop navigation pill: readable text on lime (was white on lime, about 1.5:1).
 *     Ink #1E293B on lime #B4DB78 is about 9:1 (WCAG AA needs 4.5:1).
 * ------------------------------------------------------------------------- */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  color: #1E293B !important;
  font-weight: 600;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:focus-visible,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-toggle-on > a.mega-menu-link {
  color: #004F4C !important;
  background: rgba(0, 108, 104, 0.12) !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item.mega-current-menu-ancestor > a.mega-menu-link {
  color: #004F4C !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------------------
 * A2. Top notice bar on phones/tablets: smaller type and padding so it takes less height.
 *     Text and presence are unchanged (the Black Friday bar is NOT touched).
 * ------------------------------------------------------------------------- */
@media (max-width: 921px) {
  .cbfb26 { padding: 6px 36px 6px 12px !important; }
  .cbfb26 .cbfb26__t { font-size: 12.5px !important; line-height: 1.3 !important; }
}

/* ---------------------------------------------------------------------------
 * A3. Blog cards on home: readable text and a readable "Læs mere" pill.
 *     Card: white text on deep teal. Pill: white on black (was white on lime, about 1.5:1).
 *     Pagination: bigger tap targets and darker numbers.
 * ------------------------------------------------------------------------- */
.uagb-post__inner-wrap { background-color: #073F3D !important; }
.uagb-post__inner-wrap a.wp-block-button__link.uagb-text-link {
  background-color: #000 !important;
  color: #fff !important;
}
.uagb-post__inner-wrap a.wp-block-button__link.uagb-text-link:hover,
.uagb-post__inner-wrap a.wp-block-button__link.uagb-text-link:focus-visible {
  background-color: #B4DB78 !important;
  color: #1E293B !important;
}
.uagb-post-pagination-wrap a.page-numbers,
.uagb-post-pagination-wrap span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 10px;
}
.uagb-post-pagination-wrap a.page-numbers { color: #475569; }

/* ---------------------------------------------------------------------------
 * A4. Product page buy box clean-up.
 *     - SKU line hidden (shows "N/A" on all but 1 of 413 products).
 *     - "RYD" reset link: small underlined text link with a little air.
 *     - Variation label spacing. Tag chips: light outline instead of solid dark fills.
 * ------------------------------------------------------------------------- */
.single-product .product_meta .sku_wrapper { display: none !important; }
.single-product table.variations .reset_variations {
  display: inline-block; margin-top: 8px; font-size: 13px; letter-spacing: 0;
  text-transform: none; text-decoration: underline; text-underline-offset: 2px; color: #475569;
}
.single-product table.variations th.label { padding-bottom: 6px; }
.single-product .product_meta .tagged_as { display: block; text-align: left; }
.single-product .product_meta .tagged_as a {
  display: inline-block; margin: 0 2px 6px 0; padding: 2px 10px;
  background: transparent !important; color: #006C68 !important;
  border: 1px solid rgba(0, 108, 104, 0.35); border-radius: 999px; font-size: 13px; line-height: 1.5; text-decoration: none;
}
.single-product .product_meta .tagged_as a:hover { background: rgba(0, 108, 104, 0.08) !important; }

/* ---------------------------------------------------------------------------
 * A5. Product cards in lists (shop, category, home grids): less clutter.
 *     Category label and tag chips under each card are hidden (brand and price stay).
 *     Price clearer, title capped at 3 lines (full text stays in the page).
 * ------------------------------------------------------------------------- */
ul.products li.product .ast-woo-product-category,
ul.products li.product .tagged_as { display: none !important; }
ul.products li.product .price { font-size: 15px; font-weight: 600; color: #1E293B; }
ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.3;
}

/* ---------------------------------------------------------------------------
 * A6. Typography consistency (purely visual, no wording changes).
 *     Product title and section headings on product pages use one scale; calmer line-height.
 * ------------------------------------------------------------------------- */
body { -webkit-font-smoothing: antialiased; }
.entry-content p, .woocommerce-Tabs-panel p { line-height: 1.65; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }
.single-product h1.product_title { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); font-weight: 700; }
.single-product .woocommerce-Tabs-panel h2 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); }

/* ---------------------------------------------------------------------------
 * A7. Category tiles on home: softer shadow (was 0 8px 12px at 44% black).
 * ------------------------------------------------------------------------- */
figure.wp-block-uagb-image__figure a[href*="/kategori/"] img {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16) !important;
}

/* ---------------------------------------------------------------------------
 * A8. Layout-shift (CLS) reservations live in assets/critical.css (printed inline in <head>
 *     by functions.php so they apply at first paint). Nothing to do here.
 * ------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
 * A9. (reserved) Mobile checkout step-bar overflow: NOT implemented here.
 *     The checkout is rendered by CheckoutWC with its own template and could not be tested
 *     without placing an item in the live cart, so it is left untouched by decision.
 * ------------------------------------------------------------------------- */
