﻿h1, h2, h3 { color: #000; }

.product-landing { max-width: 920px; margin: 0 auto 1.5rem auto; padding: 1rem 1rem 1.1rem; background: #ffffff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04); }

.product-landing-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.7rem; flex-wrap:wrap; }

.product-landing-title { font-size: 1.45rem; line-height: 1.2; margin: 0; color: #000; width:100%; }

.product-landing-meta { display: flex; align-items: center; gap: 0.9rem; font-size: 0.85rem; color: #4b5563; margin: 0; white-space: nowrap; }

    .product-landing-meta span { display: inline-flex; gap: 0.15rem; }

.meta-label { font-weight: 600; margin-right: 0.1rem; }

.meta-value { font-weight: 400; }

.product-landing-status { font-size: 0.85rem; margin: 0; width: 100%; }
    .product-landing-status h2 {margin: 0 0 5px 0;}
    .product-landing-status h2,
    .product-subscribe h2,
    .product-landing-altinfo { color: #000; }
    .product-landing-status span { padding: 2px 8px; border-radius: 100px; white-space: nowrap; display: inline-block; }
    .product-landing-status .red { background: #F5161610; color: #F51616; }
    .product-landing-status .purple { background: #7C3DFD10; color: #7C3DFD; }
    .product-landing-status .green { background: #08c20010; color: #08c200; }

    .product-landing-status.status-tillganglig { background: #ecfdf3; color: #166534; }
    .product-landing-status.status-restnoterad { background: #fef2f2; color: #b91c1c; }

.product-landing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.9rem; }

.product-landing-card { padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid #e5e7eb; background: #f9fafb; }

    .product-landing-card h2 { font-size: 0.95rem; margin: 0 0 0.25rem 0; color: #000; }

    .product-landing-card p { margin: 0; font-size: 0.85rem; color: #374151; }

.product-landing-dl { margin: 0; font-size: 0.85rem; }

    .product-landing-dl div { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.15rem; }

    .product-landing-dl dt { font-weight: 600; color: #4b5563; }

    .product-landing-dl dd { margin: 0; text-align: right; color: #111827; }

.product-landing-altinfo { padding-top: 0.5rem; border-top: 1px dashed #e5e7eb; }

    .product-landing-altinfo h2 { font-size: 0.95rem; margin: 0 0 0.25rem 0; color: #000; }

    .product-landing-altinfo p { margin: 0; font-size: 0.85rem; color: #374151; white-space: pre-line; }

/* Notifierings-popup – oförändrad */
#notificationPopup { max-width: 466px; height: 309px; padding: 40px; box-sizing: border-box; border-radius: 40px; display: inline-flex; justify-content: center; align-items: center; }
    #notificationPopup h2 { text-align: center; font-size: 18px; margin: 0 0 30px 0; color: #000; }
    #notificationPopup p { text-align: center; font-size: 14px; margin: 0 0 20px 0; color: #555668; }
    #notificationPopup .notificationForm { display: flex; justify-content: space-between; gap: 10px; }
    #notificationPopup input[type=text] { width: 294px; padding: 10px; box-sizing: border-box; font-size: 16px; font-family: 'Montserrat', Arial, Sans-serif; border: 0.5px solid #CCCCD2; border-radius: 10px; }
    #notificationPopup input[type=submit] { background: var(--purple); color: #fff; border-radius: 10px; width: 82px; text-align: center; border: none; cursor: pointer; font-family: 'Mona-Sans', Arial, sans-serif; font-weight: 400; }
        #notificationPopup input[type=submit]:hover { opacity: 0.9; }

    #notificationPopup .success p { color: #128b00; font-size: 14px; text-align: left; margin: 10px 0 0 0; }
    #notificationPopup .error p { color: #8b0000; font-size: 14px; text-align: left; margin: 10px 0 0 0; }

#overlay { z-index: 3; background: #ffffff80; display: flex; justify-content: center; align-items: center; position: absolute; top: 0; width: 100%; height: 100%; display: none; }

#filter { z-index: 3; background: #00000060; position: absolute; top: 0; width: 100%; height: 100%; display: none; }

/* Responsivt – bryt upp raden på mindre skärmar */
@media (max-width: 960px) {
    .product-landing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-landing-meta { flex-wrap: wrap; white-space: normal; }
}

@media (max-width: 640px) {
    .product-landing-meta { display: block; }
    .product-landing-meta .meta-value {margin: 0;}
    .product-landing { padding: 1.1rem 0.9rem 1.3rem; border-radius: 0; box-shadow: none; }

    .product-landing-title { font-size: 1.35rem; }

    .product-landing-grid { grid-template-columns: 1fr; }

    .product-landing-dl div { flex-direction: row; align-items: flex-start; justify-content:flex-start; }

    .product-landing-dl dd { text-align: left; }
}
