/* Petshop product detail — matches t1-product-detail--jpro / t1-pd-* markup */

.t1-product-detail--jpro {
  background: var(--theme-bg, #f2f2ef);
  padding: 28px 0 72px;
}

.t1-product-detail--jpro .t1-pd-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  box-sizing: border-box;
}

.t1-product-detail--jpro .t1-pd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--theme-muted, #5f6f69);
}

.t1-product-detail--jpro .t1-pd-breadcrumbs a {
  color: var(--theme-text-secondary, #1f3f3a);
  text-decoration: none;
  font-weight: 600;
}

.t1-product-detail--jpro .t1-pd-breadcrumbs a:hover {
  color: var(--theme-primary, #00b72f);
  text-decoration: underline;
}

/* Two-column layout */
.t1-product-detail--jpro .t1-pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.t1-product-detail--jpro .t1-pd-left-col {
  display: block;
  align-self: stretch;
  min-height: 100%;
  min-width: 0;
}

.t1-product-detail--jpro .t1-pd-gallery {
  position: sticky;
  top: 24px;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #d9d9d4);
  box-shadow: 0 4px 24px rgba(15, 47, 44, 0.07);
}

.t1-product-detail--jpro .t1-pd-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: var(--theme-primary, #00b72f);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.t1-product-detail--jpro .t1-pd-main-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f4f3, #e2e5e2);
  overflow: hidden;
}

.t1-product-detail--jpro .t1-pd-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t1-product-detail--jpro .t1-pd-main-img-wrap img.t1-pd-placeholder {
  object-fit: contain;
  padding: 18%;
  box-sizing: border-box;
}

.t1-product-detail--jpro .t1-pd-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--theme-surface, #fff);
  border-top: 1px solid var(--theme-border, #d9d9d4);
}

.t1-product-detail--jpro .t1-pd-thumbs:empty {
  display: none;
}

.t1-product-detail--jpro .t1-pd-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid var(--theme-border, #d9d9d4);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--theme-bg, #f2f2ef);
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.18s;
}

.t1-product-detail--jpro .t1-pd-thumb:hover,
.t1-product-detail--jpro .t1-pd-thumb.is-active {
  border-color: var(--theme-primary, #00b72f);
}

.t1-product-detail--jpro .t1-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accordions under the grid */
.t1-product-detail--jpro .t1-pd-accordions {
  position: static;
  margin-top: 28px;
  width: calc((100% - 28px) / 2);
  max-width: 100%;
  border-top: 1px solid var(--theme-border, #d9d9d4);
  background: transparent;
}

.t1-product-detail--jpro .t1-pd-accordion {
  border: 0;
  border-bottom: 1px solid var(--theme-border, #d9d9d4);
  background: transparent;
}

.t1-product-detail--jpro .t1-pd-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--theme-text, #0f2f2c);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.t1-product-detail--jpro .t1-pd-accordion > summary::-webkit-details-marker {
  display: none;
}

.t1-product-detail--jpro .t1-pd-accordion > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 300;
  color: var(--theme-primary, #00b72f);
  line-height: 1;
}

.t1-product-detail--jpro .t1-pd-accordion[open] > summary::after {
  content: "−";
}

.t1-product-detail--jpro .t1-pd-accordion > summary:hover {
  color: var(--theme-primary, #00b72f);
}

.t1-product-detail--jpro .t1-pd-accordion-body {
  padding: 4px 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--theme-text-secondary, #1f3f3a);
}

.t1-product-detail--jpro .t1-pd-benefits-list,
.t1-product-detail--jpro .t1-pd-steps-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t1-product-detail--jpro .t1-pd-benefits-list li {
  padding-left: 22px;
  position: relative;
}

.t1-product-detail--jpro .t1-pd-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--theme-primary, #00b72f);
  font-weight: 700;
}

.t1-product-detail--jpro .t1-pd-steps-list {
  list-style: decimal;
  padding-left: 20px;
}

.t1-product-detail--jpro .t1-pd-steps-list li {
  padding-left: 4px;
}

/* Right info card */
.t1-product-detail--jpro .t1-pd-info-card {
  position: static;
  align-self: start;
  min-width: 0;
}

.t1-product-detail--jpro .t1-pd-info-inner {
  background: var(--theme-surface, #fff);
  border: 1px solid var(--theme-border, #d9d9d4);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 4px 24px rgba(15, 47, 44, 0.07);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.t1-product-detail--jpro .t1-pd-title {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 800;
  line-height: 1.25;
  color: var(--theme-text, #0f2f2c) !important;
  margin: 0;
}

.t1-product-detail--jpro .t1-pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.t1-product-detail--jpro .t1-pd-price {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  color: var(--theme-primary, #00b72f) !important;
  letter-spacing: -0.02em;
  line-height: 1;
}

.t1-product-detail--jpro .t1-pd-compare {
  font-size: 16px;
  color: var(--theme-muted, #5f6f69);
  text-decoration: line-through;
}

.t1-product-detail--jpro .t1-pd-divider {
  height: 1px;
  background: var(--theme-border, #d9d9d4);
  margin: 0;
}

.t1-product-detail--jpro .t1-pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: -8px;
}

.t1-product-detail--jpro .t1-pd-meta-item {
  font-size: 12px;
  color: var(--theme-muted, #5f6f69);
  font-weight: 600;
}

.t1-product-detail--jpro .t1-pd-meta-item[hidden] {
  display: none !important;
}

/* Variants / choices */
.t1-product-detail--jpro .t1-pd-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.t1-product-detail--jpro .t1-pd-attribute {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.t1-product-detail--jpro .t1-pd-attr-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-muted, #5f6f69);
  margin: 0;
}

.t1-product-detail--jpro .t1-pd-attr-select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 1px solid var(--theme-border, #d9d9d4);
  border-radius: 10px;
  color: var(--theme-text, #0f2f2c);
  background-color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6f69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.t1-product-detail--jpro .t1-pd-attr-select:hover,
.t1-product-detail--jpro .t1-pd-attr-select:focus {
  outline: none;
  border-color: var(--theme-primary, #00b72f);
  box-shadow: 0 0 0 3px rgba(0, 183, 47, 0.14);
}

.t1-product-detail--jpro .t1-pd-attr-select.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.sf-inline-error {
  margin: 4px 0 0;
  padding: 0;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.sf-inline-error[hidden] {
  display: none !important;
}

.t1-product-detail--jpro .t1-pd-variant-summary {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 183, 47, 0.08);
  border: 1px solid rgba(0, 183, 47, 0.25);
  color: var(--theme-text, #0f2f2c);
  font-size: 13px;
  line-height: 1.5;
}

.t1-product-detail--jpro .t1-pd-variant-summary[hidden] {
  display: none !important;
}

/* Cart panel */
.t1-product-detail--jpro .t1-pd-cart {
  background: var(--theme-bg, #f2f2ef);
  border: 1px solid var(--theme-border, #d9d9d4);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.t1-product-detail--jpro .t1-pd-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t1-product-detail--jpro .t1-pd-qty-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-text, #0f2f2c);
}

.t1-product-detail--jpro .t1-pd-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--theme-border, #d9d9d4);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.t1-product-detail--jpro .t1-pd-qty-control button {
  width: 42px;
  height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-text, #0f2f2c) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  flex-shrink: 0;
  box-shadow: none !important;
}

.t1-product-detail--jpro .t1-pd-qty-control button:hover {
  background: rgba(0, 183, 47, 0.1) !important;
  color: var(--theme-primary, #00b72f) !important;
}

.t1-product-detail--jpro .t1-pd-qty-control input[type="number"] {
  width: 56px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--theme-border, #d9d9d4);
  border-right: 1px solid var(--theme-border, #d9d9d4);
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--theme-text, #0f2f2c);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.t1-product-detail--jpro .t1-pd-qty-control input::-webkit-outer-spin-button,
.t1-product-detail--jpro .t1-pd-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.t1-product-detail--jpro .t1-pd-actions {
  display: flex;
  gap: 10px;
}

.t1-product-detail--jpro .t1-pd-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.t1-product-detail--jpro .t1-pd-btn--add {
  background: var(--theme-primary, #00b72f) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 183, 47, 0.28);
}

.t1-product-detail--jpro .t1-pd-btn--add:hover:not(:disabled) {
  background: var(--theme-accent-dark, #008f25) !important;
  transform: translateY(-1px);
}

.t1-product-detail--jpro .t1-pd-btn--buy {
  background: var(--theme-secondary, #0f2f2c) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(15, 47, 44, 0.22);
}

.t1-product-detail--jpro .t1-pd-btn--buy:hover {
  background: #1a2b4b !important;
  transform: translateY(-1px);
}

.t1-product-detail--jpro .t1-pd-btn:active {
  transform: scale(0.98) !important;
}

.t1-product-detail--jpro .t1-pd-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.t1-product-detail--jpro .t1-pd-btn.is-loading {
  pointer-events: none;
}

.t1-product-detail--jpro .t1-pd-btn.is-added {
  background: var(--theme-accent-dark, #008f25) !important;
}

.t1-product-detail--jpro .t1-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: t1-pd-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes t1-pd-spin {
  to { transform: rotate(360deg); }
}

/* Success / error toast */
.sf-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 10050;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--theme-secondary, #0f2f2c);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(15, 47, 44, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sf-toast.sf-toast--success {
  background: var(--theme-primary, #00b72f);
}

.sf-toast.sf-toast--error {
  background: var(--theme-danger, #b91c1c);
}

.sf-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.t1-product-detail--jpro .t1-pd-back {
  background: transparent !important;
  border: 0 !important;
  color: var(--theme-primary, #00b72f) !important;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 !important;
  text-decoration: underline;
  text-align: left;
  width: fit-content;
  box-shadow: none !important;
}

.t1-product-detail--jpro .t1-pd-back:hover {
  color: var(--theme-accent-dark, #008f25) !important;
}

.t1-product-detail--jpro .t1-pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-border, #d9d9d4);
}

.t1-product-detail--jpro .t1-pd-trust-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 999px;
  border: 1px solid var(--theme-border, #d9d9d4);
  background: var(--theme-bg, #f2f2ef);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-text-secondary, #1f3f3a);
  line-height: 1.3;
}

.t1-product-detail--jpro .t1-pd-trust-item svg {
  flex-shrink: 0;
  color: var(--theme-primary, #00b72f);
  width: 16px;
  height: 16px;
}

.t1-product-detail--jpro .t1-pd-empty {
  padding: 56px 0;
  text-align: center;
  color: var(--theme-muted, #5f6f69);
}

@media (max-width: 960px) {
  .t1-product-detail--jpro .t1-pd-container {
    width: calc(100% - 28px);
  }

  .t1-product-detail--jpro .t1-pd-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .t1-product-detail--jpro .t1-pd-gallery {
    position: static;
  }

  .t1-product-detail--jpro .t1-pd-accordions {
    width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-attributes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .t1-product-detail--jpro {
    padding: 16px 0 48px;
  }

  .t1-product-detail--jpro .t1-pd-container {
    width: calc(100% - 20px);
  }

  .t1-product-detail--jpro .t1-pd-info-inner {
    padding: 18px 14px;
    gap: 14px;
  }

  .t1-product-detail--jpro .t1-pd-actions {
    flex-direction: column;
  }

  .t1-product-detail--jpro .t1-pd-btn {
    width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-qty-control {
    width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-qty-control input[type="number"] {
    flex: 1;
  }

  .t1-product-detail--jpro .t1-pd-trust {
    grid-template-columns: 1fr;
  }

  .t1-product-detail--jpro .t1-pd-trust-item {
    justify-content: flex-start;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .t1-product-detail--jpro .t1-pd-main-img-wrap {
    aspect-ratio: 4 / 3;
  }
}