/**
 * Nordic Pack Swatches – uten Bestillingsoversikt
 * Version: 3.6.0
 */

/* Skjul Woo default elementer vi ikke trenger */
.variations_form .variations { display: none !important; }
.variations_form .single_variation_wrap .quantity { display: none !important; }
.variations_form .woocommerce-variation-add-to-cart .quantity { display: none !important; }

/* Skjul WooCommerce sin standard pris under varianten */
.woocommerce-variation-price { display: none !important; }

/* Skjul wishlist (Woodmart/YITH typiske selektorer) */
.wishlist-button,
.yith-wcwl-add-to-wishlist,
.tinv-wraper,
.wd-single-action-btn.wd-single-wishlist-btn,
.wd-wishlist-btn,
a[href*="wishlist"][rel="nofollow"] {
    display: none !important;
}

/* Container med maks-bredde for å ikke bli for "full" */
.nps-container {
    margin: 22px auto;
    max-width: 860px;
    padding: 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.nps-title {
    font-size: 17px; /* global +1 */
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Grid */
.nps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

/* Kort */
.nps-option {
    background: #fff;
    border: 2px solid #e8ecef;
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    display: block;
    min-height: 190px;
}

.nps-option:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: #c3d4e1;
    box-shadow: 0 6px 16px rgba(145,185,221,0.12);
}

.nps-option.active {
    background: linear-gradient(135deg, rgba(145,185,221,0.08) 0%, rgba(221,145,147,0.02) 100%);
    border-color: #91b9dd;
    box-shadow: 0 4px 12px rgba(145,185,221,0.15);
}

.nps-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8f9fa;
}

.nps-input { position: absolute; opacity: 0; pointer-events: none; }

/* Liten radio-indikator */
.nps-radio {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: #fff;
}
.nps-option.active .nps-radio { border-color: #91b9dd; background: #91b9dd; }
.nps-option.active .nps-radio::after {
    content: "✓";
    color: #fff;
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
}

/* Innhold */
.nps-content { display: flex; flex-direction: column; height: 100%; }

/* Topp: antall (justert for 5 stk-varianten også) */
.nps-quantity {
    font-size: 30px; /* global +1 vs før */
    color: #2c3e50;
    font-weight: 300;
    margin-bottom: 6px;
    line-height: 1;
    text-align: center;
}
.nps-unit {
    font-size: 14px; /* +1 */
    color: #7a8b9b;
    margin-left: 4px;
}

/* Prisfelt */
.nps-price-section {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f3f5;
    text-align: center;
}

.nps-regular-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 2px;
}

.nps-price {
    font-size: 20px; /* +1 */
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 6px;
}

.nps-currency {
    font-size: 14px;
    margin-right: 3px;
}

/* Pris per stk – SVART og +2 vs før */
.nps-unit-price {
    font-size: 13px; /* +2 vs 11 */
    color: #111;     /* svart */
    margin-bottom: 10px;
}

/* Badges – lag jevn plassering for %-merke overalt */
.nps-badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

/* POPULÆR-badge */
.nps-badge-popular {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #dd9193 0%, #e6a1a3 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 10px rgba(221,145,147,0.35);
}

/* %-badge (savings) – større for lesbarhet */
.nps-badge-savings {
    display: inline-block;
    background: linear-gradient(135deg, rgba(145,185,221,0.22) 0%, rgba(145,185,221,0.12) 100%);
    color: #2d4c66;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px; /* oppjustert */
    font-weight: 700;
}

.nps-badge-unavailable {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Responsiv */
@media (max-width: 768px) {
    .nps-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .nps-option { padding: 16px; min-height: 180px; }
    .nps-quantity { font-size: 28px; }
    .nps-price { font-size: 18px; }
}

@media (max-width: 480px) {
    .nps-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nps-option { padding: 14px; }
}

/* Enkle fade-in for kort */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nps-option { animation: fadeInUp 0.4s ease-out backwards; }
.nps-option:nth-child(1) { animation-delay: 0.05s; }
.nps-option:nth-child(2) { animation-delay: 0.10s; }
.nps-option:nth-child(3) { animation-delay: 0.15s; }
.nps-option:nth-child(4) { animation-delay: 0.20s; }
.nps-option:nth-child(5) { animation-delay: 0.25s; }
.nps-option:nth-child(6) { animation-delay: 0.30s; }
.nps-option:nth-child(7) { animation-delay: 0.35s; }
.nps-option:nth-child(8) { animation-delay: 0.40s; }
