/* ============================================================
   EAGLE EYE — Shared UI (inner pages + global buttons)
   ============================================================ */

.ee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  font-family: inherit;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.ee-btn--fill {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46,63,232,.22);
}
.ee-btn--fill:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(46,63,232,.3);
  transform: translateY(-2px);
}
.ee-btn--line {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-gray-300);
}
.ee-btn--line:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.flash-wrap { padding-top: 12px; }

.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--color-gray-200);
  background: #fff;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -.02em;
}
.page-hero p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}
.page-hero--center { text-align: center; }
.page-hero--center p { max-width: 520px; margin-inline: auto; }

.page-section { padding: 48px 0 64px; }

.page-card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.page-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.page-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.page-sidebar-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.page-sidebar { position: sticky; top: calc(var(--header-total) + 16px); }
.page-sidebar h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-gray-200);
}
.page-sidebar ul { list-style: none; }
.page-sidebar a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all .15s;
}
.page-sidebar a:hover,
.page-sidebar a.is-active {
  color: var(--color-primary);
  background: rgba(46,63,232,.08);
}

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.page-form input,
.page-form textarea,
.page-form select,
.page-toolbar select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 14px;
}
.page-form input:focus,
.page-form textarea:focus,
.page-form select:focus {
  outline: none;
  border-color: rgba(46,63,232,.4);
}
.page-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}
.page-form .form-group { margin-bottom: 16px; }
.page-empty { text-align: center; padding: 64px 24px; color: var(--color-text-light); }

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.page-breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--color-primary); }

/* Shop product grid (shared with home) */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.prod {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}
.prod:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod__img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 20px;
  background: var(--color-gray-50);
  text-decoration: none;
}
.prod__img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.prod__sale {
  position: absolute; top: 10px; inset-inline-start: 10px;
  padding: 3px 8px; font-size: 10px; font-weight: 700;
  color: #fff; background: var(--color-error); border-radius: 4px;
}
.prod__body { padding: 16px; flex: 1; display: flex; flex-direction: column; text-align: center; }
.prod__name {
  font-size: 14px; font-weight: 600; color: var(--color-text-primary);
  text-decoration: none; line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod__name:hover { color: var(--color-primary); }
.prod__price { font-size: 17px; font-weight: 700; color: var(--color-primary); margin-bottom: 12px; }
.prod__price s { display: block; font-size: 12px; font-weight: 400; color: var(--color-text-light); }
.prod__cart {
  margin-top: auto; width: 100%; padding: 9px;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--color-primary); background: transparent;
  border: 1px solid rgba(0,216,224,.35); border-radius: var(--radius-sm); cursor: pointer;
}
.prod__cart:hover { background: var(--color-primary); color: #fff; }

.blog-card { display: block; text-decoration: none; padding: 0; overflow: hidden; }
.blog-card__image { aspect-ratio: 16/10; background: var(--color-gray-100); overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 20px; }
.blog-card__date { font-size: 12px; color: var(--color-text-light); margin-bottom: 8px; }
.blog-card__title { font-size: 16px; font-weight: 600; color: var(--color-text-primary); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 14px 0;
}

.product-breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.product-breadcrumb__list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color .2s ease;
}

.product-breadcrumb__list a:hover { color: var(--color-primary); }

.product-breadcrumb__current {
  color: var(--color-text-light);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-detail { padding-top: 32px; }

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.product-info__brand {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 10px;
}

.product-info__brand:hover { text-decoration: underline; }

.product-info__sku {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: -8px 0 4px;
}

.product-info__sku span {
  font-family: ui-monospace, monospace;
  color: var(--color-text-primary);
}

.product-purchase {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-purchase__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.product-purchase__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.product-purchase__stock--in .product-purchase__dot { background: var(--color-success); }
.product-purchase__stock--in strong { color: var(--color-success); }
.product-purchase__stock--out .product-purchase__dot { background: var(--color-error); }
.product-purchase__stock--out strong { color: var(--color-error); }
.product-purchase__low { color: var(--color-warning); font-size: 13px; }

.product-purchase .product-cart-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.product-purchase .qty-control { height: 48px; }
.product-purchase .qty-btn { width: 44px; height: 48px; font-size: 18px; }
.product-purchase .qty-display { width: 52px; height: 48px; font-size: 16px; }

.product-purchase__cart {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-purchase__wishlist {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all .2s ease;
}

.product-purchase__wishlist:hover {
  color: var(--color-error);
  border-color: var(--color-error);
  background: var(--color-error-light);
}

.product-purchase__whatsapp { width: 100%; }

.product-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.product-perks svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.product-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  max-width: 820px;
}

.product-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-video-card__trigger {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 100%);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product-video-card__trigger:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.product-video-card__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(46, 63, 232, .25);
}

.product-video-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.product-gallery__main-img.is-switching { opacity: .4; transition: opacity .15s ease; }

/* Lightbox (product.js) */
#productLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#productLightbox.is-open { display: flex; }

#productLightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .88);
}

#productLightbox .lightbox-container {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 90vh;
}

#productLightbox .lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

#productLightbox .lightbox-close,
#productLightbox .lightbox-prev,
#productLightbox .lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--color-text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

#productLightbox .lightbox-close { top: -48px; right: 0; }
#productLightbox .lightbox-prev { left: -52px; top: 50%; transform: translateY(-50%); }
#productLightbox .lightbox-next { right: -52px; top: 50%; transform: translateY(-50%); }

/* Video modal (product.js) */
#videoModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

#videoModal.is-open { display: flex; }

#videoModal .video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .9);
}

#videoModal .video-modal-container {
  position: relative;
  z-index: 1;
  width: min(92vw, 860px);
  aspect-ratio: 16 / 9;
}

#videoModal .video-modal-embed,
#videoModal .video-modal-embed iframe,
#videoModal .video-modal-embed video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

#videoModal .video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

/* Brands page */
.brands-page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: 48px 0;
  color: #fff;
  text-align: center;
}
.brands-page-hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.brands-page-hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
}
.brands-page-section { padding: 40px 0 56px; min-height: 40vh; }
.brands-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}
.brand-page-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.brand-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.brand-page-card__media {
  height: 150px;
  padding: 24px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}
.brand-page-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-page-card__body { padding: 18px; text-align: center; }
.brand-page-card__title {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 700;
}
.brand-page-card__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-page-card__link {
  margin-top: 12px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Services Grid & Card */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .page-sidebar-layout { grid-template-columns: 1fr; gap: 20px; }
  .page-sidebar { position: static; }
  .page-grid-2, .page-grid-3 { grid-template-columns: 1fr; }
  .product-detail__grid { grid-template-columns: 1fr; gap: 32px; }
  #productLightbox .lightbox-prev { left: 8px; }
  #productLightbox .lightbox-next { right: 8px; }
}

@media (max-width: 768px) {
  .page-hero { padding: 32px 0 28px; }
  .page-section { padding: 28px 0 40px; }
  .page-card { padding: 16px; }
  .page-grid-2, .page-grid-3 { gap: 14px; }
}

@media (max-width: 640px) {
  .product-purchase .product-cart-row { flex-direction: column; }
  .product-purchase__cart { width: 100%; }
  .product-purchase__wishlist { width: 100%; }
}
