/* form cotrol stytling */
 .form-control{
     background-color: #f5fbff;
    border-radius: 10px !important;
    font-size: 13px;
 }
.device-card {
  background: #FFF;
  border: 1.5px solid #c1c1c1;
  border-radius: 16px;
  padding: 18px 14px 16px;
  /*text-align: center;
  align-items: center;*/
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /*height: 300px;*/
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.card-img-wrap {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 10px;
  cursor: pointer;
}
.card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.card-img-wrap img:hover{ transform: scale(1.07) translateY(-3px);}

.card-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  border-bottom: solid 0.5px #ccc;
  padding-bottom: 5px;
}


.price-main {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}
.price-old {
  font-size: 1rem;
  color: #898686;
  text-decoration: line-through;
}



.dmodal .modal-dialog { max-width: 900px; }
.dmodal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}
.dmodal .modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.dmodal .modal-title {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* -- Split body grid -- */
.dmodal-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .dmodal-body-grid { grid-template-columns: 1fr; }
  .gallery-side { border-right: none !important; border-bottom: 1px solid var(--border); }
}


.modal-content { border-radius: 18px; border: none; overflow: hidden; }
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
}
.modal-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.modal-body { padding: 20px; }
.modal-inner { padding: 24px 28px 28px; }


.modal-sub-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.modal-sub-tab {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.modal-sub-tab.active { color: #1e8fd0; border-bottom-color: var(--red); }
.modal-tab-pane { display: none; }
.modal-tab-pane.active { display: block; }


.modal-gallery { display: flex; gap: 16px; align-items: flex-start; }
.modal-thumbs { display: flex; flex-direction: column; gap: 8px; }
.modal-thumb {
  width: 58px; height: 68px;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: #f9f9f9;
  transition: border-color 0.18s;
}
.modal-thumb.active { border-color: var(--red); }
.modal-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.modal-main-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9fb;
  border-radius: 14px;
  min-height: 240px;
  padding: 16px;
}
 
.modal-main-img { max-height: 230px; max-width: 100%; object-fit: contain; transition: opacity 0.2s; }

.modal-product-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.modal-brand-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.modal-price-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.modal-price-main {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--red);
}
.modal-price-old { font-size: 1rem; color: #bbb; text-decoration: line-through; }
.modal-desc-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.modal-spec-table tr { border-bottom: 1px solid var(--border); }
.modal-spec-table tr:last-child { border-bottom: none; }
.modal-spec-table td {
  padding: 9px 0;
  font-size: 0.84rem;
  vertical-align: top;
}
.modal-spec-table td:first-child { font-weight: 600; color: var(--text); width: 42%; }
.modal-spec-table td:last-child { color: var(--muted); }

.btn-select-modal {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 6px 20px rgba(232,64,28,0.35);
  margin-top: 8px;
}
.btn-select-modal:disabled {
  background: #d1d5db;
  box-shadow: none;
  cursor: not-allowed;
  color: #9ca3af;
}

.locked-notice {
  display: none;
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 8px;
  text-align: center;
}
.locked-notice.show { display: block; }


.coming-soon-wrap {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.coming-soon-wrap i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 16px;
}
.coming-soon-wrap h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}
.coming-soon-wrap p { font-size: 0.88rem; }

.gallery-side {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}
.main-img-wrap {
  background: #f8f9fb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  overflow: hidden;
}
.main-img-wrap img {
  max-height: 250px;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.18s ease;
}
.main-img-wrap img.fading { opacity: 0; }


.thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumbs-row::-webkit-scrollbar { height: 4px; }
.thumbs-row::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

.thumb {
  width: 62px;
  min-width: 62px;
  height: 70px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  transition: border-color 0.15s;
}
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb.active { border-color: #1E8FD0; border-width: 2px; }
.thumb:hover:not(.active) { border-color: #aaa; }

/* -- Info side -- */
.info-side {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 520px;
  background: #fff;
}
.modal-brand-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.modal-product-title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 10px;
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.modal-price-main {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #1E8FD0;
}
.modal-price-old {
  font-size: 1rem;
  color: #bbb;
  text-decoration: line-through;
}
.free-note-inline {
  display: inline-block;
  font-size: 0.72rem;
  color: #1a9952;
  background: #e6faf1;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  font-weight: 500;
}

/* -- Sub tabs inside info pane -- */
.info-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.info-tab {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}
.info-tab.active { color: #1E8FD0; border-bottom-color: #1E8FD0; }
.info-tab-pane { display: none; }
.info-tab-pane.active { display: block; }

.modal-desc-text {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}
.modal-spec-table { width: 100%; border-collapse: collapse; }
.modal-spec-table tr { border-bottom: 1px solid var(--border); }
.modal-spec-table tr:last-child { border-bottom: none; }
.modal-spec-table td {
  padding: 8px 0;
  font-size: 0.83rem;
  vertical-align: top;
}
.modal-spec-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 44%;
}
.modal-spec-table td:last-child { color: var(--muted); }

/* -- Footer -- */
.dmodal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}
.btn-select-device {
  width: 50%;
  padding: 14px;
  border-radius: 12px;
  background: #1E8FD0;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  margin:0 auto;
  transition: opacity 0.2s;
}
.btn-select-device:hover { opacity: 0.88; }
.btn-select-device:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 1;
}
.delivery-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.delivery-icon {
  width: 36px;
  height: 36px;
  background: #e0f0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.delivery-text { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.delivery-text strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
}
.locked-notice {
  display: none;
  color: #ef4444;
  font-size: 0.78rem;
  text-align: center;
}
.locked-notice.show { display: block; }