/* TSPLUS-P7-PRODUCT-MEGA v1.0.0 — premium product navigation */
:root {
  --p7-ink: #241b16;
  --p7-muted: #756c66;
  --p7-orange: #f07b38;
  --p7-orange-dark: #cf5c20;
  --p7-cream: #fff8f2;
  --p7-line: rgba(104, 70, 47, .13);
  --p7-navy: #142433;
}

@media (min-width: 993px) {
  .nav .p7-product-mega {
    position: fixed !important;
    z-index: 9998 !important;
    top: 72px !important;
    right: auto !important;
    left: 50% !important;
    display: none;
    width: min(1120px, calc(100vw - 40px)) !important;
    max-width: 1120px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(111, 75, 49, .15) !important;
    border-radius: 0 0 25px 25px !important;
    background: rgba(255, 253, 251, .985) !important;
    box-shadow: 0 34px 90px rgba(45, 28, 17, .18), 0 10px 30px rgba(45, 28, 17, .09) !important;
    transform: translateX(-50%) !important;
    backdrop-filter: blur(22px) saturate(1.18);
  }
  .nav .nav-item:hover > .p7-product-mega,
  .nav .nav-item:focus-within > .p7-product-mega,
  .nav .p7-product-mega.is-open { display: block; }
}

.p7-product-mega,
.p7-product-mega * { box-sizing: border-box; }
.p7-product-mega { list-style: none !important; }
.nav .p7-product-mega.p7-force-closed { display: none !important; }
.p7-product-mega > .p7-mega-shell {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.p7-mega-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--p7-line);
  background:
    radial-gradient(circle at 12% 0, rgba(255, 178, 122, .19), transparent 32%),
    linear-gradient(110deg, #fffdfb, #fff7f0);
}
.p7-mega-heading { display: grid; gap: 3px; }
.p7-mega-kicker,
.p7-quick-kicker {
  color: var(--p7-orange-dark);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .13em;
}
.p7-mega-heading strong {
  color: var(--p7-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.p7-mega-top-cta {
  display: inline-flex !important;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px !important;
  border: 1px solid rgba(240,123,56,.2);
  border-radius: 999px;
  background: #fff;
  color: #c8581e !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 9px 24px rgba(103,57,27,.08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.p7-mega-top-cta:hover,
.p7-mega-top-cta:focus-visible {
  border-color: rgba(240,123,56,.48);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(103,57,27,.13);
}
.p7-mega-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr);
  gap: 0;
}
.p7-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 20px;
  background: #fffdfb;
}
.p7-product-card {
  --p7-card-accent: #f07b38;
  position: relative;
  display: grid !important;
  min-width: 0;
  grid-template-columns: 112px minmax(0, 1fr) 30px;
  grid-template-areas:
    'logo title arrow'
    'logo desc arrow'
    'logo tags arrow';
  column-gap: 15px;
  row-gap: 4px;
  align-items: center;
  min-height: 134px;
  padding: 19px 17px !important;
  overflow: hidden;
  border: 1px solid var(--p7-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(240,123,56,.10), transparent 35%),
    linear-gradient(145deg, #fff, #fffaf6);
  color: var(--p7-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(54, 34, 21, .055), inset 0 1px 0 #fff;
  transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .32s ease, box-shadow .32s ease;
}
.p7-product-card::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(180deg, var(--p7-card-accent), rgba(255,185,135,.62));
  opacity: .78;
}
.p7-product-card:hover,
.p7-product-card:focus-visible {
  z-index: 2;
  border-color: rgba(240,123,56,.36);
  outline: none;
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(67,38,20,.11), 0 0 0 4px rgba(240,123,56,.05);
}
.p7-product-card[data-product='support'] { --p7-card-accent: #ed8b4a; }
.p7-product-card[data-product='security'] { --p7-card-accent: #df6939; }
.p7-product-card[data-product='monitoring'] { --p7-card-accent: #eaa13e; }
.p7-product-logo {
  grid-area: logo;
  display: grid;
  width: 112px;
  height: 56px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(240,123,56,.20);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(240,123,56,.10), inset 0 1px 0 #fff;
}
.p7-product-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p7-product-copy { display: contents; }
.p7-product-title {
  grid-area: title;
  align-self: end;
  color: var(--p7-ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -.018em;
}
.p7-product-desc {
  grid-area: desc;
  align-self: start;
  margin: 0;
  color: var(--p7-muted);
  font-size: 11.5px;
  line-height: 1.45;
}
.p7-product-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-self: start;
  margin-top: 3px;
}
.p7-product-tags span {
  padding: 4px 7px;
  border: 1px solid rgba(105,70,47,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #7b6557;
  font-size: 9px;
  font-weight: 720;
  line-height: 1.15;
}
.p7-product-arrow {
  grid-area: arrow;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(99,68,47,.11);
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  color: var(--p7-card-accent);
  font-size: 17px;
  font-style: normal;
  transition: transform .28s ease, background .28s ease, color .28s ease;
}
.p7-product-card:hover .p7-product-arrow,
.p7-product-card:focus-visible .p7-product-arrow {
  background: var(--p7-card-accent);
  color: #fff;
  transform: translateX(3px);
}

.p7-quick-panel {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(255,166,104,.22), transparent 38%),
    linear-gradient(145deg, #142433, #1d3448 68%, #29465d);
  color: #fff;
}
.p7-quick-panel::before,
.p7-quick-panel::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.p7-quick-panel::before { top: -110px; right: -100px; width: 250px; height: 250px; }
.p7-quick-panel::after { right: -42px; bottom: -115px; width: 205px; height: 205px; }
.p7-quick-panel > * { position: relative; z-index: 1; }
.p7-quick-kicker { color: #ffb37d; }
.p7-quick-panel h3 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.p7-quick-panel > p {
  margin: 0 0 16px;
  color: rgba(255,255,255,.68);
  font-size: 11.5px;
  line-height: 1.55;
}
.p7-quick-links { display: grid; gap: 7px; }
.p7-quick-links a {
  display: flex !important;
  min-height: 41px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px !important;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: rgba(255,255,255,.055);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.p7-quick-links a span { color: #ffb37d; font-size: 15px; }
.p7-quick-links a:hover,
.p7-quick-links a:focus-visible {
  border-color: rgba(255,179,125,.48);
  outline: none;
  background: rgba(255,255,255,.105);
  transform: translateX(3px);
}
.p7-contact-cta {
  display: flex !important;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 13px !important;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 11px;
  background: #fff;
  color: #953d13 !important;
  font-size: 11px;
  font-weight: 820;
  text-decoration: none !important;
  box-shadow: 0 12px 27px rgba(0,0,0,.15);
}
.p7-contact-cta:hover,
.p7-contact-cta:focus-visible { background: #fff5ed; outline: none; }

@media (max-width: 1120px) and (min-width: 993px) {
  .nav .p7-product-mega { width: calc(100vw - 26px) !important; }
  .p7-products-grid { gap: 10px; padding: 16px; }
  .p7-product-card { min-height: 128px; padding: 16px 14px !important; }
  .p7-product-tags span:nth-child(2) { display: none; }
}

@media (max-width: 992px) {
  .nav .p7-product-mega {
    position: static !important;
    display: none;
    width: 100% !important;
    max-width: none !important;
    margin: 3px 0 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(108,74,50,.13) !important;
    border-radius: 16px !important;
    background: #fffaf6 !important;
    box-shadow: 0 13px 32px rgba(50,31,19,.08) !important;
    transform: none !important;
  }
  .nav .p7-product-mega.is-open { display: block; }
  .p7-mega-top { gap: 10px; padding: 14px; }
  .p7-mega-heading strong { font-size: 14px; line-height: 1.3; }
  .p7-mega-top-cta { min-height: 36px; flex: 0 0 auto; padding: 7px 10px !important; font-size: 10px; }
  .p7-mega-body { grid-template-columns: 1fr; }
  .p7-products-grid { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .p7-product-card {
    grid-template-columns: 82px minmax(0, 1fr) 27px;
    min-height: 80px;
    column-gap: 11px;
    row-gap: 2px;
    padding: 11px !important;
    border-radius: 13px;
  }
  .p7-product-card::before { top: 11px; bottom: 11px; width: 2px; }
  .p7-product-logo { width: 82px; height: 44px; padding: 6px; border-radius: 12px; }
  .p7-product-title { font-size: 13px; }
  .p7-product-desc { font-size: 10px; line-height: 1.35; }
  .p7-product-tags { display: none; }
  .p7-product-arrow { width: 27px; height: 27px; font-size: 15px; }
  .p7-quick-panel { padding: 15px 14px; }
  .p7-quick-panel h3 { margin: 6px 0; font-size: 18px; }
  .p7-quick-panel > p { margin-bottom: 11px; font-size: 10px; }
  .p7-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .p7-quick-links a { min-height: 38px; padding: 8px 9px !important; font-size: 10px; }
  .p7-contact-cta { min-height: 40px; margin-top: 10px; }
}

@media (max-width: 420px) {
  .p7-mega-kicker { display: none; }
  .p7-mega-top { align-items: flex-start; }
  .p7-mega-heading strong { max-width: 160px; }
  .p7-quick-links { grid-template-columns: 1fr; }
  .p7-product-desc { max-width: 210px; }
  .p7-product-card { grid-template-columns: 72px minmax(0, 1fr) 25px; column-gap: 9px; }
  .p7-product-logo { width: 72px; height: 42px; }
}

@media (hover: none) and (pointer: coarse) {
  .p7-product-card:hover,
  .p7-mega-top-cta:hover,
  .p7-quick-links a:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .p7-product-card,
  .p7-product-arrow,
  .p7-mega-top-cta,
  .p7-quick-links a { transition: none !important; }
}
