/* Samuruk Колсай — main.css */

/* === HERO BLUEPRINT CORNERS === */
.hero-bp-corners {
  position:absolute;
  inset:-16px;
  pointer-events:none;
  z-index:0;
}
.bp-tl,.bp-tr,.bp-bl,.bp-br {
  position:absolute;
  width:20px; height:20px;
  animation: bpPulse 3s ease-in-out infinite;
}
.bp-tl { top:0; left:0;  border-top:2px solid rgba(192,57,43,.9); border-left:2px solid rgba(192,57,43,.9); animation-delay:0s; }
.bp-tr { top:0; right:0; border-top:2px solid rgba(192,57,43,.9); border-right:2px solid rgba(192,57,43,.9); animation-delay:.4s; }
.bp-bl { bottom:0; left:0;  border-bottom:2px solid rgba(192,57,43,.9); border-left:2px solid rgba(192,57,43,.9); animation-delay:.8s; }
.bp-br { bottom:0; right:0; border-bottom:2px solid rgba(192,57,43,.9); border-right:2px solid rgba(192,57,43,.9); animation-delay:1.2s; }

@keyframes bpPulse {
  0%,100% { opacity:.3; transform:scale(.85); }
  50%      { opacity:1;  transform:scale(1); }
}

/* === BASE === */
body { font-family:'Inter',system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
html { scroll-behavior:smooth; }
[x-cloak] { display:none !important; }

/* === SCROLL REVEAL === */
.reveal {
  opacity:0;
  transform:translateY(20px);
  transition:opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay:.08s; }
.reveal-d2 { transition-delay:.16s; }
.reveal-d3 { transition-delay:.24s; }
.reveal-d4 { transition-delay:.32s; }
.reveal-d5 { transition-delay:.40s; }
.reveal-d6 { transition-delay:.48s; }

/* === TABULAR NUMS — prices & stats === */
.tabular {
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
  letter-spacing:-.03em;
}

/* === WILL-CHANGE for hover cards === */
[class*="hover:-translate"], .group { will-change:transform; }

/* === HERO GHOST TEXT gradient clip === */
.hero-ghost {
  background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.01) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* === HERO PHOTO BG === */
.hero-photo-bg {
  position:absolute; inset:0;
  background-size:cover;
  background-position:center 35%;
  filter:brightness(.22) saturate(.1);
  z-index:0;
  transition:filter 1s ease;
}

/* Red left gradient over photo */
.hero-photo-bg::after {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(105deg,rgba(192,57,43,.18) 0%,transparent 55%);
}

/* === SECTION LABEL WITH LINE === */
.sec-label {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#C0392B;
  margin-bottom:14px;
}
.sec-label::before {
  content:'';
  display:block;
  width:20px; height:2px;
  background:#C0392B;
  border-radius:1px;
  flex-shrink:0;
}

/* === STATS STRIP === */
.stat-item {
  padding-left:20px;
  border-left:2px solid #C0392B;
}
/* divider between stats on desktop */
@media(min-width:768px){
  .stat-item:not(:first-child) {
    border-left:none;
    padding-left:32px;
    position:relative;
  }
  .stat-item:not(:first-child)::before {
    content:'';
    position:absolute; left:0; top:15%; bottom:15%;
    width:1px;
    background:rgba(255,255,255,.1);
  }
  .stat-item:first-child { padding-left:0; border-left:none; }
  .stats-strip { display:flex; align-items:center; gap:0; }
  .stats-strip .stat-item { flex:1; }
}

/* === CATEGORY CARDS === */
.cat-card {
  position:relative;
  overflow:hidden;
  transition:transform 280ms cubic-bezier(.16,1,.3,1),
              box-shadow 280ms cubic-bezier(.16,1,.3,1),
              border-color 280ms;
}
.cat-card::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0;
  height:3px;
  background:#C0392B;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 320ms cubic-bezier(.16,1,.3,1);
}
.cat-card:hover { transform:translateY(-5px); box-shadow:0 12px 40px rgba(0,0,0,.12); }
.cat-card:hover::after { transform:scaleX(1); }

/* Faint number badge */
.cat-num {
  position:absolute; top:12px; right:14px;
  font-size:52px; font-weight:900;
  color:rgba(0,0,0,.05);
  line-height:1; letter-spacing:-.05em;
  pointer-events:none; user-select:none;
  font-variant-numeric:tabular-nums;
}

/* Concrete-pattern placeholder for category images */
.cat-img-placeholder {
  background-color:#f0f0ee;
  background-image:
    repeating-linear-gradient(45deg,rgba(0,0,0,.025) 0,rgba(0,0,0,.025) 1px,transparent 1px,transparent 10px),
    repeating-linear-gradient(-45deg,rgba(0,0,0,.025) 0,rgba(0,0,0,.025) 1px,transparent 1px,transparent 10px);
}

/* === PRODUCT CARDS === */
.product-card {
  transition:transform 250ms cubic-bezier(.16,1,.3,1),
              box-shadow 250ms cubic-bezier(.16,1,.3,1),
              border-color 250ms;
}
.product-card:hover { transform:translateY(-4px); box-shadow:0 8px 30px rgba(0,0,0,.1); }

/* === ADVANTAGES — big card first === */
.adv-card { transition:box-shadow 220ms, border-color 220ms; }
.adv-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.07); }
.adv-icon-wrap { transition:transform 280ms cubic-bezier(.16,1,.3,1); }
.adv-card:hover .adv-icon-wrap { transform:scale(1.08) rotate(-6deg); }

/* === CALCULATOR RESULT (dark box) === */
.calc-result {
  background:#0f0f0f;
  border-radius:12px;
  padding:16px;
  margin-bottom:20px;
}

/* === FAQ === */
.faq-btn {
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px 24px;
  text-align:left;
  font-weight:600; font-size:15px; color:#111;
  transition:background 150ms, border-color 150ms, padding-left 200ms;
  border-left:3px solid transparent;
}
.faq-btn:hover { background:rgba(192,57,43,.04); }
.faq-btn.faq-open {
  border-left-color:#C0392B;
  padding-left:22px;
  background:rgba(192,57,43,.03);
}
.faq-num {
  font-family:'SF Mono',ui-monospace,monospace;
  font-size:11px; color:#ccc; flex-shrink:0; margin-right:4px;
}

/* === REVIEWS — pull-quote style === */
.review-card {
  position:relative; overflow:hidden;
  transition:box-shadow 220ms, transform 220ms;
}
.review-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.08); }
.review-quote {
  position:absolute;
  top:-4px; left:14px;
  font-size:80px; font-weight:900;
  color:rgba(192,57,43,.07);
  line-height:1;
  pointer-events:none;
  font-family:Georgia,serif;
}

/* === HEADER border on scroll === */
.header-scrolled { border-bottom-color:rgba(192,57,43,.15) !important; }

/* === CTA BUTTON arrow animation === */
.btn-arrow { display:inline-flex; align-items:center; gap:8px; }
.btn-arrow .arrow { transition:transform 200ms cubic-bezier(.16,1,.3,1); display:inline-block; }
.btn-primary:hover .arrow { transform:translateX(4px); }

/* === PROMO BAR left-border style === */
.promo-bar-text { border-left:4px solid #C0392B; padding-left:20px; }

/* === CONTACTS — dark icon bg === */
.contact-icon { background:#111; }

/* === ALPINE COLLAPSE === */
[x-collapse] { transition:height 350ms cubic-bezier(.16,1,.3,1) !important; overflow:hidden; }

/* === WP ADMIN BAR === */
.admin-bar header { top:32px; }
@media(max-width:782px){.admin-bar header{top:46px;}}

/* === WhatsApp pulse === */
@keyframes waPulse {
  0%,100%{box-shadow:0 4px 20px rgba(34,197,94,.4),0 0 0 0 rgba(34,197,94,.5);}
  50%{box-shadow:0 4px 20px rgba(34,197,94,.4),0 0 0 14px rgba(34,197,94,0);}
}

/* === INPUT FOCUS === */
input:focus, select:focus, textarea:focus {
  outline:none;
  border-color:#C0392B;
  box-shadow:0 0 0 3px rgba(192,57,43,.12);
}

/* ═══════════════════════ WOOCOMMERCE ════════════════════════════════ */

/* Hide default WC buttons/styles we override */
.woocommerce-message,.woocommerce-info,.woocommerce-error{margin:0 0 16px;padding:12px 16px;border-radius:12px;border-left:4px solid #C0392B;background:#fff9f9;font-size:14px;}
.woocommerce-info{border-left-color:#3b82f6;background:#eff6ff;}

/* Product grid — custom class from archive-product.php */
.products-grid .samuruk-product-card { height:100%; }

/* WC default product loop (fallback) */
.woocommerce ul.products {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  list-style:none;
  padding:0; margin:0;
}
@media(max-width:768px){ .woocommerce ul.products{grid-template-columns:repeat(2,1fr);} }
@media(max-width:480px){ .woocommerce ul.products{grid-template-columns:1fr;} }
.woocommerce ul.products li.product{ margin:0; float:none; width:auto; }

/* WC select ordering */
.woo-ordering select,.woocommerce-ordering select {
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:8px 36px 8px 12px;
  font-size:13px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236b7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") right 10px center/14px no-repeat;
  appearance:none; cursor:pointer;
}
.woo-ordering select:focus,.woocommerce-ordering select:focus{border-color:#C0392B;box-shadow:0 0 0 2px rgba(192,57,43,.1);outline:none;}

/* Pagination */
.woo-pagination { display:flex; justify-content:center; margin:2.5rem 0; }
.woo-pagination .nav-links {
  display:flex; align-items:center; gap:6px; flex-wrap:wrap; justify-content:center;
}
.woo-pagination .page-numbers {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; height:42px; padding:0 14px;
  border:1.5px solid #e5e7eb; border-radius:12px;
  font-size:14px; font-weight:700; color:#374151;
  transition:all 200ms; text-decoration:none; line-height:1;
  white-space:nowrap;
}
.woo-pagination a.page-numbers:hover {
  border-color:#C0392B; color:#C0392B; background:#fef2f0;
}
.woo-pagination .current {
  background:#C0392B; color:#fff !important; border-color:#C0392B;
  box-shadow:0 2px 8px rgba(192,57,43,.25);
}
.woo-pagination .next,.woo-pagination .prev {
  padding:0 18px; gap:4px; color:#6b7280;
}
.woo-pagination .next:hover,.woo-pagination .prev:hover {
  border-color:#C0392B; color:#C0392B; background:#fef2f0;
}
.woo-pagination .dots {
  border:none; background:transparent; color:#9ca3af;
  min-width:auto; padding:0 4px;
}

/* Single product WC elements */
.woocommerce div.product .woocommerce-tabs{margin-top:0;}
.woocommerce div.product .woocommerce-tabs ul.tabs{border-bottom:1px solid #e5e7eb;margin-bottom:24px;padding:0;display:flex;gap:4px;}
.woocommerce div.product .woocommerce-tabs ul.tabs li{margin:0;}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{display:block;padding:10px 20px;font-size:14px;font-weight:600;color:#6b7280;border-radius:10px 10px 0 0;}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:#C0392B;border-bottom:2px solid #C0392B;}
.woocommerce div.product .woocommerce-tabs .panel{padding:0;}

/* Remove WC default styles that conflict */
.woocommerce .price del{color:#9ca3af;font-size:.85em;}
.woocommerce .price ins{text-decoration:none;}
.woocommerce a.button,.woocommerce button.button{background:#0f0f0f;color:#fff;border-radius:10px;padding:10px 20px;font-size:13px;font-weight:600;transition:background 200ms;}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:#C0392B;}
.woocommerce a.button.alt,.woocommerce button.button.alt{background:#C0392B;}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover{background:#a93226;}

/* Result count */
.woo-result-count p,.woocommerce-result-count{margin:0;color:#6b7280;font-size:13px;}

/* Page content styles */
.page-content h2{font-size:22px;font-weight:800;color:#111;margin:28px 0 12px;letter-spacing:-.02em;}
.page-content h3{font-size:18px;font-weight:700;color:#111;margin:24px 0 10px;}
.page-content p{margin-bottom:16px;line-height:1.75;}
.page-content ul,.page-content ol{padding-left:20px;margin-bottom:16px;}
.page-content li{margin-bottom:6px;}
.page-content strong{font-weight:700;color:#111;}
.page-content a{color:#C0392B;text-decoration:underline;text-decoration-color:rgba(192,57,43,.3);}
.page-content a:hover{text-decoration-color:#C0392B;}
.page-content img{border-radius:12px;max-width:100%;height:auto;}

/* === VIDEO GALLERY === */
.sec-label-light { color: rgba(255,255,255,.45); }
.sec-label-light::before { background: rgba(255,255,255,.25); }

.video-slider-wrap {
  position: relative;
}
.video-slider {
  display: flex;
  gap: 18px;
  overflow: hidden;
  scroll-behavior: smooth;
}
.video-slider > button.video-card {
  flex: 0 0 calc(25% - 14px);
  min-width: 0;
}
@media (max-width: 1024px) { .video-slider > button.video-card { flex: 0 0 calc(33.333% - 12px); } }
@media (max-width: 640px)  { .video-slider > button.video-card { flex: 0 0 calc(50% - 6px); } .video-slider { gap: 12px; } }

.video-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(192,57,43,.9);
  border: 2px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background .2s, transform .2s, opacity .2s;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.5);
}
.video-nav:hover { background: #C0392B; transform: translateY(-50%) scale(1.1); }
.video-nav:disabled { opacity: 0; pointer-events: none; }
.video-nav--prev { left: -24px; }
.video-nav--next { right: -24px; }
@media (max-width: 640px) {
  .video-nav--prev { left: -6px; }
  .video-nav--next { right: -6px; }
  .video-nav { width: 38px; height: 38px; }
}

.video-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #18181b;
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  padding: 0;
  display: block;
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .35s;
  isolation: isolate;
  will-change: transform;
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192,57,43,.55);
  box-shadow: 0 18px 40px -12px rgba(192,57,43,.35), 0 0 0 1px rgba(192,57,43,.25) inset;
}
.video-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  position: absolute; inset: 0;
  z-index: 1;
}
.video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  background: #0a0a0a;
}
/* Bottom gradient — readable text */
.video-card::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.video-play {
  position: absolute; top: 50%; left: 50%;
  width: 58px; height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 50%;
  background: rgba(192,57,43,.95);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -6px rgba(192,57,43,.6);
  z-index: 2;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .25s;
  padding-left: 4px;
}
.video-card:hover .video-play {
  transform: scale(1.1);
  background: #C0392B;
}
.video-duration {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: .02em;
  z-index: 2;
}
.video-title {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  z-index: 2;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* Lightbox */
.video-lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,12,.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.video-lb-stage {
  position: relative;
  max-width: min(420px, 92vw);
  width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.video-lb-video {
  width: 100%;
  max-height: 85vh;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  outline: none;
}
.video-lb-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -.01em;
}
.video-lb-counter {
  margin-top: 4px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.video-lb-close,
.video-lb-nav {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s, border-color .2s;
  z-index: 10;
}
.video-lb-close:hover,
.video-lb-nav:hover {
  background: rgba(192,57,43,.85);
  border-color: rgba(192,57,43,.85);
  transform: scale(1.08);
}
.video-lb-close { top: 24px; right: 24px; }
.video-lb-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
.video-lb-next  { top: 50%; right: 24px; transform: translateY(-50%); }
.video-lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.video-lb-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 640px) {
  .video-lb-close { top: 14px; right: 14px; }
  .video-lb-prev  { left: 8px; }
  .video-lb-next  { right: 8px; }
  .video-lb-nav   { width: 38px; height: 38px; }
}
