/* ==========================================================================
   INSTASHIELD - PRODUCT PAGE STYLESHEET (LIGHT THEME)
   css/product.css
   ========================================================================== */

/* PRODUCT HERO (DARK THEME - IDENTICAL TO HOME & ABOUT) */
.product-hero {
  position: relative;
  min-height: 440px;
  padding: 180px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(49, 199, 232, 0.18), transparent 70%),
              radial-gradient(ellipse 50% 50% at 85% 65%, rgba(8, 118, 185, 0.15), transparent 60%),
              linear-gradient(135deg, var(--midnight) 0%, var(--navy) 50%, var(--midnight) 100%);
  color: var(--white);
  overflow: hidden;
}

.product-hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.product-hero .eyebrow {
  color: var(--cyan);
}

.product-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: #ffffff;
  margin: 10px 0 16px;
}

.product-hero p.sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #cfe3ee;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* PRODUCTS CATALOG GRID SECTION (LIGHT THEME LIKE .how & .corporate-sec) */
.products-listing {
  position: relative;
  padding: 90px 0 120px;
  background: linear-gradient(180deg, var(--ice) 0%, #ffffff 100%);
  color: var(--navy);
  margin-top: -40px;
  border-radius: 54px 54px 0 0;
  z-index: 3;
}

/* CATEGORY FILTER TABS NAV */
.product-category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 118, 185, 0.16);
  padding: 8px 12px;
  border-radius: 50px;
  box-shadow: 0 12px 32px rgba(6, 43, 73, 0.06), 0 2px 8px rgba(49, 199, 232, 0.08);
  max-width: 840px;
  margin: 0 auto 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cat-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: #3b5870;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  user-select: none;
}

.cat-tab-btn .cat-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.cat-tab-btn .cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(8, 118, 185, 0.08);
  color: var(--blue);
  transition: all 0.25s ease;
}

.cat-tab-btn:hover {
  color: var(--navy);
  background: rgba(8, 118, 185, 0.06);
}

.cat-tab-btn.active {
  background: linear-gradient(135deg, var(--navy) 0%, #08436e 100%);
  color: #ffffff;
  border-color: rgba(49, 199, 232, 0.3);
  box-shadow: 0 8px 22px rgba(6, 43, 73, 0.22), 0 0 16px rgba(49, 199, 232, 0.18);
}

.cat-tab-btn.active .cat-icon {
  stroke: var(--cyan);
  transform: scale(1.1);
}

.cat-tab-btn.active .cat-count {
  background: rgba(49, 199, 232, 0.25);
  color: var(--cyan);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* MINIMAL PRODUCT CARD (CATEGORY TAG, IMAGE, NAME, PRICE) */
.product-card {
  background: #ffffff;
  border: 1px solid rgba(8, 118, 185, 0.16);
  border-radius: 24px;
  padding: 24px 20px 28px;
  box-shadow: 0 12px 32px rgba(6, 43, 73, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card.cat-hidden {
  display: none !important;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 20px 45px rgba(8, 118, 185, 0.16), 0 0 20px rgba(49, 199, 232, 0.2);
}

/* CARD CATEGORY TAG */
.p-card-tag {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

.p-card-tag.tag-residential {
  background: rgba(8, 118, 185, 0.08);
  color: var(--blue);
  border: 1px solid rgba(8, 118, 185, 0.18);
}

.p-card-tag.tag-commercial {
  background: rgba(6, 43, 73, 0.08);
  color: var(--navy);
  border: 1px solid rgba(6, 43, 73, 0.2);
}

.p-card-tag.tag-personal {
  background: rgba(75, 139, 23, 0.1);
  color: #2e6d11;
  border: 1px solid rgba(75, 139, 23, 0.22);
}

/* PRODUCT IMAGE WRAPPER */
.p-card-img {
  width: 100%;
  height: 220px;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, rgba(234, 247, 252, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  margin-bottom: 20px;
  border-radius: 18px;
}

/* 3D PRODUCT DEVICE VISUAL */
.p-device-thumb {
  position: relative;
  width: 100px;
  height: 175px;
  border-radius: 10px 10px 14px 14px / 6px 6px 16px 16px;
  background: linear-gradient(90deg, #818a91 0%, #eef2f5 20%, #ffffff 35%, #a1abb3 60%, #cfd5da 82%, #757d84 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 20px 30px rgba(6, 43, 73, 0.18);
  transition: transform 0.3s ease;
}

.product-card:hover .p-device-thumb {
  transform: scale(1.05);
}

.p-device-thumb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  border-radius: 50% / 100%;
  background: linear-gradient(#f7fafc, #b4bcc2);
}

.p-device-thumb::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6%;
  right: 6%;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(5px);
  box-shadow: 0 0 24px 6px rgba(49, 199, 232, 0.85);
}

/* BLACK DEVICE VARIANT */
.p-device-thumb.dark-finish {
  background: linear-gradient(90deg, #18222a 0%, #3e4d58 20%, #5a6d7c 35%, #25333f 60%, #3a4b57 82%, #141c22 100%);
}

.p-device-thumb.dark-finish::before {
  background: linear-gradient(#4d5f6d, #25333f);
}

.p-device-thumb.dark-finish::after {
  background: #31c7e8;
  box-shadow: 0 0 24px 6px rgba(49, 199, 232, 0.9);
}

/* PRO FINISH (TITANIUM DUAL EMITTER ACCENT) */
.p-device-thumb.pro-finish {
  background: linear-gradient(90deg, #5c6a75 0%, #aab7c0 20%, #d8e1e8 35%, #76848e 60%, #9cb0bc 82%, #4d5b65 100%);
  transform: scale(1.08);
}

.p-device-thumb.pro-finish::before {
  background: linear-gradient(#f0f5f8, #8c9ba5);
}

.p-device-thumb.pro-finish::after {
  background: #0876b9;
  box-shadow: 0 0 28px 8px rgba(8, 118, 185, 0.95);
}

/* ENTERPRISE FINISH (GRAPHITE DUAL TONE) */
.p-device-thumb.enterprise-finish {
  background: linear-gradient(90deg, #2a333d 0%, #566472 20%, #8292a0 35%, #3d4a57 60%, #576776 82%, #222932 100%);
  transform: scale(1.14);
}

.p-device-thumb.enterprise-finish::before {
  background: linear-gradient(#6d7e8e, #36424e);
}

.p-device-thumb.enterprise-finish::after {
  background: #31c7e8;
  box-shadow: 0 0 32px 10px rgba(49, 199, 232, 0.95), 0 0 14px rgba(139, 214, 74, 0.6);
}

/* COMPACT FINISH (PEARL COMPACT) */
.p-device-thumb.compact-finish {
  transform: scale(0.85);
  background: linear-gradient(90deg, #9ca6ad 0%, #f4f7f9 22%, #ffffff 38%, #b9c3ca 62%, #dce3e7 82%, #8e979d 100%);
}

/* TRAVEL FINISH (SLIM FORM FACTOR) */
.p-device-thumb.travel-finish {
  width: 78px;
  height: 145px;
  border-radius: 8px 8px 12px 12px / 5px 5px 14px 14px;
  background: linear-gradient(90deg, #7a848c 0%, #dce2e6 20%, #ffffff 35%, #9aa3ab 60%, #bcc4ca 82%, #6f7880 100%);
}

.p-device-thumb.travel-finish::after {
  height: 6px;
  box-shadow: 0 0 20px 5px rgba(49, 199, 232, 0.85);
}

/* PRODUCT NAME */
.p-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.product-card:hover .p-card-name {
  color: var(--blue);
}

/* PRODUCT PRICE */
.p-card-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.p-card-price .orig {
  font-size: 14px;
  color: #8da4b5;
  text-decoration: line-through;
  font-weight: 500;
}

/* DYNAMIC PRODUCT CARD STYLING */
.p-card-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.p-card-top-row .p-card-tag {
  position: static;
}

.p-card-real-img {
  max-height: 180px;
  max-width: 85%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(6, 43, 73, 0.16));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .p-card-real-img {
  transform: scale(1.06);
}

.p-discount-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(139, 214, 74, 0.16);
  color: #2e6d11;
  border: 1px solid rgba(139, 214, 74, 0.4);
}

.p-card-sub {
  font-size: 13.5px;
  color: #6b899e;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-card-actions {
  margin-top: 18px;
  width: 100%;
}

.p-view-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(8, 118, 185, 0.08);
  color: var(--navy);
  border: 1px solid rgba(8, 118, 185, 0.22);
  transition: all 0.25s ease;
  text-decoration: none;
}

.product-card:hover .p-view-btn {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(8, 118, 185, 0.28);
}

.products-empty-box {
  max-width: 620px;
  margin: 30px auto 0;
  padding: 56px 36px;
  text-align: center;
  background: #ffffff;
  border: 2px dashed rgba(8, 118, 185, 0.25);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(6, 43, 73, 0.06);
}

.products-empty-box .empty-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: rgba(8, 118, 185, 0.08);
  border: 1px solid rgba(8, 118, 185, 0.22);
  color: var(--blue);
}

.products-empty-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.products-empty-box p {
  font-size: 15px;
  color: #55758c;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   PRODUCT DETAIL MODAL / POPUP (CLEAN LIGHT/HYBRID THEME)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 21, 34, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(8, 118, 185, 0.2);
  border-radius: 32px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(6, 43, 73, 0.3);
  position: relative;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--navy);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 118, 185, 0.08);
  border: 1px solid rgba(8, 118, 185, 0.2);
  color: var(--navy);
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

/* MODAL PREVIEW BOX */
.modal-preview-box {
  background: linear-gradient(180deg, var(--ice), #ffffff);
  border: 1px solid rgba(8, 118, 185, 0.18);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-device-big {
  position: relative;
  width: 130px;
  height: 235px;
  border-radius: 12px 12px 18px 18px / 8px 8px 20px 20px;
  background: linear-gradient(90deg, #7b8389 0%, #e4e8eb 20%, #fbfdfd 35%, #9da5ad 60%, #c4cbd0 82%, #686f75 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 24px 35px rgba(6, 43, 73, 0.2);
  margin-bottom: 24px;
}

.modal-device-big::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  border-radius: 50% / 100%;
  background: linear-gradient(#f7fafc, #b0b8be);
}

.modal-device-big::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6%;
  right: 6%;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  filter: blur(6px);
  box-shadow: 0 0 30px 8px rgba(49, 199, 232, 0.85);
}

/* MODAL DEVICE FINISHES */
.modal-device-big.dark-finish {
  background: linear-gradient(90deg, #18222a 0%, #3e4d58 20%, #5a6d7c 35%, #25333f 60%, #3a4b57 82%, #141c22 100%);
}

.modal-device-big.dark-finish::before {
  background: linear-gradient(#4d5f6d, #25333f);
}

.modal-device-big.pro-finish {
  background: linear-gradient(90deg, #5c6a75 0%, #aab7c0 20%, #d8e1e8 35%, #76848e 60%, #9cb0bc 82%, #4d5b65 100%);
  transform: scale(1.06);
}

.modal-device-big.pro-finish::after {
  background: #0876b9;
  box-shadow: 0 0 32px 10px rgba(8, 118, 185, 0.95);
}

.modal-device-big.enterprise-finish {
  background: linear-gradient(90deg, #2a333d 0%, #566472 20%, #8292a0 35%, #3d4a57 60%, #576776 82%, #222932 100%);
  transform: scale(1.12);
}

.modal-device-big.enterprise-finish::before {
  background: linear-gradient(#6d7e8e, #36424e);
}

.modal-device-big.enterprise-finish::after {
  background: #31c7e8;
  box-shadow: 0 0 38px 12px rgba(49, 199, 232, 0.95);
}

.modal-device-big.compact-finish {
  transform: scale(0.88);
}

.modal-device-big.travel-finish {
  width: 105px;
  height: 200px;
  transform: scale(0.92);
}

.modal-badges-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.m-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(8, 118, 185, 0.08);
  border: 1px solid rgba(8, 118, 185, 0.2);
  color: var(--blue);
}

/* MODAL INFO BOX */
.modal-info-box h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.modal-tagline {
  font-size: 14.5px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}

.modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(8, 118, 185, 0.15);
}

.modal-price-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
}

.modal-price-orig {
  font-size: 18px;
  color: #8fa7b8;
  text-decoration: line-through;
}

.modal-price-tag {
  background: rgba(139, 214, 74, 0.2);
  color: #4b8b17;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 10px;
}

/* MODAL TABS */
.modal-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(8, 118, 185, 0.12);
  padding-bottom: 8px;
}

.m-tab-btn {
  background: none;
  border: 0;
  color: #648197;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.m-tab-btn:hover {
  color: var(--navy);
}

.m-tab-btn.active {
  background: rgba(8, 118, 185, 0.1);
  color: var(--blue);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane p {
  color: #42637b;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* SPECS TABLE (FROM PDF PAGE 6) */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 20px;
}

.specs-table tr {
  border-bottom: 1px solid rgba(8, 118, 185, 0.1);
}

.specs-table td {
  padding: 9px 4px;
}

.specs-table td.label {
  color: #5d7c92;
  width: 42%;
}

.specs-table td.val {
  color: var(--navy);
  font-weight: 700;
  text-align: right;
}

/* HIGHLIGHTS LIST */
.modal-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.modal-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #2b495f;
}

.modal-highlights li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* MODAL ACTION BUTTONS */
.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 14px;
  padding: 13px 20px;
}

/* RESPONSIVE DESIGN FOR PRODUCT PAGE */
@media (max-width: 900px) {
  .product-hero {
    padding: 140px 0 60px;
  }

  .products-listing {
    padding: 70px 0 90px;
    margin-top: -30px;
    border-radius: 40px 40px 0 0;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .modal-body {
    padding: 28px 20px;
  }

  .modal-dialog {
    width: 94%;
    margin: 16px auto;
  }

  .product-category-nav {
    border-radius: 36px;
    padding: 6px;
    gap: 8px;
    margin-bottom: 36px;
  }

  .cat-tab-btn {
    padding: 9px 16px;
    font-size: 13.5px;
  }
}

@media (max-width: 640px) {
  .product-category-nav {
    border-radius: 24px;
    gap: 6px;
    padding: 6px 8px;
  }

  .cat-tab-btn {
    padding: 8px 12px;
    font-size: 12.5px;
    gap: 6px;
  }

  .cat-tab-btn .cat-icon {
    width: 15px;
    height: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }

  .p-card-img {
    height: 180px;
  }

  .p-device-thumb {
    width: 85px;
    height: 145px;
  }

  .p-card-name {
    font-size: 16px;
  }

  .p-card-price {
    font-size: 18px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .modal-tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 24px 18px;
  }

  .modal-price-val {
    font-size: 26px;
  }
}

