/* =============================================================
 * NAONYX THEME — assets/css/main.css
 * Elegant redesign, v11.0 (Muhammad Madni)
 *
 * A single, coherent stylesheet — the old version-by-version
 * patch history has been retired in favour of one clear system.
 * Table of contents (search these headings):
 *   1. TOKENS            — colors, type, spacing variables
 *   2. RESET & BASE       — element defaults, containers, links
 *   3. TYPOGRAPHY          — heading scale, labels, buttons
 *   4. ACCESSIBILITY        — skip link, focus, motion, tap targets
 *   5. HEADER & NAV
 *   6. HOMEPAGE            — hero, proof strip, brand strip,
 *                            featured catalogue, values, about,
 *                            custom/OEM, contact
 *   7. FOOTER
 *   8. COMPANY PAGES        — page.php's shared section components
 *   9. CATALOGUE ARCHIVE    — grid, filters, search, pagination
 *  10. SINGLE PRODUCT PAGE  — gallery, specs, inquiry box, related,
 *                            reviews
 * ============================================================= */


/* -------------------------------------------------------------
 * 1. TOKENS
 * The whole palette is five colors, drawn from the material
 * itself: onyx's near-black body, its warm backlit amber glow,
 * and the pale alabaster stone it's often paired with.
 * ------------------------------------------------------------- */
:root{
  --ink:      #10233F;   /* deep navy sampled from the NAONYX logo: headings, dark sections */
  --paper:    #FBFAF8;   /* near-white: card & content surfaces                 */
  --stone:    #EEEDE8;   /* soft neutral: alternating section backgrounds       */
  --amber:    #D9540A;   /* logo orange accent: links, buttons, active states   */
  --amber-deep: #AD4308; /* pressed/hover state for the accent                  */
  --line:     #DAD6CC;   /* hairline borders & dividers                         */
  --muted:    #5B6472;   /* secondary body text (slate-navy)                    */
  --white:    #ffffff;
  --container: 1280px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 3px;
  --radius-md: 5px;
  --shadow-soft: 0 12px 32px -20px rgba(30,26,22,.35);
}

/* -------------------------------------------------------------
 * 2. RESET & BASE
 * ------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font-body);font-size:16px;line-height:1.65;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;background:none;border:0;color:inherit}
input,select,textarea{font:inherit;color:inherit}
ul{margin:0;padding:0;list-style:none}
.container{max-width:var(--container);margin-inline:auto;padding-inline:24px}
@media(min-width:960px){.container{padding-inline:40px}}

/* -------------------------------------------------------------
 * 3. TYPOGRAPHY
 * A deliberate scale: Playfair Display carries every heading at
 * a generous size; DM Sans carries everything functional (nav,
 * labels, body copy, buttons, forms).
 * ------------------------------------------------------------- */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;line-height:1.15;margin:0 0 .5em;color:var(--ink)}
h1{font-size:clamp(2.15rem,4.4vw,3.4rem);letter-spacing:-.01em}
h2{font-size:clamp(1.7rem,3.4vw,2.5rem);letter-spacing:-.01em}
h3{font-size:1.28rem}
h4{font-size:1.05rem;font-family:var(--font-body);font-weight:700;text-transform:lowercase}
h4::first-letter{text-transform:uppercase}
p{margin:0 0 1em;max-width:62ch;color:var(--muted)}
em{font-style:italic;color:inherit}
small{color:var(--muted)}

/* Small section eyebrow labels used throughout the site.
   Source copy is written in ALL CAPS in a few places for legacy
   reasons; this rule quietly turns any of it into calm sentence
   case instead of shouting, without editing every string by hand. */
.orange-label,.filter-head,.nx-filter-title,.nx-product-image-note span,.nx-no-payment span,
.footer h4,.contact-card small,.nx-catalogue-hero-note span{
  font-family:var(--font-body);font-weight:700;font-size:.78rem;color:var(--amber);
  text-transform:lowercase;margin-bottom:.6em;display:inline-block
}
.orange-label::first-letter,.filter-head::first-letter,.nx-filter-title::first-letter,
.nx-product-image-note span::first-letter,.nx-no-payment span::first-letter,
.footer h4::first-letter,.contact-card small::first-letter,.nx-catalogue-hero-note span::first-letter{
  text-transform:uppercase
}
.orange-label{position:relative;padding-left:20px}
.orange-label::before{content:"";position:absolute;left:0;top:.55em;width:14px;height:1px;background:var(--amber)}

.divider{color:var(--line);font-size:.9rem;margin:.6em 0 1.2em;text-align:center}

/* Buttons: one ink-bordered ghost style, one amber-filled primary.
   A single, calm hover (color swap) — no combined shadow+scale. */
.btn,button[type="submit"],input[type="submit"]{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 26px;border:1.5px solid var(--ink);border-radius:var(--radius-sm);
  font-weight:600;font-size:.95rem;color:var(--ink);background:transparent;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.btn:hover,button[type="submit"]:hover,input[type="submit"]:hover{background:var(--ink);color:var(--paper)}
.btn.orange,button[type="submit"],input[type="submit"],.nxinq-btn{
  background:var(--amber);border-color:var(--amber);color:var(--white)
}
.btn.orange:hover,button[type="submit"]:hover,input[type="submit"]:hover{background:var(--amber-deep);border-color:var(--amber-deep);color:var(--white)}
.dark-link{font-weight:700;border-bottom:1.5px solid var(--amber);padding-bottom:2px}
.dark-link:hover{color:var(--amber)}

input[type="text"],input[type="email"],input[type="search"],input[type="number"],input[type="tel"],textarea,select{
  border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:11px 14px;background:var(--paper);width:100%
}

/* -------------------------------------------------------------
 * 4. ACCESSIBILITY & INTERACTION
 * ------------------------------------------------------------- */
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:fixed;top:-60px;left:12px;z-index:9999;background:var(--ink);color:#fff;padding:12px 18px;
  font-size:12px;font-weight:700;border-radius:0 0 4px 4px;transition:top .18s ease}
.skip-link:focus{top:0;width:auto;height:auto;clip:auto;white-space:normal}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:2px solid var(--amber);outline-offset:2px;border-radius:1px
}
.header .primary-nav a:focus-visible,footer a:focus-visible,.nx-dark-section a:focus-visible,.quote:focus-visible{outline-color:#fff}

a,.btn,.quote,.inquiry-link,.filters>a,.nx-active-filters a,.nx-card-add,.nx-card-inquiry,
.nx-pagination a,.footer-legal-links a,footer a,.nx-collection-card,.nx-related-image img,
input,textarea,select,.nx-gallery-thumb,.nx-product-image img{
  transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
a,button{-webkit-tap-highlight-color:transparent}
@media (max-width:760px){
  .btn,.quote,.inquiry-link,.nxinq-btn,.nx-card-add,.nx-qty-control button,button[type="submit"]{min-height:44px}
}
img[loading="lazy"]{animation:nx-fade-in .4s ease both}
@keyframes nx-fade-in{from{opacity:.4}to{opacity:1}}
@media (prefers-reduced-motion: reduce){ img[loading="lazy"]{animation:none} }

/* -------------------------------------------------------------
 * 5. HEADER & NAV
 * ------------------------------------------------------------- */
.topbar{background:var(--ink);color:#C7D0DC;font-size:.82rem}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;padding:9px 24px;flex-wrap:wrap;gap:6px}
@media(min-width:960px){.topbar-inner{padding:9px 40px}}

.header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;gap:28px;padding:16px 24px;flex-wrap:wrap}
@media(min-width:1280px){.header-inner{padding:16px 40px;flex-wrap:nowrap}}
.brand{flex-shrink:0}
.site-logo{height:40px;width:auto}

.primary-nav{display:flex;gap:22px;flex-wrap:wrap;font-weight:600;font-size:.94rem;order:3;flex-basis:100%}
@media(min-width:1280px){.primary-nav{order:0;flex-basis:auto;flex:1;flex-wrap:nowrap}}
.primary-nav a{position:relative;padding:4px 0;color:var(--ink);white-space:nowrap}
.primary-nav a:hover{color:var(--amber)}
.primary-nav a.active{color:var(--amber)}
.primary-nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:2px;background:var(--amber)}

.nx-header-search{display:none;align-items:center;border:1px solid var(--line);border-radius:999px;padding:4px 6px 4px 16px;background:var(--stone)}
@media(min-width:1280px){.nx-header-search{display:flex}}
.nx-header-search input{border:0;background:transparent;padding:6px 0;width:170px}
.nx-header-search button{width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;flex-shrink:0}

.header-actions{display:flex;align-items:center;gap:18px;margin-left:auto}
.inquiry-link{font-weight:700;font-size:.9rem}
.inquiry-link span{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;background:var(--ink);color:#fff;border-radius:999px;font-size:.72rem;margin-left:4px}
.quote{background:var(--amber);color:#fff;padding:11px 20px;border-radius:var(--radius-sm);font-weight:700;font-size:.9rem}
.quote:hover{background:var(--amber-deep)}
@media(max-width:599px){
  .header-inner{gap:14px}
  .header-actions{gap:12px;width:100%;order:4;justify-content:space-between;margin-left:0;padding-top:12px;border-top:1px solid var(--line)}
  .quote{padding:9px 14px;font-size:.82rem}
  .inquiry-link{font-size:.82rem}
}

/* -------------------------------------------------------------
 * 6. HOMEPAGE
 * ------------------------------------------------------------- */

/* --- Hero: the one place the design allows itself a signature
   flourish — a soft, layered onyx-vein texture built from CSS
   gradients alone, echoing the stone the whole business is
   built on, instead of a generic gradient blob. --- */
.nx-home-intro{padding:64px 0 76px;overflow:hidden}
.nx-home-intro-grid{display:grid;gap:44px;align-items:center}
@media(min-width:960px){.nx-home-intro-grid{grid-template-columns:1.1fr 1fr;gap:64px}}
.nx-home-intro-copy h1{margin-bottom:.4em}
.nx-home-intro-copy p{font-size:1.05rem}

.nx-home-intro-visual{position:relative}
.nx-intro-image{
  aspect-ratio:4/5;border-radius:var(--radius-md);background-size:cover;background-position:center;
  position:relative;box-shadow:var(--shadow-soft);background-color:var(--ink);overflow:hidden
}
/* Signature texture: a soft, layered onyx-vein glow, laid over
   whatever photo is set (or the plain --ink fallback) via
   mix-blend-mode, so a real photo underneath always still shows
   through rather than being replaced by the gradient. */
.nx-intro-image::before{
  content:"";position:absolute;inset:0;mix-blend-mode:screen;pointer-events:none;
  background-image:
    radial-gradient(ellipse 60% 45% at 25% 20%, rgba(217,84,10,.4), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 75%, rgba(42,90,160,.5), transparent 65%);
}
.nx-intro-image::after{
  content:"";position:absolute;inset:0;mix-blend-mode:overlay;pointer-events:none;
  background-image:conic-gradient(from 200deg at 50% 50%, rgba(255,255,255,.06), transparent 30%, rgba(255,255,255,.1) 55%, transparent 80%);
}
.nx-quality-card{
  position:absolute;left:-16px;bottom:-16px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:16px 20px;display:flex;align-items:center;gap:10px;font-size:.78rem;font-weight:700;box-shadow:var(--shadow-soft);
  max-width:calc(100% - 32px)
}
.nx-quality-card i{width:4px;height:4px;background:var(--amber);border-radius:50%;flex-shrink:0}

/* --- Proof strip --- */
.nx-proof-strip{background:var(--ink);color:#e7ded0;padding:40px 0}
.nx-proof-grid{display:grid;gap:28px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.nx-proof-grid{grid-template-columns:repeat(4,1fr)}}
.nx-proof-grid>div{display:flex;flex-direction:column;gap:4px}
.nx-proof-icon{font-size:1.4rem;color:var(--amber);margin-bottom:4px}
.nx-proof-grid strong{font-family:var(--font-display);font-size:1.05rem;color:#fff}
.nx-proof-grid small{color:#A6B0C0}

/* --- Brand strip: three parallel differentiators, not a
   sequence — styled as a plain, elegant three-up row instead of
   the generic "01 / 02 / 03" numbered-steps treatment. --- */
.brand-strip{padding:56px 0;background:var(--stone)}
.brand-strip-grid{display:grid;gap:32px}
@media(min-width:760px){.brand-strip-grid{grid-template-columns:repeat(3,1fr)}}
.brand-strip-grid>div{border-left:2px solid var(--amber);padding-left:18px}
.brand-strip-grid strong{display:block;font-family:var(--font-display);font-size:1.15rem;font-weight:600;margin-bottom:6px}
.brand-strip-grid p{margin:0;font-size:.95rem}

/* --- Featured catalogue --- */
.featured{padding:76px 0}
.section-title{text-align:center;max-width:640px;margin:0 auto 48px}
.section-title p{margin:0 auto;text-align:center}
.catalogue{display:grid;gap:40px}
@media(min-width:900px){.catalogue{grid-template-columns:230px 1fr}}
.filters{display:flex;flex-direction:column;gap:2px;align-self:start}
.filters .filter-head{margin-top:18px}
.filters .filter-head:first-child{margin-top:0}
.filters>a{display:flex;justify-content:space-between;padding:9px 12px;border-radius:var(--radius-sm);color:var(--ink);font-size:.92rem}
.filters>a span{color:var(--muted)}
.filters>a:hover,.filters>a.selected{background:var(--stone);color:var(--amber)}
.filters .all-products{margin-top:20px;font-weight:700;color:var(--amber)}
.products{display:grid;gap:28px;grid-template-columns:repeat(2,1fr)}
@media(min-width:640px){.products{grid-template-columns:repeat(3,1fr)}}
.product-img{display:block;aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--stone)}
.product-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-img:hover img{transform:scale(1.04)}
.product-img.placeholder span{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--stone),var(--line))}
.product-body{padding-top:12px}
.product-body small{font-weight:700;color:var(--amber);font-size:.75rem}
.product-body h3{font-size:1.05rem;margin:.25em 0}
.product-body p{margin:0 0 .5em;font-size:.88rem}
.product-body>a{font-weight:700;font-size:.88rem}

/* --- Values --- */
.values{padding:64px 0;background:var(--stone)}
.values-grid{display:grid;gap:32px;grid-template-columns:repeat(2,1fr);text-align:center}
@media(min-width:760px){.values-grid{grid-template-columns:repeat(4,1fr)}}
.values-grid b{display:block;font-size:1.5rem;color:var(--amber);font-weight:400;margin-bottom:8px}
.values-grid strong{display:block;font-family:var(--font-display);margin-bottom:6px}
.values-grid p{margin:0 auto;font-size:.9rem;max-width:22ch}

/* --- About / Custom-OEM / Contact (shared 2-col pattern) --- */
.about,.custom,.contact{padding:76px 0}
.about-grid,.custom-grid,.contact-grid{display:grid;gap:44px;align-items:center}
@media(min-width:900px){.about-grid,.custom-grid,.contact-grid{grid-template-columns:1fr 1fr}}
.custom-image{aspect-ratio:4/3;border-radius:var(--radius-md);background-size:cover;background-position:center;position:relative;box-shadow:var(--shadow-soft)}
.custom-image-badge{position:absolute;left:16px;bottom:16px;background:rgba(30,26,22,.85);color:#fff;font-weight:700;font-size:.72rem;padding:8px 14px;border-radius:999px;text-transform:lowercase}
.custom-image-badge::first-letter{text-transform:uppercase}
.contact-card{background:var(--stone);border-radius:var(--radius-md);padding:32px;border:1px solid var(--line)}
.contact-card p{margin-bottom:.8em}

/* -------------------------------------------------------------
 * 7. FOOTER
 * ------------------------------------------------------------- */
footer{background:var(--ink);color:#B7C0CD;padding-top:60px}
.footer-grid{display:grid;gap:36px;grid-template-columns:repeat(2,1fr);padding-bottom:40px}
@media(min-width:760px){.footer-grid{grid-template-columns:1.5fr repeat(4,1fr)}}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.footer-brand img{height:30px;width:auto}
.footer-logo{font-family:var(--font-display);color:#fff;font-size:1.2rem}
.footer-logo span{color:var(--amber)}
footer h4{color:#fff;margin-bottom:14px;font-size:.85rem}
footer>div .container,footer div>a{display:block}
footer > div:not(.container) > div a{display:block;padding:5px 0;font-size:.9rem;color:#B7C0CD}
footer a:hover{color:var(--amber)}
.copyright{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid rgba(255,255,255,.1);padding:22px 0;font-size:.82rem;color:#8B94A2}
.footer-legal-links a{color:#B7C0CD}
.footer-legal-separator{margin:0 8px;opacity:.5}

/* -------------------------------------------------------------
 * 8. COMPANY PAGES (page.php's shared components)
 * ------------------------------------------------------------- */
.nx-page-hero{padding:56px 0 64px;background:var(--stone)}
.nx-page-hero-grid{display:grid;gap:40px;align-items:center}
@media(min-width:900px){.nx-page-hero-grid{grid-template-columns:1.1fr 1fr}}
.nx-page-hero-image{position:relative;border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-soft);aspect-ratio:4/3}
.nx-page-hero-image img{width:100%;height:100%;object-fit:cover}
.nx-page-image-label{position:absolute;left:14px;bottom:14px;background:rgba(30,26,22,.82);color:#fff;font-size:.7rem;font-weight:700;padding:7px 12px;border-radius:999px}

.nx-content-section{padding:72px 0}
.nx-content-section:nth-of-type(even){background:var(--stone)}
.nx-two-col{display:grid;gap:40px}
@media(min-width:900px){.nx-two-col{grid-template-columns:1fr 1.1fr}}
.nx-lead{font-size:1.1rem;color:var(--ink);max-width:70ch;margin-bottom:32px}

.nx-page-feature{padding:0}
.nx-feature-image{aspect-ratio:21/9;background-size:cover;background-position:center;position:relative;display:flex;align-items:flex-end;padding:24px}
.nx-feature-image span{background:rgba(30,26,22,.82);color:#fff;font-weight:700;font-size:.75rem;padding:9px 16px;border-radius:999px;text-transform:lowercase}
.nx-feature-image span::first-letter{text-transform:uppercase}

.nx-dark-section{padding:72px 0;background:var(--ink);color:#C7D0DC}
.nx-dark-section h2{color:#fff}
.nx-dark-section .orange-label{color:var(--amber)}
.nx-value-cards{display:grid;gap:28px;grid-template-columns:repeat(2,1fr);margin-top:32px}
@media(min-width:760px){.nx-value-cards{grid-template-columns:repeat(4,1fr)}}
.nx-value-cards span{display:block;font-family:var(--font-display);color:var(--amber);font-size:1.3rem;margin-bottom:8px}
.nx-value-cards h3{color:#fff;font-size:1.05rem}
.nx-value-cards p{color:#A6B0C0;font-size:.88rem;margin:0}

.nx-mission-grid{display:grid;gap:40px}
@media(min-width:760px){.nx-mission-grid{grid-template-columns:1fr 1fr}}

.nx-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;margin-bottom:32px}
.nx-section-heading h2{margin-bottom:0}

.nx-collection-cards{display:grid;gap:28px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.nx-collection-cards{grid-template-columns:repeat(3,1fr)}}
.nx-collection-card-image{position:relative;aspect-ratio:4/5;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--line)}
.nx-collection-card-image img,.collection-fallback{width:100%;height:100%;object-fit:cover;background-size:cover;background-position:center}
.nx-collection-card-image b{position:absolute;top:12px;left:12px;font-family:var(--font-display);font-weight:600;color:#fff;background:rgba(30,26,22,.7);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:.85rem}
.nx-collection-card-copy{padding-top:14px}
.nx-collection-card-copy h3{margin-bottom:4px}
.nx-collection-card-copy span{font-weight:700;font-size:.88rem;color:var(--amber)}
.nx-collection-card:hover .nx-collection-card-image img{transform:scale(1.04)}

.nx-empty-catalogue{text-align:center;max-width:520px;margin:40px auto;padding:40px 24px}

.nx-process{padding:72px 0}
.nx-process-grid{display:grid;gap:28px;grid-template-columns:repeat(2,1fr);margin-top:32px}
@media(min-width:760px){.nx-process-grid{grid-template-columns:repeat(4,1fr)}}
.nx-process-grid b{display:block;font-family:var(--font-display);font-weight:600;color:var(--amber);font-size:1.4rem;margin-bottom:10px}
.nx-process-grid h3{font-size:1.02rem}
.nx-process-grid p{font-size:.88rem;margin:0}

.nx-contact-card{background:var(--stone);border:1px solid var(--line);border-radius:var(--radius-md);padding:32px}
.nx-contact-card h3{margin-bottom:14px}
.nx-contact-card p{margin-bottom:14px}
.nx-contact-feature{margin-top:0}

/* -------------------------------------------------------------
 * 9. CATALOGUE ARCHIVE / SEARCH / TAXONOMY
 * ------------------------------------------------------------- */
.nx-catalogue-hero{padding:52px 0 44px;background:var(--stone)}
.nx-catalogue-hero-grid{display:grid;gap:32px;align-items:end}
@media(min-width:900px){.nx-catalogue-hero-grid{grid-template-columns:1fr 220px}}
.nx-catalogue-hero-note{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius-md);padding:20px;text-align:center}
.nx-catalogue-hero-note strong{display:block;font-family:var(--font-display);font-size:2rem;color:var(--ink)}

.nx-catalogue-body{padding:44px 0 76px}
.nx-catalogue-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.nx-catalogue-toolbar-left{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.nx-result-count{font-weight:700}
.nx-clear-filters{color:var(--amber);font-weight:700;font-size:.88rem}
.nx-catalogue-search{display:flex;border:1.5px solid var(--line);border-radius:999px;overflow:hidden;max-width:320px}
.nx-catalogue-search input{border:0;flex:1;padding:10px 16px}
.nx-catalogue-search button{background:var(--ink);color:#fff;padding:0 18px}

.nx-active-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.nx-active-filters a{background:var(--stone);border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:.85rem}

.nx-catalogue-layout{display:grid;gap:40px}
@media(min-width:900px){.nx-catalogue-layout{grid-template-columns:250px 1fr}}
.nx-filter-panel{align-self:start}
.nx-filter-panel label{display:block;font-weight:700;font-size:.85rem;margin:16px 0 6px}
.nx-filter-panel label:first-of-type{margin-top:0}
.nx-filter-divider{height:1px;background:var(--line);margin:24px 0}
.nx-filter-note{background:var(--stone);border-radius:var(--radius-md);padding:22px}
.nx-filter-note strong{display:block;margin-bottom:6px;font-family:var(--font-display)}
.nx-filter-note a{font-weight:700;color:var(--amber);display:inline-block;margin-top:8px}

.nx-product-grid{display:grid;gap:28px;grid-template-columns:repeat(2,1fr)}
@media(min-width:640px){.nx-product-grid{grid-template-columns:repeat(3,1fr)}}
.nx-product-card{border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;background:var(--paper)}
.nx-product-image{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--stone)}
.nx-product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.nx-product-card:hover .nx-product-image img{transform:scale(1.05)}
.nx-product-placeholder{width:100%;height:100%;background:linear-gradient(135deg,var(--stone),var(--line))}
.nx-card-view{position:absolute;right:10px;bottom:10px;background:rgba(30,26,22,.85);color:#fff;font-size:.72rem;font-weight:700;padding:6px 12px;border-radius:999px;opacity:0;transform:translateY(4px)}
.nx-product-card:hover .nx-card-view{opacity:1;transform:none}
.nx-product-info{padding:16px}
.nx-product-meta{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted);font-weight:600;margin-bottom:6px}
.nx-product-info h2{font-size:1.05rem;margin-bottom:6px}
.nx-product-excerpt{font-size:.88rem;margin-bottom:12px}
.nx-card-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.nx-card-inquiry{font-weight:700;font-size:.88rem}
.nx-card-add{border:1.5px solid var(--ink);border-radius:var(--radius-sm);padding:8px 14px;font-size:.8rem;font-weight:700}
.nx-card-add:hover,.nx-card-add.is-added{background:var(--ink);color:#fff}

.nx-catalogue-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:36px}
.nx-page-note{color:var(--muted);font-size:.88rem}
.nx-pagination ul{display:flex;gap:6px}
.nx-pagination a,.nx-pagination span{display:grid;place-items:center;min-width:38px;height:38px;border:1px solid var(--line);border-radius:var(--radius-sm)}
.nx-pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}
.nx-pagination a:hover{border-color:var(--amber);color:var(--amber)}

.nx-breadcrumbs{display:flex;align-items:center;gap:8px;font-size:.85rem;color:var(--muted);padding:20px 0}
.nx-breadcrumbs a{font-weight:600;color:var(--ink)}
.nx-breadcrumbs a:hover{color:var(--amber)}

/* -------------------------------------------------------------
 * 10. SINGLE PRODUCT PAGE
 * ------------------------------------------------------------- */
.single-grid{display:grid;gap:48px;padding-bottom:64px}
@media(min-width:960px){.single-grid{grid-template-columns:1fr 1fr}}

.single-main-image{aspect-ratio:1/1;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--line);background:var(--stone)}
.single-main-image img{width:100%;height:100%;object-fit:cover}
.single-placeholder{width:100%;height:100%;background:linear-gradient(135deg,var(--stone),var(--line))}
.single-gallery{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.nx-gallery-thumb{width:64px;height:64px;border-radius:var(--radius-sm);overflow:hidden;border:1.5px solid var(--line)}
.nx-gallery-thumb img{width:100%;height:100%;object-fit:cover}
.nx-gallery-thumb.is-active{border-color:var(--amber)}
.nx-product-image-note{display:flex;align-items:center;gap:10px;margin-top:20px;padding:16px;background:var(--stone);border-radius:var(--radius-sm)}
.nx-product-image-note strong{font-family:var(--font-display);font-weight:600}

.single-copy .code{font-weight:700;color:var(--muted);margin-top:-.5em}
.meta{border-top:1px solid var(--line);margin:20px 0}
.meta p{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);margin:0}
.meta strong{color:var(--ink);font-weight:600}
.meta span{color:var(--muted)}
.description{margin:20px 0}

.inquiry-box{background:var(--stone);border-radius:var(--radius-md);padding:28px;margin:28px 0}
.inquiry-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px}
.nx-qty-label{font-weight:700;font-size:.85rem;display:flex;align-items:center;gap:10px}
.nx-qty-control{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:var(--paper)}
.nx-qty-control button{width:36px;height:40px;font-size:1.1rem}
.nx-qty-control input{border:0;width:46px;text-align:center;padding:0}
.inquiry-success{font-weight:700;color:var(--amber);margin-top:12px;opacity:0;transition:opacity .25s ease}
.inquiry-success.is-visible{opacity:1}
.inquiry-view-link{display:inline-block;margin-top:16px;font-weight:700}
.inquiry-view-link span{background:var(--ink);color:#fff;border-radius:999px;padding:2px 8px;font-size:.75rem;margin:0 2px}

.nx-no-payment{margin-top:20px;padding:16px;border:1px dashed var(--line);border-radius:var(--radius-sm)}
.nx-no-payment p{margin:0;font-size:.88rem}

.nx-related-products{padding:64px 0;border-top:1px solid var(--line)}
.nx-related-grid{display:grid;gap:24px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.nx-related-grid{grid-template-columns:repeat(4,1fr)}}
.nx-related-image{display:block;aspect-ratio:1/1;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--line);background:var(--stone)}
.nx-related-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.nx-related-card:hover .nx-related-image img{transform:scale(1.05)}
.nx-related-fallback{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--stone),var(--line))}
.nx-related-copy{padding-top:10px}
.nx-related-copy .code{font-size:.75rem;font-weight:700;color:var(--amber)}
.nx-related-copy h3{font-size:.98rem;margin:.3em 0}
.nx-related-link{font-weight:700;font-size:.85rem}

.nx-product-reviews{padding:64px 0;border-top:1px solid var(--line)}
.nx-reviews-heading{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px;margin-bottom:28px}
.nx-review-summary{text-align:right}
.nx-review-summary strong{font-family:var(--font-display);font-size:1.6rem}
.nx-stars{color:var(--amber);letter-spacing:2px}
.nx-review-list{display:grid;gap:20px;margin-bottom:32px}
.nx-review{border:1px solid var(--line);border-radius:var(--radius-sm);padding:18px}
.nx-review-top{display:flex;justify-content:space-between;margin-bottom:4px}
.nx-no-reviews{color:var(--muted);margin-bottom:28px}
.nx-review-form{background:var(--stone);border-radius:var(--radius-md);padding:28px;max-width:560px}
.comment-form-rating label,.comment-form-comment label{display:block;font-weight:700;margin-bottom:8px}
.required{color:var(--amber)}
.nx-review-note{font-size:.82rem;color:var(--muted);margin-top:10px}
