:root{--pv-primary:<?= htmlspecialchars($primaryColor) ?>;--pv-secondary:<?= htmlspecialchars($secondaryColor) ?>;--tpl-accent:<?= htmlspecialchars($accentColor) ?>;--tpl-surface:<?= htmlspecialchars($tpl['surface']) ?>}

*{letter-spacing:0}

body{background:var(--tpl-surface);color:#172033}

a{text-decoration:none}

.tpl-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(15,23,42,.09)}

.tpl-brand{font-weight:900;color:#0f172a;min-width:0}

.tpl-brand span{display:block;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.tpl-logo{height:38px;width:auto;max-width:124px;object-fit:contain;background:#fff;border-radius:6px;padding:3px;border:1px solid #eef2f7}

.tpl-nav-link{color:#334155;font-weight:800;font-size:.88rem}

.tpl-hero{position:relative;min-height:660px;color:#fff;overflow:hidden;background:#0f172a}

.tpl-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,17,31,0.92) 0%,rgba(7,17,31,0.68) 60%,rgba(7,17,31,0.2) 100%);z-index:2}

.tpl-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}

.tpl-hero-inner{position:relative;z-index:3;min-height:660px;display:flex;align-items:center;padding-top:52px;padding-bottom:52px}

.tpl-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.55fr);gap:34px;align-items:center;width:100%}

.tpl-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);font-weight:800;font-size:.82rem;color:#fff}

.tpl-title{font-size:clamp(2.25rem,5vw,4.85rem);font-weight:950;line-height:1.01;max-width:850px}

.tpl-lead{font-size:1.08rem;line-height:1.82;color:rgba(255,255,255,.84);max-width:680px}

.tpl-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

.tpl-metrics{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}

.tpl-metric{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);border-radius:8px;padding:17px 18px;min-width:138px}

.tpl-metric strong{display:block;font-size:1.48rem;color:#fff;line-height:1.1}

.tpl-metric span{display:block;color:rgba(255,255,255,.76);font-size:.86rem;margin-top:4px}

.tpl-hero-panel{background:rgba(255,255,255,.94);color:#0f172a;border:1px solid rgba(255,255,255,.55);border-radius:10px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28)}

.tpl-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}

.tpl-panel-head span{text-transform:uppercase;color:var(--pv-primary);font-size:.74rem;font-weight:900}

.tpl-panel-head i{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:color-mix(in srgb,var(--pv-primary) 13%,white);color:var(--pv-primary);font-size:1.35rem}

.tpl-panel-title{font-size:1.35rem;font-weight:950;color:#0f172a;line-height:1.18}

.tpl-panel-note{color:#64748b;line-height:1.65;margin:10px 0 18px}

.tpl-panel-list{display:grid;gap:10px;margin-bottom:18px}

.tpl-panel-row{display:flex;align-items:flex-start;gap:10px;color:#334155;font-weight:700;font-size:.92rem}

.tpl-panel-row i{color:var(--pv-primary);font-size:1.08rem;margin-top:1px}

.tpl-trust-strip{position:relative;z-index:3;margin-top:-44px}

.tpl-trust-inner{background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 18px 45px rgba(15,23,42,.12);padding:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}

.tpl-trust-item{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:8px;background:#f8fafc}

.tpl-trust-item i{width:42px;height:42px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--pv-primary) 13%,white);color:var(--pv-primary);font-size:1.28rem;flex:none}

.tpl-trust-item strong{display:block;color:#0f172a;font-size:.96rem}

.tpl-trust-item span{display:block;color:#64748b;font-size:.84rem;line-height:1.45;margin-top:2px}

.tpl-signature{padding:64px 0 18px}

.tpl-signature-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:22px}

.tpl-signature-head .tpl-section-title{max-width:820px;margin-bottom:0}

.tpl-signature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}

.tpl-signature-card{position:relative;overflow:hidden;background:#fff;border:1px solid #e5e7eb;border-radius:9px;padding:22px;min-height:196px;box-shadow:0 14px 34px rgba(15,23,42,.06)}

.tpl-signature-card i{width:46px;height:46px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--pv-primary) 13%,white);color:var(--pv-primary);font-size:1.38rem;margin-bottom:16px}

.tpl-signature-card h3{font-size:1.02rem;font-weight:950;color:#0f172a;margin-bottom:9px}

.tpl-signature-card p{color:#64748b;font-size:.91rem;line-height:1.6;margin:0}

.tpl-sections{display:flex;flex-direction:column}

.tpl-band{padding:82px 0}

.tpl-section-kicker{display:inline-flex;align-items:center;gap:8px;text-transform:uppercase;font-weight:950;font-size:.76rem;color:var(--pv-primary);margin-bottom:9px}

.tpl-section-title{font-weight:950;color:#0f172a;font-size:clamp(1.65rem,3vw,2.65rem);line-height:1.12}

.tpl-section-copy{color:#64748b;line-height:1.82}

.tpl-card, .tpl-product, .tpl-signature-card, .tpl-trust-item {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.tpl-card:hover, .tpl-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.08) !important;
  border-color: var(--pv-primary) !important;
}

.tpl-signature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15,23,42,0.06) !important;
  border-color: var(--pv-primary) !important;
}

.tpl-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.04) !important;
}

.tpl-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:24px;height:100%;box-shadow:0 14px 34px rgba(15,23,42,.06)}

.tpl-card-icon{width:48px;height:48px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--pv-primary) 13%,white);color:var(--pv-primary);font-size:1.42rem;margin-bottom:16px}

.tpl-service-card{position:relative;overflow:hidden}

.tpl-service-card:after{content:"";position:absolute;inset:auto 0 0;height:3px;background:linear-gradient(90deg,var(--pv-primary),var(--tpl-accent));opacity:.85}

.tpl-service-media{height:142px;margin:-24px -24px 18px;background:#eef2f7;overflow:hidden}

.tpl-service-media img{width:100%;height:100%;object-fit:cover;display:block}

.tpl-price-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:color-mix(in srgb,var(--tpl-accent) 13%,white);color:var(--pv-secondary);font-weight:900;font-size:.78rem;padding:6px 10px;margin-top:13px}

.tpl-product{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;height:100%;box-shadow:0 12px 30px rgba(15,23,42,.06)}

.tpl-product-img{position:relative;height:226px;background:#eef2f7;overflow:hidden}

.tpl-product-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}

.tpl-product:hover .tpl-product-img img{transform:scale(1.04)}

.tpl-product-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,color-mix(in srgb,var(--pv-primary) 18%,white),#f8fafc);color:var(--pv-primary);font-size:2.4rem}

.tpl-product-body{padding:18px}

.tpl-product-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}

.tpl-category{display:inline-flex;border:1px solid #e5e7eb;border-radius:999px;padding:5px 9px;color:#64748b;font-size:.75rem;font-weight:800}

.tpl-price{font-weight:950;color:var(--pv-primary)}

.tpl-old-price{font-size:.82rem;color:#94a3b8;text-decoration:line-through}

.tpl-gallery{display:grid;grid-template-columns:1.15fr .85fr .85fr;grid-auto-rows:184px;gap:13px}

.tpl-gallery a{display:block;overflow:hidden;border-radius:8px;background:#e5e7eb}

.tpl-gallery a:first-child{grid-row:span 2}

.tpl-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}

.tpl-gallery a:hover img{transform:scale(1.05)}

/* Premium Gallery Slider */
.pv-gallery-slider-wrapper {
  position: relative;
  width: 100%;
}
.tpl-gallery-slider {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  gap: 16px !important;
  padding: 10px 0 !important;
  scrollbar-width: none !important;
}
.tpl-gallery-slider::-webkit-scrollbar {
  display: none !important;
}
.tpl-gallery-slider a {
  flex: 0 0 320px !important;
  scroll-snap-align: start !important;
  height: 220px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block !important;
}
.tpl-gallery-slider a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}
.tpl-gallery-slider a:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  border-color: var(--pv-primary) !important;
}
.tpl-gallery-slider a:hover img {
  transform: scale(1.04) !important;
}
.pv-slider-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  font-size: 1.25rem !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), inset 0 -2px 0 #cbd5e1 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
}
.pv-slider-btn:hover {
  background: var(--pv-primary) !important;
  color: #ffffff !important;
  border-color: var(--pv-primary) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3), inset 0 -2px 0 rgba(0,0,0,0.2) !important;
}
.pv-slider-btn--prev {
  left: -22px !important;
}
.pv-slider-btn--next {
  right: -22px !important;
}
@media(max-width:767px) {
  .tpl-gallery-slider a {
    flex: 0 0 260px !important;
    height: 180px !important;
  }
  .pv-slider-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  .pv-slider-btn--prev {
    left: -10px !important;
  }
  .pv-slider-btn--next {
    right: -10px !important;
  }
}

.tpl-review-card{position:relative}

.tpl-review-card:before{content:"\201C";position:absolute;right:18px;top:8px;font-size:4rem;line-height:1;color:color-mix(in srgb,var(--pv-primary) 16%,transparent);font-family:Georgia,serif}

.tpl-faq{border-bottom:1px solid #e5e7eb;padding:18px 0}

.tpl-faq:last-child{border-bottom:0}

.tpl-contact{background:linear-gradient(135deg, var(--pv-secondary) 0%, color-mix(in srgb, var(--pv-secondary) 75%, #000) 100%);color:#fff;position:relative;overflow:hidden}

.tpl-contact:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 12% 20%,rgba(255,255,255,.13),transparent 28%),linear-gradient(135deg,rgba(255,255,255,.08),transparent 48%);pointer-events:none}

.tpl-contact .container{position:relative;z-index:2}

.tpl-contact a{color:#fff}

.tpl-contact-card{background:#fff;color:#0f172a;border-radius:10px;padding:24px;box-shadow:0 18px 44px rgba(0,0,0,.18)}

.tpl-socials{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}

.tpl-socials a{width:38px;height:38px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22)}

.tpl-footer{background:#07111f;color:rgba(255,255,255,.72);padding:28px 0}

.tpl-floating-cta{position:fixed;right:22px;bottom:22px;z-index:60;border-radius:999px;box-shadow:0 12px 30px rgba(15,23,42,.22)}

.tpl-sections > section { order: initial !important; }

@media(max-width:991px) {
  .tpl-hero-grid{grid-template-columns:1fr}
  .tpl-hero-panel{max-width:560px}
  .tpl-trust-inner{grid-template-columns:1fr}
  .tpl-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:160px}
  .tpl-gallery a:first-child{grid-row:span 1}
}

@media(max-width:767px) {
  .tpl-brand span{max-width:190px}
  .tpl-hero,.tpl-hero-inner{min-height:590px}
  .tpl-hero-inner{padding-top:34px;padding-bottom:34px}
  .tpl-title{font-size:2.35rem}
  .tpl-lead{font-size:1rem}
  .tpl-metric{min-width:calc(50% - 7px);padding:14px}
  .tpl-band{padding:58px 0}
  .tpl-trust-strip{margin-top:0}
  .tpl-trust-inner{border-radius:0;border-left:0;border-right:0}
  .tpl-signature{padding:42px 0 6px}
  .tpl-signature-head{display:block}
  .tpl-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:135px;gap:8px}
  .tpl-product-img{height:205px}
  .tpl-floating-cta{right:14px;bottom:14px}
}
