/*
 * Temats (WoodMart) delar i sajtens nya layout på sidor som har nya ramen (body.olf-temaram):
 * produktsidor, kategorier, varukorg, kassa, Mitt konto och vanliga textsidor.
 * Först byts temats egna variabler (färger, typsnitt, hörn), sedan rättas det som variablerna inte når.
 * Nya layouten: marinblått #0B1F4B, guld #E0B94F/#A67C1A, Hanken Grotesk, 2 px knappar, 8 px kort.
 */
body.olf-temaram {
	--natt: #0B1F4B; --guld: #A67C1A; --ljus: #E0B94F; --is: #F4F7FC; --sten: #DCE3F0; --gra: #55607A; --ink: #0B1220;
	--olf-font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wd-primary-color: #0B1F4B;
	--wd-alternative-color: #A67C1A;
	--wd-text-font: var(--olf-font);
	--wd-title-font: var(--olf-font);
	--wd-alternative-font: var(--olf-font);
	--wd-entities-title-font: var(--olf-font);
	--wd-widget-title-font: var(--olf-font);
	--wd-header-el-font: var(--olf-font);
	--wd-text-color: #3a4560;
	--wd-text-font-size: 15px;
	--wd-title-color: #0B1F4B;
	--wd-title-font-weight: 800;
	--wd-entities-title-color: #0B1F4B;
	--wd-entities-title-color-hover: #A67C1A;
	--wd-entities-title-font-weight: 700;
	--wd-widget-title-color: #0B1F4B;
	--wd-widget-title-transform: none;
	--wd-widget-title-font-weight: 800;
	--wd-link-color: #0B1F4B;
	--wd-link-color-hover: #A67C1A;
	--wd-brd-radius: 8px;
	--wd-form-brd-radius: 6px;
	--wd-form-brd-width: 1px;
	--wd-form-brd-color: #DCE3F0;
	--wd-form-brd-color-focus: #0B1F4B;
	--wd-form-height: 44px;
	--btn-default-bgcolor: #0B1F4B;
	--btn-default-bgcolor-hover: #142c63;
	--btn-default-color: #fff;
	--btn-default-color-hover: #fff;
	--btn-default-brd-radius: 2px;
	--btn-accented-bgcolor: #0B1F4B;
	--btn-accented-bgcolor-hover: #142c63;
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;
	--btn-accented-brd-radius: 2px;
	font-family: var(--olf-font);
	color: #3a4560;
}

/* Typsnitt och rubriker: inga versaler, marinblått. */
body.olf-temaram .main-page-wrapper :is(h1, h2, h3, h4, h5, h6, .title, .entry-title, .wd-entities-title, .widget-title, .product_title, legend, th, label, .woocommerce-loop-product__title) {
	font-family: var(--olf-font) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--natt);
}
body.olf-temaram .main-page-wrapper :is(p, li, td, span, a, input, select, textarea, button, .price, .amount) { font-family: var(--olf-font); }
body.olf-temaram .main-page-wrapper :is(h1, .product_title) { font-weight: 800 !important; letter-spacing: -.01em !important; }
body.olf-temaram .main-page-wrapper h2 { font-weight: 800 !important; }
body.olf-temaram .main-page-wrapper a:not(.button):not(.btn):not([class*="wd-"]):hover { color: var(--guld); }

/* Knappar: marinblå, pillerform (ägarens beslut 2026-11-20), ingen versal. */
body.olf-temaram .main-page-wrapper :is(.button, .btn, button[type="submit"], .single_add_to_cart_button, .checkout-button, #place_order, .wc-forward, .added_to_cart, input[type="submit"]) {
	border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; font-family: var(--olf-font) !important; box-shadow: none !important;
}
body.olf-temaram .main-page-wrapper :is(.button, .btn-color-default, .single_add_to_cart_button, .checkout-button, #place_order, .wc-forward, button[type="submit"]):not(.wd-action-btn):not(.wd-add-btn-replace) {
	background-color: var(--natt) !important; color: #fff !important; border: 2px solid var(--natt) !important;
}
body.olf-temaram .main-page-wrapper :is(.button, .single_add_to_cart_button, .checkout-button, #place_order, .wc-forward, button[type="submit"]):not(.wd-action-btn):hover {
	background-color: #142c63 !important; border-color: #142c63 !important; color: #fff !important;
}

/* Meddelanden (t.ex. "Du har inga beställningar än"): ljust kort med guldkant i stället för svart ruta. */
body.olf-temaram :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wd-notice, .woocommerce-notices-wrapper > div) {
	background: var(--is) !important; color: var(--ink) !important; border: 1px solid var(--sten) !important; border-left: 4px solid var(--ljus) !important;
	border-radius: 8px !important; padding: 14px 18px 14px 48px !important; box-shadow: none !important; font-family: var(--olf-font) !important; position: relative;
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
body.olf-temaram .woocommerce-error { border-left-color: #c0392b !important; }
body.olf-temaram .woocommerce-message { border-left-color: #2e7d32 !important; }
body.olf-temaram :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wd-notice)::before { color: var(--natt) !important; }
body.olf-temaram :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wd-notice) :is(a, .button) { margin: 0 0 0 auto !important; }
body.olf-temaram :is(.woocommerce-info, .woocommerce-message) a:not(.button) { color: var(--natt) !important; font-weight: 700; }

/* Sidrubriken (temats svarta/grå banner) blir marinblå med vit text. */
body.olf-temaram .wd-page-title { background: var(--natt) !important; padding: 36px 0 32px !important; margin-bottom: 32px !important; }
body.olf-temaram .wd-page-title .wd-page-title-bg { display: none !important; }
body.olf-temaram .wd-page-title :is(h1, .title, .entry-title) { color: #fff !important; font-size: clamp(28px, 4vw, 40px) !important; margin: 0 !important; }
body.olf-temaram .wd-page-title :is(.breadcrumbs, .wd-breadcrumbs, .woocommerce-breadcrumb, .wd-back-btn, a, span) { color: var(--sten) !important; }
body.olf-temaram .wd-page-title .wd-nav-product-cat a, body.olf-temaram .wd-page-title .wd-nav-product-cat .nav-link-text { color: #fff !important; }
body.olf-temaram .wd-page-title .wd-nav-product-cat .nav-link-summary { color: var(--sten) !important; }
body.olf-temaram .wd-page-title .wd-nav-product-cat .wd-active > a .nav-link-text, body.olf-temaram .wd-page-title .wd-nav-product-cat a:hover .nav-link-text { color: var(--ljus) !important; }
/* Varukorgens steg (Varukorg → Kassa → Klar) i banneret. */
body.olf-temaram .wd-page-title .wd-checkout-steps :is(li, a, span) { color: var(--sten) !important; font-size: 20px !important; text-transform: none !important; }
body.olf-temaram .wd-page-title .wd-checkout-steps .step-active :is(a, span) { color: #fff !important; }

/* Brödsmulor och sortering ovanför produktlistor. */
body.olf-temaram .main-page-wrapper :is(.woocommerce-breadcrumb, .wd-breadcrumbs, .breadcrumbs) { color: var(--gra) !important; font-size: 14px; }
body.olf-temaram .main-page-wrapper :is(.woocommerce-breadcrumb, .wd-breadcrumbs, .breadcrumbs) a { color: var(--natt) !important; }

/* Produktkort i listor och kategorier. */
body.olf-temaram .main-page-wrapper .wd-product .product-wrapper, body.olf-temaram .main-page-wrapper .product-grid-item .product-wrapper {
	border: 1px solid var(--sten); border-radius: 8px; background: #fff; overflow: hidden;
}
body.olf-temaram .main-page-wrapper .wd-product .product-element-top { border-radius: 8px 8px 0 0; overflow: hidden; }
body.olf-temaram .main-page-wrapper .wd-product :is(.wd-entities-title, .wd-entities-title a) { color: var(--natt) !important; font-weight: 700 !important; font-size: 15px !important; }
body.olf-temaram .main-page-wrapper .wd-product .price, body.olf-temaram .main-page-wrapper .summary .price { color: var(--natt) !important; font-weight: 800 !important; }
body.olf-temaram .main-page-wrapper .onsale, body.olf-temaram .main-page-wrapper .product-label.onsale { background: var(--ljus) !important; color: var(--natt) !important; border-radius: 2px !important; }
body.olf-temaram .main-page-wrapper .product-label.new { background: var(--natt) !important; color: #fff !important; border-radius: 2px !important; }

/* Produktsidan. */
body.olf-temaram .main-page-wrapper .product_title { font-size: clamp(28px, 3.4vw, 42px) !important; line-height: 1.1 !important; }
body.olf-temaram .main-page-wrapper .summary .price { font-size: 26px !important; }
body.olf-temaram .main-page-wrapper :is(.wd-single-tabs, .woocommerce-tabs) .tabs a, body.olf-temaram .main-page-wrapper .wd-nav-tabs .nav-link-text { text-transform: none !important; color: var(--natt) !important; font-weight: 700 !important; }
body.olf-temaram .main-page-wrapper .stock.in-stock { color: #2e7d32 !important; }

/* Tabeller (varukorg, kassa, beställningar). */
body.olf-temaram .main-page-wrapper :is(.shop_table, .woocommerce-table) th { color: var(--natt) !important; font-weight: 700 !important; font-size: 14px !important; }
body.olf-temaram .main-page-wrapper .cart-totals-inner, body.olf-temaram .main-page-wrapper .cart_totals, body.olf-temaram .main-page-wrapper .checkout-order-review, body.olf-temaram .main-page-wrapper #order_review {
	border: 1px solid var(--sten) !important; border-radius: 8px !important; background: var(--is) !important; box-shadow: none !important;
}
body.olf-temaram .main-page-wrapper .cart_totals > h2, body.olf-temaram .main-page-wrapper .cart-totals-inner > h2 { font-size: 24px !important; }

/* Fält. */
body.olf-temaram .main-page-wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea) {
	border-radius: 6px !important; border: 1px solid var(--sten) !important; background: #fff !important; color: var(--ink) !important;
}
body.olf-temaram .main-page-wrapper :is(input, select, textarea):focus { border-color: var(--natt) !important; outline: none; box-shadow: 0 0 0 3px rgba(224, 185, 79, .35) !important; }

/* Sidomenyer och widgets. */
body.olf-temaram .main-page-wrapper :is(.sidebar-container, .wd-sidebar) .widget-title { font-size: 16px !important; }

/* Vanliga textsidor (köpvillkor, FAQ m.fl.): luftigare och kort med 8 px hörn. */
body.olf-temaram .main-page-wrapper .entry-content { color: #3a4560; line-height: 1.65; }
body.olf-temaram .main-page-wrapper .elementor-widget-container :is(.elementor-heading-title) { font-family: var(--olf-font) !important; color: var(--natt); }

/* Mitt konto: temats rutnät (12 kolumner) ger menyn och innehållet egna kolumner. */
body.olf-temaram .wd-my-account-wrapper { display: grid !important; grid-template-columns: 240px minmax(0, 1fr) !important; gap: 28px !important; align-items: start; }
body.olf-temaram .wd-my-account-wrapper > .wd-grid-col { grid-column: auto !important; width: auto !important; max-width: none !important; flex: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.olf-temaram .wd-my-account-sidebar .woocommerce-MyAccount-title { display: none !important; }
@media (max-width: 860px) {
	body.olf-temaram .wd-my-account-wrapper { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Meddelandets ikon får egen plats till vänster. */
body.olf-temaram :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .wd-notice)::before { left: 16px !important; top: 50% !important; transform: translateY(-50%); margin: 0 !important; }
/* Kontomenyn: lagom höga rader. */
body.olf-temaram .woocommerce-MyAccount-navigation :is(ul, li) { margin: 0 !important; padding: 0 !important; height: auto !important; }
body.olf-temaram .woocommerce-MyAccount-navigation a { padding: 10px 14px !important; min-height: 0 !important; height: auto !important; line-height: 1.3 !important; }

/* Etiketter på produktbilder (Rea, Nyhet, Populär): små rektanglar i guld/marinblått i stället för röda/gröna cirklar. */
body.olf-temaram .product-labels .product-label { border-radius: 2px !important; min-width: 0 !important; min-height: 0 !important; padding: 5px 9px !important; font-family: var(--olf-font) !important; font-weight: 800 !important; font-size: 12px !important; letter-spacing: .04em !important; line-height: 1.2 !important; }
body.olf-temaram .product-labels .product-label.hot, body.olf-temaram .product-labels .product-label.onsale { background: var(--ljus) !important; color: var(--natt) !important; }
body.olf-temaram .product-labels .product-label.new { background: var(--natt) !important; color: #fff !important; }
body.olf-temaram .product-labels .product-label.out-of-stock { background: #fff !important; color: var(--gra) !important; border: 1px solid var(--sten) !important; }

/* Flikar (Beskrivning, Recensioner …) och listans verktyg utan versaler. */
body.olf-temaram :is(.wd-nav-tabs, .tabs-layout-tabs .tabs, .wd-nav-product-cat, .wd-products-per-page, .wd-products-shop-view) :is(a, span, .nav-link-text) { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--olf-font) !important; }
body.olf-temaram .wd-nav-tabs .nav-link-text { color: var(--natt) !important; font-weight: 700 !important; font-size: 16px !important; }
body.olf-temaram .wd-nav-tabs > li.active > a, body.olf-temaram .wd-nav-tabs > li.wd-active > a { border-color: var(--ljus) !important; }

/* Den fasta köpraden längst ner på produktsidan. */
body.olf-temaram .wd-sticky-btn { font-family: var(--olf-font); }
body.olf-temaram .wd-sticky-btn :is(.button, .single_add_to_cart_button) { background: var(--natt) !important; color: #fff !important; border-radius: 999px !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 700 !important; }
body.olf-temaram .wd-sticky-btn .product-title, body.olf-temaram .wd-sticky-btn .price { color: var(--natt) !important; }
body.olf-temaram .product-labels .product-label.featured { background: var(--ljus) !important; color: var(--natt) !important; }

/* Antalsväljaren (– 10 +) som en sammanhållen ruta. */
body.olf-temaram .main-page-wrapper .quantity, body.olf-temaram .wd-sticky-btn .quantity { display: inline-flex !important; align-items: stretch; border: 1px solid var(--sten); border-radius: 2px; background: #fff; overflow: hidden; }
body.olf-temaram :is(.main-page-wrapper, .wd-sticky-btn) .quantity :is(input, .minus, .plus) { border: 0 !important; border-radius: 0 !important; background: #fff !important; color: var(--natt) !important; min-height: 40px !important; height: auto !important; box-shadow: none !important; }
body.olf-temaram :is(.main-page-wrapper, .wd-sticky-btn) .quantity :is(.minus, .plus):hover { background: var(--is) !important; }

/* 0.17.9: alla knappar i samma stil, även de utanför sidans innehåll (sidokorgen, sökrutan, produkttabellen). */
body.olf-temaram :is(.woocommerce-mini-cart__buttons .button, .searchsubmit, .close-side-widget, .close-side-widget a, .wpt-export-btn, .wpt_empty_cart_btn, .wd-heading .title) {
	font-family: var(--olf-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.olf-temaram :is(.woocommerce-mini-cart__buttons .button, .wd-close-side, .close-side-widget a, .searchform button, .wd-search-form button) { border-radius: 999px !important; font-weight: 700 !important; box-shadow: none !important; }
body.olf-temaram .woocommerce-mini-cart__buttons :is(.btn-cart, .checkout) { background: var(--natt) !important; color: #fff !important; border: 2px solid var(--natt) !important; }
body.olf-temaram .woocommerce-mini-cart__buttons :is(.btn-cart, .checkout):hover { background: #142c63 !important; border-color: #142c63 !important; }
/* Sekundärknappar: vit botten, marinblå ram. */
body.olf-temaram :is(.wpt-export-btn, .wpt_empty_cart_btn, .woocommerce-mini-cart__buttons .wpt_empty_cart_btn) {
	background: #fff !important; color: var(--natt) !important; border: 1px solid var(--natt) !important; border-radius: 999px !important; font-weight: 700 !important; box-shadow: none !important;
}
body.olf-temaram :is(.wpt-export-btn, .wpt_empty_cart_btn):hover { background: var(--is) !important; color: var(--natt) !important; }
body.olf-temaram .searchsubmit { font-weight: 700 !important; }
