/* AccMedia product detail — layout glue for Datamoll bundle */
.pd-page {
  --primary: #8cff3f;
  --primary1: #16a34a;
  padding-bottom: 48px;
}

.pd-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Product Type — CSV header labels */
.pd-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
}
.pd-type__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.pd-type__label i {
  color: #16a34a;
  font-size: 11px;
}
.pd-type__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe3ec;
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
}
.pd-type__chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .pd-type { gap: 6px; margin: 10px 0 12px; }
  .pd-type__label,
  .pd-type__chip { height: 28px; font-size: 12px; }
  .pd-type__label { font-size: 10px; padding: 0 10px; }
}

.pd-page .product-detail-page {
  padding: 20px 0 0;
}

/* When media exists, treat as plans row */
@media (min-width: 993px) {
  .pd-page .product-detail-content.no-plan-selector:has(.pd-media-card) {
    grid-template-rows: auto auto 1fr;
  }
  .pd-page .product-detail-content.no-plan-selector:has(.pd-media-card) .pd-media-card {
    grid-column: 1;
    grid-row: 1;
  }
  .pd-page .product-detail-content.no-plan-selector:has(.pd-media-card) .product-content-tabs {
    grid-column: 1;
    grid-row: 2;
  }
  .pd-page .product-detail-content.no-plan-selector:has(.pd-media-card) .product-reviews-section {
    grid-column: 1;
    grid-row: 3;
  }
  .pd-page .product-detail-content.no-plan-selector:has(.pd-media-card) .product-order-section {
    grid-column: 2;
    grid-row: 1 / 4;
  }
}

/* Tabs (unscoped from .storefront-autoreg) */
.pd-page .product-content-tabs {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 36px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.pd-page .pct-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 16px 0;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.pd-page .pct-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 16px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  border-radius: 10px 10px 0 0;
}

.pd-page .pct-tab:hover {
  color: #1e293b;
  background: #f4f6f9;
}

.pd-page .pct-tab.is-active {
  color: #1e293b;
}

.pd-page .pct-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #16a34a;
}

.pd-page .pct-panels {
  padding: 18px 20px 22px;
}

.pd-page .pct-panel[hidden] {
  display: none !important;
}

.pd-page .pct-body {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
}

.pd-page .pct-body a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
}

.pd-page .pd-meta-bullets {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pd-page .pd-meta-bullets li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-weight: 600;
}

.pd-page .pd-meta-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

/* Order card */
.pd-page .product-order-section {
  position: sticky;
  top: 100px;
}

.pd-page .order-form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 36px rgba(0, 0, 0, 0.07);
  padding: 18px 18px 16px;
}

.pd-page .order-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.pd-page .order-form-heading i {
  color: #16a34a;
  margin-right: 6px;
}

.pd-page .order-from-price {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #94a3b8;
  font-size: 13px;
}

.pd-page .order-from-price b {
  color: #0f172a;
  font-size: 15px;
  margin-left: 4px;
}

.pd-page .order-form-group-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pd-page .order-form-group-quantity label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin: 0;
}

.pd-page .qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}

.pd-page .qty-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
}

.pd-page .qty-btn:hover {
  background: #fff;
  color: #16a34a;
}

.pd-page .qty-btn.is-disabled,
.pd-page .qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.pd-page .qty-input {
  width: 48px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.pd-page .order-discount-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fafbfc;
}

.pd-page .order-discount-block summary {
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-page .order-discount-block summary::-webkit-details-marker {
  display: none;
}

.pd-page .order-discount-body {
  margin-top: 10px;
}

.pd-page .order-discount-body input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.pd-page .order-discount-body small {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.pd-page .order-totals {
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
  margin-bottom: 14px;
}

.pd-page .order-totals-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.pd-page .order-totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.pd-page .order-totals-row.is-sale {
  color: #ef4444;
  font-weight: 700;
}

.pd-page .order-totals-row.is-grand {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  color: #0f172a;
  font-size: 15px;
}

.pd-page .order-totals-row.is-grand strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pd-page .order-warehouse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.pd-page .order-warehouse i {
  color: #16a34a;
}

.pd-page .order-warehouse strong {
  color: #0f172a;
}

.pd-page .order-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #64748b;
  background: #f8fafc;
}

.pd-page .order-balance-row strong {
  color: #0ea5e9;
  font-size: 15px;
}

.pd-page .order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
}

.pd-page .order-btn-primary {
  background: linear-gradient(135deg, #b6f56a 0%, #8cff3f 40%, #65d42c 100%);
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(101, 212, 44, 0.35);
}

.pd-page .order-btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.pd-page .order-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.pd-page .order-pay-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #16a34a;
}

.pd-page .order-pay-hint i {
  margin-right: 4px;
}

@media (max-width: 992px) {
  .pd-page .product-order-section {
    position: static;
  }
}
