/* Lunkevik Spa, en oppdiktet demobutikk. Klassenavnene er WooCommerce sine. */
:root {
  --hav: #0f4c5c;
  --hav-mork: #0a3540;
  --sand: #f2c38f;
  --skum: #e8f3f5;
  --papir: #fbfaf7;
  --tekst: #1d2a30;
  --dempet: #5b6b72;
  --linje: #dfe5e7;
  --ok: #2f7d4f;
  --vent: #9a6a10;
  --nei: #a23a2f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papir); color: var(--tekst); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--hav); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.demo-merke { margin: 0; padding: 8px 16px; background: var(--sand); color: #3b2a14; font-size: 14px; text-align: center; }
.demo-merke a { color: inherit; font-weight: 600; }

.site-header { background: var(--hav); color: #fff; }
.topp { max-width: 1180px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo-merke { width: 30px; height: 30px; border-radius: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23165f72'/%3E%3Cpath d='M7 19c3-3 6 3 9 0s6 3 9 0' stroke='%23f2c38f' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='11' r='2' fill='%23bfe3ea'/%3E%3Ccircle cx='19' cy='9' r='1.5' fill='%23bfe3ea'/%3E%3C/svg%3E") center / cover; }
.kurv-lenke { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.kurv-lenke .count { display: inline-block; min-width: 24px; padding: 0 7px; margin-left: 4px; border-radius: 12px; background: var(--sand); color: #3b2a14; text-align: center; font-size: 14px; }
.main-navigation { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.main-navigation .menu { max-width: 1180px; margin: 0 auto; padding: 0 8px; list-style: none; display: flex; flex-wrap: wrap; }
.main-navigation a { display: block; padding: 11px 10px; color: #d9edf1; text-decoration: none; font-size: 15px; }
.main-navigation .current-menu-item a, .main-navigation a:hover { color: #fff; box-shadow: inset 0 -3px 0 var(--sand); }

.site-main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 56px; }
.helt { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--skum), #fff); border-radius: 20px; padding: 28px; }
.helt h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 12px; color: var(--hav-mork); }
.helt p { font-size: 19px; color: var(--dempet); }
.helt img { border-radius: 16px; }
.fordeler { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fordeler li { background: #fff; border: 1px solid var(--linje); border-radius: 12px; padding: 14px 16px; color: var(--dempet); }
.fordeler strong { color: var(--tekst); }
section > h2 { margin-top: 36px; }

.button { display: inline-block; padding: 12px 20px; border: 0; border-radius: 999px; background: var(--hav); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--hav-mork); }
.button.alt { background: #c76b2a; }
.button.alt:hover { background: #a9561c; }

ul.products { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products li.product { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linje); border-radius: 16px; padding: 12px 12px 16px; }
ul.products li.product > a:first-child { color: inherit; text-decoration: none; flex: 1; }
ul.products img { border-radius: 10px; background: #f3f5f6; aspect-ratio: 1; object-fit: cover; width: 100%; }
.woocommerce-loop-product__title, .woocommerce-loop-category__title { font-size: 17px; margin: 12px 0 6px; }
.woocommerce-loop-category__title .count { background: none; color: var(--dempet); font-weight: 400; }
ul.products .price { display: block; font-weight: 700; margin-bottom: 12px; }
ul.products .button { align-self: flex-start; padding: 9px 16px; font-size: 15px; }
del { color: var(--dempet); font-weight: 400; }
ins { text-decoration: none; }
.onsale { position: absolute; z-index: 1; top: 18px; left: 18px; background: #c76b2a; color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }

.woocommerce-breadcrumb { font-size: 14px; color: var(--dempet); margin-bottom: 16px; }
.single-product .product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery img { border-radius: 18px; background: #f3f5f6; }
.product_title { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 8px; }
.summary .price { font-size: 26px; font-weight: 700; margin: 0 0 12px; }
.stock { font-weight: 600; }
.stock.in-stock { color: var(--ok); }
.stock.available-on-backorder { color: var(--vent); }
.stock.out-of-stock { color: var(--nei); }
form.cart { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
form.cart input { width: 72px; padding: 10px; border: 1px solid var(--linje); border-radius: 10px; font: inherit; }
.product_meta { font-size: 14px; color: var(--dempet); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.woocommerce-tabs, .cross-sells { grid-column: 1 / -1; }
.wc-tab { background: #fff; border: 1px solid var(--linje); border-radius: 16px; padding: 4px 24px 16px; margin-top: 16px; }
.shop_attributes { width: 100%; border-collapse: collapse; }
.shop_attributes th, .shop_attributes td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linje); vertical-align: top; }
.shop_attributes th { width: 34%; color: var(--dempet); font-weight: 600; }
.shop_attributes p { margin: 0; }

.entry-content { max-width: 720px; }
.woocommerce-products-header .term-description { color: var(--dempet); }
.woocommerce-result-count { color: var(--dempet); font-size: 15px; }
.woocommerce-info, .woocommerce-message { padding: 14px 18px; border-radius: 12px; background: var(--skum); border-left: 4px solid var(--hav); }
.woocommerce-message { margin-bottom: 16px; }
.shop_table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.shop_table th, .shop_table td { padding: 12px; border-bottom: 1px solid var(--linje); text-align: left; }
.shop_table input { width: 64px; padding: 8px; border: 1px solid var(--linje); border-radius: 8px; font: inherit; }
.remove { background: none; border: 0; color: var(--nei); cursor: pointer; font: inherit; text-decoration: underline; }
.cart_totals { margin-top: 16px; text-align: right; }

.site-footer { background: var(--hav-mork); color: #cfe3e8; }
.fot-kolonner { max-width: 1180px; margin: 0 auto; padding: 32px 16px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h2 { color: #fff; font-size: 17px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #fff; }
.demo-fot { max-width: 1180px; margin: 0 auto; padding: 8px 16px 28px; font-size: 14px; color: #a9c6cd; }

@media (max-width: 900px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .helt, .single-product .product { grid-template-columns: 1fr; }
  .helt { padding: 20px; }
  .fordeler, .fot-kolonner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .main-navigation .menu { flex-wrap: nowrap; overflow-x: auto; }
  .main-navigation a { white-space: nowrap; }
  .shop_table th:nth-child(2), .shop_table td:nth-child(2) { display: none; }
}
