
:root{color-scheme:light;--paper:#ffffff;--ink:#29251d;--muted:#777064;--line:#eee5d2;--white:#ffffff;--accent:#c49a3a;--glow:rgba(196,154,58,.16)}
html{scroll-behavior:smooth}body{transition:background .3s,color .3s;background-image:radial-gradient(ellipse at 85% 8%,rgba(196,154,58,.12),transparent 28%)}
.header{box-shadow:0 8px 30px rgba(74,56,18,.06);border-bottom-color:var(--line)}
.brand img{transition:transform .25s}.brand:hover img{transform:scale(1.025)}
.contact-btn,.btn.dark{border-radius:7px;box-shadow:0 8px 20px rgba(118,85,17,.14);transition:transform .2s,box-shadow .2s}
.contact-btn:hover,.btn.dark:hover{box-shadow:0 12px 28px rgba(118,85,17,.22)}
.hero{padding-top:64px;padding-bottom:68px}.hero h1{letter-spacing:-.055em}.hero-art{border-radius:5px;overflow:hidden;box-shadow:0 24px 60px rgba(90,68,20,.12)}.hero-art>img{transition:transform .8s}.hero-art:hover>img{transform:scale(1.025)}
.circle-stamp{box-shadow:0 10px 28px rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.35)}
.trust-row{background:rgba(255,255,255,.22)}
.section{padding-top:112px;padding-bottom:112px}.section-heading h2,.feature-copy h2,.about-section h2{letter-spacing:-.05em}
.chip{transition:all .2s;border-radius:999px}.chip.active,.chip:hover{box-shadow:0 6px 16px rgba(118,85,17,.14)}
.search-box{border-radius:6px 6px 0 0}.search-box:focus-within{border-color:var(--accent)}
.product-grid{gap:38px 22px}.product-card{transition:transform .25s}.product-card:hover{transform:translateY(-5px)}
.product-image{border-radius:5px;box-shadow:0 8px 25px rgba(90,68,20,.07)}.product-tag{border-radius:3px}.product-meta{gap:10px}
.product-open{border-radius:50%;box-shadow:0 4px 15px #0002}
.feature-section,.about-section,.contact-section{border-radius:0}
.contact-card{box-shadow:0 20px 55px rgba(33,57,46,.08);border-radius:8px}
footer{border-top:1px solid var(--line)}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);cursor:pointer;font-size:.78rem;white-space:nowrap;transition:all .2s}
.theme-toggle:hover{border-color:var(--accent);background:var(--glow);transform:translateY(-1px)}
.theme-toggle .theme-icon{font-size:1rem}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:850px){.head-actions{gap:8px}.theme-toggle{min-height:36px;padding:0 10px;font-size:.72rem}.hero{padding-top:35px}.section{padding-top:72px;padding-bottom:72px}}
@media(max-width:520px){.theme-toggle{font-size:0;width:38px;padding:0}.theme-toggle .theme-icon{font-size:1.1rem}.hero-art{height:350px}.hero h1{font-size:clamp(2.7rem,12vw,4rem)}.product-grid{gap:25px 12px}}
/* Dark mode uses the same design tokens; original source files remain untouched. */
html[data-theme="dark"]{color-scheme:dark;--paper:#080808;--ink:#f5f1e8;--muted:#b9b1a0;--line:#302719;--white:#111111;--accent:#C49A3A;--glow:rgba(196,154,58,.14)}
html[data-theme="dark"] body{background-image:radial-gradient(ellipse at 85% 8%,rgba(196,154,58,.08),transparent 28%)}
html[data-theme="dark"] .header{background:rgba(8,8,8,.96);border-bottom-color:var(--line);box-shadow:0 8px 30px #0002}
html[data-theme="dark"] nav{color:#e5dcc8}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .hero-copy>p,html[data-theme="dark"] .section-heading>p,html[data-theme="dark"] .hero-foot small,html[data-theme="dark"] .catalog-status{color:var(--muted)}
html[data-theme="dark"] .hero h1 em,html[data-theme="dark"] .section-heading h2 em,html[data-theme="dark"] .feature-copy h2 em,html[data-theme="dark"] .about-section h2 em{color:var(--accent)}
html[data-theme="dark"] .btn.dark,html[data-theme="dark"] .contact-btn,html[data-theme="dark"] .chip.active,html[data-theme="dark"] .chip:hover{background:#C49A3A;color:#080808;border-color:#C49A3A}
html[data-theme="dark"] .btn.outline,html[data-theme="dark"] .chip,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .icon-btn{color:var(--ink)}
html[data-theme="dark"] .product-image{background:#15120c}
html[data-theme="dark"] .product-tag{background:#15120c;color:#f5f1e8}
html[data-theme="dark"] .art-label{background:rgba(8,8,8,.95)}
html[data-theme="dark"] .trust-row{background:rgba(255,255,255,.015);color:#e5dcc8}
html[data-theme="dark"] .contact-card,html[data-theme="dark"] .modal-panel,html[data-theme="dark"] .search-overlay-inner{background:#101010;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .search-overlay{background:rgba(0,0,0,.82)}
html[data-theme="dark"] .theme-toggle{color:var(--ink);border-color:var(--line)}

/* ORI MEBEL light theme: premium white and gold palette */
html:not([data-theme="dark"]) body{background-color:#fff;color:#29251d}
html:not([data-theme="dark"]) .header{background:rgba(255,255,255,.96)}
html:not([data-theme="dark"]) .hero h1 em,html:not([data-theme="dark"]) .section-heading h2 em,html:not([data-theme="dark"]) .feature-copy h2 em,html:not([data-theme="dark"]) .about-section h2 em{color:#b78a25}
html:not([data-theme="dark"]) .btn.dark,html:not([data-theme="dark"]) .contact-btn,html:not([data-theme="dark"]) .chip.active,html:not([data-theme="dark"]) .chip:hover{background:#c49a3a;color:#fff;border-color:#c49a3a}
html:not([data-theme="dark"]) .btn.dark:hover,html:not([data-theme="dark"]) .contact-btn:hover{background:#ad8128;border-color:#ad8128}
html:not([data-theme="dark"]) .feature-section,html:not([data-theme="dark"]) .about-section,html:not([data-theme="dark"]) .contact-section{background:#fff}
html:not([data-theme="dark"]) .product-card{background:#fff}
html:not([data-theme="dark"]) .theme-toggle:hover{color:#9a711c}

/* In dark mode, render the ORI MEBEL logo in clean white for contrast. */
html[data-theme="dark"] .brand img,
html[data-theme="dark"] img.full-brand-logo{
  filter: brightness(0) invert(1);
}


/* Product detail gallery: one uncropped cover image with left/right slideshow */
.detail-gallery{min-width:0;width:100%;}
.detail-cover-wrap{position:relative;width:100%;height:clamp(260px,42vw,480px);display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f7f5f0;border:1px solid var(--line);}
.detail-cover-wrap .detail-cover{display:block;width:100%;height:100%;max-height:none;object-fit:contain;object-position:center;background:#f7f5f0;}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:1px solid rgba(196,154,58,.75);border-radius:50%;background:rgba(8,8,8,.78);color:#C49A3A;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer;z-index:2;box-shadow:0 3px 14px rgba(0,0,0,.16);}
.gallery-arrow:disabled{opacity:.35;cursor:default;}
.gallery-prev{left:12px;} .gallery-next{right:12px;}
.gallery-count{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:rgba(8,8,8,.78);color:#fff;padding:5px 10px;border-radius:20px;font-size:12px;letter-spacing:.04em;}
@media(max-width:760px){.detail-cover-wrap{height:clamp(230px,68vw,390px);}.detail-cover-wrap .detail-cover{max-height:none;object-fit:contain;}.gallery-arrow{width:38px;height:38px;font-size:27px;}.gallery-prev{left:8px}.gallery-next{right:8px}.detail-layout{align-items:start;}}


/* Fix: product detail modal must sit above the page and accept taps on mobile. */
.modal{position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;padding:3vh 3vw;}
.modal.open{display:flex;}
.modal-backdrop{z-index:0;}
.modal-panel{z-index:1;pointer-events:auto;}
.product-card{cursor:pointer;-webkit-tap-highlight-color:rgba(196,154,58,.16);}
.product-card .product-open{z-index:2;pointer-events:auto;}
@media(max-width:760px){.modal{padding:2vh 3vw}.modal-panel{width:100%;max-height:96vh;overscroll-behavior:contain}}



/* ORI MEBEL unified dark theme: black #080808 + premium gold #C49A3A */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #080808;
  --ink: #F5F1E8;
  --muted: #B8B0A1;
  --line: #30291D;
  --white: #111111;
  --accent: #C49A3A;
  --glow: rgba(196,154,58,.14);
  background: #080808;
}
html[data-theme="dark"] body {
  background: #080808 !important;
  color: #F5F1E8 !important;
  background-image: radial-gradient(ellipse at 85% 8%, rgba(196,154,58,.07), transparent 30%) !important;
}
html[data-theme="dark"] main,
html[data-theme="dark"] .section,
html[data-theme="dark"] .trust-row,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .catalog-section,
html[data-theme="dark"] .collection-section,
html[data-theme="dark"] .product-section,
html[data-theme="dark"] .feature-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .footer,
html[data-theme="dark"] footer {
  background-color: #080808 !important;
  color: #F5F1E8 !important;
}
html[data-theme="dark"] .feature-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .contact-section {
  background-image: none !important;
  border-color: #30291D !important;
}
html[data-theme="dark"] .header {
  background: rgba(8,8,8,.97) !important;
  color: #F5F1E8 !important;
  border-color: #30291D !important;
}
html[data-theme="dark"] .header nav,
html[data-theme="dark"] nav,
html[data-theme="dark"] nav a,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .menu-btn,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand small {
  color: #F5F1E8 !important;
}
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .feature-copy h2,
html[data-theme="dark"] .about-section h2,
html[data-theme="dark"] .contact-section h2,
html[data-theme="dark"] .product-card h3,
html[data-theme="dark"] .product-card h4,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .contact-card strong {
  color: #F5F1E8 !important;
}
html[data-theme="dark"] .hero h1 em,
html[data-theme="dark"] .section-heading h2 em,
html[data-theme="dark"] .feature-copy h2 em,
html[data-theme="dark"] .about-section h2 em,
html[data-theme="dark"] .contact-section h2 em {
  color: #C49A3A !important;
}
html[data-theme="dark"] p,
html[data-theme="dark"] .hero-copy > p,
html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .feature-copy p,
html[data-theme="dark"] .about-section p,
html[data-theme="dark"] .contact-section p,
html[data-theme="dark"] .product-meta,
html[data-theme="dark"] .hero-foot small,
html[data-theme="dark"] .catalog-status,
html[data-theme="dark"] .contact-item small,
html[data-theme="dark"] .footer-contact,
html[data-theme="dark"] .footer-bottom {
  color: #B8B0A1;
}
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .search-overlay-inner,
html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .product-info,
html[data-theme="dark"] .product-content {
  background: #111111 !important;
  color: #F5F1E8 !important;
  border-color: #30291D !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
html[data-theme="dark"] .product-card {
  overflow: hidden;
}
html[data-theme="dark"] .product-card .product-image,
html[data-theme="dark"] .product-image {
  background: #111111 !important;
  box-shadow: none;
}
html[data-theme="dark"] .product-tag,
html[data-theme="dark"] .art-label {
  background: rgba(8,8,8,.92) !important;
  color: #C49A3A !important;
  border-color: #30291D !important;
}
html[data-theme="dark"] .chip,
html[data-theme="dark"] .btn.outline,
html[data-theme="dark"] .theme-toggle {
  color: #F5F1E8 !important;
  border-color: #4B3B20 !important;
  background: #111111;
}
html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .chip:hover,
html[data-theme="dark"] .btn.dark,
html[data-theme="dark"] .contact-btn {
  background: #C49A3A !important;
  color: #080808 !important;
  border-color: #C49A3A !important;
}
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-box input,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #111111 !important;
  color: #F5F1E8 !important;
  border-color: #403522 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #8F8778 !important;
}
html[data-theme="dark"] .trust-row > *,
html[data-theme="dark"] .feature-copy,
html[data-theme="dark"] .about-section > *,
html[data-theme="dark"] .contact-section > * {
  color: inherit;
}
html[data-theme="dark"] .footer {
  border-top: 1px solid #30291D !important;
}
html[data-theme="dark"] .footer .brand img,
html[data-theme="dark"] .brand img,
html[data-theme="dark"] img.full-brand-logo {
  filter: brightness(0) invert(1);
}
html[data-theme="dark"] .modal-backdrop,
html[data-theme="dark"] .search-overlay {
  background: rgba(0,0,0,.86) !important;
}
html[data-theme="dark"] .detail-cover-wrap,
html[data-theme="dark"] .detail-cover-wrap .detail-cover {
  background: #111111 !important;
}
html[data-theme="dark"] .gallery-arrow {
  background: #080808 !important;
  color: #C49A3A !important;
  border-color: #C49A3A !important;
}
html[data-theme="dark"] .gallery-count {
  background: rgba(8,8,8,.92) !important;
  color: #F5F1E8 !important;
}
html[data-theme="dark"] .footer a:hover,
html[data-theme="dark"] nav a:hover,
html[data-theme="dark"] .text-link:hover {
  color: #C49A3A !important;
}



/* ORI MEBEL premium search control */
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 8px 7px 15px !important;
  border: 1px solid #ded7c7 !important;
  border-radius: 16px !important;
  background: #fffdf8;
  box-shadow: 0 7px 22px rgba(34,27,13,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.search-box:focus-within {
  border-color: #C49A3A !important;
  box-shadow: 0 0 0 4px rgba(196,154,58,.15), 0 10px 24px rgba(34,27,13,.08);
}
.search-box > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: #9A7425;
  font-size: 1.65rem !important;
  line-height: 1;
}
.search-box input {
  min-width: 0;
  flex: 1;
  width: 100% !important;
  padding: 10px 0 !important;
  color: #29251D;
  font-size: .92rem !important;
}
.search-box kbd {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #C49A3A !important;
  color: #080808 !important;
  box-shadow: 0 4px 10px rgba(196,154,58,.22);
  font-size: 0 !important;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.search-box kbd::after {
  content: "⌕";
  font-size: 1.8rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
  line-height: 1;
}
.search-box kbd:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.search-box kbd:active { transform: scale(.96); }

html[data-theme="dark"] .search-box {
  background: #111111 !important;
  border-color: #342C1D !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
html[data-theme="dark"] .search-box:focus-within {
  border-color: #C49A3A !important;
  box-shadow: 0 0 0 4px rgba(196,154,58,.12), 0 10px 24px rgba(0,0,0,.3);
}
html[data-theme="dark"] .search-box > span { color: #C49A3A !important; }
html[data-theme="dark"] .search-box input {
  background: transparent !important;
  color: #F5F1E8 !important;
}
html[data-theme="dark"] .search-box input::placeholder { color: #9D9586 !important; }
html[data-theme="dark"] .search-box kbd {
  background: #C49A3A !important;
  color: #080808 !important;
  border: 0 !important;
}
@media (max-width: 600px) {
  .search-box { min-height: 52px; border-radius: 14px !important; gap: 9px; }
  .search-box kbd { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px !important; }
}
