/* ===== PRODUCT DETAIL PAGE STYLES ===== */

/* ===== SKELETON LOADING ===== */
.skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
}

.skeleton-text {
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== PAGE BACKGROUND ===== */
body {
    background-color: #f0f0f0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 13px;
    color: #666;
    margin-bottom: 1.5rem;
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 1rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

#backButton {
    color: #004D45 !important;
    font-weight: 600;
    background: rgba(0, 77, 69, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 12px;
}

#backButton:hover {
    background: rgba(0, 77, 69, 0.2);
    color: #003a33 !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #767676;
}

/* ===== PRODUCT DETAIL CONTAINER ===== */
.product-detail {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    margin-bottom: 0;
}

/* ===== PRODUCT IMAGES ===== */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    border: 1px solid #e5e5e5;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.thumbnail {
    width: 70px;
    height: 70px;
    background: #f8f8f8;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail.active {
    border-color: #16a34a;
}

.thumbnail:hover {
    border-color: #16a34a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    padding-bottom: 1.5rem;
}

.brand-name {
    color: #888;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* P3: PDP rating summary */
.pdp-rating {
    margin-top: 8px;
}

.pdp-rating-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdp-rating-inner .star {
    font-size: 20px;
}

.pdp-rating-inner .review-count {
    font-size: 15px;
    color: #555;
}

/* P11: Recommendation badge from Produktfinder */
.pdp-recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
}

.pdp-recommendation-badge::before {
    content: "✓";
    font-weight: 700;
}

/* ===== PRODUCT PROPERTIES ===== */
/* Eigenschaften-Panel wie im Screenshot */
.properties-section h3 {
  margin: 0 0 12px 0;
}

/* Grid-based approach for better control */
.properties-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.properties-table tr {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.properties-table td {
  padding: 0;
  color: #1f2937;
  white-space: nowrap;
}

/* Column 1: Text with icon (starts at left) */
.properties-table td:nth-child(1) {
  justify-self: start;
}

/* Column 2: Check/Cross (aligned right) */
.properties-table td:nth-child(2) {
  justify-self: end;
  padding-right: 20px; /* Extra space between check1 and text2 */
}

/* Column 3: Text with icon (starts at left) */
.properties-table td:nth-child(3) {
  justify-self: start;
}

/* Column 4: Check/Cross (aligned right) */
.properties-table td:nth-child(4) {
  justify-self: end;
}

/* Category header: Thick line across full width */
.property-category-header {
  border-bottom: 2px solid #e5e5e5;
}

/* Property rows: Thin lines only under each side (text to check) */
.property-row {
  position: relative;
}

.property-row td {
  padding-top: 6px; /* Reduced spacing between properties */
  padding-bottom: 3px; /* Lines very close to text */
}

/* First property after category header: keep larger top spacing */
.property-category-header + .property-row td {
  padding-top: 16px; /* More space after thick category line */
}

/* Continuous line from Text1 to Check1 using pseudo-element */
.property-row::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 50%;
  margin-right: 10px; /* Account for gap between halves */
  height: 1px;
  background: #dcdcdc;
}

/* Continuous line from Text2 to Check2 using pseudo-element */
.property-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  margin-left: 10px; /* Account for gap between halves */
  right: 0;
  height: 1px;
  background: #dcdcdc;
}

/* linke Zelle mit Icon + Label in einer Zeile */
.property-name {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Wert/Status rechtsbündig und fett */
.property-value,
.property-status {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Icon-Stil (an Screenshot angelehnt) */
.prop-icon {
  width: 18px;
  height: 18px;
  stroke: #6b7280;      /* neutral grau */
  stroke-width: 1.75;
  fill: none;
  flex: 0 0 auto;
}


/* Größe-Wert stärker betonen */
.properties-table .property-value--size {
  font-weight: 800;
}

/* ===== PROPERTY CATEGORY HEADERS ===== */
.property-category-header {
  background: transparent;
}

.property-category-header td {
  padding: 20px 0 0px 0 !important; /* Minimal bottom padding */
  border-top: none !important;
}

.property-category-header:first-child td {
  padding-top: 12px !important;
}

.property-category-title {
  font-size: 15px;
  font-weight: 700;
  color: #004D45;
  margin: 0;
  padding-bottom: 0px; /* Reduced from 8px */
  text-align: left !important;
  padding-left: 12px;
}

.property-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Reduced from 10px to 8px */
}


.property-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
}

.property-icon svg {
  width: 100%;
  height: 100%;
}

.property-label {
  color: #1f2937;
  font-size: 14px;
  white-space: nowrap;
  /* Removed overflow and text-overflow to allow full text */
}

.property-value {
  font-weight: 700;
  text-align: right;
  font-size: 16px;
}

/* Supported property (TRUE) - Grün, fett, prominent */
.property-value--supported {
  color: #1EB674;
  font-weight: 700;
}

/* Not supported property (FALSE) - Grau, normal, weniger prominent */
.property-value--not-supported {
  color: #9CA3AF;
  font-weight: 400;
  opacity: 0.7;
}

.property-item--not-supported .property-label {
  color: #9CA3AF;
  opacity: 0.8;
}

.property-item--not-supported .property-icon {
  color: #9CA3AF;
  opacity: 0.6;
}


/* ===== SIZE SELECTION ===== */
.size-selection {
    padding: 1.5rem 0 0 0;
    border-top: 1px solid #e5e5e5;
    margin-top: 0.5rem;
}

.selection-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #666;
}

.size-selection .size-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== SIZE CARD (Radio-Card Style) ===== */
.size-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.size-card:first-child {
    border-top: 1px solid #e5e5e5;
}

.size-card:hover {
    background: #f9fafb;
}

.size-card.active {
    background: #f0fdf4;
}

/* Radio indicator */
.size-card__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s ease;
}

.size-card.active .size-card__radio {
    border-color: #004D45;
}

.size-card.active .size-card__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #004D45;
}

/* Size info (name + unit price) */
.size-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.size-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.size-card__unit-price {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

/* Price column (right side) */
.size-card__price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.size-card__pzn {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.size-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.size-card__original-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

.size-card__badge {
    font-size: 10px;
    font-weight: 600;
    color: #ea580c;
    background: #fff7ed;
    padding: 1px 6px;
    border-radius: 3px;
}

/* ===== SIZE CARD STOCK STATES ===== */
.size-card--out {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafafa;
}

.size-card--out:hover {
    background: #fafafa;
}

.size-card--out .size-card__radio {
    border-color: #e5e5e5;
}

.size-card__stock {
    font-size: 11px;
    font-weight: 600;
    color: #991b1b;
    background: #fee2e2;
    padding: 1px 7px;
    border-radius: 3px;
    display: inline-block;
    line-height: 1.5;
    align-self: flex-start;
}

.size-card__stock--low {
    color: #92400e;
    background: #fef3c7;
}

.size-card__stock--order {
    color: #92400e;
    background: #fffbeb;
}

/* ===== PACKAGE INSERT LINK ===== */
.package-insert-link {
    padding: 0.5rem 0;
    margin-top: 0.75rem;
}

.package-insert-link a {
    display: inline;
    color: #004D45;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.package-insert-link a:hover {
    color: #003830;
}

/* ===== PURCHASE SECTION ===== */
.purchase-section {
    padding-top: 0;
}

/* Properties section gets top border (now below purchase) */
.properties-section {
    border-top: 1px solid #e5e5e5;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.purchase-section .price-current {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.purchase-section .price-old {
    font-size: 18px;
    color: #767676;
    text-decoration: line-through;
    font-weight: 500;
    flex-basis: auto;
}

.purchase-section .price-info {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.pdp-delivery-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    color: #374151;
}

.pdp-delivery-time svg {
    flex-shrink: 0;
    color: #6b7280;
}

.pdp-delivery-time--instock {
    color: #065f46;
}

.pdp-delivery-time--instock svg {
    color: #059669;
}

.pdp-delivery-time--onorder {
    color: #92400e;
}

.pdp-delivery-time--onorder svg {
    color: #d97706;
}

.pdp-shipping-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    text-align: center;
}

.purchase-section .price-per-unit {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    margin-left: 4px;
}

.purchase-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Quantity Selector - standard design: gray buttons, white number */
.quantity-selector,
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 600;
}

.quantity-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input,
.quantity-display {
    min-width: 40px;
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    outline: none;
    background: white;
}

.quantity-input {
    -moz-appearance: textfield; /* Firefox */
}

/* Remove spinner arrows in webkit browsers */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.purchase-section .btn-add-to-cart {
    flex: 1;
    background: #004D45;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
    max-height: none;
}

.purchase-section .btn-add-to-cart:hover {
    background: #003830;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 77, 69, 0.3);
}

.purchase-section .btn-add-to-cart:disabled,
.purchase-section .btn-add-to-cart[aria-disabled="true"] {
    background: #9ca3af;
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.purchase-section .btn-add-to-cart:disabled:hover,
.purchase-section .btn-add-to-cart[aria-disabled="true"]:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* ===== WOUND TYPES SECTION ===== */
.wound-types-section {
    background: #f3f4f6;
    padding: 2rem;
    margin: 2rem -2rem;
    width: calc(100% + 4rem);
}

.wound-types-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.wound-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.wound-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: #004D45;
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
}

.wound-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.wound-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.wound-indicator {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 400;
    border-radius: 50%;
    border: 2px solid;
}

.wound-indicator.check {
    color: #16a34a;
    background: #f0fdf4;
    border-color: #16a34a;
    font-weight: bold;
    font-size: 12px;
}

.wound-indicator.cross {
    color: #dc2626;
    background: #fef2f2;
    border-color: #dc2626;
    opacity: 0.6;
}

.wound-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.wound-text.supported {
    color: #1f2937;
    font-weight: 600;
}

.wound-option-item:not(:has(.wound-text.supported)) {
    opacity: 0.7;
}

.wound-option-item:not(:has(.wound-text.supported)) .wound-text {
    color: #9CA3AF;
    font-weight: 400;
}

/* ===== TABS SECTION ===== */
.tabs-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tabs-header {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #767676;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #16a34a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #16a34a;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.tab-content p {
    line-height: 1.6;
    color: #666;
    font-size: 14px;
}

/* ===== PRODUCT DETAILS TABLE ===== */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.details-table td {
    padding: 12px 0;
    font-size: 14px;
}

.details-table td:first-child {
    font-weight: 500;
    color: #666;
    width: 40%;
}

.details-table td:last-child {
    color: #333;
}

/* ===== REVIEWS ===== */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: #767676;
    font-size: 12px;
    margin-left: auto;
}

.review-text {
    line-height: 1.6;
    color: #666;
    font-size: 13px;
}

.review-item__title {
    font-weight: 600;
    color: #222;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.review-item__size-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #555;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 0.4rem;
}

/* ===== REVIEW FORM ===== */
.review-form-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.review-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 1.5rem 0;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .review-form-row {
        grid-template-columns: 1fr;
    }
}

.review-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-form-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.review-form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.review-form-label .optional {
    color: #9ca3af;
    font-weight: 400;
}

.review-form-input,
.review-form-textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #111;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
    font-family: inherit;
}

.review-form-input:focus,
.review-form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.review-form-textarea {
    resize: vertical;
    min-height: 90px;
}

.review-form-hint {
    font-size: 11px;
    color: #9ca3af;
}

/* CSS-only star rating (RTL flip trick) */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-radio {
    display: none;
}

.star-input label {
    font-size: 28px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.1s;
    line-height: 1;
    padding: 2px;
}

/* Highlight from the selected star leftwards (row-reverse + ~ selector) */
.star-input label:hover,
.star-input label:hover ~ label,
.star-radio:checked ~ label {
    color: #fbbf24;
}

.review-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.review-form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.review-form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.review-form-submit {
    align-self: flex-start;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.review-form-submit:hover {
    background: #059669;
}

.review-form-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===== DOCUMENTS ===== */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.document-item:hover {
    background: #f1f3f5;
    border-color: #16a34a;
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: white;
    border-radius: 6px;
}

.document-info {
    flex: 1;
}

.document-title {
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.document-type {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.document-link {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #16a34a;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.document-link:hover {
    background: #15803d;
}

.no-documents {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 14px;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #16a34a;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 14px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.error {
    background: #dc2626;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 350px 1fr;
        gap: 2rem;
    }

    .wound-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .main-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    /* Mobile optimizations */
    body {
        background-color: white;
    }

    .product-detail {
        background: white;
        border-radius: 0;
        padding: 1rem;
        box-shadow: none;
        margin-bottom: 1rem;
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        width: calc(100% + 2 * var(--spacing-md));
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .main-image {
        height: 250px;
        padding: 1rem;
    }

    .product-info {
        gap: 1rem;
    }

    .product-header {
        padding-bottom: 1rem;
    }

    .product-title {
        font-size: 20px;
    }

    .properties-section {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }

    .purchase-controls {
        margin-bottom: 2rem;
    }

    /* Increase spacing between label and value on mobile */
    .details-table td:first-child {
        padding-right: 10px;
    }

    .details-table td:last-child {
        padding-left: 10px;
    }

    /* Smaller font for properties table on mobile */
    .properties-table {
        font-size: 11px;
    }

    .properties-table td {
        padding: 8px 2px;
        white-space: nowrap;
        overflow: visible;
    }

    .properties-table .property-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .properties-table .property-label {
        white-space: normal;
        text-align: center;
    }

    /* Mobile: Same grid approach with smaller gaps */
    .properties-table tr {
        column-gap: 8px;
        padding: 8px 0;
    }

    .properties-table td:nth-child(2) {
        padding-right: 12px; /* Smaller spacing on mobile */
    }

    .properties-table .property-icon svg {
        width: 14px;
        height: 14px;
    }

    .wound-types-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wound-types-section {
        padding: 1rem;
        margin: 1rem -1rem;
        width: calc(100% + 2rem);
    }

    .tabs-section {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0;
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        width: calc(100% + 2 * var(--spacing-md));
    }

    .tabs-header {
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .size-selection {
        padding: 1rem 0 0 0;
    }

    .purchase-section {
        padding-top: 0;
    }

    .purchase-controls {
        margin-top: 1rem;
    }

    /* Size cards: touch-friendly */
    .size-card {
        padding: 14px 12px;
        min-height: 44px;
    }

    .purchase-section .price-per-unit {
        font-size: 14px;
    }

    .purchase-section .price-current {
        font-size: 28px;
    }

    .purchase-section .price-old {
        font-size: 16px;
    }

    .purchase-section .price-info {
        font-size: 12px;
    }

    /* Touch targets for quantity selector on product detail */
    .quantity-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .quantity-input,
    .quantity-display {
        width: 48px;
        height: 44px;
        font-size: 16px;
    }

    .purchase-section .btn-add-to-cart {
        height: 44px;
        min-height: 44px;
        font-size: 15px;
        background: #004D45;
    }

    .purchase-section .btn-add-to-cart:hover {
        background: #003832;
    }

    /* Tab buttons: larger touch targets */
    .tab-btn {
        padding: 14px 4px;
        font-size: 13px;
        min-height: 44px;
    }

    /* Size cards: larger touch targets on mobile */
    .size-card__name {
        font-size: 14px;
    }

    .size-card__price {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .purchase-section .price-current {
        font-size: 26px;
    }

    .purchase-section .price-old {
        font-size: 15px;
    }
}

/* ===== RECOMMENDATION MODE STYLES ===== */

/* Recommendation button styling on product detail page */
.btn-add-to-cart.removed {
    background: #f8f9fa !important;
    color: var(--accent-green) !important;
    border: 1px solid var(--accent-green) !important;
}

.btn-add-to-cart.removed:hover {
    background: var(--accent-green) !important;
    color: var(--white) !important;
}

/* Back to recommendations button */
.back-to-recommendations {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    margin-left: 16px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.back-to-recommendations:hover {
    background: var(--accent-green-dark) !important;
    transform: translateY(-1px) !important;
}

.back-to-recommendations:active {
    transform: translateY(0) !important;
}

/* ===== RELATED PRODUCTS / CROSS-SELLING ===== */
.related-products-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.related-products-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e5e5;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .related-products-section {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0;
        margin-left: calc(-1 * var(--spacing-md));
        margin-right: calc(-1 * var(--spacing-md));
        width: calc(100% + 2 * var(--spacing-md));
    }

    .related-products-title {
        font-size: 18px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
/* ── Stock availability badge ──────────────────────────────────────────────── */
#pdpStockBadge {
    margin-bottom: 10px;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
}

.stock-badge::before {
    content: '●';
    font-size: 8px;
}

.stock-badge--available {
    background: #d1fae5;
    color: #065f46;
}
.stock-badge--available::before { color: #10b981; }

.stock-badge--low {
    background: #fef3c7;
    color: #92400e;
}
.stock-badge--low::before { color: #f59e0b; }

.stock-badge--out {
    background: #fee2e2;
    color: #991b1b;
}
.stock-badge--out::before { color: #ef4444; }

.stock-badge--order {
    background: #fffbeb;
    color: #92400e;
}
.stock-badge--order::before { color: #f59e0b; }

/* Product not found */
.product-not-found {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
}
.product-not-found h2 {
    font-size: 1.5rem;
    color: #1a3c34;
    margin-bottom: 0.75rem;
}
.product-not-found p {
    color: #5d6d7e;
    margin-bottom: 1.5rem;
}

/* Inline-style replacements (CSP unsafe-inline removal) */
.is-hidden { display: none; }
.skeleton-w-sm   { width: 120px; }
.skeleton-w-md   { width: 60%; }
.skeleton-w-3q   { width: 75%; }
.skeleton-w-lg   { width: 80%; }
.skeleton-w-full { width: 100%; }

/* ===== PDP Quick Navigation Chips ===== */
.pdp-quick-nav {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pdp-quick-nav__chip {
    padding: 8px 16px;
    border: 1px solid var(--border-gray, #e5e7eb);
    border-radius: 20px;
    background: var(--light-green, #f9fafb);
    color: var(--primary-green, #004D45);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.pdp-quick-nav__chip:hover {
    background: #f0f7f4;
    border-color: var(--primary-green, #004D45);
}

.pdp-quick-nav__arrow {
    font-size: 10px;
    opacity: 0.5;
}

/* ===== Produkt Tab — 2-Column Layout (Desktop) ===== */
.tab-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.tab-product-description h3,
.tab-product-details h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark, #1a1a1a);
}

/* Mobile: stack vertically, details first then description */
@media (max-width: 768px) {
    .tab-product-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tab-product-details {
        order: -1;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #e5e7eb;
    }
}
.skeleton-price  { width: 100px; height: 32px; }
