/* ============================================
   Stromsparen24 — Single Product Page
   Apple-Style: Gallery left / Info right
   ============================================ */

/* ── Page Wrapper ───────────────────────────── */
.single-product-page {
    padding-top: 0;
    background: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Prevent any image from overflowing */
.single-product-page img {
    max-width: 100%;
    height: auto;
}

/* ── Breadcrumb ─────────────────────────────── */
.sp-breadcrumb {
    padding: 18px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.sp-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
}

.sp-breadcrumb a:hover { color: #0066FF; }

.sp-breadcrumb .sep {
    margin: 0 6px;
    color: #cbd5e1;
}

.sp-breadcrumb .current {
    color: #475569;
    font-weight: 500;
}

/* ── Hero: 2-Column Grid ────────────────────── */
.sp-hero {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 4rem;
    align-items: start;
    padding: 2rem 0 4rem;
    overflow: hidden;
}

/* ── Gallery (left, sticky) ─────────────────── */
.sp-gallery {
    position: sticky;
    top: 92px;
    min-width: 0; /* prevent grid blowout */
    align-self: start;
    max-height: calc(100vh - 110px);
}

.sp-gallery-main {
    position: relative;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
    cursor: zoom-in;
}

.sp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sp-gallery-main:hover img {
    transform: scale(1.04);
}

.sp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.sp-gallery-thumbs::-webkit-scrollbar { display: none; }

.sp-thumb {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    background: #f8fafc;
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-thumb:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.sp-thumb.active {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* ── Product Info (right) ───────────────────── */
.sp-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Category badge */
.sp-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #EBF2FF;
    color: #0066FF;
    font-size: 12px;
    font-weight: 600;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
    margin-bottom: 14px;
}

/* Title */
.sp-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

/* Variant Switcher (Stellplätze) */
.sp-variant-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}
.sp-variant-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-right: 4px;
}
.sp-variant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    border: 1.5px solid #e2e8f0;
    color: #374151;
    background: #fff;
}
.sp-variant-btn:hover {
    border-color: #0066FF;
    color: #0066FF;
    background: #EBF2FF;
}
.sp-variant-btn.active {
    background: #0066FF;
    color: #fff;
    border-color: #0066FF;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,102,255,.25);
}

/* Rating */
.sp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.sp-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
}

.sp-stars svg {
    width: 16px;
    height: 16px;
}

.sp-rating-count {
    font-size: 13px;
    color: #64748b;
}

.sp-rating-count a {
    color: #0066FF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Divider */
.sp-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* Price */
.sp-price-wrap {
    margin-bottom: 20px;
}

.sp-price-wrap .woocommerce-Price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0066FF;
    line-height: 1;
}

.sp-price-wrap ins {
    text-decoration: none;
}

.sp-price-wrap del {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
}

.sp-price-wrap del .woocommerce-Price-amount {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 400;
}

.sp-vat-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Short description */
.sp-short-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 4px;
}

.sp-short-desc p {
    margin: 0 0 0.5em;
}

.sp-short-desc p:last-child { margin-bottom: 0; }

/* Stock status */
.sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 20px;
    width: fit-content;
}

.sp-stock.instock {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.sp-stock.outofstock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.sp-stock.onbackorder {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.sp-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Add to Cart Form ───────────────────────── */
.sp-cart-form-wrap {
    margin-bottom: 20px;
}

/* Override WooCommerce form-row quantity + button layout */
.sp-cart-form-wrap form.cart {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sp-cart-form-wrap .quantity {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    height: 54px;
    background: #f8fafc;
    flex-shrink: 0;
}

.sp-cart-form-wrap .quantity .qty {
    width: 52px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.sp-cart-form-wrap .quantity .qty::-webkit-inner-spin-button,
.sp-cart-form-wrap .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sp-cart-form-wrap .quantity .qty:focus {
    outline: none;
}

/* Quantity +/- buttons (injected by JS or WooCommerce Plus/Minus plugin) */
.sp-qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 400;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.sp-qty-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Add to cart button — override WooCommerce purple with blue */
/* WooCommerce adds .button.alt classes — we target all combinations */
.single-product-page button.single_add_to_cart_button,
.single-product-page button.button.alt,
.single-product-page button.button.single_add_to_cart_button,
.single-product-page button.button.alt.single_add_to_cart_button,
.sp-cart-form-wrap button.single_add_to_cart_button,
.sp-cart-form-wrap button.button,
.sp-cart-form-wrap button.button.alt {
    flex: 1 !important;
    height: 54px !important;
    border-radius: 12px !important;
    background: #0066FF !important;
    background-color: #0066FF !important;
    color: #fff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-shadow: none !important;
    width: 100% !important;
    padding: 0 24px !important;
}

.single-product-page button.single_add_to_cart_button:hover,
.single-product-page button.button.alt:hover,
.single-product-page button.button.single_add_to_cart_button:hover,
.sp-cart-form-wrap button.button:hover,
.sp-cart-form-wrap button.button.alt:hover {
    background: #0052CC !important;
    background-color: #0052CC !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4) !important;
    color: #fff !important;
}

.single-product-page button.single_add_to_cart_button:active,
.sp-cart-form-wrap button.button:active {
    transform: translateY(0) !important;
}

/* Woo variation forms */
.sp-cart-form-wrap .variations {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}

.sp-cart-form-wrap .variations td,
.sp-cart-form-wrap .variations th {
    padding: 6px 0;
    text-align: left;
    vertical-align: middle;
}

.sp-cart-form-wrap .variations label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.sp-cart-form-wrap .variations select {
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    min-width: 160px;
}

.sp-cart-form-wrap .variations select:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ── Konfigurator CTA ───────────────────────── */
.sp-cfg-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0055DD 0%, #0099FF 100%);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    margin-top: 16px;
    margin-bottom: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.sp-cfg-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.sp-cfg-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.45);
    color: #fff;
    text-decoration: none;
}

.sp-cfg-cta-icon {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-cfg-cta-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.sp-cfg-cta-text strong {
    font-size: 15px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.sp-cfg-cta-text span {
    font-size: 12px;
    opacity: 0.85;
    display: block;
}

.sp-cfg-cta-arrow {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
}

.sp-cfg-cta:hover .sp-cfg-cta-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* ── "oder direkt bestellen" Divider ─────────── */
.sp-cart-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-cart-divider::before,
.sp-cart-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Trust Row ──────────────────────────────── */
.sp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.sp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    padding: 5px 10px;
    background: #f8fafc;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
}

.sp-trust-item svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ── SKU ────────────────────────────────────── */
.sp-sku {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
}

/* ════════════════════════════════════════════
   Sticky Add-to-Cart Bar
   ════════════════════════════════════════════ */
.sp-sticky-bar {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-sticky-bar.visible {
    transform: translateY(0);
}

.sp-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-sticky-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sp-sticky-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-sticky-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sp-sticky-price {
    font-size: 18px;
    font-weight: 800;
    color: #0066FF;
    white-space: nowrap;
    flex-shrink: 0;
}

.sp-sticky-price .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.sp-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #0066FF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.sp-sticky-btn:hover {
    background: #0052CC;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   Product Details — Accordion Sections
   ════════════════════════════════════════════ */
.sp-details {
    margin-top: 2rem;
    padding-bottom: 3rem;
}

.sp-section {
    border-top: 1px solid #e5e7eb;
}

.sp-section:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.sp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.sp-section-header:hover .sp-section-title {
    color: #0066FF;
}

.sp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
    transition: color 0.2s;
}

.sp-section-chevron {
    color: #9ca3af;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sp-section.open .sp-section-chevron {
    transform: rotate(180deg);
}

.sp-section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.sp-section.open .sp-section-body {
    max-height: 3000px;
    opacity: 1;
    padding-bottom: 28px;
}

.sp-section-muted {
    font-size: 14px;
    color: #9ca3af;
}

/* Spec rows inside accordion */
.sp-spec-group {
    margin-bottom: 24px;
}

.sp-spec-group:last-child {
    margin-bottom: 0;
}

.sp-spec-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 12px;
}

.sp-spec-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.sp-spec-row:last-child {
    border-bottom: none;
}

.sp-spec-label {
    width: 42%;
    color: #6b7280;
    flex-shrink: 0;
}

.sp-spec-value {
    color: #111827;
    font-weight: 500;
}

/* Download cards inside accordion */
.sp-downloads-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-dl-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sp-dl-card:hover {
    border-color: #0066FF;
    background: #f0f5ff;
}

.sp-dl-icon {
    color: #0066FF;
    display: flex;
    flex-shrink: 0;
}

.sp-dl-name {
    flex: 1;
}

.sp-dl-badge {
    font-size: 10px;
    font-weight: 700;
    color: #0066FF;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Description content */
.sp-description {
    max-width: 780px;
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
}

.sp-description h2,
.sp-description h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 1.5em 0 0.5em;
}

.sp-description p { margin: 0 0 1em; }
.sp-description p:last-child { margin-bottom: 0; }

.sp-description ul {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.sp-description ul li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    color: #475569;
}

.sp-description ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #0066FF;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* Specs / Attributes tab */
.sp-specs-wrap {
    max-width: 700px;
}

.sp-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sp-specs-table th {
    text-align: left;
    padding: 13px 18px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e2e8f0;
    width: 38%;
}

.sp-specs-table td {
    padding: 13px 18px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
}

.sp-specs-table tr:last-child th,
.sp-specs-table tr:last-child td {
    border-bottom: none;
}

.sp-specs-table tr:nth-child(even) td {
    background: #f8fafc;
}

.sp-specs-table tr:nth-child(even) th {
    background: #edf2f7;
}

/* Downloads tab */
.sp-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
}

.sp-download-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.sp-download-item:hover {
    border-color: #0066FF;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.sp-download-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EBF2FF;
    border-radius: 10px;
    flex-shrink: 0;
    color: #0066FF;
}

.sp-download-icon svg {
    width: 22px;
    height: 22px;
}

.sp-download-name {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.sp-download-badge {
    font-size: 11px;
    font-weight: 700;
    color: #0066FF;
    background: #EBF2FF;
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sp-no-downloads {
    font-size: 14px;
    color: #94a3b8;
    padding: 20px 0;
}

/* Reviews tab */
.sp-reviews-wrap #reviews {
    margin: 0;
    padding: 0;
}

.sp-reviews-wrap #reviews .woocommerce-Reviews-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.sp-reviews-wrap .comment-text {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* ════════════════════════════════════════════
   Related Products
   ════════════════════════════════════════════ */
.sp-related {
    padding: 3rem 0 4rem;
    border-top: 1px solid #e2e8f0;
}

.sp-related-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2rem;
}

.sp-related-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Related product cards — reuse shop card style */
.sp-related-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.sp-related-card:hover {
    border-color: #0066FF;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
    transform: translateY(-4px);
}

.sp-related-img {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.sp-related-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.sp-related-card:hover .sp-related-img img {
    transform: scale(1.06);
}

.sp-related-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sp-related-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-related-price {
    font-size: 15px;
    font-weight: 800;
    color: #0066FF;
    margin-top: auto;
    padding-top: 8px;
}

.sp-related-price .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* ════════════════════════════════════════════
   Responsive: Tablet ≤1024px
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sp-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 0 3rem;
    }

    .sp-gallery {
        position: static;
    }

    .sp-gallery-main {
        max-height: 460px;
    }

    .sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-sticky-name {
        max-width: 200px;
    }
}

/* ════════════════════════════════════════════
   Responsive: Mobile ≤768px
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sp-hero {
        padding: 1rem 0 2rem;
    }

    .sp-gallery-main {
        border-radius: 14px;
    }

    .sp-thumb {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .sp-title {
        font-size: 22px;
    }

    .sp-price-wrap .woocommerce-Price-amount {
        font-size: 1.75rem;
    }

    .sp-cart-form-wrap form.cart {
        flex-direction: column;
    }

    .sp-cart-form-wrap .quantity {
        width: 100%;
        justify-content: center;
    }

    .sp-cart-form-wrap .single_add_to_cart_button {
        width: 100%;
    }

    .sp-spec-row {
        flex-direction: column;
        gap: 2px;
    }
    .sp-spec-label {
        width: 100%;
        font-size: 12px;
    }
    .sp-downloads-grid {
        flex-direction: column;
    }

    .sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sp-sticky-inner {
        padding: 0 16px;
        gap: 12px;
        height: 60px;
    }

    .sp-sticky-thumb { display: none; }
    .sp-sticky-name { font-size: 14px; }
    .sp-sticky-price { font-size: 16px; }

    .sp-sticky-btn {
        padding: 9px 16px;
        font-size: 13px;
    }

    .sp-specs-table th,
    .sp-specs-table td {
        padding: 10px 14px;
    }
}

/* ════════════════════════════════════════════
   Responsive: Small Mobile ≤480px
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .sp-trust {
        flex-direction: column;
        gap: 8px;
    }

    .sp-related-grid {
        grid-template-columns: 1fr;
    }

    .sp-title { font-size: 20px; }

    .sp-details { margin-top: 1rem; }

    .sp-sticky-price { display: none; }
}

/* ════════════════════════════════════════════
   Preis auf Anfrage
   ════════════════════════════════════════════ */
.sp-anfrage-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0066FF;
    line-height: 1;
    margin-bottom: 4px;
}

.sp-anfrage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 54px;
    border-radius: 12px;
    background: #0066FF;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 12px;
    margin-bottom: 20px;
}

.sp-anfrage-btn:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
    color: #fff;
    text-decoration: none;
}

.sp-anfrage-btn svg {
    flex-shrink: 0;
}

/* ════════════════════════════════════════════
   Color Selection Section
   ════════════════════════════════════════════ */
.sp-colors-section {
    margin: 4px 0 20px;
}

.sp-colors-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sp-colors-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.sp-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color, #ccc);
    display: block;
    border: 2px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.sp-color-item:hover .sp-color-swatch {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sp-color-label {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.2;
    max-width: 44px;
    word-break: break-word;
}

.sp-colors-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ════════════════════════════════════════════
   Tab Empty States
   ════════════════════════════════════════════ */
.sp-tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: #94a3b8;
    gap: 12px;
}

.sp-tab-empty svg {
    opacity: 0.35;
    width: 48px;
    height: 48px;
}

.sp-tab-empty p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

.sp-tab-link {
    color: #0066FF;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: color 0.15s;
}

.sp-tab-link:hover {
    color: #0052CC;
}

/* ════════════════════════════════════════════
   Lightbox
   ════════════════════════════════════════════ */
.sp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 24px;
}

.sp-lightbox.open {
    display: flex;
    animation: spLightboxIn 0.2s ease;
}

@keyframes spLightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sp-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    cursor: default;
    user-select: none;
}

.sp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 10000;
}

.sp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
    .sp-anfrage-price {
        font-size: 1.6rem;
    }

    .sp-colors-grid {
        gap: 8px;
    }

    .sp-color-swatch {
        width: 30px;
        height: 30px;
    }

    .sp-lightbox {
        padding: 16px;
    }
}
