/*
Theme Name: Nightline Hyrshop v7
Theme URI: https://shop.nightline.se/
Author: Codex
Description: A focused WooCommerce rental shop theme for a Rentman-driven catalog. Customers choose rental dates first, add equipment, and checkout through WooCommerce.
Version: 0.7.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: nightline-hyrshop
*/

:root {
  --nl-ink: #121826;
  --nl-muted: #647084;
  --nl-line: #d9e0ea;
  --nl-paper: #ffffff;
  --nl-surface: #f4f7fb;
  --nl-accent: #0f766e;
  --nl-accent-strong: #115e59;
  --nl-alert: #f59e0b;
  --nl-radius: 8px;
  --nl-wrap: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nl-ink);
  background: var(--nl-surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.nl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--nl-line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.nl-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--nl-wrap);
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 36px);
}

.nl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nl-brand-logo {
  display: block;
  width: min(220px, 42vw);
  height: auto;
}

.nl-brand-text {
  display: none;
}

.custom-logo {
  display: block;
  max-width: min(220px, 42vw);
  height: auto;
}

.nl-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--nl-radius);
  color: #fff;
  background: var(--nl-ink);
  font-weight: 800;
}

.nl-brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.nl-brand-text span {
  display: block;
  color: var(--nl-muted);
  font-size: 13px;
}

.nl-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nl-nav a,
.nl-cart-link,
.button,
button,
input[type="submit"] {
  border-radius: var(--nl-radius);
}

.nl-nav a {
  padding: 9px 10px;
  color: var(--nl-muted);
  text-decoration: none;
  font-weight: 700;
}

.nl-nav a:hover {
  color: var(--nl-ink);
}

.nl-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: #fff;
  background: var(--nl-accent);
  text-decoration: none;
  font-weight: 800;
}

.nl-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background: #fff;
  color: var(--nl-ink) !important;
  text-decoration: none;
  font-weight: 800;
}

.nl-cart-link b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--nl-ink);
  background: #fff;
}

.nl-page {
  max-width: var(--nl-wrap);
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 36px) 54px;
}

.nl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(245, 158, 11, 0.10)),
    var(--nl-paper);
}

.nl-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.nl-choice {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nl-choice:hover {
  transform: translateY(-2px);
  border-color: var(--nl-accent);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.10);
}

.nl-choice h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.nl-choice p {
  max-width: 520px;
  margin: 0;
  color: var(--nl-muted);
  font-size: 18px;
}

.nl-choice span {
  align-self: end;
  font-weight: 800;
}

.nl-choice-rent {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.70)),
    #fff;
}

.nl-choice-sale {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.72)),
    #fff;
}

.nl-hero h1 {
  max-width: 820px;
  margin: 0 0 10px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.nl-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--nl-muted);
  font-size: 18px;
}

.nl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nl-step {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background: #fff;
}

.nl-step b {
  display: block;
  margin-bottom: 4px;
}

.nl-step span {
  color: var(--nl-muted);
  font-size: 14px;
}

.nl-content {
  min-height: 52vh;
}

.nl-footer {
  border-top: 1px solid var(--nl-line);
  background: #fff;
}

.nl-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--nl-wrap);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 36px);
  color: var(--nl-muted);
  font-size: 14px;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-products-header,
.woocommerce nav.woocommerce-pagination {
  display: none !important;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 0;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 14px;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background: #fff;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--nl-radius);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  padding: 20px;
  border: 1px solid var(--nl-line);
  border-radius: var(--nl-radius);
  background: #fff;
}

.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce .woocommerce-order {
  border-radius: var(--nl-radius);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button {
  border: 0;
  color: #fff;
  background: var(--nl-accent) !important;
  font-weight: 800;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .checkout-button:hover {
  background: var(--nl-accent-strong) !important;
}

.rwr-app {
  margin-top: 0;
}

.rwr-dates {
  border-color: var(--nl-line);
  box-shadow: 0 16px 40px rgba(18, 24, 38, 0.06);
}

.rwr-dates h1 {
  font-size: clamp(28px, 4vw, 44px) !important;
}

.rwr-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.rwr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 24, 38, 0.10);
}

@media (max-width: 860px) {
  .nl-header-inner,
  .nl-footer-inner,
  .nl-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nl-hero {
    grid-template-columns: 1fr;
  }

  .nl-choice-grid {
    grid-template-columns: 1fr;
  }

  .nl-steps {
    grid-template-columns: 1fr;
  }
}
