/* ============================================================
   PRODUCT DETAIL V2 - Grid Gallery + Lightbox
============================================================ */

/* Hero Section */
.product-hero-v2 {
  padding: 4rem 0;
}

.product-hero-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .product-hero-v2__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- Gallery Grid ---- */
.product-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-main-large {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card2) 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  group: "gallery";
}

.gallery-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-main-large:hover .gallery-img-main {
  transform: scale(1.05);
}

.gallery-main-large:hover .gallery-overlay {
  opacity: 1;
}

.gallery-main__status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--status-color, #05F2DB);
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  gap: 1rem;
  color: white;
  font-size: 0.9rem;
}

.gallery-overlay svg {
  width: 40px;
  height: 40px;
}

/* Gallery Grid Thumbnails */
.gallery-grid-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid-thumbnails {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
  }
}

.gallery-grid-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 12px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid-item:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.gallery-grid-item:hover img {
  transform: scale(1.1);
}

.gallery-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 242, 219, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .gallery-grid-overlay {
  opacity: 1;
}

.gallery-grid-overlay svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

/* ---- Product Info ---- */
.product-info-v2 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-badge {
  display: inline-block;
  background: rgba(5, 242, 219, 0.15);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.product-title-main {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
}

@media (max-width: 768px) {
  .product-title-main {
    font-size: 1.75rem;
  }
}

/* Price Block */
.product-price-block {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  padding: 1.5rem;
  background: rgba(5, 242, 219, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.price-main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

/* Description */
.product-short-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Features Quick */
.product-features-quick {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-features-quick h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

.product-features-quick ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-features-quick li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-features-quick svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* CTA Buttons */
.product-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .product-cta-buttons {
    grid-template-columns: 1fr;
  }
}

.btn {
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #025a8e 100%);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 242, 219, 0.3);
}

.btn--secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn--secondary:hover {
  background: rgba(5, 242, 219, 0.1);
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn--xl {
  padding: 1.3rem 2.5rem;
  width: 100%;
  font-size: 1rem;
}

/* Trust Badges */
.product-trust-badges-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   SPECS CARDS SECTION
============================================================ */

.specs-cards-section {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--white);
}

.specs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.spec-card-v2 {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.spec-card-v2:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.spec-card-v2 h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 700;
}

.spec-card-v2 p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   DETAILS TABS SECTION
============================================================ */

.product-details-section {
  padding: 4rem 0;
}

.details-tabs {
  max-width: 100%;
}

.tabs-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.tab-button {
  padding: 1rem 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.description-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.description-content h2,
.description-content h3 {
  color: var(--white);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.description-content p {
  margin: 1rem 0;
}

.specs-table-detail {
  width: 100%;
  border-collapse: collapse;
}

.specs-table-detail tr {
  border-bottom: 1px solid var(--border);
}

.specs-table-detail tr:last-child {
  border: none;
}

.spec-key {
  padding: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  width: 35%;
  text-align: left;
}

.spec-value {
  padding: 1rem;
  color: var(--text);
  text-align: left;
}

/* ============================================================
   FORM SECTION
============================================================ */

.form-section-dark {
  padding: 4rem 0;
  background: var(--bg-deep);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.5rem 0;
}

.form-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.form-request-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.form-field,
.form-field-full {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(5, 242, 219, 0.2);
  background: rgba(5, 242, 219, 0.02);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent);
}

.form-check label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check a {
  color: var(--accent);
  text-decoration: underline;
}

.form-product-badge {
  padding: 1rem;
  background: rgba(5, 242, 219, 0.1);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.form-product-badge strong {
  color: var(--accent);
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ============================================================
   LIGHTBOX MODAL
============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  position: relative;
  width: 95%;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: slideIn 0.3s ease;
  padding: 0;
}

@keyframes slideIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(5, 242, 219, 0.2);
  border: 2px solid rgba(5, 242, 219, 0.6);
  color: var(--accent, #05F2DB);
  cursor: pointer;
  z-index: 10000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(5, 242, 219, 0.2);
}

.lightbox-close:hover {
  background: rgba(5, 242, 219, 0.4);
  box-shadow: 0 8px 20px rgba(5, 242, 219, 0.5);
  transform: scale(1.1);
}

.lightbox-close:active {
  transform: scale(0.95);
}

#lightbox-image {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(5, 242, 219, 0.3);
  border: 2px solid rgba(5, 242, 219, 0.8);
  color: var(--accent, #05F2DB);
  font-size: 3rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 16px rgba(5, 242, 219, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(5, 242, 219, 0.6);
  box-shadow: 0 8px 24px rgba(5, 242, 219, 0.6);
  transform: scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {
  .product-hero-v2 {
    padding: 2rem 0;
  }

  .product-title-main {
    font-size: 1.5rem;
  }

  .specs-cards-grid {
    grid-template-columns: 1fr;
  }

  .product-trust-badges-v2 {
    grid-template-columns: 1fr;
  }

  .lightbox-container {
    width: 95%;
    max-width: 600px;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }
}