/*
Theme Name: Orangex Living
Theme URI: https://orangexgp.top/
Author: Orangex Living
Description: A quiet, tactile storefront for thoughtful home organization.
Version: 1.0.0
Text Domain: orangex-living
*/

:root {
  --ink: #282720;
  --muted: #706b60;
  --sand: #e8ddca;
  --linen: #f6f2ea;
  --paper: #fffdf9;
  --clay: #a46445;
  --sage: #69745e;
  --line: rgba(40, 39, 32, .14);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(52, 42, 27, .10);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, h4 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(48px, 7vw, 88px); letter-spacing: -.04em; }
h2 { font-size: clamp(35px, 4vw, 56px); letter-spacing: -.03em; }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
p { margin: 0 0 16px; }
.button, .wp-block-button__link, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); border-radius: 999px; padding: 13px 23px;
  background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .wp-block-button__link:hover, button:hover, input[type=submit]:hover { color: var(--ink); background: transparent; transform: translateY(-2px); }
.button--light { background: #fff; color: var(--ink); border-color: #fff; }
.button--light:hover { color: #fff; border-color: #fff; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 249, .92); border-bottom: 1px solid transparent; backdrop-filter: blur(12px); }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 24px; letter-spacing: -.04em; }
.brand-mark { width: 31px; height: 31px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.primary-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; }
.primary-nav a:after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--clay); transition: right .2s ease; }
.primary-nav a:hover:after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.language-switcher select { max-width: 145px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.header-actions .cart-contents { display: inline-flex; gap: 7px; align-items: center; }
.cart-count { min-width: 21px; height: 21px; padding: 0 5px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--clay); color: white; font-size: 11px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 5px; }

.hero { min-height: min(720px, calc(100vh - 78px)); display: grid; align-items: center; position: relative; overflow: hidden; background: var(--sand); }
.hero:before { content: ""; position: absolute; inset: 0 46% 0 0; background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 60%); }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; position: relative; z-index: 1; }
.hero-copy { max-width: 540px; }
.hero-copy p { max-width: 440px; color: #5f594f; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-media { position: relative; min-height: 560px; }
.hero-media:before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; top: 4%; right: 3%; background: #f2ecdf; border-radius: 50%; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.hero-note { position: absolute; right: 3%; bottom: 5%; max-width: 180px; padding: 16px; background: rgba(255, 253, 249, .88); border: 1px solid rgba(40,39,32,.14); border-radius: 14px; font-size: 13px; line-height: 1.45; }

.trust-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0; }
.trust-item { display: flex; gap: 11px; align-items: center; color: var(--muted); font-size: 13px; }
.trust-item strong { display: block; color: var(--ink); font-size: 14px; }
.trust-icon { color: var(--clay); font-size: 20px; }

.section { padding: 110px 0; }
.section--linen { background: var(--linen); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 42px; }
.section-heading p { max-width: 420px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.story-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sand); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { max-width: 510px; }
.story-copy ul { list-style: none; padding: 0; margin: 28px 0; }
.story-copy li { padding: 13px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.story-copy li:last-child { border-bottom: 1px solid var(--line); }
.story-copy li span { color: var(--clay); font-family: Georgia, serif; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { position: relative; }
.product-card-image { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--linen); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-card-image img { transform: scale(1.04); }
.product-card-body { padding: 17px 2px; }
.product-card-body h3 { font-family: Georgia, serif; font-size: 22px; margin-bottom: 7px; }
.product-card-body p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.price { font-weight: 700; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--clay); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.quote { padding: 120px 0; background: var(--sage); color: #fff; text-align: center; }
.quote blockquote { max-width: 850px; margin: 0 auto 24px; font-family: Georgia, serif; font-size: clamp(30px, 4.3vw, 56px); line-height: 1.15; letter-spacing: -.03em; }
.quote cite { font-size: 13px; font-style: normal; opacity: .76; letter-spacing: .12em; text-transform: uppercase; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; font: inherit; background: rgba(255,255,255,.72); }

.site-footer { padding: 70px 0 28px; background: #26251f; color: #e9e4da; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 54px; }
.footer-brand { font-family: Georgia, serif; font-size: 29px; }
.footer-col h4 { margin-bottom: 15px; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9b2a4; }
.footer-col a, .footer-col p { display: block; margin-bottom: 8px; color: #e9e4da; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); color: #aaa397; font-size: 12px; }

.woocommerce .site-main, .woocommerce-page .site-main { padding: 80px 0; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.woocommerce ul.products:before, .woocommerce ul.products:after { display: none; }
.woocommerce ul.products li.product { width: auto; float: none; margin: 0; }
.woocommerce ul.products li.product a img { border-radius: var(--radius); background: var(--linen); }
.woocommerce ul.products li.product .price { color: var(--ink); }
.woocommerce span.onsale { background: var(--clay); }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--linen); }
.woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 24px; }
.woocommerce div.product .button { border-radius: 999px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--clay); }
.woocommerce-cart .cart-collaterals .cart_totals { width: 42%; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

.entry-content { max-width: 820px; margin: 0 auto; padding: 90px 0; }
.entry-content > * { margin-left: auto; margin-right: auto; }
.entry-content h1 { font-size: clamp(42px, 6vw, 70px); }
.pagination { display: flex; gap: 8px; margin-top: 50px; }

@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 36px), var(--max)); }
  .primary-nav { gap: 16px; }
  .hero-inner, .split, .newsletter { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding: 70px 0 0; }
  .hero-media { min-height: 420px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 35px; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 18px; right: 18px; top: 67px; padding: 16px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 4px; }
  .header-actions .language-switcher { display: none; }
  h1 { font-size: clamp(45px, 14vw, 67px); }
  .section { padding: 75px 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .trust-grid { gap: 12px; }
  .trust-item { align-items: flex-start; font-size: 12px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .hero-media { min-height: 330px; }
  .hero-note { right: 0; bottom: 3%; max-width: 150px; padding: 11px; font-size: 11px; }
  .newsletter-form { display: block; }
  .newsletter-form input, .newsletter-form button { width: 100%; margin-bottom: 10px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 8px; }
  .woocommerce-cart .cart-collaterals .cart_totals { width: 100%; }
}
