/**
 * ScooterDiscounter Theme - Product Page CSS
 * Performance optimized - minimal, clean design
 */

/* ===== Mobile Overflow Fix ===== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Fix alle containers */
    .sd-wrapper,
    .sd-main-wrapper,
    .sd-container,
    .sd-content-full,
    .sd-product-page,
    .sd-product-top,
    .sd-product-info {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix breadcrumbs */
    .sd-breadcrumbs {
        max-width: 100%;
        overflow: hidden;
    }
    
    .sd-breadcrumbs ul {
        max-width: 100%;
    }
    
    .sd-breadcrumbs li {
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }
    
    .sd-breadcrumbs .current {
        display: inline;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    /* Fix product titel */
    .sd-product-title {
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    
    /* Fix sticky bar (zou hidden moeten zijn maar voor zekerheid) */
    .sd-sticky-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== 1 Column Layout ===== */
.sd-main-1col {
    padding-bottom: 24px;
    overflow-x: hidden; /* Prevent horizontal scroll from long content */
}

@media (max-width: 768px) {
    .sd-main-1col {
        padding-bottom: 16px;
    }
    
    /* Fix lange productnamen in breadcrumbs */
    .sd-breadcrumbs li {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    .sd-breadcrumbs .current {
        display: block;
        max-width: 100%;
        word-break: break-word;
    }
}

/* When sticky bar is visible, add space at bottom of footer */
.catalog-product-view .sd-footer__bottom {
    padding-bottom: 80px; /* Room for sticky bar */
}

.sd-content-full {
    width: 100%;
}

/* ===== Product Page Container ===== */
.sd-product-page {
    padding-bottom: 16px;
}

/* ===== Product Top Section (2 columns) ===== */
.sd-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ===== Gallery - Fixed width ===== */
.sd-product-gallery {
    width: 100%;
    min-width: 0; /* Prevent overflow */
}

.sd-gallery {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sd-gallery-main {
    position: relative;
    background: var(--sd-white);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    aspect-ratio: 1 / 1;
    overflow: hidden; /* Voorkom dat afbeeldingen buiten container vallen */
}

.sd-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Extra fix voor portrait afbeeldingen */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Link wrapper in gallery */
.sd-gallery-main .sd-main-image-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sd-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--sd-red);
    color: var(--sd-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Thumbnails */
.sd-gallery-thumbs {
    position: relative;
    padding: 0 30px;
}

.sd-thumbs-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sd-thumbs-track::-webkit-scrollbar {
    display: none;
}

.sd-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 4px;
    background: var(--sd-white);
    cursor: pointer;
}

.sd-thumb:hover {
    border-color: var(--sd-border);
}

.sd-thumb.active {
    border-color: var(--sd-orange);
}

.sd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sd-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--sd-white);
    border: 1px solid var(--sd-border);
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-thumb-prev { left: 0; }
.sd-thumb-next { right: 0; }

.sd-thumb-nav:hover {
    border-color: var(--sd-orange);
    color: var(--sd-orange);
}

/* ===== Product Info ===== */
.sd-product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sd-product-brand {
    font-size: 12px;
    font-weight: 600;
    color: #c2410c;
    text-transform: uppercase;
    text-decoration: none;
    background: #fff7ed;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #fed7aa;
    white-space: nowrap;
    flex-shrink: 0;
}

.sd-product-brand:hover {
    text-decoration: none;
    background: #ffedd5;
    color: #9a3412;
}

/* ===== Product Variants ===== */
.sd-product-variants {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-variants-label {
    font-size: 13px;
    color: var(--sd-text-light);
    font-weight: 500;
}

.sd-variants-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sd-variant-item {
    width: 48px;
    height: 48px;
    border: 2px solid var(--sd-border);
    border-radius: 6px;
    padding: 3px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--sd-white);
    text-decoration: none;
    display: block;
}

.sd-variant-item:hover {
    border-color: var(--sd-orange);
}

.sd-variant-item.active {
    border-color: var(--sd-orange);
    box-shadow: 0 0 0 1px var(--sd-orange);
}

.sd-variant-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 3px;
}

/* ===== RMA Notice ===== */
.sd-rma-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    margin: 16px 0;
}

.sd-rma-icon {
    width: 32px;
    height: 32px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.sd-rma-content {
    font-size: 13px;
    color: #78350f;
    line-height: 1.4;
}

.sd-rma-content strong {
    display: block;
    color: #78350f;
    margin-bottom: 2px;
}

.sd-rma-content a {
    color: #92400e;
    text-decoration: underline;
    font-weight: 500;
}

.sd-rma-content a:hover {
    color: #78350f;
}

.sd-product-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--sd-dark);
    margin: 0;
    line-height: 1.3;
}

.sd-product-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--sd-text-muted);
}

.sd-product-meta strong {
    color: var(--sd-text);
}

.sd-product-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sd-product-short-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sd-text-light);
}

/* ===== Price + Stock Row ===== */
.sd-price-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 16px;
    background: var(--sd-bg);
    border-radius: var(--sd-radius);
}

/* ===== Price Box - Compact ===== */
.sd-price-box {
    flex-shrink: 0;
}

.sd-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sd-price-current {
    font-size: 28px;
    font-weight: 700;
    color: var(--sd-dark);
}

.sd-price-old {
    font-size: 16px;
    color: var(--sd-text-muted);
    text-decoration: line-through;
}

.sd-price-save {
    background: var(--sd-red);
    color: var(--sd-white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.sd-price-vat {
    font-size: 12px;
    color: #4b5563; /* Donkerder grijs voor beter contrast */
    display: block;
    margin-top: 2px;
}

/* ===== Stock Info ===== */
.sd-stock-info {
    text-align: right;
}

/* ===== Stock & Delivery ===== */
.sd-stock-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.sd-stock-row .sd-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sd-in-stock .sd-stock-dot { 
    background: var(--sd-green);
    animation: pulse-stock 2s ease-in-out infinite;
}
.sd-in-stock { color: var(--sd-green); }

.sd-out-of-stock .sd-stock-dot { background: var(--sd-red); }
.sd-out-of-stock { color: var(--sd-red); }

/* Pulse animation for stock indicator */
@keyframes pulse-stock {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(58, 170, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(58, 170, 53, 0);
    }
}

.sd-delivery-row {
    font-size: 12px;
    color: var(--sd-text-light);
    margin-top: 4px;
}

/* ===== Add to Cart Section ===== */
.sd-addtocart-box {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.sd-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sd-qty-wrapper label {
    font-size: 12px;
    color: #4b5563; /* Donkerder grijs voor beter contrast */
}

.sd-qty-control {
    display: flex;
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    overflow: hidden;
}

.sd-qty-btn {
    width: 40px;
    height: 48px;
    background: var(--sd-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-qty-btn:hover {
    background: var(--sd-border);
}

.sd-qty-input {
    width: 50px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    -moz-appearance: textfield;
}

.sd-qty-input::-webkit-outer-spin-button,
.sd-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Main Add to Cart Button */
.sd-btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--sd-green);
    color: var(--sd-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.sd-btn-cart:hover {
    background: var(--sd-green-hover);
}

.sd-btn-cart .sd-cart-icon {
    font-size: 20px;
}

/* Wishlist Button (icon only) */
.sd-btn-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--sd-white);
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}

.sd-btn-wishlist:hover {
    border-color: var(--sd-orange);
}

.sd-wishlist-icon {
    font-size: 20px;
    color: #6b7280;
    transition: color 0.2s;
}

.sd-btn-wishlist:hover .sd-wishlist-icon {
    color: var(--sd-orange);
}

/* ===== Secondary Actions ===== */
.sd-addto-links {
    display: flex;
    gap: 16px;
}

.sd-addto-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--sd-text-light);
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
}

.sd-addto-btn:hover {
    color: var(--sd-orange);
}

.sd-addto-icon {
    font-size: 16px;
}

/* ===== USPs ===== */
.sd-product-usps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    padding: 16px 0;
    border-top: 1px solid var(--sd-border);
    border-bottom: 1px solid var(--sd-border);
}

.sd-usp {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.sd-usp-check {
    color: var(--sd-orange);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.sd-usp-highlight {
    color: var(--sd-green);
    font-weight: 600;
}

.sd-usp-icon {
    font-size: 16px;
}

/* Payment Methods */
.sd-payment-methods {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.sd-payment-label {
    font-size: 12px;
    color: #6b7280;
}

.sd-payment-icons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sd-payment-icon {
    font-size: 11px;
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    color: #374151;
    font-weight: 500;
}

/* ===== Tabs ===== */
.sd-product-tabs {
    margin-bottom: 40px;
}

.sd-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--sd-border);
    margin-bottom: 24px;
}

.sd-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sd-text-light);
    cursor: pointer;
    font-family: inherit;
}

.sd-tab-btn:hover {
    color: var(--sd-text);
}

.sd-tab-btn.active {
    color: #c2410c; /* Donkerder oranje voor beter contrast */
    border-bottom-color: #c2410c;
}

.sd-tab-pane {
    display: none;
}

.sd-tab-pane.active {
    display: block;
}

.sd-tab-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--sd-dark);
}

/* Description */
.sd-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sd-text);
}

.sd-description-content p {
    margin-bottom: 16px;
}

.sd-description-content ul,
.sd-description-content ol {
    margin: 0 0 16px 24px;
}

.sd-description-content li {
    margin-bottom: 8px;
}

/* Specifications Table */
.sd-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.sd-specs-table tr {
    border-bottom: 1px solid var(--sd-border);
}

.sd-specs-table th,
.sd-specs-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.sd-specs-table th {
    width: 40%;
    font-weight: 500;
    color: var(--sd-text-light);
    background: var(--sd-bg);
}

.sd-specs-table td {
    color: var(--sd-text);
}

.sd-no-content {
    padding: 24px;
    text-align: center;
    color: var(--sd-text-muted);
    background: var(--sd-bg);
    border-radius: var(--sd-radius);
}

/* ===== Section Titles ===== */
.sd-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--sd-dark);
    margin: 0 0 20px;
}

/* ===== Related/Upsell Grids ===== */
.sd-related-products,
.sd-upsell-products {
    margin-bottom: 40px;
}

.sd-related-grid,
.sd-upsell-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sd-related-check {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--sd-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.sd-related-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

/* ===== Sticky Cart Bar ===== */
/* MOVED TO sd-theme.css - do not duplicate here */

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .sd-product-top {
        gap: 24px;
    }
    
    .sd-related-grid,
    .sd-upsell-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    .sd-product-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sd-gallery {
        position: static;
    }
    
    .sd-gallery-main {
        min-height: 280px;
        aspect-ratio: 1 / 1;
    }
    
    .sd-product-title {
        font-size: 20px;
    }
    
    .sd-product-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sd-product-brand {
        align-self: flex-start;
    }
    
    .sd-product-variants {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sd-variant-item {
        width: 44px;
        height: 44px;
    }
    
    .sd-rma-notice {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .sd-rma-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .sd-rma-content {
        font-size: 12px;
    }
    
    .sd-price-stock-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .sd-stock-info {
        text-align: left;
    }
    
    .sd-stock-row {
        justify-content: flex-start;
    }
    
    .sd-price-current {
        font-size: 24px;
    }
    
    .sd-addtocart-box {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .sd-addtocart-box > .sd-qty-control {
        flex-shrink: 0;
    }
    
    .sd-addtocart-box > .sd-btn-cart {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .sd-addtocart-box > .sd-btn-wishlist {
        flex: 0 0 48px;
        align-self: stretch;
    }
    
    .sd-payment-methods {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sd-tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sd-tab-btn {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .sd-related-grid,
    .sd-upsell-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Responsive: Small Mobile ===== */
@media (max-width: 480px) {
    .sd-product-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .sd-gallery-thumbs {
        padding: 0;
    }
    
    .sd-thumb-nav {
        display: none;
    }
    
    .sd-thumb {
        width: 56px;
        height: 56px;
    }
    
    .sd-specs-table th,
    .sd-specs-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .sd-specs-table th {
        width: 45%;
    }
}

/* ===== Print ===== */
@media print {
    .sd-sticky-bar,
    .sd-addto-links,
    .sd-product-usps,
    .sd-related-products,
    .sd-upsell-products {
        display: none !important;
    }
    
    .sd-product-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .sd-gallery {
        position: static;
    }
}

/* ===== Lightbox ===== */
.sd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sd-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.sd-lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.sd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--sd-white);
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
}

.sd-lightbox-close:hover {
    opacity: 1;
}

.sd-lightbox-prev,
.sd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--sd-white);
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
}

.sd-lightbox-prev:hover,
.sd-lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.sd-lightbox-prev {
    left: 20px;
}

.sd-lightbox-next {
    right: 20px;
}

.sd-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--sd-white);
    font-size: 14px;
    opacity: 0.8;
}

/* Tab count badge */
.sd-tab-count {
    font-size: 12px;
    color: var(--sd-text-muted);
    margin-left: 4px;
}

/* Review styling */
.sd-tab-pane .review-list {
    margin-top: 20px;
}

.sd-tab-pane .review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--sd-border);
}

.sd-tab-pane .review-item:last-child {
    border-bottom: none;
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .sd-lightbox-prev,
    .sd-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .sd-lightbox-prev {
        left: 10px;
    }
    
    .sd-lightbox-next {
        right: 10px;
    }
    
    .sd-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ===== AdvancedRAR Review Styling ===== */
.arar-box-reviews {
    font-family: inherit;
}

.arar-review-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.arar-review-heading h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--sd-dark);
    margin: 0;
}

.arar-review-heading h2 span {
    font-size: 14px;
    font-weight: 400;
    color: var(--sd-text-muted);
    margin-left: 8px;
}

/* Review items */
.arar-rew-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--sd-border);
}

.arar-rew-item:last-child {
    border-bottom: none;
}

.arar-rew-item.hidden {
    display: none;
}

.arar-title {
    margin-bottom: 12px;
}

.arar-title .display-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.arar-social-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.arar-title .titler {
    font-size: 15px;
    font-weight: 600;
    color: var(--sd-dark);
    text-decoration: none;
}

.arar-title a.titler:hover {
    color: var(--sd-orange);
}

.arar-review-meta {
    font-size: 13px;
    color: var(--sd-text-muted);
}

.arar-review-meta .verified {
    color: var(--sd-green);
    font-weight: 500;
}

/* Rating stars */
.arar-rating-stars,
.rating-box {
    display: inline-flex;
    gap: 2px;
}

.arar-rating-stars img,
.rating-box .rating {
    height: 16px;
}

/* Review text */
.arar-review-txt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sd-text);
    margin-bottom: 12px;
}

/* Pros & Cons */
.arar-pros,
.arar-cons {
    font-size: 13px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

.arar-pros {
    background: rgba(58, 170, 53, 0.1);
    color: var(--sd-green);
}

.arar-cons {
    background: rgba(220, 53, 69, 0.1);
    color: var(--sd-red);
}

/* Review footer */
.arar-item-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sd-border);
}

.arar-item-footer a,
.arar-item-footer button,
.arar-item-footer span {
    font-size: 12px;
    color: var(--sd-text-muted);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.arar-item-footer a:hover,
.arar-item-footer button:hover {
    color: var(--sd-orange);
}

/* Helpful buttons */
.arar-helpful {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Show more / Write review buttons */
.arar-show-more,
.arar-write-review {
    margin-top: 20px;
}

.arar-show-more button,
.arar-write-review button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.arar-show-more button {
    background: var(--sd-white);
    border: 1px solid var(--sd-border);
    color: var(--sd-text);
}

.arar-show-more button:hover {
    border-color: var(--sd-orange);
    color: var(--sd-orange);
}

.arar-write-review button {
    background: var(--sd-green);
    border: none;
    color: var(--sd-white);
}

.arar-write-review button:hover {
    background: var(--sd-green-hover);
}

/* Review form */
.review-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--sd-border);
}

.review-form.hidden {
    display: none;
}

#arar-form-add {
    background: var(--sd-bg);
    padding: 24px;
    border-radius: var(--sd-radius);
}

#arar-form-add table {
    width: 100%;
}

#arar-product-img {
    display: none; /* Hide product image in form */
}

#arar-message-hld {
    width: 100%;
}

#arar-form-add h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--sd-dark);
}

#arar-form-add h3 {
    font-size: 14px;
    font-weight: 400;
    color: var(--sd-text-muted);
    margin: 0 0 16px;
}

#arar-form-add h3 span {
    font-weight: 600;
    color: var(--sd-dark);
}

#arar-form-add h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px;
}

/* Rating selection */
.arar-rating-box {
    margin-bottom: 20px;
}

.arar-rating-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.arar-rating-text {
    font-size: 12px;
    color: var(--sd-text-muted);
    margin-top: 4px;
}

/* Form fields */
.arar-form-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arar-form-list li {
    margin-bottom: 16px;
}

.arar-form-list label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--sd-text);
}

.arar-form-list label em {
    color: var(--sd-red);
    font-style: normal;
}

.arar-input-box input,
.arar-input-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--sd-white);
}

.arar-input-box input:focus,
.arar-input-box textarea:focus {
    outline: none;
    border-color: var(--sd-orange);
}

.arar-input-box textarea {
    min-height: 100px;
    resize: vertical;
}

/* File upload */
.arar-fileupload {
    border: 2px dashed var(--sd-border);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: var(--sd-white);
}

.arar-fileupload:hover,
.arar-fileupload.hover {
    border-color: var(--sd-orange);
}

.arar-fileupload__row-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--sd-bg);
    border-radius: 4px;
}

.arar-fileupload__delete {
    color: var(--sd-red) !important;
    cursor: pointer;
}

/* Submit button */
.arar-buttons-set {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.arar-buttons-set button {
    padding: 12px 24px;
    background: var(--sd-green);
    color: var(--sd-white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.arar-buttons-set button:hover {
    background: var(--sd-green-hover);
}

/* Loader */
.arar-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--sd-border);
    border-top-color: var(--sd-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* No reviews message */
#arar-no-reviews {
    font-size: 14px;
    color: var(--sd-text-muted);
    display: block;
    margin-bottom: 20px;
}

/* Admin comment */
.arar-comment {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--sd-bg);
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 6px 6px 0;
}

.arar-comment-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--sd-orange);
    margin-bottom: 6px;
}

/* Attachment images */
.arar-attachment_file {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.arar-attachment_file img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 4px;
    cursor: pointer;
}

/* Messages */
#arar-form-messages .success-msg,
#arar-form-messages .error-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

#arar-form-messages .success-msg {
    background: rgba(58, 170, 53, 0.1);
    color: var(--sd-green);
}

#arar-form-messages .error-msg {
    background: rgba(220, 53, 69, 0.1);
    color: var(--sd-red);
}

/* Responsive reviews */
@media (max-width: 768px) {
    .arar-review-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arar-title .display-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .arar-item-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #arar-form-add {
        padding: 16px;
    }
}
/* ===== Configurable Product Options ===== */
/* Voeg dit toe aan sd-product.css, bijvoorbeeld na de Price section */

.sd-product-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--sd-bg);
    border-radius: var(--sd-radius);
    border: 1px solid var(--sd-border);
}

.sd-option-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sd-option-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sd-option-required {
    color: var(--sd-red);
    font-weight: 400;
}

.sd-option-select-wrapper {
    position: relative;
}

.sd-option-select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--sd-text);
    background-color: var(--sd-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    border: 1px solid var(--sd-border);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sd-option-select:hover {
    border-color: var(--sd-orange);
}

.sd-option-select:focus {
    outline: none;
    border-color: var(--sd-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.sd-option-select.validation-failed {
    border-color: var(--sd-red);
    background-color: #fef2f2;
}

/* Mobile */
@media (max-width: 768px) {
    .sd-product-options {
        padding: 12px;
    }
    
    .sd-option-select {
        padding: 14px 40px 14px 12px;
        font-size: 16px; /* Voorkomt zoom op iOS */
    }
}
