/**
 * Tenbit Addon - Quick View Modal Styles
 * Author: Team Tenbit (https://tenbitsol.com)
 * Version: 1.0.0
 */

/* Backdrop Overlay */
.tenbit-quickview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 12, 11, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-quickview-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.tenbit-quickview-modal {
  position: relative;
  background: #ffffff;
  color: #191917;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.tenbit-quickview-backdrop.active .tenbit-quickview-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.tenbit-quickview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: #f4f3ee;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #191917;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.tenbit-quickview-close:hover {
  background: #ff5500;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Left: Media Area */
.tenbit-qv-media {
  background: #f7f6f2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 450px;
}

.tenbit-qv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right: Content Area */
.tenbit-qv-content {
  padding: 36px 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tenbit-qv-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ff5500;
  margin-bottom: 8px;
}

.tenbit-qv-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #191917;
  margin-bottom: 10px;
}

.tenbit-qv-ratings {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tenbit-qv-stars {
  color: #ff5500;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.tenbit-qv-reviews {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #939185;
}

.tenbit-qv-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #191917;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.tenbit-qv-price del {
  color: #939185;
  font-size: 1.3rem;
  text-decoration: line-through;
}

.tenbit-qv-price ins {
  color: #ff5500;
  text-decoration: none;
}

.tenbit-qv-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a4943;
  margin-bottom: 22px;
}

/* Variations Selector */
.tenbit-qv-attributes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.tenbit-qv-attribute-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #191917;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tenbit-qv-attribute-label span {
  color: #ff5500;
}

.tenbit-qv-size-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tenbit-qv-size-pill {
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.tenbit-qv-size-pill:hover,
.tenbit-qv-size-pill.active {
  background: #0d0f0e;
  color: #ffffff;
  border-color: #0d0f0e;
}

.tenbit-qv-color-swatches {
  display: flex;
  gap: 10px;
}

.tenbit-qv-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tenbit-qv-swatch.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #ff5500;
  transform: scale(1.1);
}

/* Add to Cart Group */
.tenbit-qv-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tenbit-qv-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 2px;
  overflow: hidden;
  height: 48px;
}

.tenbit-qv-qty button {
  width: 36px;
  height: 100%;
  background: #f4f3ee;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tenbit-qv-qty input {
  width: 44px;
  height: 100%;
  text-align: center;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.tenbit-qv-add-btn {
  flex: 1;
  height: 48px;
  background: #ff5500;
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-qv-add-btn:hover {
  background: #e04a00;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
  transform: translateY(-1px);
}

.tenbit-qv-view-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #939185;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.tenbit-qv-view-detail:hover {
  color: #ff5500;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .tenbit-quickview-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .tenbit-qv-media {
    min-height: 280px;
    max-height: 320px;
  }
  .tenbit-qv-content {
    padding: 24px;
  }
  .tenbit-qv-title {
    font-size: 1.75rem;
  }
}
