/* =========================================================
   Legacy Collectibles - Gecombineerde website-CSS
   ========================================================= */

/* ------------------------------
   Productpagina
   ------------------------------ */

.product-page {
    display: grid;
    grid-template-columns: 500px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.product-info h1 {
    margin-bottom: 15px;
    font-size: 42px;
    line-height: 1.1;
}

.condition {
    margin-bottom: 20px;
    color: #666;
}

.price {
    margin-bottom: 10px;
    font-size: 42px;
}

.old-price {
    margin-bottom: 20px;
    color: #888;
    text-decoration: line-through;
}

.stock {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.in-stock { color: #2e7d32; }
.stock.low-stock {
    color: #c2410c;
}
.out-stock { color: #c62828; }

.description {
    margin-bottom: 35px;
    line-height: 1.8;
}

.product-details {
    margin: 35px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
}

.detail-row:last-child { border-bottom: 0; }
.detail-row strong { color: #222; }
.detail-row span { color: #666; text-align: right; }

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-actions form { margin: 0; }

.product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border: 0;
    border-radius: 12px;
    background: #222;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.product-btn:hover { background: #ffcc00; color: #222; }
.product-btn:disabled { opacity: .55; cursor: not-allowed; }

.wishlist-btn {
    display: flex;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.wishlist-btn:hover { background: #ffcc00; }

/* ------------------------------
   Productgalerij
   ------------------------------ */

.main-product-image {
    display: flex;
    width: 100%;
    height: 500px;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.main-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
}

.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.product-thumbnail {
    width: 78px;
    height: 78px;
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: none;
}

.product-thumbnail:hover,
.product-thumbnail.active { border-color: #ffcc00; }

/* ------------------------------
   Variantkeuze
   ------------------------------ */

.product-variant-selector { margin: 22px 0 26px; }

.product-variant-selector label {
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.product-variant-selector select {
    width: 100%;
    height: 56px;
    padding: 0 50px 0 18px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background-color: #292929;
    color: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.product-variant-selector select:hover { background-color: #303030; }
.product-variant-selector select:focus { border-color: #555; outline: none; box-shadow: none; }
.product-variant-selector select option { background-color: #292929; color: #fff; }

/* ------------------------------
   Breadcrumbs
   ------------------------------ */

.breadcrumbs { margin-bottom: 35px; color: #333; font-size: 15px; }
.breadcrumbs a { color: #333; text-decoration: none; }
.breadcrumbs a:hover { color: #222; }

/* ------------------------------
   Productgrids en productkaarten
   ------------------------------ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.product-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.product-card .product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f7f7f7;
}
.product-card .product-image a { display: block; width: 100%; height: 100%; }

.product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    object-position: center 62%;
    transform: none;
}

.product-card .product-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 28px;
}

.product-card .product-content h2,
.product-card .product-content h3 {
    min-height: 66px;
    margin: 0 0 6px;
    overflow-wrap: anywhere;
    font-size: 28px;
    line-height: 1.15;
}

.product-card .product-category {
    min-height: 24px;
    margin: 0 0 24px;
    color: #666;
    font-size: 17px;
    line-height: 1.4;
}

.product-card .product-price {
    margin-top: auto;
    margin-bottom: 24px;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.15;
}

.product-card .product-price .old-price {
    display: block;
    margin: 0 0 4px;
    color: #888;
    font-size: 17px;
    font-weight: 500;
    text-decoration: line-through;
}

.product-card .product-btn {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    text-align: center;
}

.product-card .image-badge,
.product-card .out-of-stock-badge {
    position: absolute;
    top: 18px;
    z-index: 3;
    width: auto;
    max-width: calc(100% - 36px);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.product-card .image-badge {
    right: auto;
    left: 18px;
    background: #ffd447;
    color: #222;
}

.product-card .out-of-stock-badge {
    right: 18px;
    left: auto;
    background: #bd3932;
    color: #fff;
    text-transform: uppercase;
}

/* ------------------------------
   Winkelwagen
   ------------------------------ */

.cart { display: grid; gap: 20px; }

.cart-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 25px;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.cart-item img {
    width: 120px;
    height: 120px;
    padding: 10px;
    border-radius: 12px;
    background: #f5f5f5;
    object-fit: contain;
}

.cart-info h3 { margin-bottom: 10px; }
.cart-info h3 a { color: inherit; text-decoration: none; }

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.cart-quantity a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.cart-quantity span { font-weight: 700; }
.cart-remove { color: #c62828; font-weight: 700; text-decoration: none; }

.cart-summary {
    position: sticky;
    top: 30px;
    max-width: 400px;
    margin-left: auto;
    padding: 25px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.cart-summary p { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.cart-summary h3 { margin: 18px 0; }
.summary-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 16px 0; font-size: 16px; }
.summary-divider { margin: 25px 0; border: 0; border-top: 1px solid #e5e5e5; }
.summary-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 30px; }

.free-shipping-box {
    margin: 15px 0 20px;
    padding: 12px 15px;
    border: 1px solid #f2d15c;
    border-radius: 10px;
    background: #fff8dd;
    color: #444;
    font-size: 14px;
}

.free-shipping-box.success { border-color: #7bc67b; background: #eaf8ea; color: #246b24; }

/* ------------------------------
   Checkout
   ------------------------------ */

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 35px;
    align-items: start;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    padding: 35px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.checkout-form label { margin-top: 18px; margin-bottom: 8px; font-weight: 700; }

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.checkout-form textarea { min-height: 150px; resize: vertical; }
.checkout-form button { width: 100%; margin-top: 25px; }

.checkout-btn {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: #222;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-btn:hover { background: #ffcc00; color: #222; }

.checkout-login-box {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ffcc00;
    border-radius: 12px;
    background: #fff8d8;
}

.checkout-login-box a { color: #222; font-weight: 700; }
.checkout-vat-note {
    margin-top: 12px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ------------------------------
   Reviews
   ------------------------------ */

.reviews-section { margin-top: 50px; }

.review-top {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.review-summary-card,
.review-form-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.review-summary-card h2,
.review-form-card h3 { margin-bottom: 20px; }

.review-score { display: grid; gap: 8px; margin-bottom: 25px; }
.review-score strong { font-size: 26px; }
.review-score span,
.muted { color: #666; }
.no-reviews { margin-bottom: 6px; font-weight: 700; }

.review-form { display: flex; flex-direction: column; gap: 12px; }
.review-form label { font-weight: 700; }

.review-form select,
.review-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.review-form select { color: #ffcc00; font-size: 18px; font-weight: 700; }
.review-form textarea { min-height: 130px; resize: vertical; }
.review-form button { width: fit-content; margin-top: 5px; }

.review-login-btn {
    display: inline-flex;
    width: 180px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 12px;
    background: #222;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.review-login-btn:hover { background: #ffcc00; color: #222; }
.rating-stars span { color: #ddd; font-size: 26px; }
.rating-stars span.filled { color: #ffcc00; }
.rating-stars.small span { font-size: 18px; }
.summary-review { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eee; }
.summary-review strong { display: block; margin-bottom: 6px; }
.summary-review p { margin: 10px 0; color: #444; }

.show-reviews-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.show-reviews-btn:hover { color: #ffcc00; }

.reviews-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(0, 0, 0, .55);
}

.reviews-modal.active { display: flex; }

.reviews-modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 18px;
    background: #fff;
}

.reviews-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 32px;
    cursor: pointer;
}

.modal-review-card { padding: 18px 0; border-bottom: 1px solid #eee; }
.modal-review-card:last-child { border-bottom: 0; }

.review-success {
    padding: 24px;
    border: 1px solid #3cb371;
    border-radius: 14px;
    background: #e8f8ed;
}

.review-success h3 { margin-bottom: 15px; color: #2e7d32; }
.review-success p { margin-bottom: 12px; color: #444; line-height: 1.6; }
.review-success p:last-child { margin-bottom: 0; }

/* ------------------------------
   Favorieten
   ------------------------------ */

.favorites-list { display: grid; gap: 18px; margin-top: 30px; }

.favorite-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.favorite-item img {
    width: 120px;
    height: 120px;
    padding: 10px;
    border-radius: 14px;
    background: #f7f7f7;
    object-fit: contain;
}

.favorite-info h3 { margin-bottom: 8px; }
.favorite-info p { font-size: 22px; font-weight: 700; }
.favorite-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.favorite-actions .product-btn { padding: 13px 22px; font-size: 16px; }

/* ------------------------------
   Accountbestellingen
   ------------------------------ */

.account-order-products { margin-top: 25px; }
.account-order-products h3 { margin-bottom: 15px; }

.account-order-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.account-order-product img {
    width: 70px;
    height: 70px;
    padding: 6px;
    border-radius: 10px;
    background: #f7f7f7;
    object-fit: contain;
}

/* ------------------------------
   Contact
   ------------------------------ */

.contact-header { margin-bottom: 40px; text-align: center; }
.contact-header h1 { margin-bottom: 15px; font-size: 48px; }
.contact-header p { max-width: 700px; margin: 0 auto; color: #666; font-size: 18px; line-height: 1.6; }
.contact-message { max-width: 700px; margin: 0 auto 25px; }

/* ------------------------------
   Login en wachtwoord
   ------------------------------ */

.login-register { margin-top: 20px; padding-top: 18px; border-top: 1px solid #eee; text-align: center; }
.login-register p { margin: 0; color: #666; font-size: 16px; }
.login-register a { color: #222; font-weight: 700; text-decoration: none; }
.login-register a:hover { color: #d4a900; text-decoration: underline; }

.forgot-password-link { margin-top: 8px; margin-bottom: 20px; text-align: right; }
.forgot-password-link a { color: #666; font-size: 14px; text-decoration: none; }
.forgot-password-link a:hover { color: #222; text-decoration: underline; }

.password-success-card { text-align: center; }
.password-success-card p { margin-bottom: 18px; color: #555; line-height: 1.7; }
.password-success-help { margin: 25px 0; padding: 20px; border-radius: 12px; background: #f7f7f7; }
.password-success-help h3 { margin-bottom: 10px; }
.password-success-button { display: block; text-align: center; text-decoration: none; }

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 1150px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-page { grid-template-columns: 420px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 950px) {
    .product-page,
    .checkout-grid,
    .review-top { grid-template-columns: 1fr; }

    .main-product-image { height: 440px; }
    .cart-summary { position: static; max-width: none; margin-left: 0; }
}

@media (max-width: 850px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card .product-image { flex-basis: 260px; height: 260px; }
    .favorite-item { grid-template-columns: 90px minmax(0, 1fr); }
    .favorite-actions { grid-column: 1 / -1; align-items: stretch; }
}

@media (max-width: 700px) {
    .cart-item { grid-template-columns: 90px minmax(0, 1fr); }
    .cart-item > strong { grid-column: 2; }
    .cart-item img { width: 90px; height: 90px; }
    .detail-row { flex-direction: column; gap: 6px; }
    .detail-row span { text-align: left; }
    .main-product-image { height: 380px; padding: 20px; }
}

@media (max-width: 550px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-card .product-content h2,
    .product-card .product-content h3 { min-height: 0; font-size: 24px; }
    .product-info h1,
    .price { font-size: 34px; }
    .product-actions { align-items: stretch; }
    .product-actions form { flex: 1; }
    .product-actions .product-btn { width: 100%; }
}

/* =========================================================
   Definitieve productkaart-opmaak
   ========================================================= */

/* Algemene productkaarten */
.product-grid .product-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.product-grid .product-card .product-image {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f7f7f7 !important;
}

.product-grid .product-card .product-image > a {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.product-grid .product-card .product-image img {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 10px !important;
    left: 50% !important;
    display: block !important;
    width: auto !important;
    height: 72% !important;
    max-width: 82% !important;
    max-height: 72% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    transform: translateX(-50%) !important;
}

/* Inhoud van productkaarten */
.product-grid .product-card .product-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 28px;
}

.product-grid .product-card .product-content h2,
.product-grid .product-card .product-content h3 {
    min-height: 96px;
    margin: 0 0 20px;
    overflow-wrap: anywhere;
    font-size: 28px;
    line-height: 1.15;
}

.product-grid .product-card .product-price {
    margin-top: auto;
    margin-bottom: 24px;
}

.product-grid .product-card .product-btn {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 14px 18px;
    text-align: center;
}

/* LEGO Sets: compacter afbeeldingsvlak */
.product-grid .product-card.set-product-card .product-image {
    height: 220px !important;
    min-height: 220px !important;
}

.product-grid .product-card.set-product-card .product-image img {
    bottom: 8px !important;
    height: 82% !important;
    max-width: 88% !important;
    max-height: 82% !important;
}

.product-grid .product-card.set-product-card .product-content {
    padding-top: 22px;
}

/* Link naar uitleg productstaat */
.product-state-info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color .2s ease,
        transform .2s ease;
}

.product-state-info-link::before {
    content: "ⓘ";
    font-size: 15px;
}

.product-state-info-link:hover {
    color: #111;
    transform: translateX(2px);
}

.product-info-notice {
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid #f1d48a;
    border-radius: 8px;
    background: #fff8e6;
    font-size: .95rem;
    line-height: 1.5;
}

/* Responsive productkaarten */
@media (max-width: 850px) {
    .product-grid .product-card .product-image {
        height: 260px !important;
        min-height: 260px !important;
    }

    .product-grid .product-card.set-product-card .product-image {
        height: 190px !important;
        min-height: 190px !important;
    }
}

@media (max-width: 550px) {
    .product-grid .product-card .product-image {
        height: 240px !important;
        min-height: 240px !important;
    }

    .product-grid .product-card.set-product-card .product-image {
        height: 180px !important;
        min-height: 180px !important;
    }

    .product-grid .product-card .product-content h2,
    .product-grid .product-card .product-content h3 {
        min-height: 0;
        font-size: 24px;
    }
}.condition-list {
    margin: 10px 0 22px;
}

.condition-item {
    margin: 4px 0;
    color: #444;
    font-size: 16px;
    line-height: 1.5;
}