/* ===================================================
   Orient Tech Plugin — Product Card Base Styles
   (Colors, typography & hover states are set via
    Elementor style controls — these are defaults only)
   =================================================== */

.ot-p-card-wrap { display: flex; }

.ot-p-card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  width: 100%;
}

/* ── Card ── */
.ot-p-card {
  max-width: 420px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* ── Image ── */
.ot-p-card__media {
  position: relative;
  background: #f6f7fb;
}
.ot-p-card__media img { width: 100%; display: block; }

/* ── Badge ── */
.ot-p-card__badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ── Body ── */
.ot-p-card__body { padding: 18px 18px 22px; }

/* ── Title ── */
.ot-p-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  transition: color 0.2s ease;
}

/* ── Description ── */
.ot-p-card__desc {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.70);
  transition: color 0.2s ease;
}

/* ── Feature List ── */
.ot-p-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.ot-p-card__list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.85);
  transition: color 0.2s ease;
}
.ot-p-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #B43041;
  font-weight: 900;
  transition: color 0.2s ease;
}

/* ── Dimensions ── */
.ot-p-card__dims {
  background: #f3f5f6;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0 14px;
  transition: background 0.2s ease;
}
.ot-p-card__dimsTitle {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.60);
  margin-bottom: 8px;
  transition: color 0.2s ease;
}
.ot-p-card__dimsRow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  color: rgba(15, 23, 42, 0.75);
  transition: color 0.2s ease;
}
.ot-p-card__dimsRow:not(:last-child) {
  border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}
.ot-p-card__dimsRow b {
  font-weight: 800;
  color: rgba(15, 23, 42, 0.65);
  transition: color 0.2s ease;
}

/* ── Ideal For ── */
.ot-p-card__ideal {
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.70);
  transition: color 0.2s ease;
}
.ot-p-card__ideal b { color: #0f172a; font-weight: 800; }

/* ── Button ── */
.ot-p-card__actions { margin-top: 6px; }
.ot-p-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  border: 2px solid #B43041;
  color: #B43041;
  background: #fff;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


/* ===================================================
   Orient Tech Plugin — Product Detail Widget Styles
   =================================================== */

.otd-wrap {
  max-width: 720px;
  width: 100%;
  background: #f5f5f5;
  padding: 32px 24px;
  font-family: inherit;
  box-sizing: border-box;
  overflow: hidden; /* prevent children from blowing out width */
}

/* Breadcrumb */
.otd-breadcrumb {
  font-size: 14px;
  margin-bottom: 12px;
}
.otd-breadcrumb a,
.otd-breadcrumb span {
  color: #B43041;
  text-decoration: none;
}
.otd-breadcrumb a:hover { text-decoration: underline; }
.otd-breadcrumb .sep { margin: 0 4px; }

/* Stars */
.otd-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.otd-star {
  font-size: 28px;
  line-height: 1;
  transition: color 0.15s;
}
.otd-star.filled { color: #F5A623; }
.otd-star.empty  { color: #ddd; }

/* Title */
.otd-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.2;
}

/* Description */
.otd-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 24px;
}

/* Size section */
.otd-size-section { margin-bottom: 20px; }

.otd-size-label {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

/* ─── Size Card Grid ─── */
.otd-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.otd-size-card {
  flex: 0 0 var(--otd-card-width, 30%);
  max-width: var(--otd-card-width, 30%);
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.otd-size-card:hover {
  border-color: #B43041;
}

.otd-size-card.is-active {
  background: rgba(180,48,65,0.06);
  border-color: #B43041;
}

.otd-size-card.is-active .sc-name {
  color: #B43041;
}

.sc-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 6px 0;
}
.sc-imperial {
  font-size: 13px;
  color: #1f2937;
  line-height: 1.35;
  margin: 0 0 2px 0;
}
.sc-metric {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
  margin: 0;
}

@media (max-width: 1024px) {
  .otd-size-card {
    flex-basis: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 767px) {
  .otd-size-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Spec bar — grid-template-columns is set via inline style (controlled by spec_bar_cols setting) */
.otd-spec-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* fallback; overridden by inline style */
  gap: 0;
  background: #f3f5f6;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}
.sb-item {
  padding: 14px 12px 14px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  min-width: 0; /* prevent overflow */
}
.sb-item:last-child,
.sb-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}
.sb-label {
  display: block;
  color: #9ca3af;
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 2px;
}
.sb-value {
  display: block;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}

/* CTA Button */
.otd-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #B43041;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 24px;
  border-radius: 10px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.otd-cta-btn:hover {
  background: #9b2535;
  color: #ffffff;
}


/* ===================================================
   Orient Tech Plugin — Product Tabs Widget Styles
   =================================================== */

.otabs-wrap {
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}

/* ── Tab Nav ── */
.otabs-nav {
  display: flex;
  align-items: flex-end;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin: 0;
  padding: 0;
  list-style: none;
}

.otabs-nav-item {
  /* Full reset — override any theme button styles */
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: inline-block;
  padding: 0 20px 16px 0;
  margin: 0;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  outline: none;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.otabs-nav-item:hover {
  color: #374151;
  background: transparent !important;
  background-color: transparent !important;
}

.otabs-nav-item.is-active {
  color: #0f172a;
  background: transparent !important;
  background-color: transparent !important;
}

/* Active underline indicator */
.otabs-nav-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 20px;
  height: 2px;
  background: #B43041;
  border-radius: 2px 2px 0 0;
}

/* ── Tab Body ── */
.otabs-body { padding-top: 28px; }

/* ── Tab panels ── */
.otabs-panel {
  display: none;
}
.otabs-panel.is-active {
  display: block;
  animation: otabs-fade-in 0.2s ease;
}

@keyframes otabs-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────
   SPEC ROWS
───────────────────────────────── */
.otabs-spec-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-size: 14px;
  color: #374151;
  font-weight: 400;
  flex: 0 0 40%;
}

.spec-value {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  text-align: right;
  flex: 1;
}

/* ─────────────────────────────────
   DIMENSION TABLE
───────────────────────────────── */
.otabs-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.otabs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.otabs-table thead th {
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  font-size: 13px;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.otabs-table tbody td {
  padding: 16px 20px;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.otabs-table tbody tr:last-child td {
  border-bottom: none;
}

.otabs-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}

/* ─────────────────────────────────
   APPLICATION BOXES
───────────────────────────────── */
.otabs-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.otabs-app-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.ab-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.ab-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ab-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.ab-item:last-child { margin-bottom: 0; }

.ab-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #6b7280;
  font-weight: 700;
}
