/*
Theme Name: MO Solnedgång
Description: Eget lättviktstema för melanotanonline.com.
Version: 1.0.7
Requires PHP: 8.1
Text Domain: mo-solnedgang
*/

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); }

:root {
	--brand: #c2410c;
	--brand-dark: #7c2d12;
	--brand-tint: #fff4ed;
	--brand-line: #fed7c3;
	--ink: #1d1d1f;
	--ink-soft: #4b5563;
	--muted: #6b7280;
	--bg: #ffffff;
	--bg-2: #fffaf6;
	--line: #e5e7eb;
	--ok: #15803d;
	--radius: 10px;
	--font: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 14px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Toppremsa */
.topbar { background: var(--brand-dark); color: #fff; font-size: 12px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.topbar .usp { display: flex; gap: 24px; }
.topbar a { color: #fff; text-decoration: none; opacity: 0.9; }
.topbar .links { display: flex; gap: 18px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); }
.site-search { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.site-search input[type="search"] { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px 9px 34px; font: 13px var(--font); color: var(--ink); }
.site-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.header-cart { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-cart .count { background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; }
.menu-toggle { display: none; background: none; border: 0; font: 600 14px var(--font); color: var(--brand); cursor: pointer; white-space: nowrap; }

/* Hero */
.hero { color: #fff; padding: 72px 0 84px;
	background:
		linear-gradient(90deg, rgba(67, 20, 7, 0.92) 0%, rgba(124, 45, 18, 0.8) 55%, rgba(194, 65, 12, 0.4) 100%),
		radial-gradient(circle at 78% 30%, #fdba74 0%, #ea580c 38%, #7c2d12 78%); }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.1rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 18ch; }
.hero p { font-size: 17px; max-width: 54ch; margin: 0 0 16px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.btn-white { background: #fff; color: var(--brand-dark); font-weight: 700; padding: 15px 26px; border-radius: 8px; display: inline-flex; gap: 10px; text-decoration: none; transition: transform 150ms ease; }
.btn-white:hover { transform: translateY(-2px); color: var(--brand-dark); }
.hero-badge { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* USP-kort */
.usps { background: var(--brand-tint); padding: 26px 0; }
.usps .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usp-card { background: var(--bg); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.usp-card svg { color: var(--brand); flex: none; }

/* Produktkort */
.products-section { padding: 56px 0; }
h1, h2, h3 { color: var(--ink); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 14px; color: var(--brand-dark); }
.mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
.mo-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); transition: box-shadow 200ms ease, transform 200ms ease; display: flex; flex-direction: column; }
.mo-card:hover { box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.3); transform: translateY(-2px); }
.mo-card .img { background: linear-gradient(180deg, var(--bg-2), var(--bg)); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.mo-card .img img { width: 100%; height: 100%; object-fit: contain; }
.mo-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mo-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.mo-card h3 a { color: var(--brand); text-decoration: none; }
.mo-card .sub { color: var(--ink-soft); font-size: 14px; }
.mo-card .foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.from { font-size: 13px; color: var(--muted); font-weight: 600; }
.from strong { color: var(--brand); font-size: 22px; font-weight: 800; margin-left: 4px; }
.btn-brand, .button, button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wc-block-components-button {
	background: var(--brand); color: #fff; font: 600 14px var(--font); padding: 11px 18px; border-radius: 8px; border: 0; text-decoration: none; cursor: pointer; transition: background 150ms ease; display: inline-block; }
.btn-brand:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--brand-dark); color: #fff; }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--brand); }
.woocommerce button.button.alt:hover { background: var(--brand-dark); }

/* Innehåll */
.content-section { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0; }
.entry { max-width: 760px; margin: 0 auto; }
.entry h2 { margin-top: 44px; }
.entry > h2:first-child { margin-top: 0; }
.entry h3 { color: var(--brand); font-size: 20px; margin: 30px 0 8px; }
.entry p, .entry li { color: var(--ink); }
.entry table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.entry th, .entry td { text-align: left; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.entry th { background: var(--brand-tint); color: var(--brand-dark); }
.table-scroll { overflow-x: auto; }
.entry details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.entry summary { cursor: pointer; font-weight: 600; }
.entry details p { margin: 10px 0 0; }
.page-main { padding: 48px 0 64px; }
.page-main .entry h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 18px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.reviewed { font-size: 13px; color: var(--muted); border-left: 3px solid var(--brand-line); padding-left: 10px; margin: 0 0 24px; }

/* Doseringskalkylator */
.mo-calc { background: var(--bg); border: 1px solid var(--brand-line); border-radius: 14px; padding: 24px; margin: 28px 0 8px; box-shadow: 0 10px 30px -22px rgba(124, 45, 18, 0.5); }
.mo-calc h2 { margin: 0 0 16px !important; font-size: 22px; }
.mo-calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mo-calc label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.mo-calc input, .mo-calc select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 16px var(--font); color: var(--ink); background: var(--bg-2); }
.mo-calc-out { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0 0; }
.mo-calc-out div { background: var(--brand-tint); border-radius: 10px; padding: 12px 14px; }
.mo-calc-out dt { font-size: 12px; color: var(--brand-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mo-calc-out dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.mo-calc-note { font-size: 13px; color: var(--muted); margin: 14px 0 0 !important; }
@media (max-width: 600px) { .mo-calc-fields, .mo-calc-out { grid-template-columns: 1fr; } }

/* WooCommerce produkt */
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.woocommerce div.product .woocommerce-product-gallery { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 0; width: auto; float: none; }
.woocommerce div.product .summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images { width: 100% !important; }
.woocommerce div.product div.images img { border-radius: 8px; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.2; margin: 0 0 10px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand); font-size: 24px; font-weight: 800; }
.woocommerce div.product form.cart .variations select { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 15px var(--font); min-width: 220px; }
.woocommerce div.product form.cart .variations th { text-align: left; padding-right: 12px; }
.woocommerce .quantity .qty { border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: 70px; font: 15px var(--font); }
.woocommerce div.product > * { min-width: 0; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related { grid-column: 1 / -1; }
.woocommerce-Tabs-panel { max-width: 760px; }
.woocommerce-Tabs-panel h2 { margin-top: 40px; }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.woocommerce-Tabs-panel th { background: var(--brand-tint); color: var(--brand-dark); }
.woocommerce-Tabs-panel details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.woocommerce-Tabs-panel summary { cursor: pointer; font-weight: 600; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.woocommerce-tabs .tabs { display: none; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce .product_meta { display: none; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--brand) !important; }
.woocommerce-store-notice { display: none !important; }

/* Omdömen */
.mo-reviews { grid-column: 1 / -1; max-width: 760px; margin-top: 24px; }
.mo-reviews #reviews h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.mo-reviews .commentlist { list-style: none; padding: 0; }
.mo-reviews .commentlist li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.mo-reviews .star-rating { color: #f59e0b; }
.mo-reviews .woocommerce-noreviews { color: var(--muted); }

/* Blogg */
.mo-blogg { max-width: 760px; margin: 28px auto 0; display: grid; gap: 16px; }
.mo-blogg-kort { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: var(--bg); }
.mo-blogg-kort h2 { font-size: 22px; margin: 4px 0 8px; }
.mo-blogg-kort h2 a { color: var(--ink); text-decoration: none; }
.mo-blogg-kort h2 a:hover { color: var(--brand); }
.mo-blogg-datum { font-size: 13px; color: var(--muted); margin: 0; }
.mo-blogg-las { font-weight: 600; text-decoration: none; }
.nav-links { max-width: 760px; margin: 24px auto 0; display: flex; gap: 16px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #fde3d2; padding: 48px 0 28px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer h2 { color: #fff; margin: 0 0 8px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fde3d2; text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark { background: #fff; color: var(--brand-dark); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 18px; margin-top: 10px; font-size: 13px; opacity: 0.85; }

@media (max-width: 900px) {
	.topbar .links, .site-search { display: none; }
	.main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 10px; }
	.menu-toggle { display: block; margin-left: auto; }
	.site-header .wrap { height: 64px; gap: 14px; }
	.logo { font-size: 16px; }
	.logo-mark { width: 30px; height: 30px; }
	.header-cart .cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.hero { padding: 48px 0 56px; }
	.usps .wrap { grid-template-columns: 1fr; }
	.mo-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.mo-card .foot { flex-direction: column; align-items: flex-start; }
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
	.site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .mo-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
