/*
Theme Name: Rochie Couture
Theme URI: https://rochiecouture.fi
Author: Rochie Couture
Description: Bespoke brutalist-luxury WooCommerce theme for Rochie Couture Finland. Cinematic, stark, editorial. Requires the WooCommerce plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rochie-couture
Tags: e-commerce, one-column, custom-logo, custom-menu
*/

/* ============================================================
   1. TOKENS & RESET
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --fg: #f4f1ea;
  --fg-dim: rgba(244, 241, 234, 0.62);
  --copper: #b06a3b;
  --copper-soft: #c98a5a;
  --line: rgba(244, 241, 234, 0.16);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.4s var(--ease), opacity 0.4s var(--ease); }
a:hover { color: var(--copper-soft); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

::selection { background: var(--copper); color: var(--bg); }

/* Utility label style — small uppercase tracking */
.rc-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.rc-container { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }

/* ============================================================
   2. BUTTONS
   ============================================================ */
.rc-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce button.button.alt,
.wc-block-components-button {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 0;
  padding: 16px 44px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.rc-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce button.button.alt:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--bg);
}

.rc-btn--solid { background: var(--fg); color: var(--bg); }

/* ============================================================
   3. HEADER
   ============================================================ */
.rc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease);
  border-bottom: 1px solid transparent;
  background: transparent;
}

.rc-header.is-solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.rc-header__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 64px);
}

/* Hamburger — thin line */
.rc-burger {
  justify-self: start;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 20px;
  position: relative;
  padding: 0;
}
.rc-burger span {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: var(--fg);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), top 0.5s var(--ease);
}
.rc-burger span:nth-child(1) { top: 4px; }
.rc-burger span:nth-child(2) { top: 14px; }
body.menu-open .rc-burger span:nth-child(1) { top: 9px; transform: rotate(45deg); }
body.menu-open .rc-burger span:nth-child(2) { top: 9px; transform: rotate(-45deg); }

/* Logo */
.rc-logo { justify-self: center; text-align: center; }
.rc-logo img { max-height: 56px; width: auto; }
.rc-logo__text {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg);
}
.rc-logo__text em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 19px;
  color: var(--copper-soft);
}
.rc-logo__sub {
  display: block;
  font-size: 8px;
  letter-spacing: 0.5em;
  color: var(--fg-dim);
  margin-top: 3px;
}

/* Cart */
.rc-cart { justify-self: end; position: relative; display: inline-flex; align-items: center; gap: 10px; }
.rc-cart svg { width: 20px; height: 20px; stroke: var(--fg); fill: none; stroke-width: 1; transition: stroke 0.4s var(--ease); }
.rc-cart:hover svg { stroke: var(--copper-soft); }
.rc-cart__count {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--copper-soft);
  min-width: 12px;
}

/* ============================================================
   4. OFF-CANVAS MENU
   ============================================================ */
.rc-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 8vw, 120px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
body.menu-open .rc-menu { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.rc-menu__nav ul { list-style: none; }
.rc-menu__nav li { overflow: hidden; }
.rc-menu__nav a {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.25;
  color: var(--fg);
  transform: translateY(110%);
  transition: transform 0.9s var(--ease), color 0.4s var(--ease);
}
body.menu-open .rc-menu__nav a { transform: translateY(0); }
.rc-menu__nav li:nth-child(2) a { transition-delay: 0.06s; }
.rc-menu__nav li:nth-child(3) a { transition-delay: 0.12s; }
.rc-menu__nav li:nth-child(4) a { transition-delay: 0.18s; }
.rc-menu__nav li:nth-child(5) a { transition-delay: 0.24s; }
.rc-menu__nav li:nth-child(6) a { transition-delay: 0.3s; }
.rc-menu__nav a:hover { color: var(--copper-soft); }

.rc-menu__meta {
  position: absolute;
  bottom: 48px; left: clamp(20px, 8vw, 120px);
}

/* ============================================================
   5. HERO
   ============================================================ */
.rc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.rc-hero__media,
.rc-hero__media img,
.rc-hero__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.rc-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 45%, rgba(10,10,10,0.25) 100%);
}
.rc-hero__content {
  position: relative; z-index: 2;
  padding-bottom: clamp(48px, 8vh, 96px);
}
.rc-hero__kicker { margin-bottom: 20px; color: var(--copper-soft); }
.rc-hero__title {
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 300;
  max-width: 14ch;
}
.rc-hero__actions { margin-top: 36px; display: flex; gap: 20px; flex-wrap: wrap; }
.rc-hero__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 48px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.rc-hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 56px;
  background: var(--fg-dim);
  margin: 14px auto 0;
}

/* ============================================================
   6. SECTIONS & EDITORIAL GRID
   ============================================================ */
.rc-section { padding: clamp(80px, 12vh, 160px) 0; }
.rc-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 80px);
  flex-wrap: wrap;
}
.rc-section__title { font-size: clamp(32px, 4.5vw, 64px); font-weight: 300; }
.rc-section__link {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

/* Asymmetrical editorial grid — front page products */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  row-gap: clamp(56px, 8vh, 120px);
  align-items: start;
}
.rc-grid .rc-card:nth-child(6n+1) { grid-column: 1 / span 7; }
.rc-grid .rc-card:nth-child(6n+2) { grid-column: 9 / span 4; margin-top: clamp(60px, 10vh, 160px); }
.rc-grid .rc-card:nth-child(6n+3) { grid-column: 2 / span 4; }
.rc-grid .rc-card:nth-child(6n+4) { grid-column: 7 / span 6; margin-top: clamp(-40px, -4vh, -20px); }
.rc-grid .rc-card:nth-child(6n+5) { grid-column: 1 / span 5; margin-top: clamp(30px, 5vh, 80px); }
.rc-grid .rc-card:nth-child(6n)   { grid-column: 7 / span 5; }

.rc-card__media { overflow: hidden; background: var(--bg-soft); }
.rc-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s var(--ease);
}
.rc-card:hover .rc-card__media img { transform: scale(1.045); }
.rc-card__body { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rc-card__title { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.rc-card__price { font-size: 12px; letter-spacing: 0.18em; color: var(--fg-dim); white-space: nowrap; }

/* Editorial split section */
.rc-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  align-items: center;
}
.rc-editorial__media { grid-column: 1 / span 7; overflow: hidden; }
.rc-editorial__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rc-editorial__body { grid-column: 9 / span 4; }
.rc-editorial__body h2 { font-size: clamp(30px, 3.5vw, 52px); margin: 18px 0 24px; }
.rc-editorial__body p { color: var(--fg-dim); margin-bottom: 32px; }
.rc-editorial--flip .rc-editorial__media { grid-column: 6 / span 7; order: 2; }
.rc-editorial--flip .rc-editorial__body { grid-column: 1 / span 4; order: 1; }

/* Full-bleed statement band */
.rc-band {
  padding: clamp(100px, 16vh, 200px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.rc-band h2 {
  font-size: clamp(30px, 5vw, 72px);
  font-weight: 300;
  max-width: 22ch;
  margin: 0 auto;
}
.rc-band h2 em { font-style: italic; color: var(--copper-soft); }

/* ============================================================
   7. REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.12s; }
.reveal--d2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rc-menu__nav a { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   8. WOOCOMMERCE — SHOP / ARCHIVE
   ============================================================ */
.rc-page { padding-top: calc(var(--header-h) + clamp(40px, 8vh, 100px)); }

.woocommerce .rc-page-title,
.rc-page-title {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 300;
  margin-bottom: clamp(40px, 6vh, 80px);
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 40px);
  row-gap: clamp(48px, 7vh, 96px);
  margin: 0 0 80px !important;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  text-align: left !important;
}
/* editorial rhythm: every 5th product spans two columns */
.woocommerce ul.products li.product:nth-child(5n+1) { grid-column: span 2; }

.woocommerce ul.products li.product a img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin: 0 0 18px !important;
  transition: transform 1.4s var(--ease);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.04); }
.woocommerce ul.products li.product a { overflow: hidden; display: block; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--serif) !important;
  font-size: 21px !important;
  font-weight: 400;
  color: var(--fg);
  padding: 0 !important;
}
.woocommerce ul.products li.product .price {
  color: var(--fg-dim) !important;
  font-size: 12px !important;
  letter-spacing: 0.18em;
  margin-top: 6px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--copper-soft); }
.woocommerce ul.products li.product .button { margin-top: 16px; padding: 12px 28px; }

.woocommerce span.onsale {
  background: transparent !important;
  color: var(--copper-soft) !important;
  border: 1px solid var(--copper) !important;
  border-radius: 0 !important;
  min-width: 0 !important; min-height: 0 !important;
  line-height: 1 !important;
  padding: 8px 14px !important;
  font-size: 10px !important;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  top: 16px !important; left: 16px !important;
}

/* Result count / ordering */
.woocommerce .woocommerce-result-count { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.woocommerce .woocommerce-ordering select {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* ============================================================
   9. WOOCOMMERCE — SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product { color: var(--fg); }
.woocommerce div.product div.images { margin-bottom: 0; }
.woocommerce div.product div.images img { width: 100%; }
.woocommerce div.product div.summary { padding-top: 8px; }

.woocommerce div.product .product_title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  color: var(--fg);
}
.woocommerce div.product p.price {
  color: var(--fg-dim) !important;
  font-size: 15px !important;
  letter-spacing: 0.2em;
  margin: 18px 0 28px !important;
}
.woocommerce div.product p.price ins { text-decoration: none; color: var(--copper-soft); }

.woocommerce div.product form.cart { margin: 32px 0 !important; }
.woocommerce div.product form.cart div.quantity .qty {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  height: 50px;
  border-radius: 0;
}
.woocommerce div.product form.cart .button { padding: 17px 48px; }

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin-bottom: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: 1px solid var(--line) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 32px 0 0 !important;
  padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--fg-dim) !important;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--copper-soft) !important; }
.woocommerce div.product .woocommerce-tabs .panel { margin-top: 40px; color: var(--fg-dim); }
.woocommerce div.product .woocommerce-tabs .panel h2 { display: none; }

.related.products > h2, .upsells.products > h2 {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300;
  margin: 100px 0 48px;
}

/* Variations */
.woocommerce div.product form.cart .variations select {
  background: var(--bg-soft);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 12px;
}
.woocommerce div.product form.cart .variations label { color: var(--fg-dim); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ============================================================
   10. WOOCOMMERCE — CART / CHECKOUT / ACCOUNT / NOTICES
   ============================================================ */
.woocommerce table.shop_table {
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  border-collapse: collapse !important;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--line) !important;
  color: var(--fg);
  background: transparent !important;
  padding: 18px 16px !important;
}
.woocommerce table.shop_table th { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-dim); font-weight: 400; }
.woocommerce a.remove { color: var(--fg-dim) !important; }
.woocommerce a.remove:hover { background: var(--copper) !important; color: var(--bg) !important; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
  background: var(--bg-soft);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px;
  font-family: var(--sans);
}
.woocommerce form .form-row label { color: var(--fg-dim); font-size: 12px; letter-spacing: 0.08em; }

.woocommerce .cart_totals h2, .woocommerce #order_review_heading, .woocommerce #ship-to-different-address {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: var(--bg-soft) !important;
  color: var(--fg) !important;
  border-top-color: var(--copper) !important;
  border-radius: 0;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--copper-soft) !important; }

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block; padding: 16px 0;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--fg-dim);
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--copper-soft); }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  color: var(--fg-dim) !important;
  background: transparent !important;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 12px 16px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { color: var(--copper-soft) !important; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { color: var(--fg-dim) !important; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 40px !important; }
.woocommerce .woocommerce-breadcrumb a { color: var(--fg-dim); }

/* Star ratings in copper */
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--copper); }

/* ============================================================
   11. STANDARD PAGES & POSTS
   ============================================================ */
.rc-content { max-width: 760px; }
.rc-content p { margin-bottom: 24px; color: var(--fg-dim); }
.rc-content h2, .rc-content h3 { margin: 48px 0 20px; }
.rc-content ul, .rc-content ol { margin: 0 0 24px 20px; color: var(--fg-dim); }

/* ============================================================
   12. FOOTER
   ============================================================ */
.rc-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(80px, 12vh, 160px);
  padding: clamp(60px, 10vh, 120px) 0 40px;
}
.rc-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.rc-footer__brand .rc-logo__text { font-size: 13px; }
.rc-footer__tagline { margin-top: 20px; color: var(--fg-dim); max-width: 34ch; font-family: var(--serif); font-size: 18px; font-style: italic; }
.rc-footer h4 { font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 24px; font-weight: 400; }
.rc-footer ul { list-style: none; }
.rc-footer ul li { margin-bottom: 12px; }
.rc-footer ul a { font-size: 13px; color: var(--fg); }
.rc-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .rc-editorial__media, .rc-editorial--flip .rc-editorial__media { grid-column: 1 / -1; order: 1; }
  .rc-editorial__body, .rc-editorial--flip .rc-editorial__body { grid-column: 1 / -1; order: 2; margin-top: 32px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .rc-grid .rc-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .rc-grid .rc-card:nth-child(even) { grid-column: 2 / -1; }
  .rc-grid .rc-card:nth-child(odd) { grid-column: 1 / span 11; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products li.product:nth-child(5n+1) { grid-column: span 2; }
  .rc-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .rc-logo img { max-height: 44px; }
}

@media (max-width: 560px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .woocommerce ul.products li.product:nth-child(5n+1) { grid-column: span 1; }
  .rc-hero__actions .rc-btn { padding: 14px 28px; }
}
