/* ============================================
   LUMEDICS — Premium Theme Styles v2
   ============================================ */

:root {
  --red: #70000e;
  --red-light: #8a1020;
  --red-dark: #4a0008;
  --cream: #faf6f1;
  --dark: #0f0f0f;
  --dark-2: #1a1a1a;
  --text: #242424;
  --text-light: #767676;
  --header-h: 112px; /* announcement(40) + nav(72) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: #fff; font-weight: 400; line-height: 1.7; font-size: 15px; }

/* No page transition animations — instant navigation */
img { max-width: 100%; height: auto; display: block; }
a, a:link, a:visited, a:hover, a:active { text-decoration: none; color: inherit; transition: all .3s ease; }
footer a, footer a:link, footer a:visited { color: rgba(255,255,255,.8) !important; }
footer a:hover { color: #fff !important; }
button { cursor: pointer; font-family: inherit; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5 { font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.text-hero { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 300; }
.text-section { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
.text-sub { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 300; letter-spacing: -0.01em; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 500; }

/* ─── Layout ─── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(48px, 7vw, 100px) 0; }
.section + .section { border-top: 1px solid rgba(0,0,0,.04); }

/* ─── Buttons — PREMIUM ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 40px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.2em; font-weight: 500; border: 1px solid;
  transition: all .4s cubic-bezier(.25,.8,.25,1); position: relative; overflow: hidden;
  border-radius: 30px; cursor: pointer;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 30px;
  transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.25,.8,.25,1);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.btn span { position: relative; z-index: 1; }

.btn-primary { background: var(--red); color: #fff !important; border-color: var(--red); box-shadow: 0 4px 15px rgba(112,0,14,.3); }
.btn-primary span { color: #fff !important; }
.btn-primary::before { background: var(--red-dark); }
.btn-primary:hover { border-color: var(--red-dark); box-shadow: 0 8px 30px rgba(112,0,14,.4); }

.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline::before { background: var(--red); }
.btn-outline:hover { color: #fff; box-shadow: 0 8px 25px rgba(112,0,14,.25); }

.btn-white { background: #fff; color: var(--text); border-color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,.1); }
.btn-white::before { background: var(--cream); }

.btn-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark::before { background: var(--red); }
.btn-dark:hover { box-shadow: 0 8px 25px rgba(0,0,0,.3); }

/* ─── Scroll reveal animations ─── */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.25,.8,.25,1), transform 1s cubic-bezier(.25,.8,.25,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

@keyframes heroZoom { 0% { transform: scale(1); } 100% { transform: scale(1.08); } }
@keyframes footerGlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ledFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .5; }
  50% { transform: translate(20px, -15px) scale(1.05); opacity: .8; }
}
/* GPU acceleration for smooth animation */
footer div[style*="radial-gradient"] {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.hero-bg { animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes glowPulse { 0%,100% { opacity:.3; } 50% { opacity:.6; } }

/* ─── Header ─── */
.site-header-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .4s cubic-bezier(.25,.8,.25,1);
}
.site-header-wrap.is-solid {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.announcement-bar {
  background: var(--red); color: #fff; text-align: center;
  padding: 10px 20px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 300;
  transition: all .3s ease;
}
@media (max-width: 1023px) {
  .announcement-bar { justify-content: center !important; }
  .announcement-bar > .hide-mobile { display: none !important; width: 0 !important; overflow: hidden !important; }
}
.site-header-wrap.is-solid .announcement-bar { padding: 6px 20px; font-size: 10px; }

/* Header nav links */
.hdr-link {
  font-size: 12px;
  letter-spacing: .15em;
  transition: color .4s ease, opacity .3s ease;
}
.hdr-link:hover { opacity: .7; }

/* Transparent mode (homepage hero) */
.site-header-wrap.is-transparent .hdr-link { color: rgba(255,255,255,.9); }
.site-header-wrap.is-transparent .hdr-link:hover { color: #fff; opacity: 1; }
.site-header-wrap.is-transparent .hdr-icon { color: rgba(255,255,255,.9); }
.site-header-wrap.is-transparent .hdr-icon:hover { color: #fff; }
/* Logo — dark on solid header, white on transparent (video) */
.logo-dark, .logo-white { transition: opacity .4s ease; }
.site-header-wrap.is-solid .logo-dark { opacity: 1 !important; }
.site-header-wrap.is-solid .logo-white { opacity: 0 !important; }
.site-header-wrap.is-transparent .logo-dark { opacity: 0 !important; }
.site-header-wrap.is-transparent .logo-white { opacity: 1 !important; }


/* Logo positioning & sizing */
.logo-center { flex-shrink: 0; pointer-events: auto; margin: 0 auto; max-width: 120px; position: relative; }
@media (min-width: 768px) { .logo-center { max-width: 150px; } }

@media (min-width: 1024px) {
  .logo-center { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 1; margin: 0 !important; max-width: none !important; }
}
.site-header-wrap.is-transparent .announcement-bar { background: rgba(112,0,14,.85); backdrop-filter: blur(10px); }

/* Solid mode */
.site-header-wrap.is-solid .hdr-link { color: var(--text); }
.site-header-wrap.is-solid .hdr-link:hover { color: var(--red); opacity: 1; }
.site-header-wrap.is-solid .hdr-icon { color: var(--text); }
.site-header-wrap.is-solid .hdr-icon:hover { color: var(--red); }

/* ─── Product Card — PREMIUM v2 ─── */
.pcard {
  position: relative;
  transition: transform .5s cubic-bezier(.25,.8,.25,1);
}
.pcard:hover { transform: translateY(-8px); }

/* Image container — square */
.pcard-img {
  position: relative; display: block; overflow: hidden;
  background: var(--cream); aspect-ratio: 1/1; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  transition: box-shadow .5s cubic-bezier(.25,.8,.25,1);
}
.pcard:hover .pcard-img {
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.25,.8,.25,1);
}
.pcard:hover .pcard-img img { transform: scale(1.08); }

/* Favorite button — top right corner */
.pcard-fav {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: none; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); cursor: pointer;
  opacity: 0; transform: scale(.8);
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.pcard:hover .pcard-fav { opacity: 1; transform: scale(1); }
.pcard-fav:hover { background: #fff; color: var(--red); transform: scale(1.1) !important; }
.pcard-fav.is-active { opacity: 1; transform: scale(1); color: var(--red); background: #fff; }
.pcard-fav.is-active svg { fill: var(--red); }

/* Discount badge — top left */
.pcard-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: 6px 14px; border-radius: 20px;
  box-shadow: 0 4px 16px rgba(112,0,14,.25);
}

/* Quick view overlay — bottom of image */
.pcard-quick {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 16px; text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  border-radius: 0 0 16px 16px;
}
.pcard:hover .pcard-quick { transform: translateY(0); }
.pcard-quick span {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: #fff; font-weight: 500;
}

/* Card body — info below image */
.pcard-body { padding: 16px 4px 8px; }

.pcard-name {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--text); transition: color .3s ease;
  letter-spacing: .02em;
}
.pcard:hover .pcard-name { color: var(--red); }

.pcard-stars {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
}
.pcard-stars svg { filter: drop-shadow(0 1px 2px rgba(112,0,14,.2)); }
.pcard-stars span {
  font-size: 11px; color: var(--text-light); margin-left: 2px;
}

.pcard-price {
  display: flex; align-items: baseline; gap: 10px; margin-top: 10px;
}
.pcard-now {
  font-size: 17px; font-weight: 600; color: var(--red);
}
.pcard-old {
  font-size: 12px; color: var(--text-light); text-decoration: line-through;
}

/* ─── Trust badges — mini cards ─── */
.trust-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; padding: 20px 12px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
  transition: transform .3s ease, box-shadow .3s ease;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.trust-item svg { opacity: .9; }
.trust-item span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; }

/* ─── Form inputs ─── */
.input {
  width: 100%; padding: 14px 18px; border: 1px solid #e0ddd8;
  font-family: inherit; font-size: 14px; color: var(--text);
  background: #fff; transition: all .3s ease; outline: none;
  border-radius: 8px;
}
.input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(112,0,14,.08); }
.input::placeholder { color: #aaa; }

/* ─── Tabs ─── */
.tab-btn {
  padding: 12px 20px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.15em; font-weight: 500; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--text-light);
  transition: all .3s ease; margin-bottom: -1px; cursor: pointer;
}
.tab-btn.active, .tab-btn:hover { color: var(--red); border-bottom-color: var(--red); }

/* ─── Accordion ─── */
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; text-align: left; font-size: 14px; font-weight: 500;
  background: none; border: none; color: var(--text);
  transition: color .3s ease; cursor: pointer;
}
.accordion-btn:hover { color: var(--red); }
.accordion-btn svg { flex-shrink: 0; transition: transform .3s ease; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ─── Grids ─── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-12 { display: grid; grid-template-columns: 1fr; gap: 48px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 32px; }
}
/* Products — desktop grid / mobile carousel */
.products-desktop { display: none; }
.products-mobile {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 8px 0 20px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.products-mobile::-webkit-scrollbar { display: none; }
.products-mobile .pcard {
  min-width: calc(43% - 8px); max-width: calc(43% - 8px);
  flex-shrink: 0; scroll-snap-align: start;
}

@media (min-width: 768px) {
  .products-mobile .pcard {
    min-width: calc(43% - 8px); max-width: calc(43% - 8px);
  }
}

/* Swipe hint animation */
@keyframes swipeHint {
  0%, 80% { transform: translateX(0); }
  85% { transform: translateX(-30px); }
  90% { transform: translateX(0); }
  95% { transform: translateX(-15px); }
  100% { transform: translateX(0); }
}
.products-mobile.hint { animation: swipeHint 1s ease-in-out; }

@media (min-width: 960px) {
  .products-desktop {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  }
  .products-mobile { display: none; }
}

.grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }
}

/* ─── Responsive ─── */
.hide-mobile { display: none; }
.show-mobile { display: flex; }
@media (min-width: 1024px) {
  .hide-mobile { display: flex; }
  .show-mobile { display: none; }
}

/* ─── Interactive hover cards (about, story sections) ─── */
.hover-lift {
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

/* ─── Carousel scrollbar hide ─── */
.carousel-track { scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }

/* ─── Carousel arrow buttons ─── */
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s ease;
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 10;
}
.carousel-arrow:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  transform: translateY(-50%) scale(1.05);
}

/* ─── Cart badge pop animation ─── */
@keyframes cartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.8); }
  50% { transform: scale(0.8); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.cart-badge.pop { animation: cartPop .5s cubic-bezier(.25,.8,.25,1); }

/* ─── Testimonials ─── */
.tcard {
  background: #fff; padding: clamp(24px,3vw,36px); border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04); display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease;
}

/* Desktop: 3 cards row */
.testimonials-desktop {
  display: none;
}
@media (min-width: 960px) {
  .testimonials-desktop {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .testimonials-mobile { display: none !important; }
}

/* Mobile: horizontal scroll */
.testimonials-mobile {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 8px 0 16px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.testimonials-mobile::-webkit-scrollbar { display: none; }
.testimonials-mobile .tcard {
  min-width: 80%; max-width: 80%; flex-shrink: 0; scroll-snap-align: start;
}
@media (min-width: 480px) {
  .testimonials-mobile .tcard { min-width: 70%; max-width: 70%; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — device-specific tuning
   ═══════════════════════════════════════ */

/* Small phones (< 380px) */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .section { padding: clamp(36px, 6vw, 60px) 0; }
  .text-section { font-size: 22px; }
  .btn { padding: 14px 28px; font-size: 10px; }
  .pcard-img { border-radius: 10px; }
  .pcard-body { padding: 12px 2px 6px; }
  .pcard-name { font-size: 12px; }
  .pcard-now { font-size: 14px; }
  .pcard-stars svg { width: 12px; height: 12px; }
  .trust-item span { font-size: 8px; letter-spacing: .1em; }
}

/* Phones (380-767px) */
@media (max-width: 767px) {
  .section { padding: clamp(40px, 7vw, 64px) 0; }
  .grid-4 { gap: 12px; }
  .announcement-bar { font-size: 9px; padding: 8px 12px; }
  .products-mobile .pcard { min-width: calc(43% - 8px); max-width: calc(43% - 8px); }
}

/* Tablets (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .btn { padding: 14px 32px; }
  .products-mobile .pcard { min-width: calc(43% - 8px); max-width: calc(43% - 8px); }
}

/* Desktop (1024+) fine-tuning */
@media (min-width: 1024px) {
  body { font-size: 16px; }
  .pcard-name { font-size: 14px; }
  .pcard-now { font-size: 17px; }
  .btn { padding: 16px 40px; font-size: 11px; }
}
