/*
Theme Name: Frisörriket Editorial
Theme URI: https://example.com/frisorriket
Author: Exodes
Description: An image-led, responsive haircare and salon theme with oversized campaign tiles and circular category navigation.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: frisorriket
*/

:root {
  --fr-black: #050505;
  --fr-white: #fff;
  --fr-ink: #0b0b0b;
  --fr-lilac: #e7e1fb;
  --fr-soft: #f2efed;
  --fr-gap: 14px;
  --fr-gutter: clamp(16px, 1.9vw, 30px);
  --fr-max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fr-ink);
  background: var(--fr-white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px; clip: auto; background: #fff; color: #000;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 74px;
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(280px, 1fr) minmax(250px, .75fr);
  align-items: center;
  color: #fff;
  background: var(--fr-black);
}
.header-left, .header-actions { display: flex; align-items: center; height: 100%; }
.header-left { gap: 22px; }
.header-actions { justify-content: flex-end; }
.icon-button, .header-action {
  display: grid; place-items: center; width: 58px; height: 100%;
  padding: 0; color: #fff; background: transparent; border: 0; text-decoration: none;
}
.icon-button { background: #28292e; cursor: pointer; }
.icon-button svg, .header-action svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.site-logo {
  display: inline-flex; align-items: center; gap: 11px; height: 52px;
  color: #fff; text-decoration: none; font-size: clamp(21px, 2vw, 30px);
  font-weight: 900; letter-spacing: -.045em;
}
.site-logo img { width: 45px; height: 45px; object-fit: contain; }
.header-search { position: relative; width: min(100%, 460px); justify-self: center; }
.header-search label { display: block; }
.header-search input {
  width: 100%; height: 46px; padding: 0 50px 0 18px;
  color: #fff; background: #181818; border: 1px solid #242424; border-radius: 0;
}
.header-search input::placeholder { color: #aaa; }
.header-search button {
  position: absolute; top: 0; right: 0; width: 48px; height: 46px;
  display: grid; place-items: center; color: #fff; background: none; border: 0; cursor: pointer;
}
.header-search svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.promo-bar {
  min-height: 64px; display: flex; align-items: center; justify-content: center;
  padding: 12px 80px; text-align: center; background: var(--fr-lilac);
  font-size: clamp(15px, 1.45vw, 20px); font-weight: 600; letter-spacing: -.02em;
}

.drawer {
  position: fixed; z-index: 120; inset: 0 auto 0 0; width: min(390px, 90vw);
  padding: 28px; color: #fff; background: #0b0b0b;
  transform: translateX(-102%); transition: transform .28s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-close {
  float: right; width: 44px; height: 44px; color: #fff; background: none;
  border: 1px solid #555; cursor: pointer; font-size: 26px;
}
.drawer-logo { width: 210px; margin: 60px 0 45px; }
.drawer nav ul { margin: 0; padding: 0; list-style: none; }
.drawer nav a {
  display: block; padding: 16px 0; border-bottom: 1px solid #333;
  text-decoration: none; font-size: 23px; font-weight: 700;
}
.drawer-backdrop {
  position: fixed; z-index: 110; inset: 0; background: rgb(0 0 0 / .45);
  opacity: 0; visibility: hidden; transition: .25s ease;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.home-shell { width: min(100%, var(--fr-max)); margin: 0 auto; padding: var(--fr-gutter); }
.campaign-grid { display: grid; grid-template-columns: 1.78fr 1fr; gap: var(--fr-gap); }
.campaign-card {
  position: relative; min-height: clamp(520px, 54vw, 820px); overflow: hidden;
  color: #fff; background: #ccc; text-decoration: none;
}
.campaign-card--small { color: #0b0b0b; }
.campaign-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.campaign-card:hover img, .editorial-card:hover img { transform: scale(1.025); }
.campaign-copy {
  position: absolute; right: 0; bottom: 0; left: 0; padding: clamp(26px, 3vw, 48px);
  background: linear-gradient(to top, rgb(0 0 0 / .62), transparent);
}
.campaign-card--small .campaign-copy {
  background: linear-gradient(to top, rgb(244 234 219 / .96) 0%, rgb(244 234 219 / .85) 45%, transparent 100%);
}
.campaign-copy h1, .campaign-copy h2 {
  max-width: 680px; margin: 0 0 8px; font-size: clamp(46px, 5.3vw, 82px);
  line-height: .96; letter-spacing: -.065em;
}
.campaign-card--small h2 { font-size: clamp(40px, 4.25vw, 66px); }
.campaign-copy p { max-width: 650px; margin: 0; font-size: clamp(17px, 1.6vw, 24px); font-weight: 600; }

.category-section { padding: clamp(58px, 6vw, 92px) 8px clamp(58px, 7vw, 105px); }
.section-title { margin: 0 0 28px; font-size: clamp(29px, 2.7vw, 42px); letter-spacing: -.045em; }
.category-list {
  display: grid; grid-template-columns: repeat(8, minmax(95px, 1fr)); gap: clamp(14px, 1.8vw, 28px);
}
.category { min-width: 0; text-align: center; text-decoration: none; font-weight: 700; }
.category-media { aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: #eee; }
.category img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category:hover img { transform: scale(1.06); }
.category span { display: block; margin-top: 14px; font-size: clamp(14px, 1.25vw, 18px); }

.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--fr-gap); }
.editorial-card { overflow: hidden; background: var(--fr-soft); color: #090909; text-decoration: none; }
.editorial-media { aspect-ratio: 4 / 3; overflow: hidden; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.editorial-copy { min-height: 170px; padding: clamp(24px, 3vw, 42px); background: #f1edeb; }
.editorial-copy h2 { margin: 0 0 8px; font-size: clamp(34px, 3.5vw, 55px); line-height: 1; letter-spacing: -.055em; }
.editorial-copy p { margin: 0; font-size: clamp(16px, 1.45vw, 21px); }

.content-wrap { width: min(100% - 36px, 1120px); margin: 60px auto; line-height: 1.65; }
.shop-shell {
  width: min(100% - (var(--fr-gutter) * 2), var(--fr-max));
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 80px) 0;
}
.woocommerce .woocommerce-breadcrumb { margin-bottom: 34px; color: #6a6a6a; }
.woocommerce .woocommerce-products-header__title,
.woocommerce div.product .product_title {
  font-size: clamp(36px, 4vw, 62px); line-height: 1; letter-spacing: -.055em;
}
.woocommerce ul.products {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 46px) clamp(14px, 2vw, 30px);
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product {
  float: none !important; width: auto !important; margin: 0 !important;
}
.woocommerce ul.products li.product a img {
  aspect-ratio: 1; width: 100%; margin: 0 0 18px; object-fit: contain;
  background: #f5f3f2; transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.02); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 0; font-size: 17px; line-height: 1.25; color: #111;
}
.woocommerce ul.products li.product .price {
  color: #111; font-size: 17px; font-weight: 800;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  padding: 13px 18px; color: #fff; background: #090909; border-radius: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { color: #fff; background: #333; }
.woocommerce span.onsale {
  min-width: 58px; min-height: 58px; display: grid; place-items: center;
  color: #fff; background: #df5a4c; border-radius: 50%;
}
.woocommerce div.product div.images img { background: #f5f3f2; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: #111; font-size: 25px; font-weight: 800; }
.woocommerce-message, .woocommerce-info {
  border-top-color: #111; background: #f2efed;
}
.woocommerce-message::before, .woocommerce-info::before { color: #111; }
.site-footer {
  margin-top: var(--fr-gutter); padding: 60px var(--fr-gutter); color: #fff; background: #080808;
}
.footer-inner {
  width: min(100%, var(--fr-max)); margin: auto; display: grid;
  grid-template-columns: 1.2fr 1fr 1fr; gap: 48px;
}
.footer-logo { width: 210px; margin-bottom: 20px; }
.site-footer h2 { margin: 0 0 18px; font-size: 18px; }
.site-footer p, .site-footer a { color: #d2d2d2; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 10px 0; }
.site-footer a { text-decoration: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 66px; }
  .header-search { display: none; }
  .header-actions .header-action:first-child { display: none; }
  .site-logo img { width: 42px; height: 42px; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-card { min-height: min(124vw, 720px); }
  .campaign-card--small { min-height: min(115vw, 660px); }
  .category-list {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: calc(var(--fr-gutter) * -1); padding: 0 var(--fr-gutter) 14px 0;
  }
  .category { flex: 0 0 126px; scroll-snap-align: start; }
  .editorial-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .header-left { gap: 13px; }
  .icon-button, .header-action { width: 48px; }
  .site-logo { font-size: 19px; }
  .site-logo img { width: 39px; height: 39px; }
  .header-actions .header-action:nth-child(2) { display: none; }
  .promo-bar { min-height: 52px; padding: 10px 16px; }
  .home-shell { padding: 10px; }
  .campaign-grid, .editorial-grid { gap: 10px; }
  .campaign-copy { padding: 24px; }
  .campaign-copy h1, .campaign-copy h2 { font-size: 44px; }
  .campaign-copy p { font-size: 16px; }
  .category-section { padding: 50px 4px 58px; }
  .category { flex-basis: 112px; }
  .site-footer { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
