/* Naughty Headboards — shop styles */

:root {
  --paper: #f6f3ee;
  --ink: #1b1a19;
  --muted: #5d5a56;
  --line: #ddd6cc;
  --red: #d0122d;
  --red-dark: #a80e24;
  --blue: #1d4ed8;
  --blue-dark: #1740b0;
  --black: #111;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--black); color: var(--white); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: .02em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--paper); }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn--block { width: 100%; }

/* Type helpers */
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow--light { color: rgba(255,255,255,.75); }

.section { padding: 80px 0; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__title { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 600; margin-bottom: 14px; }
.section__intro { color: var(--muted); margin: 0; }

/* 1. Announcement */
.announce { background: var(--red); color: var(--white); text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.announce p { margin: 0; padding: 8px 16px; }

/* 2. Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.header__inner {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); margin: 0 auto; padding: 8px 24px;
}
.header__logo img { height: 56px; width: auto; }
.header__nav { display: flex; gap: 24px; margin-left: auto; }
.header__nav a, .header__basket {
  font-size: 15px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,.85);
}
.header__nav a:hover { color: var(--white); }
.header__basket {
  padding: 8px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); color: var(--white);
}
.header__basket:hover { background: var(--white); color: var(--black); }

/* 3. Hero */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background: var(--black); color: var(--white); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.85) 0%, rgba(17,17,17,.55) 50%, rgba(17,17,17,.15) 100%); }
.hero__content { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero__title { max-width: 640px; font-family: var(--serif); font-size: clamp(42px, 6vw, 72px); font-weight: 600; margin-bottom: 20px; }
.hero__title em { font-style: italic; color: #ffd7dc; }
.hero__lead { max-width: 520px; font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 30px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* 4. Shop grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card__media { display: block; padding: 0; border: 0; background: #e9e4dc; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card__media:hover img { transform: scale(1.03); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__name { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.card__spec { color: var(--muted); font-size: 15px; flex: 1; }

/* 5. Spotlight */
.spotlight { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spotlight__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.spotlight__media { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.spotlight__media img { width: 100%; }
.spotlight__content p { color: var(--muted); margin-bottom: 24px; }

/* 6. Included */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); }
.feature__name { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* 7. Sizes and colours */
.sizes { background: var(--black); color: var(--white); }
.sizes__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.sizes p { color: rgba(255,255,255,.8); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 15px; }
.swatches { display: flex; flex-wrap: wrap; gap: 24px; }
.swatches li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); }
.swatch--red { background: var(--red); }
.swatch--black { background: #000; }
.swatch--grey { background: #8a8784; }

/* 8. How to order */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--red); color: var(--white); font-weight: 600;
}
.step__name { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* 9. FAQ */
.faq { padding-top: 0; }
.faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--red); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; padding: 0 0 20px; color: var(--muted); }

/* 10. Closing band */
.band { background: var(--blue); color: var(--white); padding: 56px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band__title { font-family: var(--serif); font-size: clamp(32px, 4vw, 44px); font-weight: 600; margin-bottom: 8px; }
.band p { margin: 0; color: rgba(255,255,255,.88); }

/* 11. Footer */
.footer { background: var(--black); color: rgba(255,255,255,.75); padding-top: 48px; font-size: 15px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand img { height: 64px; width: auto; margin-bottom: 12px; }
.footer__brand p { max-width: 320px; }
.footer__info { text-align: right; }
.footer__info p { margin: 0 0 6px; }
.footer__info a { color: var(--white); }
.footer__adult { color: var(--white); font-weight: 600; }
.footer__base { margin-top: 32px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer__base p { margin: 0; }

/* Lightbox */
.lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox__img { max-width: 100%; max-height: 88vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: -44px; right: 0;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--black); font-size: 26px; line-height: 1; cursor: pointer;
}

/* Tablet */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .header__nav { gap: 16px; }
}

@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__basket { margin-left: auto; }
}

/* Mobile */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .header__inner { padding: 8px 18px; }
  .header__logo img { height: 42px; }
  .hero { min-height: 520px; }
  .hero__shade { background: rgba(17,17,17,.68); }
  .hero__content { padding-top: 56px; padding-bottom: 56px; }
  .hero__buttons { flex-direction: column; }
  .btn { width: 100%; }
  .grid, .features, .steps, .spotlight__inner, .sizes__inner, .faq__inner { grid-template-columns: 1fr; }
  .spotlight__inner, .sizes__inner, .faq__inner { gap: 32px; }
  .band__inner { flex-direction: column; align-items: stretch; }
  .footer__inner { flex-direction: column; }
  .footer__info { text-align: left; }
  .footer__brand img { height: 42px; }
}

/* ---------- WooCommerce pages (theme templates) ---------- */

body.woocommerce,
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.single-product {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.woocommerce h1, body.woocommerce h2, body.woocommerce h3,
body.woocommerce-cart h1, body.woocommerce-cart h2, body.woocommerce-cart h3,
body.woocommerce-checkout h1, body.woocommerce-checkout h2, body.woocommerce-checkout h3,
body.single-product h1, body.single-product h2, body.single-product h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}

body.woocommerce .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.single-product .woocommerce,
body.single-product div.product {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.woocommerce-breadcrumb { display: none; }

.woocommerce a:not(.button) { color: var(--red); }
.woocommerce a:not(.button):hover { color: var(--red-dark); }

.woocommerce button,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .single_add_to_cart_button,
.woocommerce #place_order,
.woocommerce a.checkout-button,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  display: inline-block;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--red);
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.woocommerce button:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce #place_order:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--red-dark);
  color: var(--white);
}

.woocommerce button:disabled,
.woocommerce .button.disabled,
.woocommerce button.button:disabled[disabled] {
  background: var(--red);
  opacity: .5;
}

.woocommerce #place_order { width: 100%; }

.woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: var(--radius);
  background: var(--white);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
}
.woocommerce table.shop_table th { font-weight: 600; }
.woocommerce table.shop_table img { width: 72px; height: auto; border-radius: 4px; }

.woocommerce .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce form.checkout_coupon,
.woocommerce form.login {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); }

.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="password"],
.woocommerce select,
.woocommerce textarea,
.woocommerce .input-text {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}
.woocommerce .quantity .qty { width: 80px; }
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

.woocommerce-checkout #payment {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.woocommerce-checkout #payment div.payment_box { background: var(--white); color: var(--ink); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--white); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: var(--white);
  border-top: 3px solid var(--blue);
  color: var(--ink);
}
.woocommerce-error { border-top-color: var(--red); }

.single-product div.product .product_title { font-size: clamp(32px, 4vw, 46px); }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.single-product div.product form.cart { margin-top: 20px; }
.nh-fields { display: grid; gap: 12px; margin: 18px 0; max-width: 420px; }
.nh-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.nh-fields select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; }
.nh-paynote { color: var(--muted); max-width: 36rem; }
.single-product div.product table.variations td,
.single-product div.product table.variations th { padding: 8px 0; border: 0; background: none; }

@media (max-width: 700px) {
  .woocommerce button,
  .woocommerce .button,
  .woocommerce a.button,
  .woocommerce .single_add_to_cart_button,
  .woocommerce #place_order { width: 100%; }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td { padding: 12px; }
  .woocommerce .cart_totals,
  .woocommerce-checkout #order_review { padding: 16px; }
}
